From 620355f9fc5dd37fae45f40530d8374cb60ad968 Mon Sep 17 00:00:00 2001 From: divlook Date: Sun, 7 Mar 2021 17:11:07 +0000 Subject: [PATCH] build: dist --- dist/highlight.worker.js | 2 +- dist/index.html | 2 +- dist/main.0c024c54ee7db40a35e5.js | 5 +++++ dist/plugins/highlight.module.js | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 dist/main.0c024c54ee7db40a35e5.js diff --git a/dist/highlight.worker.js b/dist/highlight.worker.js index 70a7acb..0d3b0fe 100644 --- a/dist/highlight.worker.js +++ b/dist/highlight.worker.js @@ -1 +1 @@ -!function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n){function t(e){Object.freeze(e);var n="function"==typeof e;return Object.getOwnPropertyNames(e).forEach((function(r){!Object.hasOwnProperty.call(e,r)||null===e[r]||"object"!=typeof e[r]&&"function"!=typeof e[r]||n&&("caller"===r||"callee"===r||"arguments"===r)||Object.isFrozen(e[r])||t(e[r])})),e}class r{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...n){var t={};for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}function s(e){return e.nodeName.toLowerCase()}var o=Object.freeze({__proto__:null,escapeHTML:a,inherit:i,nodeStream:function(e){var n=[];return function e(t,r){for(var a=t.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(n.push({event:"start",offset:r,node:a}),r=e(a,r),s(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:a}));return r}(e,0),n},mergeStreams:function(e,n,t){var r=0,i="",o=[];function c(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function u(e){i+=""}function d(e){("start"===e.event?l:u)(e.node)}for(;e.length||n.length;){var g=c();if(i+=a(t.substring(r,g[0].offset)),r=g[0].offset,g===e){o.reverse().forEach(u);do{d(g.splice(0,1)[0]),g=c()}while(g===e&&g.length&&g[0].offset===r);o.reverse().forEach(l)}else"start"===g[0].event?o.push(g[0].node):o.pop(),d(g.splice(0,1)[0])}return i+a(t.substr(r))}});const c=e=>!!e.kind;class l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){c(e)&&(this.buffer+="")}value(){return this.buffer}span(e){this.buffer+=``}}class u{constructor(){this.rootNode={children:[]},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){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}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,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),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=>{u._collapse(e)}))}}class d extends u{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function g(e){return e?"string"==typeof e?e:e.source:null}const f="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",h={begin:"\\\\[\\s\\S]",relevance:0},b={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[h]},p={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[h]},m={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/},E=function(e,n,t={}){var r=i({className:"comment",begin:e,end:n,contains:[]},t);return r.contains.push(m),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},v=E("//","$"),_=E("/\\*","\\*/"),x=E("#","$"),N={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},y={className:"number",begin:f,relevance:0},w={className:"number",begin:"\\b(0b[01]+)",relevance:0},O={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},R={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[h,{begin:/\[/,end:/\]/,relevance:0,contains:[h]}]}]},M={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},S={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},T={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var A=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:f,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>g(e)).join("")}(n,/.*\b/,e.binary,/\b.*/)),i({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:h,APOS_STRING_MODE:b,QUOTE_STRING_MODE:p,PHRASAL_WORDS_MODE:m,COMMENT:E,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:_,HASH_COMMENT_MODE:x,NUMBER_MODE:N,C_NUMBER_MODE:y,BINARY_NUMBER_MODE:w,CSS_NUMBER_MODE:O,REGEXP_MODE:R,TITLE_MODE:M,UNDERSCORE_TITLE_MODE:S,METHOD_GUARD:T,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}}),k="of and for in not or if then".split(" ");function I(e){function n(n,t){return new RegExp(g(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,n="|"){for(var t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,a="",i=0;i0&&(a+=n),a+="(";o.length>0;){var c=t.exec(o);if(null==c){a+=o;break}a+=o.substring(0,c.index),o=o.substring(c.index+c[0].length),"\\"===c[0][0]&&c[1]?a+="\\"+String(Number(c[1])+s):(a+=c[0],"("===c[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}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];const n=new t;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;const t=n.exec(e);return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&(this.regexIndex=0)),t}}function a(e,n){const t=e.input[e.index-1],r=e.input[e.index+e[0].length];"."!==t&&"."!==r||n.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return function t(s,o){const c=s;if(s.compiled)return c;s.compiled=!0,s.__beforeBegin=null,s.keywords=s.keywords||s.beginKeywords;let l=null;if("object"==typeof s.keywords&&(l=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=function(e,n){var t={};"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(n){r(n,e[n])}));return t;function r(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){var r=n.split("|");t[r[0]]=[e,C(r[0],r[1])]}))}}(s.keywords,e.case_insensitive)),s.lexemes&&l)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c.keywordPatternRe=n(s.lexemes||l||/\w+/,!0),o&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?=\\b|\\s)",s.__beforeBegin=a),s.begin||(s.begin=/\B|\b/),c.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(c.endRe=n(s.end)),c.terminator_end=g(s.end)||"",s.endsWithParent&&o.terminator_end&&(c.terminator_end+=(s.end?"|":"")+o.terminator_end)),s.illegal&&(c.illegalRe=n(s.illegal)),void 0===s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((function(e){return function(e){e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return i(e,{variants:null},n)})));if(e.cached_variants)return e.cached_variants;if(function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?s:e)}))),s.contains.forEach((function(e){t(e,c)})),s.starts&&t(s.starts,o),c.matcher=function(e){const n=new r;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&n.addRule(e.terminator_end,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(c),c}(e)}function C(e,n){return n?Number(n):function(e){return k.includes(e.toLowerCase())}(e)?0:1}const L=a,D=i,{nodeStream:j,mergeStreams:B}=o,P=Symbol("nomatch");var U=function(e){var n=[],a=Object.create(null),i=Object.create(null),s=[],o=!0,c=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?";const u={disableAutodetect:!0,name:"Plain text",contains:[]};var g={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:d};function f(e){return g.noHighlightRe.test(e)}function h(e,n,t,r){var a={code:n,language:e};y("before:highlight",a);var i=a.result?a.result:b(a.language,a.code,t,r);return i.code=a.code,y("after:highlight",i),i}function b(e,n,t,i){var s=n;function c(e,n){var t=x.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=w.subLanguage?function(){if(""!==M){var e=null;if("string"==typeof w.subLanguage){if(!a[w.subLanguage])return void R.addText(M);e=b(w.subLanguage,M,!0,O[w.subLanguage]),O[w.subLanguage]=e.top}else e=p(M,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(S+=e.relevance),R.addSublanguage(e.emitter,e.language)}}():function(){if(!w.keywords)return void R.addText(M);let e=0;w.keywordPatternRe.lastIndex=0;let n=w.keywordPatternRe.exec(M),t="";for(;n;){t+=M.substring(e,n.index);const r=c(w,n);if(r){const[e,a]=r;R.addText(t),t="",S+=a,R.addKeyword(n[0],e)}else t+=n[0];e=w.keywordPatternRe.lastIndex,n=w.keywordPatternRe.exec(M)}t+=M.substr(e),R.addText(t)}(),M=""}function d(e){return e.className&&R.openNode(e.className),w=Object.create(e,{parent:{value:w}})}function f(e){return 0===w.matcher.regexIndex?(M+=e[0],1):(k=!0,0)}function h(e){var n=e[0],t=e.rule;const a=new r(t),i=[t.__beforeBegin,t["on:begin"]];for(const t of i)if(t&&(t(e,a),a.ignore))return f(n);return t&&t.endSameAsBegin&&(t.endRe=new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),t.skip?M+=n:(t.excludeBegin&&(M+=n),u(),t.returnBegin||t.excludeBegin||(M=n)),d(t),t.returnBegin?0:n.length}function m(e){var n=e[0],t=s.substr(e.index),a=function e(n,t,a){let i=function(e,n){var t=e&&e.exec(n);return t&&0===t.index}(n.endRe,a);if(i){if(n["on:end"]){const e=new r(n);n["on:end"](t,e),e.ignore&&(i=!1)}if(i){for(;n.endsParent&&n.parent;)n=n.parent;return n}}if(n.endsWithParent)return e(n.parent,t,a)}(w,e,t);if(!a)return P;var i=w;i.skip?M+=n:(i.returnEnd||i.excludeEnd||(M+=n),u(),i.excludeEnd&&(M=n));do{w.className&&R.closeNode(),w.skip||w.subLanguage||(S+=w.relevance),w=w.parent}while(w!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),d(a.starts)),i.returnEnd?0:n.length}var E={};function v(n,r){var a=r&&r[0];if(M+=n,null==a)return u(),0;if("begin"===E.type&&"end"===r.type&&E.index===r.index&&""===a){if(M+=s.slice(r.index,r.index+1),!o){const n=new Error("0 width match regex");throw n.languageName=e,n.badRule=E.rule,n}return 1}if(E=r,"begin"===r.type)return h(r);if("illegal"===r.type&&!t){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(w.className||"")+'"');throw e.mode=w,e}if("end"===r.type){var i=m(r);if(i!==P)return i}if("illegal"===r.type&&""===a)return 1;if(A>1e5&&A>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return M+=a,a.length}var x=_(e);if(!x)throw console.error(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');var N=I(x),y="",w=i||N,O={},R=new g.__emitter(g);!function(){for(var e=[],n=w;n!==x;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>R.openNode(e))}();var M="",S=0,T=0,A=0,k=!1;try{for(w.matcher.considerAll();;){A++,k?k=!1:(w.matcher.lastIndex=T,w.matcher.considerAll());const e=w.matcher.exec(s);if(!e)break;const n=v(s.substring(T,e.index),e);T=e.index+n}return v(s.substr(T)),R.closeAllNodes(),R.finalize(),y=R.toHTML(),{relevance:S,value:y,language:e,illegal:!1,emitter:R,top:w}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:s.slice(T-100,T+100),mode:n.mode},sofar:y,relevance:0,value:L(s),emitter:R};if(o)return{illegal:!1,relevance:0,value:L(s),emitter:R,language:e,top:w,errorRaised:n};throw n}}function p(e,n){n=n||g.languages||Object.keys(a);var t=function(e){const n={relevance:0,emitter:new g.__emitter(g),value:L(e),illegal:!1,top:u};return n.emitter.addText(e),n}(e),r=t;return n.filter(_).filter(N).forEach((function(n){var a=b(n,e,!1);a.language=n,a.relevance>r.relevance&&(r=a),a.relevance>t.relevance&&(r=t,t=a)})),r.language&&(t.second_best=r),t}function m(e){return g.tabReplace||g.useBR?e.replace(c,e=>"\n"===e?g.useBR?"
":e:g.tabReplace?e.replace(/\t/g,g.tabReplace):e):e}function E(e){let n=null;const t=function(e){var n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=g.languageDetectRe.exec(n);if(t){var r=_(t[1]);return r||(console.warn(l.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),r?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>f(e)||_(e))}(e);if(f(t))return;y("before:highlightBlock",{block:e,language:t}),g.useBR?(n=document.createElement("div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e;const r=n.textContent,a=t?h(t,r,!0):p(r),s=j(n);if(s.length){const e=document.createElement("div");e.innerHTML=a.value,a.value=B(s,j(e),r)}a.value=m(a.value),y("after:highlightBlock",{block:e,result:a}),e.innerHTML=a.value,e.className=function(e,n,t){var r=n?i[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),e.includes(r)||a.push(r),a.join(" ").trim()}(e.className,t,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const v=()=>{if(!v.called){v.called=!0;var e=document.querySelectorAll("pre code");n.forEach.call(e,E)}};function _(e){return e=(e||"").toLowerCase(),a[e]||a[i[e]]}function x(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{i[e]=n})}function N(e){var n=_(e);return n&&!n.disableAutodetect}function y(e,n){var t=e;s.forEach((function(e){e[t]&&e[t](n)}))}Object.assign(e,{highlight:h,highlightAuto:p,fixMarkup:m,highlightBlock:E,configure:function(e){g=D(g,e)},initHighlighting:v,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",v,!1)},registerLanguage:function(n,t){var r=null;try{r=t(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;console.error(e),r=u}r.name||(r.name=n),a[n]=r,r.rawDefinition=t.bind(null,e),r.aliases&&x(r.aliases,{languageName:n})},listLanguages:function(){return Object.keys(a)},getLanguage:_,registerAliases:x,requireLanguage:function(e){var n=_(e);if(n)return n;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:N,inherit:D,addPlugin:function(e){s.push(e)}}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.1.2";for(const e in A)"object"==typeof A[e]&&t(A[e]);return Object.assign(e,A),e}({});e.exports=U},function(e,n){const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function i(e){return s("(?=",e,")")}function s(...e){return e.map(e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n}).join("")}e.exports=function(e){var n="[A-Za-z$_][0-9A-Za-z$_]*",o="<>",c="",l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},u={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:t.join(" "),literal:r.join(" "),built_in:a.join(" ")},d={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},f={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"css"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,g]};g.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,h,b,d,e.REGEXP_MODE];var p=g.contains.concat([{begin:/\(/,end:/\)/,contains:["self"].concat(g.contains,[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE])},e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]),m={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:p};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,contains:[e.SHEBANG({binary:"node",relevance:5}),{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,h,b,e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,d,{begin:s(/[{,\n]\s*/,i(s(/(((\/\/.*)|(\/\*(.|\n)*\*\/))\s*)*/,n+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:n+i("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:p}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:o,end:c},{begin:l.begin,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),m],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:"(get|set)\\s+(?="+n+"\\()",end:/{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:n}),{begin:/\(\)/},m]}],illegal:/#(?!!)/}}},function(e,n,t){"use strict";t.r(n);var r=t(0),a=t(1),i=t.n(a);Object(r.registerLanguage)("javascript",i.a),Object(r.configure)({tabReplace:" "}),self.addEventListener("message",(function(e){var n=e.data||"";self.postMessage(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(r.highlight)("javascript",e,!0).value}(n))}))}]); \ No newline at end of file +!function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n){function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];"object"!=typeof r||Object.isFrozen(r)||t(r)})),e}var r=t,a=t;r.default=a;class s{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function i(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}function c(e){return e.nodeName.toLowerCase()}var l=Object.freeze({__proto__:null,escapeHTML:i,inherit:o,nodeStream:function(e){const n=[];return function e(t,r){for(let a=t.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(n.push({event:"start",offset:r,node:a}),r=e(a,r),c(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:a}));return r}(e,0),n},mergeStreams:function(e,n,t){let r=0,a="";const s=[];function o(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function u(e){a+=""}function g(e){("start"===e.event?l:u)(e.node)}for(;e.length||n.length;){let n=o();if(a+=i(t.substring(r,n[0].offset)),r=n[0].offset,n===e){s.reverse().forEach(u);do{g(n.splice(0,1)[0]),n=o()}while(n===e&&n.length&&n[0].offset===r);s.reverse().forEach(l)}else"start"===n[0].event?s.push(n[0].node):s.pop(),g(n.splice(0,1)[0])}return a+i(t.substr(r))}});const u=e=>!!e.kind;class g{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!u(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){u(e)&&(this.buffer+="
")}value(){return this.buffer}span(e){this.buffer+=``}}class d{constructor(){this.rootNode={children:[]},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){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}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,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),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=>{d._collapse(e)}))}}class h extends d{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new g(this,this.options).value()}finalize(){return!0}}function f(e){return e?"string"==typeof e?e:e.source:null}const b="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",p={begin:"\\\\[\\s\\S]",relevance:0},m={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[p]},E={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[p]},_={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/},x=function(e,n,t={}){const r=o({className:"comment",begin:e,end:n,contains:[]},t);return r.contains.push(_),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},v=x("//","$"),w=x("/\\*","\\*/"),y=x("#","$"),N={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},R={className:"number",begin:b,relevance:0},O={className:"number",begin:"\\b(0b[01]+)",relevance:0},M={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},A={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[p,{begin:/\[/,end:/\]/,relevance:0,contains:[p]}]}]},S={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},T={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},k={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var I=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:b,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>f(e)).join("")}(n,/.*\b/,e.binary,/\b.*/)),o({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:p,APOS_STRING_MODE:m,QUOTE_STRING_MODE:E,PHRASAL_WORDS_MODE:_,COMMENT:x,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:w,HASH_COMMENT_MODE:y,NUMBER_MODE:N,C_NUMBER_MODE:R,BINARY_NUMBER_MODE:O,CSS_NUMBER_MODE:M,REGEXP_MODE:A,TITLE_MODE:S,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});const L=["of","and","for","in","not","or","if","then","parent","list","value"];function j(e){function n(n,t){return new RegExp(f(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,n="|"){const t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let r=0,a="";for(let s=0;s0&&(a+=n),a+="(";o.length>0;){const e=t.exec(o);if(null==e){a+=o;break}a+=o.substring(0,e.index),o=o.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+i):(a+=e[0],"("===e[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}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];const n=new t;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&this.considerAll()),t}}function a(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=o(e.classNameAliases||{}),function t(s,i){const c=s;if(s.compiled)return c;s.compiled=!0,s.__beforeBegin=null,s.keywords=s.keywords||s.beginKeywords;let l=null;if("object"==typeof s.keywords&&(l=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=function(e,n){const t={};"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(n){r(n,e[n])}));return t;function r(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){const r=n.split("|");t[r[0]]=[e,D(r[0],r[1])]}))}}(s.keywords,e.case_insensitive)),s.lexemes&&l)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c.keywordPatternRe=n(s.lexemes||l||/\w+/,!0),i&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",s.__beforeBegin=a),s.begin||(s.begin=/\B|\b/),c.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(c.endRe=n(s.end)),c.terminator_end=f(s.end)||"",s.endsWithParent&&i.terminator_end&&(c.terminator_end+=(s.end?"|":"")+i.terminator_end)),s.illegal&&(c.illegalRe=n(s.illegal)),void 0===s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((function(e){return function(e){e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return o(e,{variants:null},n)})));if(e.cached_variants)return e.cached_variants;if(function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(e))return o(e,{starts:e.starts?o(e.starts):null});if(Object.isFrozen(e))return o(e);return e}("self"===e?s:e)}))),s.contains.forEach((function(e){t(e,c)})),s.starts&&t(s.starts,i),c.matcher=function(e){const n=new r;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&n.addRule(e.terminator_end,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(c),c}(e)}function D(e,n){return n?Number(n):function(e){return L.includes(e.toLowerCase())}(e)?0:1}function B(e){const n={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,i(this.code);let n;return this.autoDetect?(n=e.highlightAuto(this.code),this.detectedLanguage=n.language):(n=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),n.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:n,VuePlugin:{install(e){e.component("highlightjs",n)}}}}const P=i,C=o,{nodeStream:U,mergeStreams:$}=l,H=Symbol("nomatch");var z=function(e){const n=[],t=Object.create(null),a=Object.create(null),i=[];let o=!0;const c=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let g={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function d(e){return g.noHighlightRe.test(e)}function f(e,n,t,r){const a={code:n,language:e};y("before:highlight",a);const s=a.result?a.result:b(a.language,a.code,t,r);return s.code=a.code,y("after:highlight",s),s}function b(e,n,r,a){const i=n;function c(e,n){const t=v.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=N.subLanguage?function(){if(""===M)return;let e=null;if("string"==typeof N.subLanguage){if(!t[N.subLanguage])return void O.addText(M);e=b(N.subLanguage,M,!0,R[N.subLanguage]),R[N.subLanguage]=e.top}else e=p(M,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(A+=e.relevance),O.addSublanguage(e.emitter,e.language)}():function(){if(!N.keywords)return void O.addText(M);let e=0;N.keywordPatternRe.lastIndex=0;let n=N.keywordPatternRe.exec(M),t="";for(;n;){t+=M.substring(e,n.index);const r=c(N,n);if(r){const[e,a]=r;O.addText(t),t="",A+=a;const s=v.classNameAliases[e]||e;O.addKeyword(n[0],s)}else t+=n[0];e=N.keywordPatternRe.lastIndex,n=N.keywordPatternRe.exec(M)}t+=M.substr(e),O.addText(t)}(),M=""}function d(e){return e.className&&O.openNode(v.classNameAliases[e.className]||e.className),N=Object.create(e,{parent:{value:N}}),N}function h(e){return 0===N.matcher.regexIndex?(M+=e[0],1):(k=!0,0)}function f(e){const n=e[0],t=e.rule,r=new s(t),a=[t.__beforeBegin,t["on:begin"]];for(const t of a)if(t&&(t(e,r),r.ignore))return h(n);return t&&t.endSameAsBegin&&(t.endRe=new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),t.skip?M+=n:(t.excludeBegin&&(M+=n),u(),t.returnBegin||t.excludeBegin||(M=n)),d(t),t.returnBegin?0:n.length}function m(e){const n=e[0],t=i.substr(e.index),r=function e(n,t,r){let a=function(e,n){const t=e&&e.exec(n);return t&&0===t.index}(n.endRe,r);if(a){if(n["on:end"]){const e=new s(n);n["on:end"](t,e),e.ignore&&(a=!1)}if(a){for(;n.endsParent&&n.parent;)n=n.parent;return n}}if(n.endsWithParent)return e(n.parent,t,r)}(N,e,t);if(!r)return H;const a=N;a.skip?M+=n:(a.returnEnd||a.excludeEnd||(M+=n),u(),a.excludeEnd&&(M=n));do{N.className&&O.closeNode(),N.skip||N.subLanguage||(A+=N.relevance),N=N.parent}while(N!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),d(r.starts)),a.returnEnd?0:n.length}let E={};function _(n,t){const a=t&&t[0];if(M+=n,null==a)return u(),0;if("begin"===E.type&&"end"===t.type&&E.index===t.index&&""===a){if(M+=i.slice(t.index,t.index+1),!o){const n=new Error("0 width match regex");throw n.languageName=e,n.badRule=E.rule,n}return 1}if(E=t,"begin"===t.type)return f(t);if("illegal"===t.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(N.className||"")+'"');throw e.mode=N,e}if("end"===t.type){const e=m(t);if(e!==H)return e}if("illegal"===t.type&&""===a)return 1;if(T>1e5&&T>3*t.index){throw new Error("potential infinite loop, way more iterations than matches")}return M+=a,a.length}const v=x(e);if(!v)throw console.error(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=j(v);let y="",N=a||w;const R={},O=new g.__emitter(g);!function(){const e=[];for(let n=N;n!==v;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>O.openNode(e))}();let M="",A=0,S=0,T=0,k=!1;try{for(N.matcher.considerAll();;){T++,k?k=!1:N.matcher.considerAll(),N.matcher.lastIndex=S;const e=N.matcher.exec(i);if(!e)break;const n=_(i.substring(S,e.index),e);S=e.index+n}return _(i.substr(S)),O.closeAllNodes(),O.finalize(),y=O.toHTML(),{relevance:A,value:y,language:e,illegal:!1,emitter:O,top:N}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:i.slice(S-100,S+100),mode:n.mode},sofar:y,relevance:0,value:P(i),emitter:O};if(o)return{illegal:!1,relevance:0,value:P(i),emitter:O,language:e,top:N,errorRaised:n};throw n}}function p(e,n){n=n||g.languages||Object.keys(t);const r=function(e){const n={relevance:0,emitter:new g.__emitter(g),value:P(e),illegal:!1,top:u};return n.emitter.addText(e),n}(e),a=n.filter(x).filter(w).map(n=>b(n,e,!1));a.unshift(r);const s=a.sort((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(x(e.language).supersetOf===n.language)return 1;if(x(n.language).supersetOf===e.language)return-1}return 0}),[i,o]=s,c=i;return c.second_best=o,c}function m(e){return g.tabReplace||g.useBR?e.replace(c,e=>"\n"===e?g.useBR?"
":e:g.tabReplace?e.replace(/\t/g,g.tabReplace):e):e}function E(e){let n=null;const t=function(e){let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=g.languageDetectRe.exec(n);if(t){const n=x(t[1]);return n||(console.warn(l.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>d(e)||x(e))}(e);if(d(t))return;y("before:highlightBlock",{block:e,language:t}),g.useBR?(n=document.createElement("div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e;const r=n.textContent,s=t?f(t,r,!0):p(r),i=U(n);if(i.length){const e=document.createElement("div");e.innerHTML=s.value,s.value=$(i,U(e),r)}s.value=m(s.value),y("after:highlightBlock",{block:e,result:s}),e.innerHTML=s.value,e.className=function(e,n,t){const r=n?a[n]:t,s=[e.trim()];return e.match(/\bhljs\b/)||s.push("hljs"),e.includes(r)||s.push(r),s.join(" ").trim()}(e.className,t,s.language),e.result={language:s.language,re:s.relevance,relavance:s.relevance},s.second_best&&(e.second_best={language:s.second_best.language,re:s.second_best.relevance,relavance:s.second_best.relevance})}const _=()=>{if(_.called)return;_.called=!0;const e=document.querySelectorAll("pre code");n.forEach.call(e,E)};function x(e){return e=(e||"").toLowerCase(),t[e]||t[a[e]]}function v(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{a[e]=n})}function w(e){const n=x(e);return n&&!n.disableAutodetect}function y(e,n){const t=e;i.forEach((function(e){e[t]&&e[t](n)}))}Object.assign(e,{highlight:f,highlightAuto:p,fixMarkup:function(e){return console.warn("fixMarkup is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2534"),m(e)},highlightBlock:E,configure:function(e){e.useBR&&(console.warn("'useBR' option is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2559")),g=C(g,e)},initHighlighting:_,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",_,!1)},registerLanguage:function(n,r){let a=null;try{a=r(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;console.error(e),a=u}a.name||(a.name=n),t[n]=a,a.rawDefinition=r.bind(null,e),a.aliases&&v(a.aliases,{languageName:n})},listLanguages:function(){return Object.keys(t)},getLanguage:x,registerAliases:v,requireLanguage:function(e){console.warn("requireLanguage is deprecated and will be removed entirely in the future."),console.warn("Please see https://github.com/highlightjs/highlight.js/pull/2844");const n=x(e);if(n)return n;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:w,inherit:C,addPlugin:function(e){i.push(e)},vuePlugin:B(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.4.1";for(const e in I)"object"==typeof I[e]&&r(I[e]);return Object.assign(e,I),e}({});e.exports=z},function(e,n){const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function s(e){return i("(?=",e,")")}function i(...e){return e.map(e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n}).join("")}e.exports=function(e){const n="[A-Za-z$_][0-9A-Za-z$_]*",o="<>",c="",l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{const t=e[0].length+e.index,r=e.input[t];"<"!==r?">"===r&&(((e,{after:n})=>{const t="",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:x}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:o,end:c},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:u,contains:["self",e.inherit(e.TITLE_MODE,{begin:n}),v],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[v,e.inherit(e.TITLE_MODE,{begin:n})]},{variants:[{begin:"\\."+n},{begin:"\\$"+n}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),"self",v]},{begin:"(get|set)\\s+(?="+n+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:n}),{begin:/\(\)/},v]},{begin:/\$[(.]/}]}}},function(e,n,t){"use strict";t.r(n);var r=t(0),a=t(1),s=t.n(a);Object(r.registerLanguage)("javascript",s.a),Object(r.configure)({tabReplace:" "}),self.addEventListener("message",(function(e){var n=e.data||"";self.postMessage(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(r.highlight)("javascript",e,!0).value}(n))}))}]); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index dcc6f50..e34131d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Ticketing Timer - +
diff --git a/dist/main.0c024c54ee7db40a35e5.js b/dist/main.0c024c54ee7db40a35e5.js new file mode 100644 index 0000000..2fb250a --- /dev/null +++ b/dist/main.0c024c54ee7db40a35e5.js @@ -0,0 +1,5 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=179)}([function(e,t,n){var r=n(4),i=n(22).f,o=n(15),a=n(18),s=n(44),u=n(118),c=n(61);e.exports=function(e,t){var n,l,f,d,h,p=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!c(g?l:p+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=!1},function(e,t,n){var r=n(4),i=n(43),o=n(8),a=n(33),s=n(45),u=n(68),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(116))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(1),i=n(92),o=n(19),a=n(11),s=n(62),u=n(93),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var d,h,p,g,v,m,y,_=a(t,n,l?2:1);if(f)d=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(p=0,g=o(e.length);g>p;p++)if((v=l?_(r(y=e[p])[0],y[1]):_(e[p]))&&v instanceof c)return v;return new c(!1)}d=h.call(e)}for(m=d.next;!(y=m.call(d)).done;)if("object"==typeof(v=u(d,_,y.value,l))&&v&&v instanceof c)return v;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(5);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(9),i=n(67),o=n(1),a=n(32),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(35),i=n(20);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(2),i=n(139);e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(9),i=n(10),o=n(23);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(72),i=n(4),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r,i,o,a=n(69),s=n(4),u=n(6),c=n(15),l=n(8),f=n(34),d=n(24),h=s.WeakMap;if(a){var p=new h,g=p.get,v=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},o=function(e){return v.call(p,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return c(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(4),i=n(15),o=n(8),a=n(44),s=n(59),u=n(17),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r=n(30),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(20);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(9),i=n(46),o=n(23),a=n(12),s=n(32),u=n(8),c=n(67),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t,n){var r=n(11),i=n(35),o=n(21),a=n(19),s=n(119),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f;return function(h,p,g,v){for(var m,y,_=o(h),w=i(_),b=r(p,g,3),x=a(w.length),S=0,M=v||s,O=t?M(h,x):n?M(h,0):void 0;x>S;S++)if((d||S in w)&&(y=b(m=w[S],S,_),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:u.call(O,m)}else if(l)return!1;return f?-1:c||l?l:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var r=n(24),i=n(6),o=n(8),a=n(10).f,s=n(33),u=n(81),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!o(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!o(e,c)&&d(e),e}};r[c]=!0},function(e,t,n){var r=n(9),i=n(5),o=n(8),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,f)}))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(10).f,i=n(8),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(43),i=n(33),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(5),i=n(29),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r,i=n(1),o=n(123),a=n(48),s=n(24),u=n(94),c=n(58),l=n(34),f=l("IE_PROTO"),d=function(){},h=function(e){return"