1var e=Object.defineProperty,t=(t,r)=>{let n={};for(var i in t)e(n,i,{get:t[i],enumerable:!0});return r||e(n,Symbol.toStringTag,{value:"Module"}),n},n=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function r(e){return i(e)}function i(e){return Array.isArray(e)?a(e):e instanceof RegExp?e:"object"==typeof e?o(e):e}function a(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=i(e[r]);return t}function o(e){let t={};for(let r in e)t[r]=i(e[r]);return t}function s(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}function c(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t===e.length-1?c(e.substring(0,e.length-1)):e.substr(1+~t)}var l=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,u=class{static hasCaptures(e){return null!==e&&(l.lastIndex=0,l.test(e))}static replaceCaptures(e,t,r){return e.replace(l,(e,n,i,a)=>{let o=r[parseInt(n||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 d(e,t){return e<t?-1:+(e>t)}function f(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){let r=d(e[n],t[n]);if(0!==r)return r}return 0}return r-n}function p(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 m(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var h=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}},g=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(ne(e),t)}static createFromParsedTheme(e,t){return ie(e,t)}_cachedMatchRoot=new h(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,r=this._cachedMatchRoot.get(t).find(t=>v(e.parent,t.parentScopes));return r?new te(r.fontStyle,r.foreground,r.background):null}},_=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}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}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function v(e,t){if(0===t.length)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(">"===n){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!ee(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ee(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}var te=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function ne(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=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;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),i=e.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,r=e.length;t<r;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&&p(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&p(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),c.reverse()),r[n++]=new re(u,c,e,o,s,l)}}return r}var re=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},y=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(y||{});function ie(e,t){e.sort((e,t)=>
1{let r=d(e.scope,t.scope);return 0!==r||(r=f(e.parentScopes,t.parentScopes),0!==r)?r:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let a=new ae(t),o=new te(r,a.getId(n),a.getId(i)),s=new ce(new se(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];s.insert(0,r.scope,r.parentScopes,r.fontStyle,a.getId(r.foreground),a.getId(r.background))}return new g(a,o,s)}var ae=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,r=e.length;t<r;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)}},oe=Object.freeze([]),se=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,i){this.scopeDepth=e,this.parentScopes=t||oe,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},ce=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){let i=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==i)return i;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,i,a,o){if(""===r)return void this._doInsertHere(t,n,i,a,o);let s,l,u,c=r.indexOf(".");-1===c?(s=r,l=""):(s=r.substring(0,c),l=r.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),se.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,n,i,a,o)}_doInsertHere(e,t,r,n,i){if(null!==t){for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===f(o.parentScopes,t))return void o.acceptOverwrite(e,r,n,i)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new se(e,t,r,n,i))}else this._mainRule.acceptOverwrite(e,r,n,i)}},b=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,r,n,i,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),p=e.getFontStyle(t),d=e.getForeground(t),h=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(u=ue(n)),null!==i&&(c=+!!i),-1!==a&&(p=a),0!==o&&(d=o),0!==s&&(h=s),(l|u<<8|c<<10|p<<11|d<<15|h<<24)>>>0}};function le(e){return e}function ue(e){return e}function de(e,t){let r=[],n=pe(e),i=n.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let t=o();if(r.push({matcher:t,priority:e}),","!==i)break;i=n.next()}return r;function a(){if("-"===i){i=n.next();let e=a();return t=>!!e&&!e(t)}if("("===i){i=n.next();let e=function(){let e=[],t=o();for(;t&&(e.push(t),"|"===i||","===i);){do{i=n.next()}while("|"===i||","===i);t=o()}return t=>e.some(e=>e(t))}();return")"===i&&(i=n.next()),e}if(fe(i)){let e=[];do{e.push(i),i=n.next()}while(fe(i));return r=>t(e,r)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}}function fe(e){return!!e&&!!e.match(/[\w\.:]+/)}function pe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let n=r[0];return r=t.exec(e),n}}}function me(e){"function"==typeof e.dispose&&e.dispose()}var he=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ge=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_e=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))}},ve=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new he(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new _e;for(let r of e)ye(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof he){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 ye(e,t,r,n){let i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=r.lookup(t);e instanceof he?xe({baseGrammar:a,selfGrammar:i},n):be(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);let o=r.injections(e.scopeName);if(o)for(let e of o)n.add(new he(e))}function be(e,t,r){if(t.repository&&t.repository[e]){Se([t.repository[e]],t,r)}}function xe(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Se(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Se(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Se(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?s({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Se(n.patterns,{...t,repository:e},r);let i=n.include;if(!i)continue;let a=Oe(i);switch(a.kind){case 0:xe({...t,selfGrammar:t.baseGrammar},r);break;case 1:xe(t,r);break;case 2:be(a.ruleName,{...t,repository:e},r);break;case 3:case 4:let n=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(n){let i={baseGrammar:t.baseGrammar,selfGrammar:n,repository:e};4===a.kind?be(a.ruleName,i,r):xe(i,r)}else 4===a.kind?r.add(new ge(a.scopeName,a.ruleName)):r.add(new he(a.scopeName))}}}var Ce=class{kind=0},we=class{kind=1},Te=class{constructor(e){this.ruleName=e}kind=2},Ee=class{constructor(e){this.scopeName=e}kind=3},De=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function Oe(e){if("$base"===e)return new Ce;if("$self"===e)return new we;let t=e.indexOf("#");return-1===t?new Ee(e):0===t?new Te(e.substring(1)):new De(e.substring(0,t),e.substring(t+1))}var ke=/\\(\d+)/,Ae=/\\(\d+)/g,je=-1,Me=-2;function Ne(e){return e}function Pe(e){return e}var Fe=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=u.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=u.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${c(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?u.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?u.replaceCaptures(this._contentName,e,t):this._contentName}},Ie=class extends Fe{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},Le=class extends Fe{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new He(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Re=class extends Fe{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ze=class extends Fe{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,a,o,s,l,u){super(e,t,r,n),this._begin=new He(i,this.id),this.beginCaptures=a,this._end=new He(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(),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,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(let t of 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}},Be=class extends Fe{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,a,o,s,l){super(e,t,r,n),this._begin=new He(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=ne
1w He(o,Me),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(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(let t of 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,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ue,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},Ve=class e{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new Ie(t,e,r,n,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new Le(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=s({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new Re(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,r,n))}return t.while?new Be(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new ze(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){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],r,n)),i[o]=e.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,r,n){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=Oe(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(n[o.include],r,n);break;case 2:let i=n[t.ruleName];i&&(s=e.getCompiledRuleId(i,r,n));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=r.getExternalGrammar(a,n);if(u)if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,r,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,r,u.repository)}}else s=e.getCompiledRuleId(o,r,n);if(-1!==s){let e=r.getRule(s),t=!1;if((e instanceof Re||e instanceof ze||e instanceof Be)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},He=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,r=0,n=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(n.push(e.substring(r,a)),n.push("$(?!\\n)(?<!\\n)"),r=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences="string"==typeof this.source&&ke.test(this.source)}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 r=t.map(t=>e.substring(t.start,t.end));return Ae.lastIndex=0,this.source.replace(Ae,(e,t)=>m(r[parseInt(t,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let e,t,r,n,i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),i[e]=r,a[e]=r,o[e]=r,s[e]=r,"\\"===r&&e+1<t&&(n=this.source.charAt(e+1),"A"===n?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",o[e+1]="A",s[e+1]="A"):"G"===n?(i[e+1]="ï¿¿",a[e+1]="G",o[e+1]="ï¿¿",s[e+1]="G"):(i[e+1]=n,a[e+1]=n,o[e+1]=n,s[e+1]=n),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}},Ue=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(),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 We(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){return new We(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},We=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Ge=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ke=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Ge(e,8),this._embeddedLanguagesMatcher=new qe(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 Ge(0,0);_getBasicScopeAttributes=new h(e=>new Ge(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[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/},qe=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])=>m(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Je=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ye(e,t,r,n,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=Xe(e,t,r,n,i,a);i=o.stack,n=o.linePos,r=o.isFirstLine,c=o.anchorPosition}let p=Date.now();for(;!u;){if(0!==s&&Date.now()-p>s)return new Je(i,!0);d()}return new Je(i,!1);function d(){let o=Ze(e,t,r,n,i,c);if(!o)return a.produce(i,l),void(u=!0);let s=o.captureIndices,p=o.matchedRuleId,d=!!(s&&s.length>0)&&s[0].end>n;if(p===je){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),nt(e,t,r,i,a,o.endCaptures,s),a.produce(i,s[0].end);let p=i;if(i=i.parent,c=p.getAnchorPos(),!d&&p.getEnterPos()===n)return i=p,a.produce(i,l),void(u=!0)}else{let o=e.getRule(p);a.produce(i,s[0].start);let h=i,m=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(p,n,c,s[0].end===l,null,g,g),o instanceof ze){let n=o;nt(e,t,r,i,a,n.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let p=n.getContentName(t.content,s),m=g.pushAttributed(p,e);if(i=i.withContentNameScopesList(m),n.endHasBackReferences&&(i=i.withEndRule(n.getEndWithResolvedBackReferences(t.content,s))),!d&&h.hasSameRuleAs(i))return i=i.pop(),a.produce(i,l),void(u=!0)}else if(o instanceof Be){let n=o;nt(e,t,r,i,a,n.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let p=n.getContentName(t.content,s),m=g.pushAttributed(p,e);if(i=i.withContentNameScopesList(m),n.whileHasBackReferences&&(i=i.withEndRule(n.getWhileWithRes
1olvedBackReferences(t.content,s))),!d&&h.hasSameRuleAs(i))return i=i.pop(),a.produce(i,l),void(u=!0)}else if(nt(e,t,r,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!d)return i=i.safePop(),a.produce(i,l),void(u=!0)}s[0].end>n&&(n=s[0].end,r=!1)}}function Xe(e,t,r,n,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof Be&&s.push({rule:r,stack:t})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:s,findOptions:u}=tt(l.rule,e,l.stack.endRule,r,n===o),c=s.findNextMatchSync(t,n,u);if(!c){i=l.stack.pop();break}if(c.ruleId!==Me){i=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(a.produce(l.stack,c.captureIndices[0].start),nt(e,t,r,l.stack,a,l.rule.whileCaptures,c.captureIndices),a.produce(l.stack,c.captureIndices[0].end),o=c.captureIndices[0].end,c.captureIndices[0].end>n&&(n=c.captureIndices[0].end,r=!1))}return{stack:i,linePos:n,anchorPosition:o,isFirstLine:r}}function Ze(e,t,r,n,i,a){let o=Qe(e,t,r,n,i,a),s=e.getInjections();if(0===s.length)return o;let l=$e(s,e,t,r,n,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}function Qe(e,t,r,n,i,a){let{ruleScanner:o,findOptions:s}=et(i.getRule(e),e,i.endRule,r,n===a),l=o.findNextMatchSync(t,n,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function $e(e,t,r,n,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,p=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(p))continue;let{ruleScanner:h,findOptions:m}=et(t.getRule(d.ruleId),t,null,n,i===o),g=h.findNextMatchSync(r,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}function et(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function tt(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function nt(e,t,r,n,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 p=o[t];if(0===p.length)continue;if(p.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=p.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,p.start):i.produce(n,p.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=n.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),d=n.push(l.retokenizeCapturedWithRuleId,p.start,-1,!1,null,a,c),h=e.createOnigString(s.substring(0,p.end));Ye(e,h,r&&0===p.start,p.start,d,i,!1,0),me(h);continue}let d=l.getName(s,o);if(null!==d){let t=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(d,e);u.push(new rt(t,p.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var rt=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function it(e,t,r,n,i,a,o,s){return new ct(e,t,r,n,i,a,o,s)}function at(e,t,r,n,i){let a=de(t,ot),o=Ve.getCompiledRuleId(r,n,i.repository);
1for(let r of a)e.push({debugSelector:t,matcher:r.matcher,ruleId:o,grammar:i,priority:r.priority})}function ot(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(st(t[n],e))return r=n+1,!0;return!1})}function st(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}var ct=class{constructor(e,t,r,n,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Ke(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=lt(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=de(e,ot);for(let r of t)this._tokenTypeMatchers.push({matcher:r.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=e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),t=[],r=this._rootScopeName,n=e(r);if(n){let e=n.injections;if(e)for(let r in e)at(t,r,e[r],this,n);let i=this._grammarRepository.injections(r);i&&i.forEach(e=>{let r=this.getExternalGrammar(e);if(r){let e=r.injectionSelector;e&&at(t,e,r,this,r)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(Ne(t));return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[Pe(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=lt(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=Ve.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==dt.NULL)i=!1,t.reset();else{i=!0;let e,r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=b.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?ut.createRootAndLookUpScopeName(o,a,this):ut.createRoot("unknown",a),t=new dt(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new pt(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Ye(this,a,i,0,t,s,!0,n);return me(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function lt(e,t){return(e=r(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ut=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(let t of r)i=_.push(i,t.scopeNames),n=new e(n,i,t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new _(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let i=n.getMetadataForScope(t),a=new _(null,t),o=n.themeProvider.themeMatch(a),s=e.mergeAttributes(r,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;
1if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,i=0,a=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,a=r.backgroundId),b.set(e,t.languageId,t.tokenType,null,n,i,a)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),i=this;for(let t of n)i=e._pushAttributed(i,t,r);return i}static _pushAttributed(t,r,n){let i=n.getMetadataForScope(r),a=t.scopePath.push(r),o=n.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=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},dt=class e{constructor(e,t,r,n,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=r,this._anchorPos=n}_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)&&ut.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,r,n,i,a,o,s){return new e(this,t,r,n,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:Pe(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,r){let n=ut.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,Ne(r.ruleId),r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,ut.fromExtension(n,r.contentNameScopesList))}},ft=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):de(e,ot).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>de(e,ot).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}},pt=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,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 r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!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)&&(r=b.set(r,0,le(e.type),null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}return n&&(r=b.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r?void(this._lastTokenEndIndex=t):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),void(this._lastTokenEndIndex=t))}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),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 r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},mt=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,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,it(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},ht=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new mt(g.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(g.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new ft(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,i){let a=new ve(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,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 r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},gt=dt.NULL;function _t(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function x(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function vt(e){return Array.isArray(e)?e:[e]}async function yt(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function bt(e){return!e||["plaintext","txt","text","plain"].includes(e)}function xt(e){return"ansi"===e||bt(e)}function St(e){return"none"===e}function Ct(e){return St(e)}function wt(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,i=[];for(let e=0;e<r.length;e+=2){let a=t?r[e]+(r[e+1]||""):r[e];i.push([a,n]),n+=r[e].length,n+=r[e+1]?.length||0}return i}var Tt={light:"#333333",dark:"#bbbbbb"},Et={light:"#fffffe",dark:"#1e1e1e"},Dt="__shiki_resolved";function Ot(e){if(e?.[Dt])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:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||="light"===t.type?Tt.light:Tt.dark,r||="light"===t.type?Et.light:Et.dark,t.fg=n,t.bg=r}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 r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?o(e):(a.set(e,r),r)}t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=o(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=o(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i});for(let e of Object.keys(t.colors||{}))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=o(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,Dt,{enumerable:!1,writable:!1,value:!0}),t}async function kt(e){return Array.from(new Set((await Promise.all(e.filter(e=>!xt(e)).map(async e=>await yt(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function At(e){return(await Promise.all(e.map(async e=>Ct(e)?null:Ot(await yt(e))))).filter(e=>!!e)}function jt(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new n(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var Mt=class extends ht{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ot(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=g.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=jt(e,this._alias),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 r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEac
1h(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()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>r.map(([e])=>e).includes(e))).filter(e=>!r.includes(e));throw new n(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Nt=class{_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("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},Pt=0;function Ft(e){Pt+=1,!1!==e.warnings&&Pt>=10&&Pt%10==0&&console.warn(`[Shiki] ${Pt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new n("`engine` option is required for synchronous mode");let r,i=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(Ot),o=new Mt(new Nt(e.engine,i),a,i,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=o.getTheme(e);if(!t)throw new n(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){c(),o.loadLanguages(e.flat(1))}function u(...e){c();for(let t of e.flat(1))o.loadTheme(t)}function c(){if(t)throw new n("Shiki instance has been disposed")}function p(){t||(t=!0,o.dispose(),--Pt)}return{setTheme:function(e){c();let t=s(e);return r!==e&&(o.setTheme(t),r=e),{theme:t,colorMap:o.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new n(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),o.getLoadedThemes()},getLoadedLanguages:function(){return c(),o.getLoadedLanguages()},resolveLangAlias:function(t){return jt(t,e.langAlias)},loadLanguage:async function(...e){return l(await kt(e))},loadLanguageSync:l,loadTheme:async function(...e){return c(),u(await At(e))},loadThemeSync:u,dispose:p,[Symbol.dispose]:p}}async function It(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([At(e.themes||[]),kt(e.langs||[]),e.engine]);return Ft({...e,themes:t,langs:r,engine:n})}var Lt=new WeakMap;function Rt(e,t){Lt.set(e,t)}function zt(e){return Lt.get(e)}var Bt=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new e(Object.fromEntries(vt(r).map(e=>[e,gt])),t)}constructor(...e){if(2===e.length){let[t,r]=e;this.lang=r,this._stacks=t}else{let[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Vt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Vt(e){let t=[],r=new Set;return function e(n){if(r.has(n))return;r.add(n);let i=n?.nameScopesList?.scopeName;i&&t.push(i),n.parent&&e(n.parent)}(e),t}function Ht(e,t){if(!(e instanceof Bt))throw new n("Invalid grammar state");return e.getInternalStack(t)}function Ut(e,t,r={}){let{theme:i=e.getLoadedThemes()[0]}=r;if(bt(e.resolveLangAlias(r.lang||"text"))||St(i))return wt(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i),s=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==s.name)throw new n(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(a.name))throw new n(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Gt(t,s,a,o,r)}function Wt(...e){if(2===e.length)return zt(e[1]);let[t,r,i={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=i;if(bt(a)||St(o))throw new n("Plain language does not have grammar state");if("ansi"===a)throw new n("ANSI language does not have grammar state");let{theme:s,colorMap:l}=t.setTheme(o),u=t.getLanguage(a);return new Bt(Kt(r,u,s,l,i).stateStack,u.name,s.name)}function Gt(e,t,r,n,i){let a=Kt(e,t,r,n,i),o=new Bt(a.stateStack,t.name,r.name);return Rt(a.tokens,o),a.tokens}function Kt(e,t,r,n,i){let a=_t(r,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=wt(e),u=i.grammarState?Ht(i.grammarState,r.name)??gt:null==i.grammarContextCode?gt:Kt(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,c=[],p=[];for(let e=0,d=l.length;e<d;e++){let d,h,m,[g,f]=l[e];
1if(""===g){c=[],p.push([]);continue}if(o>0&&g.length>=o){c=[],p.push([{content:g,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(d=t.tokenizeLine(g,u,s),h=d.tokens,m=0);let y=t.tokenizeLine2(g,u,s),k=y.tokens.length/2;for(let e=0;e<k;e++){let t=y.tokens[2*e],o=e+1<k?y.tokens[2*e+2]:g.length;if(t===o)continue;let s=y.tokens[2*e+1],l=x(n[b.getForeground(s)],a),u=b.getFontStyle(s),p={content:g.substring(t,o),offset:f+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}p.explanation=[];let n=0;for(;t+n<o;){let t=h[m],r=g.substring(t.startIndex,t.endIndex);n+=r.length,p.explanation.push({content:r,scopes:"scopeName"===i.includeExplanation?qt(t.scopes):Jt(e,t.scopes)}),m+=1}}c.push(p)}p.push(c),c=[],u=y.ruleStack}return{tokens:p,stateStack:u}}function qt(e){return e.map(e=>({scopeName:e}))}function Jt(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n];r[n]={scopeName:i,themeMatches:Zt(e,i,t.slice(0,n))}}return r}function Yt(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function Xt(e,t,r){if(!Yt(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)Yt(e[n],r[i])&&--n,--i;return-1===n}function Zt(e,t,r){let n=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Xt(e,t,r)){n.push(a);break}return n}function Qt(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=n.map(n=>{let i=Ut(e,t,{...r,theme:n.theme});return{tokens:i,state:zt(i),theme:"string"==typeof n.theme?n.theme:n.theme.name}}),a=$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 r&&r.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,r)=>{let{content:a,explanation:s,offset:l,...u}=e[t][i];o.variants[n[r].color]=u}),o})),s=i[0].state?new Bt(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&Rt(o,s),o}function $t(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let i=e.map(e=>e[n]),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<r;t++){let r=s[t];r.content.length===e?(a[t].push(r),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),s[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}var en=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],tn=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};function nn(e,t){let r={},n={};for(let t of e)Object.assign(r,t.property),Object.assign(n,t.normal);return new tn(r,n,t)}function rn(e){return e.toLowerCase()}tn.prototype.normal={},tn.prototype.property={},tn.prototype.space=void 0;var S=class{constructor(e,t){this.attribute=t,this.property=e}};S.prototype.attribute="",S.prototype.booleanish=!1,S.prototype.boolean=!1,S.prototype.commaOrSpaceSeparated=!1,S.prototype.commaSeparated=!1,S.prototype.defined=!1,S.prototype.mustUseProperty=!1,S.prototype.number=!1,S.prototype.overloadedBoolean=!1,S.prototype.property="",S.prototype.spaceSeparated=!1,S.prototype.space=void 0;var an=t({boolean:()=>C,booleanish:()=>w,commaOrSpaceSeparated:()=>O,commaSeparated:()=>D,number:()=>T,overloadedBoolean:()=>sn,spaceSeparated:()=>E}),on=0,C=k(),w=k(),sn=k(),T=k(),E=k(),D=k(),O=k();function k(){return 2**++on}var cn=Object.keys(an),ln=class extends S{constructor(e,t,r,n){let i=-1;if(super(e,t),un(this,"space",n),"number"==typeof r)for(;++i<cn.length;){let e=cn[i];un(this,cn[i],(r&an[e])===an[e])}}};function un(e,t,r){r&&(e[t]=r)}function A(e){let t={},r={};for(let[n,i]of Object.entries(e.properties)){let a=new ln(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[rn(n)]=n,r[rn(a.attribute)]=n}return new tn(t,r,e.space)}ln.prototype.defined=!0;var dn=A({properties:{ariaActiveDescendant:null,ariaAtomic:w,ariaAutoComplete:null,ariaBusy:w,ariaChecked:w,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControl
vendor: 5,310 bytes, line 1
1s:E,ariaCurrent:null,ariaDescribedBy:E,ariaDetails:null,ariaDisabled:w,ariaDropEffect:E,ariaErrorMessage:null,ariaExpanded:w,ariaFlowTo:E,ariaGrabbed:w,ariaHasPopup:null,ariaHidden:w,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:E,ariaLevel:T,ariaLive:null,ariaModal:w,ariaMultiLine:w,ariaMultiSelectable:w,ariaOrientation:null,ariaOwns:E,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:w,ariaReadOnly:w,ariaRelevant:null,ariaRequired:w,ariaRoleDescription:E,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:w,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function fn(e,t){return t in e?e[t]:t}function pn(e,t){return fn(e,t.toLowerCase())}var mn=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:D,acceptCharset:E,accessKey:E,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:E,autoFocus:C,autoPlay:C,blocking:E,capture:null,charSet:null,checked:C,cite:null,className:E,cols:T,colSpan:null,content:null,contentEditable:w,controls:C,controlsList:E,coords:T|D,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:sn,draggable:w,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:E,height:T,hidden:sn,high:T,href:null,hrefLang:null,htmlFor:E,httpEquiv:E,id:null,imageSizes:null,imageSrcSet:null,inert:C,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:E,itemRef:E,itemScope:C,itemType:E,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,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:C,optimum:T,pattern:null,ping:E,placeholder:null,playsInline:C,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:E,required:C,reversed:C,rows:T,rowSpan:T,sandbox:E,scope:null,scoped:C,seamless:C,selected:C,shadowRootClonable:C,shadowRootDelegatesFocus:C,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:w,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:w,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:E,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:w,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:pn}),hn=A({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:O,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:E,
1clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:C,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:D,g2:D,glyphName:D,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:O,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,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:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:E,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O,rev:O,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O,requiredFeatures:O,requiredFonts:O,requiredFormats:O,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:O,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fn}),gn=A({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()}),_n=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pn}),vn=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),yn=/[A-Z]/g,bn=/-[a-z]/g,xn=/^data[-\w.:]+$/i;function Sn(e,t){let r=rn(t),n=t,i=S;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&xn.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(bn,wn);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bn.test(e)){let r=e.replace(yn,Cn);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=ln}return new i(n,t)}function Cn(e){return"-"+e.toLowerCase()}function wn(e){return e.charAt(1).toUpperCase()}var Tn=nn([dn,mn,gn,_n,vn],"html"),En=nn([dn,hn,gn,_n,vn],"svg"),Dn={}.hasOwnProperty;function On(e,t){let r=t||{};function n(t,...r){let i=n.invalid,a=n.handlers;if(t&&Dn.call(t,e)){let r=String(t[e]);i=Dn.call(a,r)?a[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var kn=/["&'<>`]/g,An=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Mn=/[|\\{}()[\]^$+*?.]/g,Nn=new WeakMap;function Pn(e,t){return e=e.replace(t.subset?Fn(t.subset):kn,r),t.subset||t.escapeOnly?e:e.replace(An,function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)}).replace(jn,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Fn(e){let t=Nn.get(e);return t||(t=In(e),Nn.set(e,t)),t}function In(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Mn,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}var Ln=/[\dA-Fa-f]/;function Rn(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!Ln.test(String.fromCharCode(t))?n:n+";"}var zn=/\d/;function Bn(e,t,r){let n="&#"+String(e);return r&&t&&!zn.test(String.fromCharCode(t))?n:n+";"}var Kn,Vn="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.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."),Hn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",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:"â¬"},Un=["cent","copy","divide","gt","lt","not","para","times"],Wn={}.hasOwnProperty,Gn={};for(Kn in Hn)Wn.call(Hn,Kn)&&(Gn[Hn[Kn]]=Kn);var qn=/[^\dA-Za-z]/;function Jn(e,t,r,n){let i=String.fromCharCode(e);if(Wn.call(Gn,i)){let e=Gn[i],a="&"+e;return r&&Vn.includes(e)&&!Un.includes(e)&&(!n||t&&61!==t&&qn.test(String.fromCharCode(t)))?a:a+";"}return""}function Yn(e,t,r){let n,i=Rn(e,t,r.omitOptionalSemicolons);if((r.useNamedReferences||r.useShortestReferences)&&(n=Jn(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let n=Bn(e,t,r.omitOptionalSemicolons);n.length<i.length&&(i=n)}return n&&(!r.useShortestReferences||n.length<i.length)?n:i}function j(e,t){return Pn(e,Object.assign({format:Yn},t))}var Xn=/^>|^->|<!--|-->|--!>|<!-$/g,Zn=[">"],Qn=["<",">"];function $n(e,t,r,n){return n.settings.bogusComments?"<?"+j(e.value,Object.assign({},n.settings.characterReferences,{subset:Zn}))+">":"\x3c!--"+e.value.replace(Xn,function(e){return j(e,Object.assign({},n.settings.characterReferences,{subset:Qn}))})+"--\x3e"}function er(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function tr(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function nr(e,t){let r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}function rr(e){return e.join(" ").trim()}var ir=/[ \t\n\f\r]/g;function ar(e){return"object"==typeof e?"text"===e.type&&or(e.value):or(e)}function or(e){return""===e.replace(ir,"")}var M=lr(1),sr=lr(-1),cr=[];function lr(e){return function(t,r,n){let i=t?t.children:cr,a=(r||0)+e,o=i[a];if(!n)for(;o&&ar(o);)a+=e,o=i[a];return o}}var ur={}.hasOwnProperty;function dr(e){return function(t,r,n){return ur.call(e,t.tagName)&&e[t.tagName](t,r,n)}}var fr=dr({body:hr,caption:pr,colgroup:pr,dd:yr,dt:vr,head:pr,html:mr,li:_r,optgroup:xr,option:Sr,p:gr,rp:br,rt:br,tbody:wr,td:Dr,tfoot:Tr,th:Dr,thead:Cr,tr:Er});function pr(e,t,r){let n=M(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&ar(n.value.charAt(0)))}function mr(e,t,r){let n=M(r,t);return!n||"comment"!==n.type}function hr(e,t,r){let n=M(r,t);return!n||"comment"!==n.type}function gr(e,t,r){let n=M(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName}function _r(e,t,r){let n=M(r,t);return!n||"element"===n.type&&"li"===n.tagName}function vr(e,t,r){let n=M(r,t);return!(!n||"element"!==n.type||"dt"!==n.tagName&&"dd"!==n.tagName)}function yr(e,t,r){let n=M(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)}function br(e,t,r){let n=M(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function xr(e,t,r){let n=M(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName}function Sr(e,t,r){let n=M(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)}function Cr(e,t,r){let n=M(r,t);return!(!n||"element"!==n.type||"tbody"!==n.tagName&&"tfoot"!==n.tagName)}function wr(e,t,r){let n=M(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)}function Tr(e,t,r){return!M(r,t)}function Er(e,t,r){let n=M(r,t);return!n||"element"===n.type&&"tr"===n.tagName}function Dr(e,t,r){let n=M(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}var Or=dr({body:jr,colgroup:Mr,head:Ar,html:kr,tbody:Nr});function kr(e){let t=M(e,-1);return!t||"comment"!==t.type}function Ar(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type}
1function jr(e){let t=M(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&ar(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)}function Mr(e,t,r){let n=sr(r,t),i=M(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&fr(n,r.children.indexOf(n),r))&&!(!i||"element"!==i.type||"col"!==i.tagName)}function Nr(e,t,r){let n=sr(r,t),i=M(e,-1);return(!r||!n||"element"!==n.type||"thead"!==n.tagName&&"tbody"!==n.tagName||!fr(n,r.children.indexOf(n),r))&&!(!i||"element"!==i.type||"tr"!==i.tagName)}var Pr={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Fr(e,t,r,n){let i,a=n.schema,o="svg"!==a.space&&n.settings.omitOptionalTags,s="svg"===a.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(n.schema=En);let u=Ir(n,e.properties),c=n.all("html"===a.space&&"template"===e.tagName?e.content:e);return n.schema=a,c&&(s=!1),(u||!o||!Or(e,t,r))&&(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||n.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!n.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),!s&&(!o||!fr(e,t,r))&&l.push("</"+e.tagName+">"),l.join("")}function Ir(e,t){let r,n=[],i=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=Lr(e,r,t[r]);i&&n.push(i)}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}function Lr(e,t,r){let n,i=Sn(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(!i.overloadedBoolean||r!==i.attribute&&""!==r?(i.boolean||i.overloadedBoolean)&&("string"!=typeof r||r===i.attribute||""===r)&&(r=!!r):r=!0,null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=j(i.attribute,Object.assign({},e.settings.characterReferences,{subset:Pr.name[a][o]}));return!0===r||(r=Array.isArray(r)?(i.commaSeparated?nr:rr)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=j(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Pr.unquoted[a][o]}))),n!==r&&(e.settings.quoteSmart&&tr(r,s)>tr(r,e.alternative)&&(s=e.alternative),n=s+j(r,Object.assign({},e.settings.characterReferences,{subset:("'"===s?Pr.single:Pr.double)[a][o],attribute:!0}))+s),l+(n&&"="+n))}var Rr=["<","&"];function zr(e,t,r,n){return!r||"element"!==r.type||"script"!==r.tagName&&"style"!==r.tagName?j(e.value,Object.assign({},n.settings.characterReferences,{subset:Rr})):e.value}function Br(e,t,r,n){return n.settings.allowDangerousHtml?e.value:zr(e,t,r,n)}function Vr(e,t,r,n){return n.all(e)}var Hr=On("type",{invalid:Ur,unknown:Wr,handlers:{comment:$n,doctype:er,element:Fr,raw:Br,root:Vr,text:zr}});function Ur(e){throw Error("Expected node, not `"+e+"`")}function Wr(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Gr={},Kr={},qr=[];function Jr(e,t){let r=t||Gr,n=r.quote||'"',i='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Yr,all:Xr,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||en,characterReferences:r.characterReferences||Kr,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?En:Tn,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Yr(e,t,r){return Hr(e,t,r,this)}function Xr(e){let t=[],r=e&&e.children||qr,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Zr(e,t){if(!t)return e;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=[]);let r=Array.isArray(t)?t:t.split(/\s+/g);for(let t of r)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Qr(e){let t=wt(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let n=r,i=0;for(let e of t){if(n<e.length)break;n-=e.length,i++}return{line:i,character:n}},posToIndex:function(e,r){let n=0;for(let r=0;r<e;r++)n+=t[r].length;return n+=r,n}}}var $r="light-dark()",ei=["color","background-color"];function ti(e,t){let r=0,n=[];for(let i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function ni(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>
1e-t);return r.length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?ti(e,t):e})):e}function ri(e,t,r,i,a="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>ii(e.variants[t])),l=new Set(s.flatMap(e=>Object.keys(e))),u={},c=(e,n)=>{let i="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":i)};return s.forEach((e,r)=>{for(let o of l){let l=e[o]||"inherit";if(0===r&&i&&ei.includes(o))if(i===$r&&s.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new n('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');u[o]=`light-dark(${s[e][o]||"inherit"}, ${s[i][o]||"inherit"})`,"css-vars"===a&&(u[c(r,o)]=l)}else u[o]=l;else"css-vars"===a&&(u[c(r,o)]=l)}}),o.htmlStyle=u,o}function ii(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&y.Italic&&(t["font-style"]="italic"),e.fontStyle&y.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&y.Underline&&r.push("underline"),e.fontStyle&y.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function ai(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}function oi(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let i=Qr(t.source);function r(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new n(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new n(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new n(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:i.posToIndex(e.line,r)}}}let a=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));si(a),e.set(t.meta,{decorations:a,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return ni(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==r.converter.lines.length)throw new n(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,r,a){let o=i[e],l="",u=-1,c=-1;if(0===t&&(u=0),0===r&&(c=0),r===1/0&&(c=o.children.length),-1===u||-1===c)for(let e=0;e<o.children.length;e++)l+=ci(o.children[e]),-1===u&&l.length===t&&(u=e+1),-1===c&&l.length===r&&(c=e+1);if(-1===u)throw new n(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===c)throw new n(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let p=o.children.slice(u,c);if(a.alwaysWrap||p.length!==o.children.length)if(a.alwaysWrap||1!==p.length||"element"!==p[0].type){let e={type:"element",tagName:"span",properties:{},children:p};s(e,a,"wrapper"),o.children.splice(u,p.length,e)}else s(p[0],a,"token");else s(o,a,"line")}function o(e,t){i[e]=s(i[e],t,"line")}function s(e,t,r){let n=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&Zr(e,t.properties.class),e=i(e,r)||e}let l=[],u=r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of u){let{start:t,end:r}=e;if(t.line===r.line)a(t.line,t.character,r.character,e);else if(t.line<r.line){a(t.line,t.character,1/0,e);for(let n=t.line+1;n<r.line;n++)l.unshift(()=>o(n,e));a(r.line,0,r.character,e)}}l.forEach(e=>e())}}}function si(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new n(`Invalid decoration range: ${JSON.stringify(r.start)}
1 - ${JSON.stringify(r.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],a=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,o=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,l=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(a||o||s||l){if(a&&o||s&&l||s&&r.start.offset===r.end.offset||o&&t.start.offset===t.end.offset)continue;throw new n(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function ci(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(ci).join(""):""}var li=[oi()];function ui(e){let t=di(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...li]}function di(e){let t=[],r=[],n=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}var N=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],fi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function pi(e,t){let r=e.indexOf("�",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}function mi(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));return 3!==t.length||t.some(e=>Number.isNaN(e))?void 0:{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}function hi(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)fi[n]&&t.push({type:"setDecoration",value:fi[n]});else if(n<=29){let e=fi[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:N[n-30]}});else if(38===n){let r=mi(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:N[n-40]}});else if(48===n){let r=mi(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:N[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:N[n-100+8]}})}return t}function gi(){let e=null,t=null,r=new Set;return{parse(n){let i=[],a=0;do{let o=pi(n,a),s=o.sequence?n.substring(a,o.startPosition):n.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(r)}),o.sequence){let n=hi(o.sequence);for(let i of n)"resetAll"===i.type?(e=null,t=null,r.clear()):"resetForegroundColor"===i.type?e=null:"resetBackgroundColor"===i.type?t=null:"resetDecoration"===i.type&&r.delete(i.value);for(let i of n)"setForegroundColor"===i.type?e=i.value:"setBackgroundColor"===i.type?t=i.value:"setDecoration"===i.type&&r.add(i.value)}a=o.position}while(a<n.length);return i}}}var _i={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 vi(e=_i){function t(t){return e[t]}function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(e){return function(){if(n)return n;n=[];for(let e=0;e<N.length;e++)n.push(t(N[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)n.push(r([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)n.push(r([i,i,i]));return n}()[e]}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return r(e.rgb);case"table":return i(e.index)}}}}var yi={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",
1white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function bi(e,t,r){let n=_t(e,r),i=wt(t),a=vi(Object.fromEntries(N.map(t=>{let r=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[r]||yi[t]]}))),o=gi();return i.map(t=>o.parse(t[0]).map(r=>{let i,o;r.decorations.has("reverse")?(i=r.background?a.value(r.background):e.bg,o=r.foreground?a.value(r.foreground):e.fg):(i=r.foreground?a.value(r.foreground):e.fg,o=r.background?a.value(r.background):void 0),i=x(i,n),o=x(o,n),r.decorations.has("dim")&&(i=xi(i));let s=y.None;return r.decorations.has("bold")&&(s|=y.Bold),r.decorations.has("italic")&&(s|=y.Italic),r.decorations.has("underline")&&(s|=y.Underline),r.decorations.has("strikethrough")&&(s|=y.Strikethrough),{content:r.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function xi(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],i=e[3];return`#${t}${t}${r}${r}${n}${n}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Si(e,t,r={}){let n=e.resolveLangAlias(r.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=r;if(!bt(n)&&!St(i)&&"ansi"===n){let{theme:n}=e.setTheme(i);return bi(n,t,r)}return Ut(e,t,r)}function Ci(e,t,r){let i,a,o,s,l,u;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:p="--shiki-",colorsRendering:d="css-vars"}=r,h=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===h.length)throw new n("`themes` option must not be empty");let m=Qt(e,t,r);if(u=zt(m),c&&$r!==c&&!h.find(e=>e.color===c))throw new n(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=h.map(t=>e.getTheme(t.theme)),f=h.map(e=>e.color);o=m.map(e=>e.map(e=>ri(e,f,p,c,d))),u&&Rt(o,u);let y=h.map(e=>_t(e.theme,r));a=wi(h,g,y,p,c,"fg",d),i=wi(h,g,y,p,c,"bg",d),s=`shiki-themes ${g.map(e=>e.name).join(" ")}`,l=c?void 0:[a,i].join(";")}else{if(!("theme"in r))throw new n("Invalid options, either `theme` or `themes` must be provided");{let n=_t(r.theme,r);o=Si(e,t,r);let l=e.getTheme(r.theme);i=x(l.bg,n),a=x(l.fg,n),s=l.name,u=zt(o)}}return{tokens:o,fg:a,bg:i,themeName:s,rootStyle:l,grammarState:u}}function wi(e,t,r,i,a,o,s){return e.map((l,u)=>{let c=x(t[u][o],r[u])||"inherit",p=`${i+l.color}${"bg"===o?"-bg":""}:${c}`;if(0===u&&a){if(a===$r&&e.length>1){let i=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===a)throw new n('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${x(t[i][o],r[i])||"inherit"}, ${x(t[a][o],r[a])||"inherit"});${p}`}return c}return"css-vars"===s?p:null}).filter(e=>!!e).join(";")}function Ti(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>Ti(e,t,r),codeToTokens:(t,r)=>Ci(e,t,r)}){let i=t;for(let e of ui(r))i=e.preprocess?.call(n,i,r)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=Ci(e,i,r),{mergeWhitespaces:p=!0,mergeSameStyleTokens:d=!1}=r;!0===p?a=Di(a):"never"===p&&(a=Oi(a)),d&&(a=ki(a));let h={...n,get source(){return i}};for(let e of ui(r))a=e.tokens?.call(h,a)||a;return Ei(a,{...r,fg:o,bg:s,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??u)},h,c)}function Ei(e,t,r,n=zt(e)){let i=ui(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};!1!==t.rootStyle&&(u.style=null==t.rootStyle?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),!1!==l&&null!=l&&(u.tabindex=l.toString());for(let[e,r]of Object.entries(t.meta||{}))e.startsWith("_")||(u[e]=r);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},p={type:"element",tagName:"code",properties:{},children:a},d=[],h={...r,structure:s,addClassToHast:Zr,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return c},get code(){return p},get lines(){return d}};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 r={type:"element",tagName:"span",properties:{class:"line"}
1,children:[]},n=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=ai(a.htmlStyle||ii(a));l&&(e.properties.style=l);for(let o of i)e=o?.span?.call(h,e,t+1,n,r,a)||e;"inline"===s?o.children.push(e):"classic"===s&&r.children.push(e),n+=a.content.length}if("classic"===s){for(let e of i)r=e?.line?.call(h,r,t+1)||r;d.push(r),a.push(r)}else"inline"===s&&d.push(r)}),"classic"===s){for(let e of i)p=e?.code?.call(h,p)||p;c.children.push(p);for(let e of i)c=e?.pre?.call(h,c)||c;o.children.push(c)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of o.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of i)r=e?.code?.call(h,r)||r;o.children=[];for(let e=0;e<r.children.length;e++){e>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(h,m)||m;return n&&Rt(m,n),m}function Di(e){return e.map(e=>{let t,r=[],n="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&y.Underline||i.fontStyle&y.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),n+=i.content):n?(o?r.push({...i,offset:t,content:n+i.content}):r.push({content:n,offset:t},i),t=void 0,n=""):r.push(i)}),r})}function Oi(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,n,i]=t;if(!r&&!i)return e;let a=[{...e,offset:e.offset+r.length,content:n}];return r&&a.unshift({content:r,offset:e.offset}),i&&a.push({content:i,offset:e.offset+r.length+n.length}),a}))}function ki(e){return e.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],n=ai(e.htmlStyle||ii(e)),i=ai(r.htmlStyle||ii(r)),a=e.fontStyle&&(e.fontStyle&y.Underline||e.fontStyle&y.Strikethrough),o=r.fontStyle&&(r.fontStyle&y.Underline||r.fontStyle&y.Strikethrough);a||o||n!==i?t.push({...r}):e.content+=r.content}return t})}var Ai=Jr;function ji(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>Ti(e,t,r),codeToTokens:(t,r)=>Ci(e,t,r)},i=Ai(Ti(e,t,r,n));for(let e of ui(r))i=e.postprocess?.call(n,i,r)||i;return i}async function Mi(e){let t=await It(e);return{getLastGrammarState:(...e)=>Wt(t,...e),codeToTokensBase:(e,r)=>Si(t,e,r),codeToTokensWithThemes:(e,r)=>Qt(t,e,r),codeToTokens:(e,r)=>Ci(t,e,r),codeToHast:(e,r)=>Ti(t,e,r),codeToHtml:(e,r)=>ji(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var Ni=4294967295,Pi=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=i(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,i=[];function a(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:Ni,end:Ni,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let r=0;r<this.regexps.length;r++){let o=this.regexps[r];if(o)try{o.lastIndex=t;let e=o.exec(n);if(!e)continue;if(e.index===t)return a(r,e,0);i.push([r,e,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,r,n]of i)if(r.index===e)return a(t,r,n)}return null}};function P(e){if(1!==[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Fi(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var Ii=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),F=String.raw;function I(e,t){if(null==e)throw Error(t??"Value expected");return e}var Li=F`\[\^?`,Ri=`c.? | C(?:-.?)?|${F`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${F`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${F`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${F`o\{[^\}]*\}?`}|${F`\d{1,3}`}`,zi=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Bi=new RegExp(F` 2 \\ (?: 3 ${Ri} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${zi.source})+ 21 | ${Li} 22 | . 23`.replace(/\s+/g,""),"gsu"),Vi=new RegExp(F` 24 \\ (?: 25 ${Ri} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${Li} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");function Hi(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n,i=ha(r.flags),a=[i.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX:()=>a.at(-1),numOpenGroups:0,popModX(){a.pop()},pushModX(e){a.push(e)},replaceCurrentModX(e){a[a.length-1]=e},singleline:r.rules.singleline},s=[];for(Bi.lastIndex=0;n=Bi.exec(e);){let t=Ui(o,e,n[0],Bi.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(Bi.lastIndex=t.lastIndex)}let l=[],u=0;s.filter(e=>
32"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&l.push(e)}),u||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?_a(e,c):e).flat(),flags:i}}function Ui(e,t,r,n){let[i,a]=r;if("["===r||"[^"===r){let e=Wi(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:Ji(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:aa(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:Yi(r)}}if("K"===a)return{token:ea("keep",r)};if("N"===a||"R"===a)return{token:R("newline",r,{negate:"N"===a})};if("O"===a)return{token:R("any",r)};if("X"===a)return{token:R("text_segment",r)};let e=Ki(r,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:ua(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:la(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:z("group",r)};if("(?>"===r)return{token:z("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?<!"===r)return{token:z("<"===r[2]?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if("("===r&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:z("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:z("absence_repeater",r)}}throw Error("(?("===r?`Unsupported conditional "${r}"`:`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:na(r)}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf("\n",n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:R("dot",r)}:"^"===r||"$"===r?{token:Ji(e.singleline?{"^":F`\A`,$:F`\Z`}[r]:r,r)}:"|"===r?{token:qi(r)}:zi.test(r)?{tokens:va(r)}:{token:L(P(r),r)}}function Wi(e,t,r){let n,i=[$i("^"===t[1],t)],a=1;for(Vi.lastIndex=r;n=Vi.exec(e);){let e=n[0];if("["===e[0]&&":"!==e[1])a++,i.push($i("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===i.at(-1).type)i.push(L(93,e));else if(a--,i.push(Xi(e)),!a)break}else{let t=Gi(e);Array.isArray(t)?i.push(...t):i.push(t)}}return{tokens:i,lastIndex:Vi.lastIndex||e.length}}function Gi(e){if("\\"===e[0])return Ki(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Ii.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return R("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?Zi(e):"&&"===e?Qi(e):L(P(e),e)}function Ki(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r)return ca(e);if("dDhHsSwW".includes(r))return fa(e);if(e.startsWith(F`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return pa(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return L(P(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return L(ga(e),e);if(sa.has(r))return L(sa.get(r),e);if(/\d/.test(r))return ta(t,e);if("\\"===e)throw Error(F`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);if(2===[...e].length)return L(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function qi(e){return{type:"Alternator",raw:e}}function Ji(e,t){return{type:"Assertion",kind:e,raw:t}}function Yi(e){return{type:"Backreference",raw:e}}function L(e,t){return{type:"Character",value:e,raw:t}}function Xi(e){return{type:"CharacterClassClose",raw:e}}function Zi(e){return{type:"CharacterClassHyphen",raw:e}}function Qi(e){return{type:"CharacterClassIntersector",raw:e}}function $i(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function R(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function ea(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:I(r.flags),raw:t}}function ta(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function na(e){return{type:"GroupClose",raw:e}}function z(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function ra(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function ia(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function aa(e){return{type:"Subroutine",raw:e}}var oa=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),sa=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11
32]]);function ca(e){let t="c"===e[1]?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return L(P(t.toUpperCase())-64,e)}function la(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=ma(r),o=ma(n),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),ea("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,z("group",e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function ua(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:i}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,l]=a,u=oa.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof o)throw Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(2===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if("number"==typeof s||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return ra(u,n??null,i?.split(",")??null,e)}function da(e){let t,r,n=null;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error("Quantifier value unsupported in Oniguruma");if(t=+i,r=void 0===a?+i:""===a?1/0:+a,t>r&&(n="possessive",[t,r]=[r,t]),e.endsWith("?")){if("possessive"===n)throw Error('Unsupported possessive interval quantifier chain with "?"');n="lazy"}else n||="greedy"}else t=+("+"===e[0]),r="?"===e[0]?1:1/0,n="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return ia(n,t,r,e)}function fa(e){let t=e[1].toLowerCase();return R({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function pa(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return R("property",e,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}function ma(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function ha(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if("y"!==n)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;else{if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[r+2]?"grapheme":"word",r+=3}}return t}function ga(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t="{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function _a(e,t){let{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[Yi(r)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t,n=o[e];if(0===e&&"8"!==n&&"9"!==n){if(t=parseInt(n,8),t>127)throw Error(F`Octal encoded byte above 177 unsupported "${r}"`)}else t=P(n);a.push(L(t,(0===e?"\\":"")+n))}return a}function va(e){let t,r=[],n=new RegExp(zi,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>
vendor: 1,320 bytes, line 32
32+a&&e.endsWith("?")){n.lastIndex--,r.push(da(e.slice(0,-1)));continue}}}r.push(da(e))}return r}function ya(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}function ba(e){return xa.has(e.type)}var xa=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Sa(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=Hi(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(e,t)=>{let r=n.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,r.type){case"Alternator":return B();case"Assertion":return Ca(r);case"Backreference":return wa(r,a);case"Character":return Fa(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return Ta(r,a,t);case"CharacterClassOpen":return Ea(r,a,t);case"CharacterSet":return Da(r,a);case"Directive":return za(r.kind,{flags:r.flags});case"GroupOpen":return Oa(r,a,t);case"NamedCallout":return Va(r.kind,r.tag,r.arguments);case"Quantifier":return ka(r,a);
32case"Subroutine":return Aa(r,a);default:throw Error(`Unexpected token type "${r.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},o=Wa(Ba(n.flags)),s=o.body[0];for(;a.nextIndex<n.tokens.length;){let e=i(s,{});"Alternative"===e.type?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:c,subroutines:p}=a;if(u&&c.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of p)if("number"==typeof e){if(e>l.length)throw Error("Subroutine uses a group number that's not defined");e&&(l[e-1].isSubroutined=!0)}else{if(!c.has(e))throw Error(F`Subroutine uses a group name that's not defined "\g<${e}>"`);if(c.get(e).length>1)throw Error(F`Subroutine uses a duplicate group name "\g<${e}>"`);c.get(e)[0].isSubroutined=!0}return o}function Ca({kind:e}){return Ma(I({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===F`\B`||e===F`\Y`})}function wa({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(r,n=!1)=>{let i=t.capturingGroups.length,a=!1;if(r>i){if(!t.skipBackrefValidation)throw Error(`Not enough capturing groups defined to the left "${e}"`);a=!0}return t.hasNumberedRef=!0,Na(n?i+1-r:r,{orphan:a})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return i(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);
32if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return Na(n)}return i(+n)}function Ta(e,t,r){let{tokens:n,walk:i}=t,a=t.parent,o=a.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&o&&"CharacterClass"!==o.type&&"CharacterClassRange"!==o.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.type){let e=i(a,{...r,isCheckingRangeEnd:!0});if("Character"===o.type&&"Character"===e.type)return a.body.pop(),La(o,e);throw Error("Invalid character class range")}return Fa(P("-"))}function Ea({negate:e},t,r){let{tokens:n,walk:i}=t,a=n[t.nextIndex],o=[Ia()],s=to(a);for(;"CharacterClassClose"!==s.type;){if("CharacterClassIntersector"===s.type)o.push(Ia()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,r))}s=to(n[t.nextIndex],a)}let l=Ia({negate:e});return 1===o.length?l.body=o[0].body:(l.kind="intersection",l.body=o.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}function Da({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=n;if("property"===e){let n=eo(r);if(!Ii.has(n)||o?.has(n))return Ka(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o});e="posix",r=n}return"posix"===e?Ha(r,{negate:t}):Ra(e,{negate:t})}function Oa(e,t,r){let{tokens:n,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,l=qa(e),u="AbsenceFunction"===l.type,c=Za(l),p=c&&l.negate;if("CapturingGroup"===l.type&&(i.push(l),l.name&&Fi(a,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let d=no(n[t.nextIndex]);for(;"GroupClose"!==d.type;){if("Alternator"===d.type)l.body.push(B()),t.nextIndex++;else{let e=l.body.at(-1),t=s(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||c,isInNegLookbehind:r.isInNegLookbehind||p});if(e.body.push(t),(c||r.isInLookbehind)&&!o){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(Xa(t)||"CapturingGroup"===t.type)throw Error(e)}else if(Xa(t)||Za(t)&&t.negate)throw Error(e)}}d=no(n[t.nextIndex])}return t.nextIndex++,l}function ka({kind:e,min:t,max:r},n){let i=n.parent,a=i.body.at(-1);if(!a||!ba(a))throw Error("Quantifier requires a repeatable token");let o=Ua(e,t,r,a);return i.body.pop(),o}function Aa({raw:e},t){let{capturingGroups:r,subroutines:n}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,n=r.length;if(t.hasNumberedRef=!0,i={"":e,"+":n+e,"-":n+1-e}[a.groups.sign],i<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let o=Ga(i);return n.push(o),o}function ja(e,t){if("repeater"!==e)throw Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Ja(t?.body)}}function B(e){return{type:"Alternative",body:Ya(e?.body)}}function Ma(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function Na(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Pa(e,t){let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&!Qa(r.name))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Ja(t?.body)}}function Fa(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(!r.useLastValid)throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`);e=1114111}return{type:"Character",value:e}}function Ia(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Ya(e?.body)}}function La(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Ra(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),("text_segment"===e||"newline"===e&&!r)&&(n.variableLength=!0),n}function za(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:I(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function Ba(e){return{type:"Flags",...e}}function V(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Ja(e?.body)}}function H(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Ja(e?.body)}}function Va(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function Ha(e,t){let r=!!t?.negate;if(!Ii.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function Ua(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function Wa(e,t){return{type:"Regex",body:Ja(t?.body),flags:e}}function Ga(e){return{type:"Subroutine",ref:e}}function Ka(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(eo(e));if(!n)if(r.normalizeUnknownPropertyNames)n=$a(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(F`Invalid Unicode property "\p{${e}}"`);return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function qa({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":return ja("repeater");case"atomic":return V({atomic:!0});case"capturing":return Pa(i,{name:r});case"group":return V({flags:e});case"lookahead":case"lookbehind":return H({behind:"lookbehind"===t,
32negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}function Ja(e){if(void 0===e)e=[B()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function Ya(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function Xa(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function Za(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function Qa(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function $a(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function eo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function to(e,t){return I(e,("Character"===t?.type&&93===t.value?"Empty":"Unclosed")+" character class")}function no(e){return I(e,"Unclosed group")}function ro(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=i(e[r],t,r,e);r=Math.max(-1,r+n)}}function i(a,o=null,s=null,l=null){let u=0,c=!1,p={node:a,parent:o,key:s,container:l,root:e,remove(){io(l).splice(Math.max(0,ao(s)+u),1),u--,c=!0},removeAllNextSiblings:()=>io(l).splice(ao(s)+1),removeAllPrevSiblings(){let e=ao(s)+u;return u-=e,io(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,ao(s)+u)]=e:I(o,"Can't replace root node")[s]=e,r&&i(e,o,s,l),c=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(io(l).splice(Math.max(0,ao(s)+u),1,...e),u+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=i(e[r],o,ao(s)+r+t,l)}c=!0},skip(){c=!0}},{type:d}=a,h=t["*"],m=t[d],g="function"==typeof h?h:h?.enter,f="function"==typeof m?m:m?.enter;if(g?.(p,r),f?.(p,r),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":n(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${d}"`)}return m?.exit?.(p,r),h?.exit?.(p,r),u}return i(e),e}function io(e){if(!Array.isArray(e))throw Error("Container expected");return e}function ao(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}var oo=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function so(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function co(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}var U=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function lo(e,t,r,n){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],o=0,s="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;i||n&&n===U.DEFAULT!=!o?("["===e[0]?(o++,a.push("^"===e[1])):"]"===e&&o&&(o--,a.pop()),s+=e):s+=r instanceof Function?r(t,{context:o?U.CHAR_CLASS:U.DEFAULT,negated:a[a.length-1]}):r}return s}function uo(e,t,r,n){lo(e,t,r,n)}function fo(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let a,o=0;for(;a=i.exec(e);){let{0:e,groups:{$skip:t}}=a;if(!(t||n&&n===U.DEFAULT!=!o))return a;"["===e?o++:"]"===e&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function po(e,t,r){return!!fo(e,t,0,r)}function mo(e,t){let r=/\\?./gsu;r.lastIndex=t;let n,i=e.length,a=0,o=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)o++;else if(")"===e&&(o--,!o)){i=n.index;break}}return e.slice(t,i)}var ho=new RegExp(String.raw`(?<noncapturingStart>${oo})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function go(e,t){let r=t?.hiddenCaptures??[],n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};let i,a=[0],o=[],s=0,l=0,u=NaN;do{i=!1;let t,c=0,p=0,d=!1;for(ho.lastIndex=Number.isNaN(u)?0:u+7;t=ho.exec(e);){let{0:h,index:m,groups:{capturingStart:g,noncapturingStart:f}}=t;if("["===h)c++;else if(c)"]"===h&&c--;else if("(?>"!==h||d){if(d&&f)p++;else if(g)d?p++:(s++,a.push(s+l));else if(")"===h&&d){if(!p){l++;let t=s+l;if(e=`${e.slice(0,u)}(?:(?=(${e.slice(u+3,m)}))<$$${t}>)${e.slice(m+1)}`,i=!0,o.push(t),so(r,t),n.size){let e=new Map;
32n.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),n=e}break}p--}}else u=m,d=!0}}while(i);return r.push(...o),e=lo(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>a.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${a[r]}`}return`\\${r}`},U.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}var _o=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,vo=new RegExp(String.raw` 33\\(?: \d+ 34 | c[A-Za-z] 35 | [gk]<[^>]+> 36 | [pPu]\{[^\}]+\} 37 | u[A-Fa-f\d]{4} 38 | x[A-Fa-f\d]{2} 39 ) 40| \((?: \? (?: [:=!>] 41 | <(?:[=!]|[^>]+>) 42 | [A-Za-z\-]+: 43 | \(DEFINE\) 44 ))? 45| (?<qBase>${_o})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 46| \\?. 47`.replace(/\s+/g,""),"gsu");function yo(e){if(!RegExp(`${_o}\\+`).test(e))return{pattern:e};let t,r=[],n=null,i=null,a="",o=0;for(vo.lastIndex=0;t=vo.exec(e);){let{0:s,index:l,groups:{qBase:u,qMod:c,invalidQ:p}}=t;if("["===s)o||(i=l),o++;else if("]"===s)o?o--:i=null;else if(!o)if("+"===c&&a&&!a.startsWith("(")){if(p)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(u))e=co(e,l+u.length,c,"");else{if(")"===a||"]"===a){let t=")"===a?n:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-a.length)}(?>${a}${u})${e.slice(l+s.length)}`;t+=4}vo.lastIndex+=t}else"("===s[0]?r.push(l):")"===s&&(n=r.length?r.pop():null);a=s}return{pattern:e}}var W=String.raw,bo=W`\(\?R=(?<rDepth>[^\)]+)\)|${W`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,xo=W`\(\?<(?![=!])(?<captureName>[^>]+)>`,So=W`${xo}|(?<unnamed>\()(?!\?)`,G=new RegExp(W`${xo}|${bo}|\(\?|\\?.`,"gsu"),Co="Cannot use multiple overlapping recursions";function wo(e,t){let{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t},i=t?.captureTransfers??new Map;if(!new RegExp(bo,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};if("plugin"===n&&po(e,W`\(\?\(DEFINE\)`,U.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let a,o=[],s=po(e,W`\\[1-9]`,U.DEFAULT),l=new Map,u=[],c=!1,p=0,d=0;for(G.lastIndex=0;a=G.exec(e);){let{0:t,groups:{captureName:h,rDepth:m,gRNameOrNum:g,gRDepth:f}}=a;if("["===t)p++;else if(p)"]"===t&&p--;else{if(m){if(To(m),c)throw Error(Co);if(s)throw Error(("external"===n?"Backrefs":"Numbered backrefs")+" cannot be used with global recursion");let t=e.slice(0,a.index),l=e.slice(G.lastIndex);if(po(l,bo,U.DEFAULT))throw Error(Co);let u=m-1;e=Eo(t,l,u,!1,r,o,d),i=ko(i,t,u,o.length,0,d);break}if(g){To(f);let p=!1;for(let e of u)if(e.name===g||e.num===+g){if(p=!0,e.hasRecursedWithin)throw Error(Co);break}if(!p)throw Error(W`Recursive \g cannot be used outside the referenced group "${"external"===n?g:W`\g<${g}&R=${f}>`}"`);let h=l.get(g),m=mo(e,h);if(s&&po(m,W`${xo}|\((?!\?)`,U.DEFAULT))throw Error(("external"===n?"Backrefs":"Numbered backrefs")+" cannot be used with recursion of capturing groups");let y=e.slice(h,a.index),b=m.slice(y.length+t.length),k=o.length,C=f-1,w=Eo(y,b,C,!0,r,o,d);i=ko(i,y,C,o.length-k,k,d),e=`${e.slice(0,h)}${w}${e.slice(h+m.length)}`,G.lastIndex+=w.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(h)d++,l.set(String(d),G.lastIndex),l.set(h,G.lastIndex),u.push({num:d,name:h});else if("("===t[0]){let e="("===t;e&&(d++,l.set(String(d),G.lastIndex)),u.push(e?{num:d}:{})}else")"===t&&u.pop()}}return r.push(...o),{pattern:e,captureTransfers:i,hiddenCaptures:r}}function To(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||((e=+e)<2||e>100))throw Error(t)}function Eo(e,t,r,n,i,a,o){let s=new Set;n&&uo(e+t,xo,({groups:{captureName:e}})=>{s.add(e)},U.DEFAULT);let l=[r,n?s:null,i,a,o];return`${e}${Do(`(?:${e}`,"forward",...l)}(?:)${Do(`${t})`,"backward",...l)}${t}`}function Do(e,t,r,n,i,a,o){let s=e=>"forward"===t?e+2:r-e+2-1,l="";for(let t=0;t<r;t++){let r=s(t);l+=lo(e,W`${So}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:l}})=>{if(l&&n&&!n.has(l))return e;let u=`_$${r}`;if(s||t){let r=o+a.length+1;return a.push(r),Oo(i,r),s?e:`(?<${t}${u}>`}return W`\k<${l}${u}>`},U.DEFAULT)}return l}function Oo(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function ko(e,t,r,n,i,a){if(e.size&&n){let o=0;
47uo(t,So,()=>o++,U.DEFAULT);let s=a-o+i,l=new Map;return e.forEach((e,t)=>{let i=(n-o*r)/r,a=o*r,u=t>s+o?t+n:t,c=[];for(let t of e)if(t<=s)c.push(t);else if(t>s+o+i)c.push(t+n);else if(t<=s+o)for(let e=0;e<=r;e++)c.push(t+o*e);else for(let e=0;e<=r;e++)c.push(t+a+i*e);l.set(u,c)}),l}return e}var K=String.fromCodePoint,q=String.raw,J={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("[[]]","v")}catch{return!1}return!0})()};function Ao(e,{enable:t,disable:r}){return{dotAll:!(r?.dotAll||!t?.dotAll&&!e.dotAll),ignoreCase:!(r?.ignoreCase||!t?.ignoreCase&&!e.ignoreCase)}}function jo(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Mo(e,t){return Po[e]>=Po[t]}function No(e,t){if(null==e)throw Error(t??"Value expected");return e}J.bugFlagVLiteralHyphenIsRange=!!J.unicodeSets&&(()=>{try{new RegExp(q`[\d\-a]`,"v")}catch{return!0}return!1})(),J.bugNestedClassIgnoresNegation=J.unicodeSets&&RegExp("[[^a]]","v").test("a");var Po={ES2025:2025,ES2024:2024,ES2018:2018},Fo={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Io(e={}){if("[object Object]"!=={}.toString.call(e))throw Error("Unexpected options");
47if(void 0!==e.target&&!Fo[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=J.flagGroups?"ES2025":J.unicodeSets?"ES2024":"ES2018"),t}var Lo="[\t-\r ]",Ro=new Set([K(304),K(305)]),Y=q`[\p{L}\p{M}\p{N}\p{Pc}]`;function zo(e){if(Ro.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=Uo.get(r),a=Vo.get(r),o=Ho.get(r);return 1===[...n].length&&t.add(n),o&&t.add(o),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var Bo=new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map(e=>[eo(e),e])),Vo=new Map([["s",K(383)],[K(383),"s"]]),Ho=new Map([[K(223),K(7838)],[K(107),K(8490)],[K(229),K(8491)],[K(969),K(8486)]]),Uo=new Map([X(453),X(456),X(459),X(498),...Ko(8072,8079),...Ko(8088,8095),...Ko(8104,8111),X(8124),X(8140),X(8188)]),Wo=new Map([["alnum",q`[\p{Alpha}\p{Nd}]`],["alpha",q`\p{Alpha}`],["ascii",q`\p{ASCII}`],["blank",q`[\p{Zs}\t]`],["cntrl",q`\p{Cc}`],["digit",q`\p{Nd}`],["graph",q`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",q`\p{Lower}`],["print",q`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",q`[\p{P}\p{S}]`],["space",q`\p{space}`],["upper",q`\p{Upper}`],["word",q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",q`\p{AHex}`]]);function Go(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r}function X(e){let t=K(e);return[t.toLowerCase(),t]}function Ko(e,t){return Go(e,t).map(e=>X(e))}var qo=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Jo(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Qo(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Mo(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ro(e,Yo,n);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};return ro(e,Xo,a),ro(e,Zo,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}var Yo={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:i}=e;if("repeater"!==i)throw Error('Unsupported absence function "(?~|"');{let e=V();e.body[0].body.push(H({negate:!0,body:n}),Ka("Any"));let i=V();i.body[0].body.push(Ua("greedy",0,1/0,e)),r($(i,t),{traverse:!0})}},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++){jo(n,t.body[e],[]).push(...i)}}
47,exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=as(t.get(e));if(r){let t=V({flags:r});t.body[0].body=e.body,e.body=[$(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:a,replaceWith:o},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:p,supportedGNodes:d,wordIsAscii:h}=s;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===l)o($(H({body:[B({body:[Ma("string_end")]}),B({body:[Fa(10)]})]}),t));else if("line_start"===l)o($(Z(q`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(d.has(e))i.flags.sticky=!0,a();else{let e=n[r-1];if(e&&ds(e))o($(H({negate:!0}),t));else{if(p)throw Error(q`Uses "\G" in a way that requires a subclass`);o(Q(Ma("string_start"),t)),s.strategy="clip_search"}}else if("string_end"!==l&&"string_start"!==l)if("string_end_newline"===l)o($(Z(q`(?=\n?\z)`),t));else{if("word_boundary"!==l)throw Error(`Unexpected assertion kind "${l}"`);if(!h&&!c){o($(Z(u?`(?:(?<=${Y})(?=${Y})|(?<!${Y})(?!${Y}))`:`(?:(?<=${Y})(?!${Y})|(?<!${Y})(?=${Y}))`),t))}}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"==typeof r&&!ps(r)&&(r=is(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!ps(n)&&(n=is(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r($(Ia({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:l,negate:u,value:c}=e;if(!a||"digit"!==l&&"digit"!==c)if(!o||"space"!==l&&"space"!==c)if(!s||"w
47ord"!==l&&"word"!==c){if("any"===l)r(Q(Ka("Any"),t));else if("digit"===l)r(Q(Ka("Nd",{negate:u}),t));else if("dot"!==l)if("text_segment"===l){if("strict"===n)throw Error(q`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=q`\p{RI}{2}|${e}(?:\u200D${e})*`;r($(Z(q`(?>\r\n|${i?q`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(Q(Ka("AHex",{negate:u}),t));else if("newline"===l)r($(Z(u?"[^\n]":"(?>\r\n?|[\n\v\fÂ
\u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==c&&"print"!==c)r($(ms(Z(Wo.get(c)),u),t));else{if("strict"===n)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${K(e.codePointAt(0)-1)}${K(e.codePointAt(2)+1)}-ô¿¿`),r($(Z(`[${e}]`),t))}else if("property"===l)Bo.has(eo(c))||(e.key="sc");else if("space"===l)r(Q(Ka("space",{negate:u}),t));else{if("word"!==l)throw Error(`Unexpected character set kind "${l}"`);r($(ms(Z(Y),u),t))}}else r(Q(Ra("word",{negate:u}),t));else r($(ms(Z(Lo),u),t));else r(Q(Ra("digit",{negate:u}),t))},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:l}=e;if("flags"===s)if(l.enable||l.disable){let e=V({flags:l});e.body[0].body=o(),i($(e,t),{traverse:!0})}else n();else{if("keep"!==s)throw Error(`Unexpected directive kind "${s}"`);{let e=r.body[0],n=1===r.body.length&&ya(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(q`Uses "\K" in a way that's unsupported`);let o=H({behind:!0});o.body[0].body=a(),i($(o,t))}}},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"!==n)throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`);r($(H({negate:!0}),t))},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=V();t.body[0].body.push(e.body),e.body=$(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=cs(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):i=!0}n&&!i&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(q`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"==typeof r&&!ps(r)&&(r=is(r,t),e.ref=r)}},Xo={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:l}){let u=i.get(e);if(u&&s.has(e.number)){let n=Q(ns(e.number),t);return l.set(n,s.get(e.number)),void r(n)}s.set(e.number,e),o.set(e.number,[]),e.name&&jo(o,e.name,[]);let c=o.get(e.name??e.number);for(let t=0;t<c.length;t++){let r=c[t];if(u===r.node||u&&u===r.origin||e===r.origin){c.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:u}),e.name&&o.get(e.name).push({node:e,origin:u}),e.name){let t=jo(a,e.name,new Map),r=!1;if(u)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}}
47,exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Ao(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:i,ref:a}=e;if(i){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==a&&r.number!==a););return void n.reffedNodesByReferencer.set(e,r)}let o=n.subroutineRefMap.get(a),s=0===a,l=s?ns(0):ts(o,n.groupOriginByCopy,null),u=l;if(!s){let e=as(rs(o,e=>"Group"===e.type&&!!e.flags)),t=e?Ao(n.globalFlags,e):n.globalFlags;$o(t,n.currentFlags)||(u=V({flags:os(t)}),u.body[0].body.push(l))}r($(u,t),{traverse:!s})}},Zo={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan)return void(n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref));let i=n.reffedNodesByReferencer.get(e).filter(t=>es(t,e));i.length?i.length>1?r($(V({atomic:!0,body:i.reverse().map(e=>B({body:[Na(e.number)]}))}),t)):e.ref=i[0].number:r($(H({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=Pa();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||0===e.ref||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Qo(e){ro(e,{"*"({node:e,parent:t}){e.parent=t}})}function $o(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function es(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;let t=ss(r.parent);for(let n of t){if(n===r)break;if(n===e||ls(n,e))return!0}}while(r=r.parent);throw Error("Unexpected path")}function ts(e,t,r,n){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))"parent"===a?i.parent=Array.isArray(r)?n:r:o&&"object"==typeof o?i[a]=ts(o,t,i,r):("type"===a&&"CapturingGroup"===o&&t.set(i,t.get(e)??e),i[a]=o);return i}function ns(e){let t=Ga(e);return t.isRecursive=!0,t}function rs(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function is(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,"_")}`;return t.set(e,r),r}function as(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function os({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},!e&&(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}function ss(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function cs(e){let t=e.find(e=>"search_start"===e.kind||fs(e,{negate:!1})||!us(e));if(!t)return null;if("search_start"===t.kind)return t;if("LookaroundAssertion"===t.type)return t.body[0].body[0];if("CapturingGroup"===t.type||"Group"===t.type){let e=[];for(let r of t.body){let t=cs(r.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function ls(e,t){let r=ss(e)??[];for(let e of r)if(e===t||ls(e,t))return!0;return!1}function us({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}function ds(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}function fs(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&ya(e.body[0],{type:"Assertion",kind:"search_start"})}function ps(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Z(e,t){let r=Sa(e,{...t,unicodePropertyMap:Bo}).body;return r.length>1||r[0].body.length>1?V({body:r}):r[0].body[0]}function ms(e,t){return e.negate=t,e}function Q(e,t){return e.parent=t,e}function $(e,t){return Qo(e),e.parent=t,e}function hs(e,t){let r=Io(t),n=Mo(r.target,"ES2024"),i=Mo(r.target,"ES2025"),a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];ro(e,gs,{getCurrentModI:()=>
47t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!o||s)},u=e,c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!(i||!o||!s),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(e){return c.lastNode=u,u=e,No(_s[e.type],`Unexpected node type "${e.type}"`)(e,c,p)}let d={pattern:e.body.map(p).join("|"),flags:p(e.flags),options:{...e.options}};return n||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&d._hiddenCaptures.push(t),e.transferTo&&jo(d._captureTransfers,e.transferTo,[]).push(t)}),d}var gs={"*":{enter({node:e},t){if(ks(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Ao({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){ks(e)&&t.popModI()}}
47,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Cs(K(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),ws(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&qo.has(e.value)&&t.setHasCasedChar()}},_s={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?q`\B`:q`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=K(e),n=Ts(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Cs(r)){let e=zo(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:i,parent:a}=e,{body:o}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");J.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(js)&&(o=[Fa(45),...o.filter(e=>!js(e))]);let s=()=>`[${i?"^":""}${o.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||J.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=V(),i=n.body[0];return n.parent=a,i.parent=n,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):n.body.pop(),t.forEach(e=>{let t=B({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=s();return t.inCharClass=!1,n}let l=o[0];if("union"===n&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&(!J.bugFlagVLiteralHyphenIsRange||!t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===o.length&&"CharacterClassRange"!==l.type))return o.map(r).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Ts(r,i),o=Ts(n,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Es(ws(e)).forEach(e=>{s.add(Array.isArray(e)?`${Ts(e[0],i)}-${Ts(e[1],i)}`:Ts(e,i))}),`${a}-${o}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":q`[^\n]`;if("digit"===e)return t?q`\D`:q`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&qo.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?q`\P`:q`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?q`\W`:q`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},i,a){let o=i.currentFlags;r&&(i.currentFlags=Ao(o,r));let s=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===n.type||e||i.useFlagMods&&r?`(?${Ds(e,r,i.useFlagMods)}${s})`:s;return i.currentFlags=o,l},LookaroundAssertion:({body:e,kind:t,negate:r},n,i)=>`(?${"lookahead"===t?"":"<"}${r?"!":"="}${e.map(i).join("|")})`,Quantifier:(e,t,r)=>r(e.body)+Os(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:q`\g<${t}&R=${n}>`}},vs=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ys=new Set(["-","\\","]","^","["]),bs=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>
47?@`~".split("")),xs=new Map([[9,q`\t`],[10,q`\n`],[11,q`\v`],[12,q`\f`],[13,q`\r`],[8232,q`\u2028`],[8233,q`\u2029`],[65279,q`\uFEFF`]]),Ss=/^\p{Cased}$/u;function Cs(e){return Ss.test(e)}function ws(e,t){let r=!!t?.firstOnly,n=e.min.value,i=e.max.value,a=[];if(n<65&&(65535===i||i>=131071)||65536===n&&i>=131071)return a;for(let e=n;e<=i;e++){let t=K(e);if(!Cs(t))continue;let o=zo(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>i});if(o.length&&(a.push(...o),r))break}return a}function Ts(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(xs.has(e))return xs.get(e);if(e<32||e>126&&e<160||e>262143||t&&As(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let i=r?n?bs:ys:vs,a=K(e);return(i.has(a)?"\\":"")+a}function Es(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r}function Ds(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}function Os({kind:e,max:t,min:r}){let n;return n=r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?",n+{greedy:"",lazy:"?",possessive:"+"}[e]}function ks({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function As(e){return e>47&&e<58}function js({type:e,value:t}){return"Character"===e&&45===t}var Ms=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){let i=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");let i=t;super(i,r),this.#r=i.source,i instanceof e&&(this.#e=i.#e,this.#n=i.#n,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#r=t,this.#e=Ps(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=n??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#i&&r&&n){this.lastIndex=0;let e=this.#a(t.slice(n));return e&&(Ns(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let r,n=[...t];t.length=1,this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&void 0!==n[e]){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#n||=Fs(this.source);let i=this.#n.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Ns(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}function Ps(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)jo(r,t,{}).transferTo=e;return r}function Fs(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,i=0,a=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:o}}=t;"["===e?i++:i?"]"===e&&i--:r&&(a++,o&&n.set(a,o))}return n}function Is(e,t){let r=Ls(e,t);return r.options?new Ms(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Ls(e,t){let r=Io(t),n=Jo(Sa(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Bo}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=hs(n,r),a=wo(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),o=go(yo(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=o.hiddenCaptures.sort((e,t)=>
47e-t),t=Array.from(o.captureTransfers),i=n._strategy,a=s.pattern.length>=r.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function Rs(e,t){return Is(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function zs(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>Rs(e,{target:t.target}),{createScanner:e=>new Pi(e,t),createString:e=>({content:e})}}var Gs,Bs=[{id:"abap",name:"ABAP",import:()=>import("./abap-DF4NaQCD.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("./actionscript-3-DD7XPL4p.js")},{id:"ada",name:"Ada",import:()=>import("./ada-d7eD92uQ.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("./angular-html-CRox-t8O.js").then(e=>e.n)},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("./angular-ts-BknGBJUq.js")},{id:"apache",name:"Apache Conf",import:()=>import("./apache-zsgjHeYU.js")},{id:"apex",name:"Apex",import:()=>import("./apex-BeofpIBa.js")},{id:"apl",name:"APL",import:()=>import("./apl-BRa3IXvj.js")},{id:"applescript",name:"AppleScript",import:()=>import("./applescript-D_ETOzPj.js")},{id:"ara",name:"Ara",import:()=>import("./ara-CXdsJbD3.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("./asciidoc-0QzBkr0X.js")},{id:"asm",name:"Assembly",import:()=>import("./asm-DLrPCi7c.js")},{id:"astro",name:"Astro",import:()=>import("./astro-W8MOOIRg.js")},{id:"awk",name:"AWK",import:()=>import("./awk-452npsTH.js")},{id:"ballerina",name:"Ballerina",import:()=>import("./ballerina-8wA0eHgr.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("./bat-C_-1s8II.js")},{id:"beancount",name:"Beancount",import:()=>import("./beancount-R_9qll1W.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("./berry-oDXeVIfk.js")},{id:"bibtex",name:"BibTeX",import:()=>import("./bibtex-CAeObnSR.js")},{id:"bicep",name:"Bicep",import:()=>import("./bicep-udSZHxea.js")},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>import("./bird2-BUfgFdWV.js")},{id:"blade",name:"Blade",import:()=>import("./blade-PPPmP2Ar.js")},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>import("./bsl-C4EWyOPY.js")},{id:"c",name:"C",import:()=>import("./c-IJqTQrN2.js").then(e=>e.n)},{id:"c3",name:"C3",import:()=>import("./c3-BnD4OEJg.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("./cadence-C2DNIpxD.js")},{id:"cairo",name:"Cairo",import:()=>import("./cairo-DDVKUQVh.js")},{id:"clarity",name:"Clarity",import:()=>import("./clarity-NkpJCD6R.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("./clojure-g5hblQ59.js")},{id:"cmake",name:"CMake",import:()=>import("./cmake-D30WusUY.js")},{id:"cobol",name:"COBOL",import:()=>import("./cobol-D6BBfc5d.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("./codeowners-a_Z0p9_y.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("./codeql-BkSUw1F6.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("./coffee-8e6DulQt.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("./common-lisp-D2PkvS4V.js")},{id:"coq",name:"Coq",import:()=>import("./coq-CZH6C0pT.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("./cpp-D8fiGENf.js").then(e=>e.n)},{id:"crystal",name:"Crystal",import:()=>import("./crystal-CrmS4e-7.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("./csharp-D_Xikryw.js")},{id:"css",name:"CSS",import:()=>import("./css-Ccd7f3WF.js").then(e=>e.n)},{id:"csv",name:"CSV",import:()=>import("./csv-DFU5sVkH.js")},{id:"cue",name:"CUE",import:()=>import("./cue-cdFZcSz0.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("./cypher-DRjO_s97.js")},{id:"d",name:"D",import:()=>import("./d-BTgKsJ9x.js")},{id:"dart",name:"Dart",import:()=>import("./dart-9xK-pqrO.js")},{id:"dax",name:"DAX",import:()=>import("./dax-DMzovUnU.js")},{id:"desktop",name:"Desktop",import:()=>import("./desktop-0YG2NeB2.js")},{id:"diff",name:"Diff",import:()=>import("./diff-D0WgTNQn.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("./docker-DMpUQ2UE.js")},{id:"dotenv",name:"dotEnv",import:()=>import("./dotenv-BQQGfUx-.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("./dream-maker-Br_aTy0D.js")},{id:"edge",name:"Edge",import:()=>import("./edge-CXwi9EJG.js")},{id:"elixir",name:"Elixir",import:()=>import("./elixir-DybNNMBZ.js")},{id:"elm",name:"Elm",import:()=>import("./elm-B7yXmJY8.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("./emacs-lisp-DD-hFT_x.js")},{id:"erb",name:"ERB",import:()=>import("./erb-BB6rXENe.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("./erlang-Bxj10zMv.js")},{id:"fennel",name:"Fennel",import:()=>import("./fennel-XqmdNU54.js")},{id:"fish",name:"Fish",import:()=>import("./fish-DnIfDEl-.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("./fluent-Dv7iXi9Q.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("./fortran-fixed-form-BFaFXyMt.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("./fortran-free-form-B6CnEX04.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("./fsharp-DKMISepn.js")}
47,{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>import("./gdresource-Bgqojv8_.js")},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>import("./gdscript-C74XTZnl.js")},{id:"gdshader",name:"GDShader",import:()=>import("./gdshader-C-YpNGc4.js")},{id:"genie",name:"Genie",import:()=>import("./genie-eGJU5Fha.js")},{id:"gherkin",name:"Gherkin",import:()=>import("./gherkin-DPafK1RH.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("./git-commit-B9UZWlFO.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("./git-rebase-CXmj3gEl.js")},{id:"gleam",name:"Gleam",import:()=>import("./gleam-DDi89CaZ.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("./glimmer-js-e-roR2df.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("./glimmer-ts-kMHz03dt.js")},{id:"glsl",name:"GLSL",import:()=>import("./glsl-zjcGPDIB.js").then(e=>e.n)},{id:"gn",name:"GN",import:()=>import("./gn-CFzP8_PD.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("./gnuplot-Dwu09Wsa.js")},{id:"go",name:"Go",import:()=>import("./go-BCJXhiID.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("./graphql-CvNxR5MY.js").then(e=>e.n)},{id:"groovy",name:"Groovy",import:()=>import("./groovy-CmZ205Qh.js")},{id:"hack",name:"Hack",import:()=>import("./hack-Dgv6vPmX.js")},{id:"haml",name:"Ruby Haml",import:()=>import("./haml-CBtpda7n.js").then(e=>e.n)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("./handlebars-CBAHD-07.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("./haskell-DSSJ-2AO.js")},{id:"haxe",name:"Haxe",import:()=>import("./haxe-DYIi7e35.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("./hcl-BxX70ue-.js")},{id:"hjson",name:"Hjson",import:()=>import("./hjson-Znrrrv1t.js")},{id:"hlsl",name:"HLSL",import:()=>import("./hlsl-D-dP8z1U.js")},{id:"html",name:"HTML",import:()=>import("./html-QXUBK8cl.js").then(e=>e.n)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("./html-derivative-BbHjb5uX.js")},{id:"http",name:"HTTP",import:()=>import("./http-IlonLuIv.js")},{id:"hurl",name:"Hurl",import:()=>import("./hurl-B2F86_9i.js")},{id:"hxml",name:"HXML",import:()=>import("./hxml-DTnISDk7.js")},{id:"hy",name:"Hy",import:()=>import("./hy-Cd4h6N3W.js")},{id:"imba",name:"Imba",import:()=>import("./imba-DdhTsO9l.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("./ini-CmgEGOBJ.js")},{id:"java",name:"Java",import:()=>import("./java-Cns77_fi.js").then(e=>e.n)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>import("./javascript-Dscxl5XQ.js").then(e=>e.n)},{id:"jinja",name:"Jinja",import:()=>import("./jinja-D8stHVgx.js")},{id:"jison",name:"Jison",import:()=>import("./jison-CwV1bE9R.js")},{id:"json",name:"JSON",import:()=>import("./json-DA3dEAuc.js").then(e=>e.n)},{id:"json5",name:"JSON5",import:()=>import("./json5-D2Eltym1.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("./jsonc-BPIJyZ7u.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("./jsonl-BGkjXns2.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("./jsonnet-DsRfEVPr.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("./jssm-DP2pbfxn.js")},{id:"jsx",name:"JSX",import:()=>import("./jsx-DaEJWCSR.js").then(e=>e.n)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("./julia-CY0gx6so.js")},{id:"just",name:"Just",import:()=>import("./just-BXzVFuCy.js")},{id:"kdl",name:"KDL",import:()=>import("./kdl-BdIUXyK8.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("./kotlin-CQsNEM2o.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("./kusto-CiUJICDq.js")},{id:"latex",name:"LaTeX",import:()=>import("./latex-D2lXKl6n.js")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>import("./lean-D3P_r_z_.js")},{id:"less",name:"Less",import:()=>import("./less-9LYkHheD.js")},{id:"liquid",name:"Liquid",import:()=>import("./liquid-BVwlOhBj.js")},{id:"llvm",name:"LLVM IR",import:()=>import("./llvm-BZ-9x1Lq.js")},{id:"log",name:"Log file",import:()=>import("./log-DvQMOE69.js")},{id:"logo",name:"Logo",import:()=>import("./logo-Cl5E_QyH.js")},{id:"lua",name:"Lua",import:()=>import("./lua-Ca6twp8_.js").then(e=>e.n)}
47,{id:"luau",name:"Luau",import:()=>import("./luau-C-r62ale.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("./make-CE9Hryyp.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("./markdown-nUtTZkU8.js")},{id:"marko",name:"Marko",import:()=>import("./marko-qZ_iRgkg.js")},{id:"matlab",name:"MATLAB",import:()=>import("./matlab-fM7rwTZt.js")},{id:"mdc",name:"MDC",import:()=>import("./mdc-7DzS8hai.js")},{id:"mdx",name:"MDX",import:()=>import("./mdx-DswfiFg4.js")},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>import("./mermaid-D4X-e3rK.js")},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>import("./mipsasm-DbPELTlh.js")},{id:"mojo",name:"Mojo",import:()=>import("./mojo-DO3SwCZN.js")},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>import("./moonbit-BRyCXbVu.js")},{id:"move",name:"Move",import:()=>import("./move-D1Ne4dqA.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("./narrat-9pGDjQTI.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("./nextflow-DtcsDM1G.js")},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>import("./nextflow-groovy-HKlXumGK.js")},{id:"nginx",name:"Nginx",import:()=>import("./nginx-fbB-gJ1M.js")},{id:"nim",name:"Nim",import:()=>import("./nim-Rz2C8BfE.js")},{id:"nix",name:"Nix",import:()=>import("./nix-CwcLdFnB.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("./nushell-DrP4m5HL.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("./objective-c-DK-EKgyd.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("./objective-cpp-CXtEgxjw.js")},{id:"ocaml",name:"OCaml",import:()=>import("./ocaml-BO-0Wjtk.js")},{id:"odin",name:"Odin",import:()=>import("./odin-BDNmOx6H.js")},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>import("./openscad-B8gTrm-E.js")},{id:"pascal",name:"Pascal",import:()=>import("./pascal-CRtegPzh.js")},{id:"perl",name:"Perl",import:()=>import("./perl-DtH1sh3r.js")},{id:"php",name:"PHP",import:()=>import("./php-BiU9nBDI.js")},{id:"pkl",name:"Pkl",import:()=>import("./pkl-C53Sb050.js")},{id:"plsql",name:"PL/SQL",import:()=>import("./plsql-Bx7tup_v.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("./po-DSTB2Mz9.js")},{id:"polar",name:"Polar",import:()=>import("./polar-E3hAEXm5.js")},{id:"postcss",name:"PostCSS",import:()=>import("./postcss-BZib8l4b.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("./powerquery-CJblX2B2.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("./powershell-C03Xi8fb.js")},{id:"prisma",name:"Prisma",import:()=>import("./prisma-4kxUlEbd.js")},{id:"prolog",name:"Prolog",import:()=>import("./prolog-Ce1YjgEP.js")},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>import("./proto-DGLklcji.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("./pug-BZjVc3-b.js")},{id:"puppet",name:"Puppet",import:()=>import("./puppet-B2qoEJs2.js")},{id:"purescript",name:"PureScript",import:()=>import("./purescript-Cq_6EhvO.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("./python-D0AaDoWC.js")},{id:"qml",name:"QML",import:()=>import("./qml-DSL4fNtu.js")},{id:"qmldir",name:"QML Directory",import:()=>import("./qmldir-BSWsNKCW.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("./qss-CT2jsqXX.js")},{id:"r",name:"R",import:()=>import("./r-xtLBrEeG.js").then(e=>e.n)},{id:"racket",name:"Racket",import:()=>import("./racket-B0_wXtli.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("./raku-DKDZy5Ck.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("./razor-CDhJ32dp.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("./reg-D6txjqBF.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("./regexp-Db7Rk74V.js").then(e=>e.n)},{id:"rel",name:"Rel",import:()=>import("./rel-CY3GbSca.js")},{id:"riscv",name:"RISC-V",import:()=>import("./riscv-BKjM5F1V.js")},{id:"ron",name:"RON",import:()=>import("./ron-DJgcWJZU.js")},{id:"rosmsg",name:"ROS Interface",import:()=>import("./rosmsg-BTByjkSH.js")}
47,{id:"rst",name:"reStructuredText",import:()=>import("./rst-RWNE4HlG.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("./ruby-wB2DV1H9.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("./rust-BrRMzTsN.js")},{id:"sas",name:"SAS",import:()=>import("./sas-Djirt3Bx.js")},{id:"sass",name:"Sass",import:()=>import("./sass-CL6GLiPQ.js")},{id:"scala",name:"Scala",import:()=>import("./scala-BST3Nfcj.js")},{id:"scheme",name:"Scheme",import:()=>import("./scheme-BksZ4zIw.js")},{id:"scss",name:"SCSS",import:()=>import("./scss-C_U-FHPQ.js").then(e=>e.n)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>import("./sdbl-CLOIgNSF.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("./shaderlab-kr2wI6RN.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("./shellscript-How4Stvi.js").then(e=>e.n)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("./shellsession-BJqgg3lj.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("./smalltalk-DpZ76Hck.js")},{id:"solidity",name:"Solidity",import:()=>import("./solidity-C6WZChM7.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("./soy-Dc18fHas.js")},{id:"sparql",name:"SPARQL",import:()=>import("./sparql-VNe-quFh.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("./splunk-MGILMmew.js")},{id:"sql",name:"SQL",import:()=>import("./sql-BW4MhXo4.js").then(e=>e.n)},{id:"ssh-config",name:"SSH Config",import:()=>import("./ssh-config-CFmUyPR7.js")},{id:"stata",name:"Stata",import:()=>import("./stata-CyZevZFB.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("./stylus-Kh83dApl.js")},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>import("./surrealql-CukQnqb1.js")},{id:"svelte",name:"Svelte",import:()=>import("./svelte-CrcdGWXs.js")},{id:"swift",name:"Swift",import:()=>import("./swift-BkBDHPbH.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("./system-verilog-DZimthQt.js")},{id:"systemd",name:"Systemd Units",import:()=>import("./systemd-ArfzIYBi.js")},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>import("./talonscript-SIE54PtE.js")},{id:"tasl",name:"Tasl",import:()=>import("./tasl-Ck4PO08m.js")},{id:"tcl",name:"Tcl",import:()=>import("./tcl-DfkVwqLO.js")},{id:"templ",name:"Templ",import:()=>import("./templ-uyFYGlZ0.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("./terraform-DccThf6s.js")}
47,{id:"tex",name:"TeX",import:()=>import("./tex-DcqCaBwi.js")},{id:"toml",name:"TOML",import:()=>import("./toml-CIQJnU5u.js")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>import("./ts-tags-QVxTc2SN.js")},{id:"tsv",name:"TSV",import:()=>import("./tsv-AfvsdcL-.js")},{id:"tsx",name:"TSX",import:()=>import("./tsx-DzO2KeTF.js").then(e=>e.n)},{id:"turtle",name:"Turtle",import:()=>import("./turtle-D1NNZBgy.js")},{id:"twig",name:"Twig",import:()=>import("./twig-BYeKquVR.js")},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>import("./typescript-BNFc4VLP.js").then(e=>e.n)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("./typespec-fTjbyqRR.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("./typst-DXzoqiK9.js")},{id:"v",name:"V",import:()=>import("./v-Bfg6pRQ_.js")},{id:"vala",name:"Vala",import:()=>import("./vala-i5OYwFuH.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("./vb-BMo8sl0w.js")},{id:"verilog",name:"Verilog",import:()=>import("./verilog-Cq0B5e5o.js")},{id:"vhdl",name:"VHDL",import:()=>import("./vhdl-UepOATuw.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("./viml-DgaHry3T.js")},{id:"vue",name:"Vue",import:()=>
47import("./vue-Cf2-OwA9.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("./vue-html-B3gyjDmX.js")},{id:"vue-vine",name:"Vue Vine",import:()=>import("./vue-vine-Cy9yN4Fr.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("./vyper-BiyGiCmH.js")},{id:"wasm",name:"WebAssembly",import:()=>import("./wasm-DXa1gtBd.js")},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>import("./wenyan-Ke6AN0BI.js")},{id:"wgsl",name:"WGSL",import:()=>import("./wgsl-Vcm3Lg52.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("./wikitext-C4uDiSA9.js")},{id:"wit",name:"WebAssembly Interface Types",import:()=>import("./wit-hbIPZwZR.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("./wolfram-DGFnG0I5.js")},{id:"xml",name:"XML",import:()=>import("./xml-DG_mfYH3.js").then(e=>e.n)},{id:"xsl",name:"XSL",import:()=>import("./xsl-BBaTYo2b.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("./yaml-DGjSrzvW.js").then(e=>e.n)},{id:"zenscript",name:"ZenScript",import:()=>import("./zenscript-BtXHY1aa.js")},{id:"zig",name:"Zig",import:()=>import("./zig-BaU1vZRj.js")}],Vs=Object.fromEntries(Bs.map(e=>[e.id,e.import])),Hs=Object.fromEntries(Bs.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Us={...Vs,...Hs},Ws=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("./andromeeda-CpDTwrnP.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("./aurora-x-D-vl_xwF.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("./ayu-dark-DH5JeDI7.js")},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>import("./ayu-light-ByVaM5Ct.js")},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>import("./ayu-mirage-CytAWUfY.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>import("./catppuccin-frappe-Ck9Qd93R.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("./catppuccin-latte-OKmZ1rt_.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("./catppuccin-macchiato-BUnElb54.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("./catppuccin-mocha-DSoUEVHq.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("./dark-plus-CmxWNO6S.js")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>import("./dracula-CCJGZQ11.js")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>import("./dracula-soft-BGjHOkJM.js")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>import("./everforest-dark-CjPow6YD.js")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>import("./everforest-light-CpmMGLgh.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("./github-dark-K38cUQ_H.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("./github-dark-default-cjog6Gf5.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("./github-dark-dimmed-DGpFLRKA.js")},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>import("./github-dark-high-contrast-CjyG8N8M.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("./github-light-BNATdIQg.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("./github-light-default-Cqsx6ekm.js")},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>import("./github-light-high-contrast-BmmLMc9z.js")},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>import("./gruvbox-dark-hard-9la-bvwY.js")},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>import("./gruvbox-dark-medium-CkgGTfSM.js")},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>import("./gruvbox-dark-soft-DHaZZ0t-.js")},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>import("./gruvbox-light-hard-DV87MS4S.js")},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>import("./gruvbox-light-medium--mXKZ_dy.js")},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>import("./gruvbox-light-soft-Cdy9h5bx.js")},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>
47import("./horizon-BdK5fxH9.js")},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>import("./horizon-bright-CC23Qhma.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("./houston-DKouax24.js")},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>import("./kanagawa-dragon-Bf5i756n.js")},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>import("./kanagawa-lotus-CGq2T1OW.js")},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>import("./kanagawa-wave-B6SH8OUQ.js")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>import("./laserwave-CxIU8ou-.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("./light-plus-C8UPX5H3.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("./material-theme-ChBt6Hjn.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("./material-theme-darker-B8vsEZ12.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("./material-theme-lighter-ZKatlisC.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("./material-theme-ocean-DW_RGR2Q.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("./material-theme-palenight-CXVKcT5P.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("./min-dark-DTsu-DGX.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("./min-light-BpsODglG.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("./monokai-C8OjdoRJ.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("./night-owl-bcsm3-d2.js")},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>import("./night-owl-light-qncJSyDn.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("./nord-DJE1_20A.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("./one-dark-pro-CHETdgIF.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("./one-light-Cz4nfGF7.js")},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>import("./plastic-DTVU8PnI.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("./poimandres-rz9nHwYg.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("./red-BJ_FX1tV.js")},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>import("./rose-pine-DucRx-dU.js")},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>import("./rose-pine-dawn-BOc5GaZJ.js")},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>import("./rose-pine-moon-Cen-0Wvl.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("./slack-dark-BvuC6PU-.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("./slack-ochin-Clq4_5dq.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("./snazzy-light-CeHcO80M.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("./solarized-dark-CVp1xghk.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("./solarized-light-C4DPY0rO.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("./synthwave-84-D-W56B2i.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("./tokyo-night-DB6-dnPx.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("./vesper-C-Pkl1EJ.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("./vitesse-black-S-o-yAJ1.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("./vitesse-dark-Dsv3pC8X.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("./vitesse-light-CrXAfcVV.js")}].map(e=>[e.id,e.import])),Ks=new Map,qs=new Map;function Js(e,t){if(e.getLoadedLanguages().includes(t))return;let r=Us[t];if(!r)return;let n=t,i=Ks.get(n);
47return i||(i=e.loadLanguage(r).finally(()=>{Ks.delete(n)}),Ks.set(n,i)),i}function Ys(e,t){if(e.getLoadedThemes().includes(t))return;let r=Ws[t];if(!r)return;let n=t,i=qs.get(n);return i||(i=e.loadTheme(r).finally(()=>{qs.delete(n)}),qs.set(n,i)),i}async function Xs(e,t){Gs??=Mi({themes:[],langs:[],engine:zs()});let r=await Gs;return await Promise.all([Js(r,e),...t.map(e=>Ys(r,e))]),r}export{Xs as getHighlighter,t};
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.