1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{26:function(e,t,n){let r,i;n.d(t,{CZ:function(){return nL}});var a,o,s={};n.r(s),n.d(s,{boolean:function(){return eA},booleanish:function(){return eL},commaOrSpaceSeparated:function(){return eO},commaSeparated:function(){return eE},number:function(){return ex},overloadedBoolean:function(){return eT},spaceSeparated:function(){return eR}});class l extends Error{constructor(e){super(e),this.name="ShikiError"}}var u=n(34155);function c(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var h=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,d=class{static hasCaptures(e){return null!==e&&(h.lastIndex=0,h.test(e))}static replaceCaptures(e,t,n){return e.replace(h,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function p(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r])<(a=t[r])?-1:i>a?1:0;if(0!==n)return n}return 0}return n-r}function m(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function g(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var f=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},b=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&m(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&m(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new k(u,c,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==i||0!==(i=p(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new w(t),o=new _(n,a.getId(r),a.getId(i)),s=new P(new C(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new b(a,o,s)}(e,t)}_cachedMatchRoot=new f(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new _(n.fontStyle,n.foreground,n.background):null}},y=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},_=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},k=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},S=((a=S||{})[a.NotSet=-1]="NotSet",a[a.None=0]="None",a[a.Italic=1]="Italic",a[a.Bold=2]="Bold",a[a.Underline=4]="Underline",a[a.Strikethrough=8]="Strikethrough",a),w=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},v=Object.freeze([]),C=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||v,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},P=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,u;if(""===n){this._doInsertHere(t,r,i,a,o);return}let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),C.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===p(o.parentScopes,t)){o.acceptOverwrite(e,n,r,i);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new C(e,t,n,r,i))}},N=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=i?1:0),-1!==a&&(h=a),0!==o&&(d=o),0!==s&&(p=s),(l<<0|u<<8|c<<10|h<<11|d<<15|p<<24)>>>0}};function A(e,t){let n,r;let i=[],a=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=l();if(i.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return i;function s(){if("-"===o){o=a.next();let e=s();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=l();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=l()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(L(o)){let e=[];do e.push(o),o=a.next();while(L(o));return n=>t(e,n)}return null}function l(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function L(e){return!!e&&!!e.match(/[\w\.:]+/)}var T=((o=T||{})[o.None=0]="None",o[o.NotBeginString=1]="NotBeginString",o[o.NotEndString=2]="NotEndString",o[o.NotBeginPosition=4]="NotBeginPosition",o[o.DebugCall=8]="DebugCall",o);function x(e){"function"==typeof e.dispose&&e.dispose()}var R=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},E=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},O=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},I=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new R(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new O;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof R?D({baseGrammar:a,selfGrammar:i},r):M(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new R(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof R){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function M(e,t,n){t.repository&&t.repository[e]&&G([t.repository[e]],t,n)}function D(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&G(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&G(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function G(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?c({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&G(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=H(i);switch(a.kind){case 0:D({...t,selfGrammar:t.baseGrammar},n);break;case 1:D(t,n);break;case 2:M(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?M(a.ruleName,r,n):D(r,n)}else 4===a.kind?n.add(new E(a.scopeName,a.ruleName)):n.add(new R(a.scopeName))}}}var B=class{kind=0},j=class{kind=1},U=class{constructor(e){this.ruleName=e}kind=2},$=class{constructor(e){this.scopeName=e}kind=3},F=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function H(e){if("$base"===e)return new B;if("$self"===e)return new j;let t=e.indexOf("#");return -1===t?new $(e):0===t?new U(e.substring(1)):new F(e.substring(0,t),e.substring(t+1))}var W=/\\(\d+)/,q=/\\(\d+)/g;Symbol("RuleId");var z=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=d.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=d.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?d.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?d.replaceCaptures(this._contentName,e,t):this._contentName}},V=class extends z{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},K=class extends z{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Z(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},X=class extends z{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},J=class extends z{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this._end=new Z(o||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ee,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Y=class extends z{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=ne
1w Z(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ee,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ee,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},Q=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new V(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new K(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=c({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=H(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u){if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof X||e instanceof J||e instanceof Y)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Z=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=W.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return q.lastIndex=0,this.source.replace(q,(e,t)=>g(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",o[e+1]="ï¿¿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},ee=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new et(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new et(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},et=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},en=class{constructor(e,t){this.languageId=e,this.tokenType=t}},er=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new en(e,8),this._embeddedLanguagesMatcher=new ei(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new en(0,0);_getBasicScopeAttributes=new f(e=>new en(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ei=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>g(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==u&&u.env.VSCODE_TEXTMATE_DEBUG;var ea=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eo(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Y&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,u,c,h;let{ruleScanner:s,findOptions:p}=(l=d.rule,u=d.stack.endRule,c=n,h=r===o,{ruleScanner:l.compileWhileAG(e,u,c,h),findOptions:0}),m=s.findNextMatchSync(t,r,p);if(m){if(-2!==m.ruleId){i=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(d.stack,m.captureIndices[0].start),el(e,t,n,d.stack,a,d.rule.whileCaptures,m.captureIndices),a.produce(d.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let h=Date.now();for(;!u;){if(0!==s&&Date.now()-h>s)return new ea(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=es(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:m}=es(t.getRule(d.ruleId),t,null,r,i===o),g=p.findNextMatchSync(n,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,u=g.captureIndices,s=g.ruleId,c=d.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,i,c);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,h=o.matchedRuleId,d=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),el(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!d&&h.getEnterPos()===r){i=h,a.produce(i,l),u=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,c,s[0].end===l,null,g,g),o instanceof J){el(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof Y){el(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithRes
1olvedBackReferences(t.content,s))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(el(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new ea(i,!1)}function es(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function el(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),d=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),p=e.createOnigString(s.substring(0,h.end));eo(e,p,n&&0===h.start,h.start,d,i,!1,0),x(p);continue}let d=l.getName(s,o);if(null!==d){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);u.push(new eu(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var eu=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ec(e,t,n,r,i){let a=A(t,eh),o=Q.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eh(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var ed=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new er(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ep(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of A(e,eh))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ec(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ec(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ep(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=Q.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eg.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=N.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?em.createRootAndLookUpScopeName(o,a,this):em.createRoot("unknown",a),t=new eg(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eo(this,a,i,0,t,s,!0,r);return x(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ep(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var em=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=y.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new y(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new y(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),N.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eg=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&em.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=em.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,em.fromExtension(r,n.contentNameScopesList))}},ef=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):A(e,eh).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>A(e,eh).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eb=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=N.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=N.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ey=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new ed(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},e_=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ey(b.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(b.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ef(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new I(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ek=eg.NULL;let eS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ew{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ev(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ew(n,r,t)}function eC(e){return e.toLowerCase()}ew.prototype.normal={},ew.prototype.property={},ew.prototype.space=void 0;class eP{constructor(e,t){this.attribute=t,this.property=e}}eP.prototype.attribute="",eP.prototype.booleanish=!1,eP.prototype.boolean=!1,eP.prototype.commaOrSpaceSeparated=!1,eP.prototype.commaSeparated=!1,eP.prototype.defined=!1,eP.prototype.mustUseProperty=!1,eP.prototype.number=!1,eP.prototype.overloadedBoolean=!1,eP.prototype.property="",eP.prototype.spaceSeparated=!1,eP.prototype.space=void 0;let eN=0,eA=eI(),eL=eI(),eT=eI(),ex=eI(),eR=eI(),eE=eI(),eO=eI();function eI(){return 2**++eN}let eM=Object.keys(s);class eD extends eP{constructor(e,t,n,r){var i,a;let o=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++o<eM.length;){let e=eM[o];i=eM[o],(a=(n&s[e])===s[e])&&(this[i]=a)}}}function eG(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new eD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[eC(r)]=r,n[eC(a.attribute)]=r}return new ew(t,n,e.space)}eD.prototype.defined=!0;let eB=eG({properties:{ariaActiveDescendant:null,ariaAtomic:eL,ariaAutoComplete:null,ariaBusy:eL,ariaChecked:eL,ariaColCount:ex,ariaColIndex:ex,ariaColSpan:ex,ariaControl
vendor: 5,426 bytes, line 1
1s:eR,ariaCurrent:null,ariaDescribedBy:eR,ariaDetails:null,ariaDisabled:eL,ariaDropEffect:eR,ariaErrorMessage:null,ariaExpanded:eL,ariaFlowTo:eR,ariaGrabbed:eL,ariaHasPopup:null,ariaHidden:eL,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eR,ariaLevel:ex,ariaLive:null,ariaModal:eL,ariaMultiLine:eL,ariaMultiSelectable:eL,ariaOrientation:null,ariaOwns:eR,ariaPlaceholder:null,ariaPosInSet:ex,ariaPressed:eL,ariaReadOnly:eL,ariaRelevant:null,ariaRequired:eL,ariaRoleDescription:eR,ariaRowCount:ex,ariaRowIndex:ex,ariaRowSpan:ex,ariaSelected:eL,ariaSetSize:ex,ariaSort:null,ariaValueMax:ex,ariaValueMin:ex,ariaValueNow:ex,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function ej(e,t){return t in e?e[t]:t}function eU(e,t){return ej(e,t.toLowerCase())}let e$=eG({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eE,acceptCharset:eR,accessKey:eR,action:null,allow:null,allowFullScreen:eA,allowPaymentRequest:eA,allowUserMedia:eA,alt:null,as:null,async:eA,autoCapitalize:null,autoComplete:eR,autoFocus:eA,autoPlay:eA,blocking:eR,capture:null,charSet:null,checked:eA,cite:null,className:eR,cols:ex,colSpan:null,content:null,contentEditable:eL,controls:eA,controlsList:eR,coords:ex|eE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:eA,defer:eA,dir:null,dirName:null,disabled:eA,download:eT,draggable:eL,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:eA,formTarget:null,headers:eR,height:ex,hidden:eT,high:ex,href:null,hrefLang:null,htmlFor:eR,httpEquiv:eR,id:null,imageSizes:null,imageSrcSet:null,inert:eA,inputMode:null,integrity:null,is:null,isMap:eA,itemId:null,itemProp:eR,itemRef:eR,itemScope:eA,itemType:eR,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:eA,low:ex,manifest:null,max:null,maxLength:ex,media:null,method:null,min:null,minLength:ex,multiple:eA,muted:eA,name:null,nonce:null,noModule:eA,noValidate:eA,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:eA,optimum:ex,pattern:null,ping:eR,placeholder:null,playsInline:eA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:eA,referrerPolicy:null,rel:eR,required:eA,reversed:eA,rows:ex,rowSpan:ex,sandbox:eR,scope:null,scoped:eA,seamless:eA,selected:eA,shadowRootClonable:eA,shadowRootDelegatesFocus:eA,shadowRootMode:null,shape:null,size:ex,sizes:null,slot:null,span:ex,spellCheck:eL,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ex,step:null,style:null,tabIndex:ex,target:null,title:null,translate:null,type:null,typeMustMatch:eA,useMap:null,value:eL,width:ex,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:eR,axis:null,background:null,bgColor:null,border:ex,borderColor:null,bottomMargin:ex,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:eA,declare:eA,event:null,face:null,frame:null,frameBorder:null,hSpace:ex,leftMargin:ex,link:null,longDesc:null,lowSrc:null,marginHeight:ex,marginWidth:ex,noResize:eA,noHref:eA,noShade:eA,noWrap:eA,object:null,profile:null,prompt:null,rev:null,rightMargin:ex,rules:null,scheme:null,scrolling:eL,standby:null,summary:null,text:null,topMargin:ex,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ex,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:eA,disableRemotePlayback:eA,prefix:null,property:null,results:ex,security:null,unselectable:null},space:"html",transform:eU}),eF=eG({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
1dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:eO,accentHeight:ex,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ex,amplitude:ex,arabicForm:null,ascent:ex,attributeName:null,attributeType:null,azimuth:ex,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ex,by:null,calcMode:null,capHeight:ex,className:eR,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
1dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ex,diffuseConstant:ex,direction:null,display:null,dur:null,divisor:ex,dominantBaseline:null,download:eA,dx:null,dy:null,edgeMode:null,editable:null,elevation:ex,enableBackground:null,end:null,event:null,exponent:ex,externalResourcesRequired:null,fill:null,fillOpacity:ex,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eE,g2:eE,glyphName:eE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ex,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ex,horizOriginX:ex,horizOriginY:ex,id:null,ideographic:ex,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ex,k:ex,k1:ex,k2:ex,k3:ex,k4:ex,kernelMatrix:eO,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ex,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ex,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ex,overlineThickness:ex,paintOrder:null,panose1:null,path:null,pathLength:ex,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eR,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ex,pointsAtY:ex,pointsAtZ:ex,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:eO,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:eO,rev:eO,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:eO,requiredFeatures:eO,requiredFonts:eO,requiredFormats:eO,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ex,specularExponent:ex,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ex,strikethroughThickness:ex,string:null,stroke:null,strokeDashArray:eO,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ex,strokeOpacity:ex,strokeWidth:null,style:null,surfaceScale:ex,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:eO,tabIndex:ex,tableValues:null,target:null,targetX:ex,targetY:ex,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:eO,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ex,underlineThickness:ex,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ex,values:null,vAlphabetic:ex,vMathematical:ex,vectorEffect:null,vHanging:ex,vIdeographic:ex,version:null,vertAdvY:ex,vertOriginX:ex,vertOriginY:ex,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ex,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ej}),eH=eG({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
1"xlink:"+t.slice(5).toLowerCase()}),eW=eG({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eU}),eq=eG({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ez=ev([eB,e$,eH,eW,eq],"html"),eV=ev([eB,eF,eH,eW,eq],"svg"),eK={}.hasOwnProperty,eX=/["&'<>`]/g,eJ=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eY=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eQ=/[|\\{}()[\]^$+*?.]/g,eZ=new WeakMap,e1=/[\dA-Fa-f]/,e0=/\d/,e5=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],e3={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
1:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},e2=["cent","copy","divide","gt","lt","not","para","times"],e6={}.hasOwnProperty,e8={};for(r in e3)e6.call(e3,r)&&(e8[e3[r]]=r);let e7=/[^\dA-Za-z]/;function e9(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!e1.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(e6.call(e8,i)){let e=e8[i],a="&"+e;return n&&e5.includes(e)&&!e2.includes(e)&&(!r||t&&61!==t&&e7.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!e0.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function e4(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=eZ.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eQ,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),eZ.set(n,r)),r):eX,i),t.subset||t.escapeOnly)return e;return e.replace(eJ,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(eY,i);function i(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:e9},t))}let te=/^>|^->|<!--|-->|--!>|<!-$/g,tt=[">"],tn=["<",">"];function tr(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let ti=/[A-Z]/g,ta=/-[a-z]/g,to=/^data[-\w.:]+$/i;function ts(e){return"-"+e.toLowerCase()}function tl(e){return e.charAt(1).toUpperCase()}let tu=/[ \t\n\f\r]/g;function tc(e){return"object"==typeof e?"text"===e.type&&th(e.value):th(e)}function th(e){return""===e.replace(tu,"")}let td=tg(1),tp=tg(-1),tm=[];function tg(e){return function(t,n,r){let i=t?t.children:tm,a=(n||0)+e,o=i[a];if(!r)for(;o&&tc(o);)a+=e,o=i[a];return o}}let tf={}.hasOwnProperty;function tb(e){return function(t,n,r){return tf.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let ty=tb({body:function(e,t,n){let r=td(n,t);return!r||"comment"!==r.type},caption:t_,colgroup:t_,dd:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=td(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:t_,html:function(e,t,n){let r=td(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=td(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:tk,rt:tk,tbody:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:tS,tfoot:function(e,t,n){return!td(n,t)},th:tS,thead:function(e,t,n){let r=td(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=td(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function t_(e,t,n){let r=td(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&tc(r.value.charAt(0)))}
1function tk(e,t,n){let r=td(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function tS(e,t,n){let r=td(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let tw=tb({body:function(e){let t=td(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&tc(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=tp(n,t),i=td(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&ty(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=td(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=tp(n,t),i=td(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&ty(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tv={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},tC=["<","&"];function tP(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:e4(e.value,Object.assign({},r.settings.characterReferences,{subset:tC}))}let tN=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&eK.call(t,e)){let n=String(t[e]);i=eK.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+e4(e.value,Object.assign({},r.settings.characterReferences,{subset:tt}))+">":"<!--"+e.value.replace(te,function(e){return e4(e,Object.assign({},r.settings.characterReferences,{subset:tn}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i;let a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=eV);let u=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=function(e,t){let n=eC(t),r=t,i=eP;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&to.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(ta,tl);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ta.test(e)){let n=e.replace(ti,ts);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=eD}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=e4(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tv.name[a][o]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=e4(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tv.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&tr(n,s)>tr(n,e.alternative)&&(s=e.alternative),r=s+e4(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?tv.single:tv.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}
1(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(s=!1),!u&&o&&tw(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&ty(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tP(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:tP}}),tA={},tL={},tT=[];function tx(e,t,n){return tN(e,t,n,this)}function tR(e){let t=[],n=e&&e.children||tT,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tE(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function tO(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tI(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tM(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tD(e){return"ansi"===e||tM(e)}function tG(e){return"none"===e}function tB(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tj(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length+(n[e+1]?.length||0)}return i}let tU="light-dark()";function t$(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&S.Italic&&(t["font-style"]="italic"),e.fontStyle&S.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&S.Underline&&n.push("underline"),e.fontStyle&S.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tF(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tH=new WeakMap;function tW(e,t){tH.set(e,t)}function tq(e){return tH.get(e)}class tz{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tz(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ek])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tV=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new l(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}},r=function(e){let t=tj(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new l(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;
1if(i||a||o||s){if(i&&a||o&&s)continue;throw new l(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new l(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",u=-1,c=-1;if(0===t&&(u=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===u||-1===c)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===u&&s.length===t&&(u=e+1),-1===c&&s.length===n&&(c=e+1);if(-1===u)throw new l(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new l(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let h=o.children.slice(u,c);if(i.alwaysWrap||h.length!==o.children.length){if(i.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};a(e,i,"wrapper"),o.children.splice(u,h.length,e)}else a(h[0],i,"token")}else a(o,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&tB(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function tK(e){return[...e.transformers||[],...tV]}var tX=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tJ={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tY(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tQ={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function tZ(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(tM(r)||tG(i))return tj(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i);if("ansi"===r)return function(e,t,n){let r,i,a;let o=tE(e,n),s=tj(t),l=function(e=tQ){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tX.length;n++)t.push(e[tX[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tX.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),s=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(s.length>0&&t.push({value:s,foreground:r,background:i,decorations:new Set(a
1)}),o.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)tJ[r]&&t.push({type:"setDecoration",value:tJ[r]});else if(r<=29){let e=tJ[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tX[r-30]}});else if(38===r){let n=tY(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tX[r-40]}});else if(48===r){let n=tY(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tX[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tX[r-100+8]}})}}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=o.position}while(n<e.length);return t}});return s.map(t=>u.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=tO(r,o),i=tO(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=S.None;return n.decorations.has("bold")&&(a|=S.Bold),n.decorations.has("italic")&&(a|=S.Italic),n.decorations.has("underline")&&(a|=S.Underline),n.decorations.has("strikethrough")&&(a|=S.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(a,t,n);let s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new l(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new l(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return function(e,t,n,r,i){let a=t1(e,t,n,r,i),o=new tz(t1(e,t,n,r,i).stateStack,t.name,n.name);return tW(a.tokens,o),a.tokens}(t,s,a,o,n)}function t1(e,t,n,r,i){let a=tE(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,u=tj(e),c=i.grammarState?function(e,t){if(!(e instanceof tz))throw new l("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ek:null!=i.grammarContextCode?t1(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ek,h=[],d=[];for(let e=0,l=u.length;e<l;e++){let l,p;let[m,g]=u[e];if(""===m){h=[],d.push([]);continue}if(o>0&&m.length>=o){h=[],d.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(l=t.tokenizeLine(m,c,s).tokens,p=0);let f=t.tokenizeLine2(m,c,s),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],o=e+1<b?f.tokens[2*e+2]:m.length;if(t===o)continue;let s=f.tokens[2*e+1],u=tO(r[N.getForeground(s)],a),c=N.getFontStyle(s),d={content:m.substring(t,o),offset:g+t,color:u,fontStyle:c};if(i.includeExplanation){let e=[];
1if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=l[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!t0(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)t0(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}h.push(d)}d.push(h),h=[],c=f.ruleStack}return{tokens:d,stateStack:c}}function t0(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function t5(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tZ(e,t,{...n,theme:r.theme}),a=tq(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:l,...u}=e[t][i];o.variants[r[n].color]=u}),o})),s=i[0].state?new tz(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&tW(o,s),o}function t3(e,t,n){let r,i,a,o,s,u;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===p.length)throw new l("`themes` option must not be empty");let m=t5(e,t,n);if(u=tq(m),c&&tU!==c&&!p.find(e=>e.color===c))throw new l(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);a=m.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>t$(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),u={},c=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;
1return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r){if(r===tU&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let h=o[e][a]||"inherit",d=o[r][a]||"inherit";u[a]=`light-dark(${h}, ${d})`,"css-vars"===i&&(u[c(n,a)]=s)}else u[a]=s}else"css-vars"===i&&(u[c(n,a)]=s)}}),a.htmlStyle=u,a})(e,f,h,c,d))),u&&tW(a,u);let b=p.map(e=>tE(e.theme,n));i=t2(p,g,b,h,c,"fg",d),r=t2(p,g,b,h,c,"bg",d),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){let s=tE(n.theme,n);a=tZ(e,t,n);let l=e.getTheme(n.theme);r=tO(l.bg,s),i=tO(l.fg,s),o=l.name,u=tq(a)}else throw new l("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:u}}function t2(e,t,n,r,i,a,o){return e.map((s,u)=>{let c=tO(t[u][a],n[u])||"inherit",h=`${r+s.color}${"bg"===a?"-bg":""}:${c}`;if(0===u&&i){if(i===tU&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=tO(t[r][a],n[r])||"inherit",s=tO(t[i][a],n[i])||"inherit";return`light-dark(${o}, ${s});${h}`}return c}return"css-vars"===o?h:null}).filter(e=>!!e).join(";")}function t6(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>t6(e,t,n),codeToTokens:(t,n)=>t3(e,t,n)}){let i=t;for(let e of tK(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=t3(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;!0===h?a=a.map(e=>{let t=[],n="",r=0;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&S.Underline||i.fontStyle&S.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),d&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=tF(e.htmlStyle||t$(e)),i=tF(n.htmlStyle||t$(n)),a=e.fontStyle&&(e.fontStyle&S.Underline||e.fontStyle&S.Strikethrough),o=n.fontStyle&&(n.fontStyle&S.Underline||n.fontStyle&S.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tK(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=tq(e)){let i=tK(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:a},h=[],d={...n,structure:s,addClassToHast:tB,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return c},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=tF(a.htmlStyle||t$(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(d,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(d,n,t+1)||n;h.push(n),a.push(n)}}),"classic"===s){for(let e of i)c=e?.code?.call(d,c)||c;for(let e of(u.children.push(c),i))u=e?.pre?.call(d,u)||u;o.children.push(u)}let p=o;for(let e of i)p=e?.root?.call(d,p)||p;return r&&tW(p,r),p}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:u},p,c)}let t8=function(e,t){let n=t||tA,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:tx,all:tR,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||eS,characterReferences:n.characterReferences||tL,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?eV:ez,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},t7={light:"#333333",dark:"#bbbbbb"},t9={light:"#fffffe",dark:"#1e1e1e"},t4="__shiki_resolved";function ne(e){if(e?.[t4])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?t7.light:t7.dark),n||(n="light"===t.type?t9.light:t9.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,t4,{enumerable:!1,writable:!1,value:!0}),t}async function nt(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tD(e)).map(async e=>await tI(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function nn(e){return(await Promise.all(e.map(async e=>tG(e)?null:ne(await tI(e))))).filter(e=>!!e)}
1class nr extends Error{constructor(e){super(e),this.name="ShikiError"}}class ni extends e_{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=ne(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=b.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new nr(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new nr(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class na{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let no=0;async function ns(e){e.engine||function(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([nn(e.themes||[]),nt(e.langs||[]),e.engine]);return function(e){let t;no+=1,!1!==e.warnings&&no>=10&&no%10==0&&console.warn(`[Shiki] ${no} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new nr("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(ne),a=new ni(new na(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new nr(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new nr("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),no-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new nr(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},loadLanguage:async function(...e){return s(await nt(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await nn(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function nl(e){let t=await ns(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tq(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(tM(i)||tG(a))throw new l("Plain language does not have grammar state");if("ansi"===i)throw new l("ANSI language does not have grammar state");
1let{theme:o,colorMap:s}=t.setTheme(a),u=t.getLanguage(i);return new tz(t1(n,u,o,s,r).stateStack,u.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>tZ(t,e,n),codeToTokensWithThemes:(e,n)=>t5(t,e,n),codeToTokens:(e,n)=>t3(t,e,n),codeToHast:(e,n)=>t6(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>t6(e,t,n),codeToTokens:(t,n)=>t3(e,t,n)},i=t8(t6(e,t,n,r));for(let e of tK(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let nu=[{id:"abap",name:"ABAP",import:()=>n.e(8733).then(n.bind(n,38733))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(4782).then(n.bind(n,74782))},{id:"ada",name:"Ada",import:()=>n.e(3919).then(n.bind(n,43919))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(7661)]).then(n.bind(n,57661))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(6597),n.e(8377),n.e(5395),n.e(3821),n.e(3529),n.e(3830)]).then(n.bind(n,71894))},{id:"apache",name:"Apache Conf",import:()=>n.e(7148).then(n.bind(n,57148))},{id:"apex",name:"Apex",import:()=>n.e(9436).then(n.bind(n,69436))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(6589)]).then(n.bind(n,6589))},{id:"applescript",name:"AppleScript",import:()=>n.e(1558).then(n.bind(n,91558))},{id:"ara",name:"Ara",import:()=>n.e(1573).then(n.bind(n,11573))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(3170).then(n.bind(n,93170))},{id:"asm",name:"Assembly",import:()=>n.e(2577).then(n.bind(n,82577))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(6787)]).then(n.bind(n,69818))},{id:"awk",name:"AWK",import:()=>n.e(6227).then(n.bind(n,16227))},{id:"ballerina",name:"Ballerina",import:()=>n.e(5904).then(n.bind(n,85904))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3304).then(n.bind(n,13304))},{id:"beancount",name:"Beancount",import:()=>n.e(3027).then(n.bind(n,33027))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5190).then(n.bind(n,5190))},{id:"bibtex",name:"BibTeX",import:()=>n.e(7083).then(n.bind(n,37083))},{id:"bicep",name:"Bicep",import:()=>n.e(2212).then(n.bind(n,72212))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(7169)]).then(n.bind(n,77169))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(677).then(n.bind(n,50677))},{id:"c",name:"C",import:()=>n.e(8380).then(n.bind(n,18380))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(9231).then(n.bind(n,19231))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(6953),n.e(1651)]).then(n.bind(n,11651))},{id:"clarity",name:"Clarity",import:()=>n.e(6660).then(n.bind(n,36660))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(6180).then(n.bind(n,56180))},{id:"cmake",name:"CMake",import:()=>n.e(8617).then(n.bind(n,28617))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(1842)]).then(n.bind(n,1842))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1517).then(n.bind(n,74057))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(976).then(n.bind(n,976))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(6597),n.e(2718)]).then(n.bind(n,42718))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(8843).then(n.bind(n,18843))},{id:"coq",name:"Coq",import:()=>n.e(3114).then(n.bind(n,3114))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4559),n.e(1461),n.e(3752),n.e(8380),n.e(399)]).then(n.bind(n,33341))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3752),n.e(8380),n.e(8450),n.e(4999)]).then(n.bind(n,4999))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(2377).then(n.bind(n,12377))},{id:"css",name:"CSS",import:()=>n.e(5395).then(n.bind(n,25395))},{id:"csv",name:"CSV",import:()=>n.e(8922).then(n.bind(n,78922))},{id:"cue",name:"CUE",import:()=>n.e(5984).then(n.bind(n,5984))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(594).then(n.bind(n,50594))},{id:"d",name:"D",import:()=>n.e(975).then(n.bind(n,975))},{id:"dart",name:"Dart",import:()=>n.e(775).then(n.bind(n,80775))},{id:"dax",name:"DAX",import:()=>n.e(2362).then(n.bind(n,52362))},{id:"desktop",name:"Desktop",import:()=>n.e(2907).then(n.bind(n,12907))},{id:"diff",name:"Diff",import:()=>n.e(5848).then(n.bind(n,45848))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(7039).then(n.bind(n,7039))},{id:"dotenv",name:"dotEnv",import:()=>n.e(9762).then(n.bind(n,69762))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(9716).then(n.bind(n,89716))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(50)]).then(n.bind(n,40050))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(1529)]).then(n.bind(n,91529))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8380),n.e(8963)]).then(n.bind(n,58963))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(6845).then(n.bind(n,2641))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(4559),n.e(1461),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(8380),n.e(8450),n.e(24),n.e(4095),n.e(2950)]).then(n.bind(n,52950))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>n.e(3873).then(n.bind(n,43873))},{id:"fennel",name:"Fennel",import:()=>n.e(9250).then(n.bind(n,9250))},{id:"fish",name:"Fish",import:()=>n.e(2380).then(n.bind(n,22380))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(422).then(n.bind(n,80422))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(8515),n.e(8087)]).then(n.bind(n,68087))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(8515).then(n.bind(n,8515))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>
1Promise.all([n.e(472),n.e(4754)]).then(n.bind(n,94754))},{id:"gdresource",name:"GDResource",import:()=>n.e(7128).then(n.bind(n,57128))},{id:"gdscript",name:"GDScript",import:()=>n.e(1198).then(n.bind(n,11198))},{id:"gdshader",name:"GDShader",import:()=>n.e(2418).then(n.bind(n,12418))},{id:"genie",name:"Genie",import:()=>n.e(6532).then(n.bind(n,6532))},{id:"gherkin",name:"Gherkin",import:()=>n.e(107).then(n.bind(n,60107))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(5957).then(n.bind(n,75957))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(8450),n.e(6222)]).then(n.bind(n,56222))},{id:"gleam",name:"Gleam",import:()=>n.e(1194).then(n.bind(n,11194))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(5059)]).then(n.bind(n,35059))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(2787)]).then(n.bind(n,72787))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8380),n.e(5685)]).then(n.bind(n,65685))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(747).then(n.bind(n,747))},{id:"go",name:"Go",import:()=>n.e(3540).then(n.bind(n,23540))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(24)]).then(n.bind(n,30024))},{id:"groovy",name:"Groovy",import:()=>n.e(8219).then(n.bind(n,78219))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3752),n.e(2160)]).then(n.bind(n,52160))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(8278)]).then(n.bind(n,58278))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(2339)]).then(n.bind(n,72339))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(3006).then(n.bind(n,3006))},{id:"haxe",name:"Haxe",import:()=>n.e(8233).then(n.bind(n,58233))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(2229).then(n.bind(n,2229))},{id:"hjson",name:"Hjson",import:()=>n.e(881).then(n.bind(n,50881))},{id:"hlsl",name:"HLSL",import:()=>n.e(3512).then(n.bind(n,63512))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821)]).then(n.bind(n,3821))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(719)]).then(n.bind(n,50719))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(3863),n.e(8450),n.e(24),n.e(2876)]).then(n.bind(n,82876))},{id:"hxml",name:"HXML",import:()=>n.e(8388).then(n.bind(n,88388))},{id:"hy",name:"Hy",import:()=>n.e(8746).then(n.bind(n,88746))},{id:"imba",name:"Imba",import:()=>n.e(4501).then(n.bind(n,44501))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(3470).then(n.bind(n,53470))},{id:"java",name:"Java",import:()=>n.e(3863).then(n.bind(n,3863))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(6597).then(n.bind(n,4300))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3845)]).then(n.bind(n,73845))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(6597),n.e(5185)]).then(n.bind(n,15185))},{id:"json",name:"JSON",import:()=>n.e(9491).then(n.bind(n,79491))},{id:"json5",name:"JSON5",import:()=>n.e(4805).then(n.bind(n,24805))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(6397).then(n.bind(n,6397))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1887).then(n.bind(n,21887))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(1560).then(n.bind(n,1560))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(7371).then(n.bind(n,17371))},{id:"jsx",name:"JSX",import:()=>n.e(5279).then(n.bind(n,97816))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(6597),n.e(4559),n.e(1461),n.e(3752),n.e(8380),n.e(6953),n.e(5801),n.e(4)]).then(n.bind(n,23421))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(2126).then(n.bind(n,12126))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(8904).then(n.bind(n,48904))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(5801),n.e(8557)]).then(n.bind(n,68557))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(167).then(n.bind(n,40167))},{id:"less",name:"Less",import:()=>n.e(3140).then(n.bind(n,23140))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(6965)]).then(n.bind(n,6965))},{id:"llvm",name:"LLVM IR",import:()=>n.e(7434).then(n.bind(n,97434))},{id:"log",name:"Log file",import:()=>n.e(5611).then(n.bind(n,35611))},{id:"logo",name:"Logo",import:()=>n.e(1637).then(n.bind(n,61637))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8380),n.e(4459)]).then(n.bind(n,23427))}
1,{id:"luau",name:"Luau",import:()=>n.e(3536).then(n.bind(n,43536))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(7667).then(n.bind(n,7667))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(472).then(n.bind(n,472))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3529),n.e(3140),n.e(7691)]).then(n.bind(n,37691))},{id:"matlab",name:"MATLAB",import:()=>n.e(2732).then(n.bind(n,86414))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(472),n.e(3553)]).then(n.bind(n,33553))},{id:"mdx",name:"MDX",import:()=>n.e(4706).then(n.bind(n,64706))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(9931).then(n.bind(n,69931))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(7573).then(n.bind(n,67573))},{id:"mojo",name:"Mojo",import:()=>n.e(9574).then(n.bind(n,99574))},{id:"move",name:"Move",import:()=>n.e(6405).then(n.bind(n,6405))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(2828).then(n.bind(n,22828))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(628).then(n.bind(n,60628))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8380),n.e(1562)]).then(n.bind(n,61562))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(8380),n.e(472),n.e(9675)]).then(n.bind(n,89675))},{id:"nix",name:"Nix",import:()=>n.e(4057).then(n.bind(n,24057))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(9496).then(n.bind(n,89496))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(7521).then(n.bind(n,67521))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(9678).then(n.bind(n,25340))},{id:"ocaml",name:"OCaml",import:()=>n.e(2966).then(n.bind(n,22966))},{id:"pascal",name:"Pascal",import:()=>n.e(9106).then(n.bind(n,89106))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(9690)]).then(n.bind(n,39690)
1)},{id:"php",name:"PHP",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(792),n.e(3613)]).then(n.bind(n,80792))},{id:"plsql",name:"PL/SQL",import:()=>n.e(5356).then(n.bind(n,85356))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(5526).then(n.bind(n,15526))},{id:"polar",name:"Polar",import:()=>n.e(6765).then(n.bind(n,16765))},{id:"postcss",name:"PostCSS",import:()=>n.e(3626).then(n.bind(n,13626))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(5576).then(n.bind(n,85576))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(3872).then(n.bind(n,13872))},{id:"prisma",name:"Prisma",import:()=>n.e(9886).then(n.bind(n,9886))},{id:"prolog",name:"Prolog",import:()=>n.e(4920).then(n.bind(n,74920))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(2643).then(n.bind(n,82643))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(3438)]).then(n.bind(n,13438))},{id:"puppet",name:"Puppet",import:()=>n.e(8386).then(n.bind(n,58386))},{id:"purescript",name:"PureScript",import:()=>n.e(4001).then(n.bind(n,64001))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(6953).then(n.bind(n,96953))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(6597),n.e(4826)]).then(n.bind(n,74826))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6516).then(n.bind(n,56516))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(6269).then(n.bind(n,26269))},{id:"r",name:"R",import:()=>n.e(5801).then(n.bind(n,95801))},{id:"racket",name:"Racket",import:()=>n.e(5954).then(n.bind(n,65954))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(7272).then(n.bind(n,97272))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(2377),n.e(7957)]).then(n.bind(n,17957))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(3356).then(n.bind(n,43356))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(2392).then(n.bind(n,2392))},{id:"rel",name:"Rel",import:()=>n.e(8416).then(n.bind(n,8416))},{id:"riscv",name:"RISC-V",import:()=>n.e(3448).then(n.bind(n,13448))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(4559),n.e(1461),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(8380),n.e(8450),n.e(24),n.e(6953),n.e(4095),n.e(8023)]).then(n.bind(n,58023))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(4559),n.e(1461),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(8380),n.e(8450),n.e(24),n.e(4095)]).then(n.bind(n,39119))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(125).then(n.bind(n,20125))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(3752),n.e(2500)]).then(n.bind(n,72500))},{id:"sass",name:"Sass",import:()=>n.e(9220).then(n.bind(n,29220))},{id:"scala",name:"Scala",import:()=>n.e(307).then(n.bind(n,10307))},{id:"scheme",name:"Scheme",import:()=>n.e(8727).then(n.bind(n,38727))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5395),n.e(3529)]).then(n.bind(n,43529))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(105).then(n.bind(n,70105))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(9371).then(n.bind(n,19371))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(8450).then(n.bind(n,95356))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(8450),n.e(7313)]).then(n.bind(n,7313))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(4218).then(n.bind(n,74218))},{id:"solidity",name:"Solidity",import:()=>n.e(8317).then(n.bind(n,98317))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3821),n.e(2662)]).then(n.bind(n,92662))},{id:"sparql",name:"SPARQL",import:()=>n.e(512).then(n.bind(n,40512))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7814).then(n.bind(n,47814))},{id:"sql",name:"SQL",import:()=>n.e(3752).then(n.bind(n,53752))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(5456).then(n.bind(n,15456))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(3752),n.e(4007)]).then(n.bind(n,94007))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(8946).then(n.bind(n,68946))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(7523)]).then(n.bind(n,57523))},{id:"swift",name:"Swift",import:()=>n.e(5739).then(n.bind(n,15739))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(7091).then(n.bind(n,87091))},{id:"systemd",name:"Systemd Units",import:()=>n.e(6795).then(n.bind(n,13863))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1313).then(n.bind(n,91313))},{id:"tasl",name:"Tasl",import:()=>n.e(4633).then(n.bind(n,4633))},{id:"tcl",name:"Tcl",import:()=>n.e(891).then(n.bind(n,70891))}
1,{id:"templ",name:"Templ",import:()=>Promise.all([n.e(6597),n.e(5395),n.e(3540),n.e(5360)]).then(n.bind(n,35360))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(7655).then(n.bind(n,57655))},{id:"tex",name:"TeX",import:()=>Promise.all([n.e(5801),n.e(2815)]).then(n.bind(n,82815))},{id:"toml",name:"TOML",import:()=>n.e(189).then(n.bind(n,60189))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(8380),n.e(6094)]).then(n.bind(n,16094))},{id:"tsv",name:"TSV",import:()=>n.e(3078).then(n.bind(n,83078))},{id:"tsx",name:"TSX",import:()=>n.e(8090).then(n.bind(n,28865))},{id:"turtle",name:"Turtle",import:()=>n.e(4254).then(n.bind(n,4254))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5279),n.e(8090),n.e(4559),n.e(1461),n.e(5395),n.e(3821),n.e(3863),n.e(3752),n.e(8380),n.e(8450),n.e(24),n.e(6953),n.e(4095),n.e(3529),n.e(792),n.e(5498)]).then(n.bind(n,45498))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(6647).then(n.bind(n,57304))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(2111).then(n.bind(n,32111))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(9255).then(n.bind(n,69255))}
1,{id:"v",name:"V",import:()=>n.e(4761).then(n.bind(n,84761))},{id:"vala",name:"Vala",import:()=>n.e(6267).then(n.bind(n,56267))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(7342).then(n.bind(n,7342))},{id:"verilog",name:"Verilog",import:()=>n.e(9051).then(n.bind(n,74559))},{id:"vhdl",name:"VHDL",import:()=>n.e(7419).then(n.bind(n,57419))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(8604).then(n.bind(n,48604))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(4190)]).then(n.bind(n,94190))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(6597),n.e(6647),n.e(5395),n.e(3821),n.e(2686)]).then(n.bind(n,72686))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(7652).then(n.bind(n,17652))},{id:"wasm",name:"WebAssembly",import:()=>n.e(2269).then(n.bind(n,12269))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>n.e(5570).then(n.bind(n,25570))},{id:"wgsl",name:"WGSL",import:()=>n.e(5959).then(n.bind(n,85959))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(3728).then(n.bind(n,3728))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(1999).then(n.bind(n,91999))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(8846).then(n.bind(n,77206))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(3863),n.e(5020)]).then(n.bind(n,33613))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(3863),n.e(4448)]).then(n.bind(n,14448))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(2782).then(n.bind(n,62782))},{id:"zenscript",name:"ZenScript",import:()=>n.e(8932).then(n.bind(n,78932))},{id:"zig",name:"Zig",import:()=>n.e(5041).then(n.bind(n,25041))}],nc=Object.fromEntries(nu.map(e=>[e.id,e.import])),nh=Object.fromEntries(nu.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nd={...nc,...nh},np=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(8701).then(n.bind(n,88701))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(2748).then(n.bind(n,92748))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(555).then(n.bind(n,70555))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1679).then(n.bind(n,21679))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(419).then(n.bind(n,40419))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(2405).then(n.bind(n,2405))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(3870).then(n.bind(n,73870))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(417).then(n.bind(n,20417))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(8042).then(n.bind(n,38042))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(9648).then(n.bind(n,69648))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(771).then(n.bind(n,30771))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(4174).then(n.bind(n,64174))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(4164).then(n.bind(n,54164))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(4386).then(n.bind(n,64386))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6294).then(n.bind(n,76294))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(3915).then(n.bind(n,23915))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(9994).then(n.bind(n,19994))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(843).then(n.bind(n,843))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(8158).then(n.bind(n,18158))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(2095).then(n.bind(n,82095))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(9799).then(n.bind(n,99799))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(9786).then(n.bind(n,9786))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(6556).then(n.bind(n,76556))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(2430).then(n.bind(n,22430))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(6783).then(n.bind(n,76783))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(7485).then(n.bind(n,27485))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(6458).then(n.bind(n,6458))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(4380).then(n.bind(n,94380))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(4763).then(n.bind(n,64763))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(6017).then(n.bind(n,56017))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(944).then(n.bind(n,40944))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(8020).then(n.bind(n,8020))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(5755).then(n.bind(n,65755))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(4752).then(n.bind(n,74837))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(1815).then(n.bind(n,31815))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(6349).then(n.bind(n,86349))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(4585).then(n.bind(n,24585))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(9726).then(n.bind(n,29726))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5969).then(n.bind(n,65969))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(5374).then(n.bind(n,35374))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(3716).then(n.bind(n,63716))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(4509).then(n.bind(n,94509))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7407).then(n.bind(n,47407))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(8828).then(n.bind(n,18828))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(5967).then(n.bind(n,25967))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(4236).then(n.bind(n,54236))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(9632).then(n.bind(n,29632))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(7093).then(n.bind(n,55279))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(3427).then(n.bind(n,3427))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(1156).then(n.bind(n,81156))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(5902).then(n.bind(n,15902))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(2388).then(n.bind(n,42388))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(8556).then(n.bind(n,88556))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>
1n.e(3305).then(n.bind(n,3305))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(5495).then(n.bind(n,55495))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(327).then(n.bind(n,80327))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(39).then(n.bind(n,60039))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(9025).then(n.bind(n,69025))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(7878).then(n.bind(n,7878))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(3748).then(n.bind(n,33748))}].map(e=>[e.id,e.import]));var nm=n(48764).Buffer;class ng extends Error{constructor(e){super(e),this.name="ShikiError"}}function nf(){return"undefined"!=typeof performance?performance.now():Date.now()}let nb=(e,t)=>e+(t-e%t)%t;async function ny(e){let t,n;let r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:nf,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,nb(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var n_=Object.defineProperty,nk=(e,t,n)=>t in e?n_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nS=(e,t,n)=>nk(e,"symbol"!=typeof t?t+"":t,n);let nw=null;class nv{constructor(e){nS(this,"utf16Length"),nS(this,"utf8Length"),nS(this,"utf16Value"),nS(this,"utf8Value"),nS(this,"utf16OffsetToUtf8"),nS(this,"utf8OffsetToUtf16");let t=e.length,n=nv._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let o=new Uint8Array(n),s=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=s,c&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nC=class e{constructor(t){if(nS(this,"id",++e.LAST_ID),nS(this,"_onigBinding"),nS(this,"content"),nS(this,"utf16Length"),nS(this,"utf8Length"),nS(this,"utf16OffsetToUtf8"),nS(this,"utf8OffsetToUtf16"),nS(this,"ptr"),!nw)throw new ng("Must invoke loadWasm first.");this._onigBinding=nw,this.content=t;let n=new nv(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nw.omalloc(1e4)),e._sharedPtrInUse=!0,nw.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(nw)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nS(nC,"LAST_ID",0),nS(nC,"_sharedPtr",0),nS(nC,"_sharedPtrInUse",!1);
1class nP{constructor(e){if(nS(this,"_onigBinding"),nS(this,"_ptr"),!nw)throw new ng("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new nv(e[r]);t[r]=i.createString(nw),n[r]=i.utf8Length}let r=nw.omalloc(4*e.length);nw.HEAPU32.set(t,r/4);let i=nw.omalloc(4*e.length);nw.HEAPU32.set(n,i/4);let a=nw.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)nw.ofree(t[n]);nw.ofree(i),nw.ofree(r),0===a&&function(e){throw new ng(e.UTF8ToString(e.getLastOnigError()))}(nw),this._onigBinding=nw,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new nC(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function nN(e){return t=>WebAssembly.instantiate(e,t)}async function nA(e){return e&&await (i||(i=async function(){nw=await ny(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):n=await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==nm&&nm.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?n=await nN(n)(t):n instanceof WebAssembly.Module?n=await nN(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await nN(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new nP(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nC(e)}}let{codeToHtml:nL,codeToHast:nT,codeToTokens:nx,codeToTokensBase:nR,codeToTokensWithThemes:nE,getSingletonHighlighter:nO,getLastGrammarState:nI}=function(e,t){let n;let r=async function(t={}){if(!n)return n=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(e){if("string"==typeof e){if(tD(e))return[];let n=t[e];if(!n)throw new l(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return n}return e}function a(e){if(tG(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new l(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),u=await nl({engine:e.engine??r(),...e,themes:o,langs:s});return{...u,loadLanguage:(...e)=>u.loadLanguage(...e.map(i)),loadTheme:(...e)=>u.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:nd,themes:np,engine:()=>nA(Promise.all([n.e(3802),n.e(9168)]).then(n.bind(n,49168)))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.