!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e="undefined"!=typeofglobalThis?globalThis:e||self).RevealHighlight=t()}(this,(function(){"use strict";functione(t){returntinstanceofMap?t.clear=t.delete=t.set=function(){thrownewError("map is read-only")}:tinstanceofSet&&(t.add=t.clear=t.delete=function(){thrownewError("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(a){varn=t[a];"object"!=typeofn||Object.isFrozen(n)||e(n)})),t}vart=e,a=e;t.default=a;classn{constructor(e){void0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}functionr(e){returne.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}functioni(e){constt=Object.create(null);for(constaine)t[a]=e[a];for(vara=arguments.length,n=newArray(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];returnn.forEach((function(e){for(constaine)t[a]=e[a]})),t}consts=e=>!!e.kind;classo{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r(e)}openNode(e){if(!s(e))return;lett=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){s(e)&&(this.buffer+="</span>")}value(){returnthis.buffer}span(e){this.buffer+=`<span class="${e}">`}}classl{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}gettop(){returnthis.stack[this.stack.length-1]}getroot(){returnthis.rootNode}add(e){this.top.children.push(e)}openNode(e){constt={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)returnthis.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){returnJSON.stringify(this.rootNode,null,4)}walk(e){returnthis.constructor._walk(e,this.rootNode)}static_walk(e,t){return"string"==typeoft?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static_collapse(e){"string"!=typeofe&&e.children&&(e.children.every((e=>"string"==typeofe))?e.children=[e.children.join("")]:e.children.forEach((e=>{l._collapse(e)})))}}classcextendsl{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){consta=e.root;a.kind=t,a.sublanguage=!0,this.add(a)}toHTML(){returnnewo(this,this.options).value()}finalize(){return!0}}function_(e){returne?"string"==typeofe?e:e.source:null}functiond(){for(vare=arguments.length,t=newArray(e),a=0;a<e;a++)t[a]=arguments[a];constn=t.map((e=>_(e))).join("");returnn}constm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;constu="[a-zA-Z]\\w*",p="[a-zA-Z_]\\w*",g="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",S="\\b(0b[01]+)",b={begin:"\\\\[\\s\\S]",relevance:0},T={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[b]},f={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[b]},C={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/},N=function(e,t){leta=arguments.length>2&&void0!==arguments[2]?arguments[2]:{};constn=i({className:"comment",begin:e,end:t,contains:[]},a);returnn.contains.push(C),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},R=N("//","$"),O=N("/\\*","\\*/"),h=N("#","$"),v={className:"number",begin:g,relevance:0},I={className:"number",begin:E,relevance:0},A={className:"number",begin:S,relevance:0},y={className:"number",begin:g+"(%|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},D={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/,relevance:0,contains:[b]}]}]},M={className:"title",begin:u,relevance:0},L={className:"title",begin:p,relevance:0},w={begin:"\\.\\s*[a-zA-Z_]\\w*",re