@bull-board/ui
Version:
A Dashboard UI built on top of bull or bullmq.
1 lines • 20.3 kB
JavaScript
(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["2833"],{3973(e){class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}class r{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!e.scope)return;let t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){e.scope&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}let s=(e={})=>{let t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=s({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"==typeof e||e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{o._collapse(e)}))}}class a extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new r(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(e){return e?"string"==typeof e?e:e.source:null}function c(e){return d("(?=",e,")")}function u(e){return d("(?:",e,")*")}function g(e){return d("(?:",e,")?")}function d(...e){return e.map(e=>l(e)).join("")}function h(...e){let t;return"("+(("object"==typeof(t=e[e.length-1])&&t.constructor===Object?(e.splice(e.length-1,1),t):{}).capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function f(e){return RegExp(e.toString()+"|").exec("").length-1}let p=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(e,{joinWith:t}){let n=0;return e.map(e=>{let t=n+=1,i=l(e),r="";for(;i.length>0;){let e=p.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}let m="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",x="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},O=function(e,t,n={}){let r=i({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let s=h("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:d(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},M=O("//","$"),N=O("/\\*","\\*/"),S=O("#","$");var k=Object.freeze({__proto__:null,APOS_STRING_MODE:{scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},BACKSLASH_ESCAPE:y,BINARY_NUMBER_MODE:{scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:O,C_BLOCK_COMMENT_MODE:N,C_LINE_COMMENT_MODE:M,C_NUMBER_MODE:{scope:"number",begin:x,relevance:0},C_NUMBER_RE:x,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:m,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+E,relevance:0},NUMBER_MODE:{scope:"number",begin:_,relevance:0},NUMBER_RE:_,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:{scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=d(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:m,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:"title",begin:E,relevance:0}});function v(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function R(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function j(e,t){!t||e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=v,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function A(e,t){Array.isArray(e.illegal)&&(e.illegal=h(...e.illegal))}function T(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function I(e,t){void 0===e.relevance&&(e.relevance=1)}let L=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=d(n.beforeMatch,c(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},B=["of","and","for","in","not","or","if","then","parent","list","value"],C={},D=e=>{console.error(e)},H=(e,...t)=>{console.log(`WARN: ${e}`,...t)},P=(e,t)=>{C[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),C[`${e}/${t}`]=!0)},$=Error();function U(e,t,{key:n}){let i=0,r=e[n],s={},o={};for(let e=1;e<=t.length;e++)o[e+i]=r[e],s[e+i]=!0,i+=f(t[e-1]);e[n]=o,e[n]._emit=s,e[n]._multi=!0}function z(e){if(e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw D("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$;if("object"!=typeof e.beginScope||null===e.beginScope)throw D("beginScope must be object"),$;U(e,e.begin,{key:"beginScope"}),e.begin=b(e.begin,{joinWith:""})}if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw D("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$;if("object"!=typeof e.endScope||null===e.endScope)throw D("endScope must be object"),$;U(e,e.end,{key:"endScope"}),e.end=b(e.end,{joinWith:""})}}class W extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}let G=Symbol("nomatch"),K=function(e){let r=Object.create(null),s=Object.create(null),o=[],p=!0,m="Could not find the language '{}', did you forget to load/include a language module?",E={disableAutodetect:!0,name:"Plain text",contains:[]},_={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:a};function x(e){return _.noHighlightRe.test(e)}function w(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(P("10.7.0","highlight(lang, code, ...args) has been deprecated."),P("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);let s={code:i,language:r};U("before:highlight",s);let o=s.result?s.result:y(s.language,s.code,n);return o.code=s.code,U("after:highlight",o),o}function y(e,s,o,a){let c=Object.create(null);function u(){if(!k.keywords)return void H.addText($);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec($),n="";for(;t;){n+=$.substring(e,t.index);let i=M.case_insensitive?t[0].toLowerCase():t[0],r=k.keywords[i];if(r){let[e,s]=r;if(H.addText(n),n="",c[i]=(c[i]||0)+1,c[i]<=7&&(U+=s),e.startsWith("_"))n+=t[0];else{let n=M.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec($)}n+=$.substring(e),H.addText(n)}function g(){null!=k.subLanguage?function(){if(""===$)return;let e=null;if("string"==typeof k.subLanguage){if(!r[k.subLanguage])return H.addText($);e=y(k.subLanguage,$,!0,C[k.subLanguage]),C[k.subLanguage]=e._top}else e=O($,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(U+=e.relevance),H.__addSublanguage(e._emitter,e.language)}():u(),$=""}function d(e,t){""!==e&&(H.startScope(t),H.addText(e),H.endScope())}function h(e,t){let n=1,i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}let i=M.classNameAliases[e[n]]||e[n],r=t[n];i?d(r,i):($=r,u(),$=""),n++}}function E(e,t){return e.scope&&"string"==typeof e.scope&&H.openNode(M.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(d($,M.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),$=""):e.beginScope._multi&&(h(e.beginScope,t),$="")),k=Object.create(e,{parent:{value:k}})}let x={};function w(n,i){let r=i&&i[0];if($+=n,null==r)return g(),0;if("begin"===x.type&&"end"===i.type&&x.index===i.index&&""===r){if($+=s.slice(i.index,i.index+1),!p){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=i,"begin"===i.type){let e=i[0],n=i.rule,r=new t(n);for(let t of[n.__beforeBegin,n["on:begin"]])if(t&&(t(i,r),r.isMatchIgnored))return 0===k.matcher.regexIndex?($+=e[0],1):(X=!0,0);return n.skip?$+=e:(n.excludeBegin&&($+=e),g(),n.returnBegin||n.excludeBegin||($=e)),E(n,i),n.returnBegin?0:e.length}if("illegal"!==i.type||o){if("end"===i.type){let e=function(e){let n=e[0],i=s.substring(e.index),r=function e(n,i,r){var s;let o,a=(s=n.endRe,(o=s&&s.exec(r))&&0===o.index);if(a){if(n["on:end"]){let e=new t(n);n["on:end"](i,e),e.isMatchIgnored&&(a=!1)}if(a){for(;n.endsParent&&n.parent;)n=n.parent;return n}}if(n.endsWithParent)return e(n.parent,i,r)}(k,e,i);if(!r)return G;let o=k;k.endScope&&k.endScope._wrap?(g(),d(n,k.endScope._wrap)):k.endScope&&k.endScope._multi?(g(),h(k.endScope,e)):o.skip?$+=n:(o.returnEnd||o.excludeEnd||($+=n),g(),o.excludeEnd&&($=n));do k.scope&&H.closeNode(),k.skip||k.subLanguage||(U+=k.relevance),k=k.parent;while(k!==r.parent);return r.starts&&E(r.starts,e),o.returnEnd?0:n.length}(i);if(e!==G)return e}}else{let e=Error('Illegal lexeme "'+r+'" for mode "'+(k.scope||"<unnamed>")+'"');throw e.mode=k,e}if("illegal"===i.type&&""===r)return $+="\n",1;if(K>1e5&&K>3*i.index)throw Error("potential infinite loop, way more iterations than matches");return $+=r,r.length}let M=v(e);if(!M)throw D(m.replace("{}",e)),Error('Unknown language: "'+e+'"');let N=function(e){function t(t,n){return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=f(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(b(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(s,o){let a;if(s.isCompiled)return s;[R,T,z,L].forEach(e=>e(s,o)),e.compilerExtensions.forEach(e=>e(s,o)),s.__beforeBegin=null,[j,A,I].forEach(e=>e(s,o)),s.isCompiled=!0;let c=null;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=function e(t,n,i="keyword"){let r=Object.create(null);return"string"==typeof t?s(i,t.split(" ")):Array.isArray(t)?s(i,t):Object.keys(t).forEach(function(i){Object.assign(r,e(t[i],n,i))}),r;function s(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach(function(t){var n,i,s;let o=t.split("|");r[o[0]]=[e,(n=o[0],(i=o[1])?Number(i):+(s=n,!B.includes(s.toLowerCase())))]})}}(s.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),o&&(s.begin||(s.begin=/\B|\b/),s.beginRe=t(s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(s.endRe=t(s.end)),s.terminatorEnd=l(s.end)||"",s.endsWithParent&&o.terminatorEnd&&(s.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(s.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(e){var t;return((t="self"===e?s:e).variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return i(t,{variants:null},e)})),t.cachedVariants)?t.cachedVariants:!function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(t)?Object.isFrozen(t)?i(t):t:i(t,{starts:t.starts?i(t.starts):null})})),s.contains.forEach(function(e){n(e,s)}),s.starts&&n(s.starts,o),a=new r,s.contains.forEach(e=>a.addRule(e.begin,{rule:e,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),s.matcher=a,s}(e)}(M),S="",k=a||N,C={},H=new _.__emitter(_),P=[];for(let e=k;e!==M;e=e.parent)e.scope&&P.unshift(e.scope);P.forEach(e=>H.openNode(e));let $="",U=0,W=0,K=0,X=!1;try{if(M.__emitTokens)M.__emitTokens(s,H);else{for(k.matcher.considerAll();;){K++,X?X=!1:k.matcher.considerAll(),k.matcher.lastIndex=W;let e=k.matcher.exec(s);if(!e)break;let t=s.substring(W,e.index),n=w(t,e);W=e.index+n}w(s.substring(W))}return H.finalize(),S=H.toHTML(),{language:e,value:S,relevance:U,illegal:!1,_emitter:H,_top:k}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:n(s),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:W,context:s.slice(W-100,W+100),mode:t.mode,resultSoFar:S},_emitter:H};if(p)return{language:e,value:n(s),illegal:!1,relevance:0,errorRaised:t,_emitter:H,_top:k};throw t}}function O(e,t){let i;t=t||_.languages||Object.keys(r);let s=((i={value:n(e),illegal:!1,relevance:0,_top:E,_emitter:new _.__emitter(_)})._emitter.addText(e),i),o=t.filter(v).filter($).map(t=>y(t,e,!1));o.unshift(s);let[a,l]=o.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(v(e.language).supersetOf===t.language)return 1;else if(v(t.language).supersetOf===e.language)return -1}return 0});return a.secondBest=l,a}function M(e){var t;let n,i=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";let n=_.languageDetectRe.exec(t);if(n){let t=v(n[1]);return t||(H(m.replace("{}",n[1])),H("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>x(e)||v(e))}(e);if(x(i))return;if(U("before:highlightElement",{el:e,language:i}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(_.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),_.throwUnescapedHTML))throw new W("One of your code blocks includes unescaped HTML.",e.innerHTML);let r=e.textContent,o=i?w(r,{language:i,ignoreIllegals:!0}):O(r);e.innerHTML=o.value,e.dataset.highlighted="yes",t=o.language,n=i&&s[i]||t,e.classList.add("hljs"),e.classList.add(`language-${n}`),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),U("after:highlightElement",{el:e,result:o,text:r})}let N=!1;function S(){if("loading"===document.readyState){N||window.addEventListener("DOMContentLoaded",function(){S()},!1),N=!0;return}document.querySelectorAll(_.cssSelector).forEach(M)}function v(e){return r[e=(e||"").toLowerCase()]||r[s[e]]}function C(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{s[e.toLowerCase()]=t})}function $(e){let t=v(e);return t&&!t.disableAutodetect}function U(e,t){o.forEach(function(n){n[e]&&n[e](t)})}for(let t in Object.assign(e,{highlight:w,highlightAuto:O,highlightAll:S,highlightElement:M,highlightBlock:function(e){return P("10.7.0","highlightBlock will be removed entirely in v12.0"),P("10.7.0","Please use highlightElement now."),M(e)},configure:function(e){_=i(_,e)},initHighlighting:()=>{S(),P("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){S(),P("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,n){let i=null;try{i=n(e)}catch(e){if(D("Language definition for '{}' could not be registered.".replace("{}",t)),p)D(e);else throw e;i=E}i.name||(i.name=t),r[t]=i,i.rawDefinition=n.bind(null,e),i.aliases&&C(i.aliases,{languageName:t})},unregisterLanguage:function(e){for(let t of(delete r[e],Object.keys(s)))s[t]===e&&delete s[t]},listLanguages:function(){return Object.keys(r)},getLanguage:v,registerAliases:C,autoDetection:$,inherit:i,addPlugin:function(e){var t;(t=e)["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))}),o.push(e)},removePlugin:function(e){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}}),e.debugMode=function(){p=!1},e.safeMode=function(){p=!0},e.versionString="11.11.1",e.regex={concat:d,lookahead:c,either:h,optional:g,anyNumberOfTimes:u},k)"object"==typeof k[t]&&function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{let i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)}),t}(k[t]);return Object.assign(e,k),e},X=K({});X.newInstance=()=>K({}),e.exports=X,X.HighlightJS=X,X.default=X},11896(e,t,n){"use strict";n.d(t,{A:()=>i});let i=n(3973)},25109(e,t,n){"use strict";function i(e){let t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}n.d(t,{A:()=>i})}}]);