1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-CU67Zn6k.js","./html-GMplVEZG.js","./javascript-wDzz0qaB.js","./css-DPfMkruS.js","./angular-ts-BwZT4LLn.js","./scss-OYdSNvt2.js","./apl-dKokRX4l.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./json-Cp-IABpG.js","./astro-CbQHKStN.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-D4QpJJKB.js","./html-derivative-BFtXZ54Q.js","./sql-BLtJtn59.js","./bsl-BO_Y6i37.js","./sdbl-DVxCFoDh.js","./cairo-KRGpt6FW.js","./python-B6aJPvgy.js","./cobol-nwyudZeR.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./crystal-tKQVLTB8.js","./shellscript-Yzrsuije.js","./edge-BkV0erSs.js","./elixir-CDX3lj18.js","./elm-DbKCFpqz.js","./erb-B12qg9BL.js","./ruby-Dw2BHqvy.js","./haml-B8DHNrY2.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./lua-BaeVxFsk.js","./yaml-Buea-lGh.js","./erlang-DsQrWhSR.js","./markdown-Cvjx9yec.js","./fortran-fixed-form-CkoXwp7k.js","./fortran-free-form-BxgE0vQu.js","./fsharp-CXgrBDvD.js","./gdresource-BOOCDP_w.js","./gdshader-DkwncUOv.js","./gdscript-C5YyOfLZ.js","./git-commit-F4YmCXRG.js","./diff-D97Zzqfu.js","./git-rebase-r7XF79zn.js","./glimmer-js-Rg0-pVw9.js","./glimmer-ts-U6CK756n.js","./hack-CaT9iCJl.js","./handlebars-BL8al0AC.js","./http-jrhK8wxY.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./hxml-Bvhsp5Yf.js","./haxe-CzTSHFRz.js","./jinja-4LBKfQ-Z.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./r-Dspwwk_N.js","./just-Cw27pwNe.js","./perl-C0TMdlhV.js","./latex-CWtU0Tv5.js","./tex-idrVyKtj.js","./liquid-DYVedYrR.js","./marko-CnJfTvn9.js","./less-B1dDrJ26.js","./mdc-BMNejdWA.js","./nextflow-Zz6hmt5N.js","./nextflow-groovy-BeH2EWoN.js","./nginx-BpAMiNFr.js","./nim-CVrawwO9.js","./php-Dhbhpdrm.js","./pug-CGlum2m_.js","./qml-3beO22l8.js","./razor-Uh8Bk_45.js","./csharp-COcwbKMJ.js","./rst-BrH8l1NY.js","./cmake-D1j8_8rp.js","./sas-cz2c8ADy.js","./shaderlab-Dg9Lc6iA.js","./hlsl-D3lLCCz7.js","./shellsession-BADoaaVG.js","./soy-Brmx7dQM.js","./sparql-rVzFXLq3.js","./turtle-BsS91CYL.js","./stata-BH5u7GGu.js","./surrealql-Bq5Q-fJD.js","./svelte-C_ipcX3V.js","./templ-P3uqSqPl.js","./go-CxLEBnE3.js","./ts-tags-zn1MmPIZ.js","./twig-DNn4PbVi.js","./vue-DN_0RTcg.js","./vue-html-AaS7Mt5G.js","./vue-vine-CQOfvN7w.js","./stylus-BEDo0Tqx.js","./xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]); 2var Pi=Object.defineProperty;var Oi=Object.getPrototypeOf;var xi=Reflect.get;var kr=t=>{throw TypeError(t)};var Di=(t,e,r)=>e in t?Pi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var g=(t,e,r)=>Di(t,typeof e!="symbol"?e+"":e,r),Rt=(t,e,r)=>e.has(t)||kr("Cannot "+r);var F=(t,e,r)=>(Rt(t,e,"read from private field"),r?r.call(t):e.get(t)),fe=(t,e,r)=>e.has(t)?kr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Q=(t,e,r,n)=>(Rt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Lt=(t,e,r)=>(Rt(t,e,"access private method"),r);var Sr=(t,e,r)=>xi(Oi(t),r,e);import{_ as c}from"./main-NBJ9NDOZ.js";let O=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ni(t){return lr(t)}function lr(t){return Array.isArray(t)?Vi(t):t instanceof RegExp?t:typeof t=="object"?$i(t):t}function Vi(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=lr(t[r]);return e}function $i(t){let e={};for(let r in t)e[r]=lr(t[r]);return e}function gn(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function _n(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?_n(t.substring(0,t.length-1)):t.substr(~e+1)}var Tt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ye=class{static hasCaptures(t){return t===null?!1:(Tt.lastIndex=0,Tt.test(t))}static replaceCaptures(t,e,r){return t.replace(Tt,(n,i,o,a)=>{let s=r[parseInt(i||o,10)];if(s){let l=e.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function yn(t,e){return t<e?-1:t>e?1:0}function En(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=yn(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function Ir(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function bn(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}
2var wn=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},ut=class{constructor(t,e,r){g(this,"_cachedMatchRoot",new wn(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(Bi(t),e)}static createFromParsedTheme(t,e){return Fi(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Mi(t.parent,i.parentScopes));return n?new vn(n.fontStyle,n.foreground,n.background):null}},Pt=class ot{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new ot(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new ot(r,e[n]);return r}push(e){return new ot(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Mi(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!Gi(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Gi(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var vn=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function Bi(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let p=a.settings.fontStyle.split(" ");for(let d=0,h=p.length;d<h;d++)switch(p[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof a.settings.foreground=="string"&&Ir(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&Ir(a.settings.background)&&(m=a.settings.background);for(let p=0,d=s.length;p<d;p++){let f=s[p].trim().split(" "),b=f[f.length-1],w=null;f.length>1&&(w=f.slice(0,f.length-1),w.reverse()),r[n++]=new Ui(b,w,i,l,u,m)}}return r}var Ui=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},G=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(G||{});function Fi(t,e){t.sort((l,u)=>{let m=yn(l.scope,u.scope);return m!==0||(m=En(l.parentScopes,u.parentScopes),m!==0)?m:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new ji(e),a=new vn(r,o.getId(n),o.getId(i)),s=new Wi(new Wt(0,null,-1,0,0),[]);for(let l=0,u=t.length;l<u;l++){let m=t[l];s.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ut(o,a,s)}var ji=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}}
2,Hi=Object.freeze([]),Wt=class Cn{constructor(e,r,n,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=r||Hi,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Cn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Wi=class zt{constructor(e,r=[],n={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(zt._cmpBySpecificity),r}insert(e,r,n,i,o,a){if(r===""){this._doInsertHere(e,n,i,o,a);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let m;this._children.hasOwnProperty(l)?m=this._children[l]:(m=new zt(this._mainRule.clone(),Wt.cloneArr(this._rulesWithParentScopes)),this._children[l]=m),m.insert(e+1,u,n,i,o,a)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(En(l.parentScopes,r)===0){l.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Wt(e,r,n,i,o))}},Oe=class z{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=z.getLanguageId(e),n=z.getTokenType(e),i=z.getFontStyle(e),o=z.getForeground(e),a=z.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,o,a,s){let l=z.getLanguageId(e),u=z.getTokenType(e),m=z.containsBalancedBrackets(e)?1:0,p=z.getFontStyle(e),d=z.getForeground(e),h=z.getBackground(e);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(m=i?1:0),o!==-1&&(p=o),a!==0&&(d=a),s!==0&&(h=s),(l<<0|u<<8|m<<10|p<<11|d<<15|h<<24)>>>0}};function ct(t,e){const r=[],n=zi(t);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(Rr(i)){const l=[];do l.push(i),i=n.next();while(Rr(i));return u=>e(l,u)}return null}function a(){const l=[];let u=o();for(;u;)l.push(u),u=o();return m=>l.every(p=>p(m))}function s(){const l=[];let u=a();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return m=>l.some(p=>p(m))}}function Rr(t){return!!t&&!!t.match(/[\w\.:]+/)}function zi(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function An(t){typeof t.dispose=="function"&&t.dispose()}var Ue=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},qi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Xi=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Ki=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ue(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new Xi;for(const r of t)Qi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ue){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Qi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof Ue?at({baseGrammar:o,selfGrammar:i},n):qt(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=r.injections(t.scopeName);if(a)for(const s of a)n.add(new Ue(s))}function qt(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];pt([n],e,r)}}function at(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&pt(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&pt(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function pt(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?gn({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&pt(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const a=kn(o);switch(a.kind){case 0:at({...e,selfGrammar:e.baseGrammar},r);break;case 1:at(e,r);break;case 2:qt(a.ruleName,{...e,repository:i},r);break;case 3:case 4:const s=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){const l={baseGrammar:e.baseGrammar,selfGrammar:s,repository:i};a.kind===4?qt(a.ruleName,l,r):at(l,r)}else a.kind===4?r.add(new qi(a.scopeName,a.ruleName)):r.add(new Ue(a.scopeName));break}}}var Ji=class{constructor(){g(this,"kind",0)}},Yi=class{constructor(){g(this,"kind",1)}},Zi=class{constructor(t){g(this,"kind",2);this.ruleName=t}},eo=class{constructor(t){g(this,"kind",3);this.scopeName=t}},to=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function kn(t){if(t==="$base")return new Ji;if(t==="$self")return new Yi;const e=t.indexOf("#");if(e===-1)return new eo(t);if(e===0)return new Zi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new to(r,n)}}var ro=/\\(\d+)/,Lr=/\\(\d+)/g,no=-1,Sn=-2;var Ke=class{constructor(t,e,r,n){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Ye.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ye.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${_n(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Ye.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ye.replaceCaptures(this._contentName,t,e)}},io=class extends Ke{constructor(e,r,n,i,o){super(e,r,n,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,r){throw new Error("Not supported!")}compile(e,r){throw new Error("Not supported!")}compileAG(e,r,n,i){throw new Error("Not supported!")}},oo=class extends Ke{constructor(e,r,n,i,o){super(e,r,n,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Fe(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}
2collectPatterns(e,r){r.push(this._match)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new je,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Tr=class extends Ke{constructor(e,r,n,i,o){super(e,r,n,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,r){for(const n of this.patterns)e.getRule(n).collectPatterns(e,r)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new je,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xt=class extends Ke{constructor(e,r,n,i,o,a,s,l,u,m){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Fe(o,this.id),this.beginCaptures=a,this._end=new Fe(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,r){return this._end.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e,r).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e,r).compileAG(e,n,i)}_getCachedCompiledPatterns(e,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new je;for(const n of this.patterns)e.getRule(n).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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},mt=class extends Ke{constructor(e,r,n,i,o,a,s,l,u){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Fe(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new Fe(s,Sn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,r){return this._while.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new je;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,r){return this._getCachedCompiledWhilePatterns(e,r).compile(e)}compileWhileAG(e,r,n,i){return this._getCachedCompiledWhilePatterns(e,r).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new je,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"ï¿¿"),this._cachedCompiledWhilePatterns}
2},In=class M{static createCaptureRule(e,r,n,i,o){return e.registerRule(a=>new io(r,a,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new oo(e.$vscodeTextmateLocation,e.id,e.name,e.match,M._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=gn({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Tr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,M._compilePatterns(o,r,n))}return e.while?new mt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,M._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,M._compileCaptures(e.whileCaptures||e.captures,r,n),M._compilePatterns(e.patterns,r,n)):new Xt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,M._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,M._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,M._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;e[a].patterns&&(l=M.getCompiledRuleId(e[a],r,n)),i[s]=M.createCaptureRule(r,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){const s=e[o];let l=-1;if(s.include){const u=kn(s.include);switch(u.kind){case 0:case 1:l=M.getCompiledRuleId(n[s.include],r,n);break;case 2:let m=n[u.ruleName];m&&(l=M.getCompiledRuleId(m,r,n));break;case 3:case 4:const p=u.scopeName,d=u.kind===4?u.ruleName:null,h=r.getExternalGrammar(p,n);if(h)if(d){let f=h.repository[d];f&&(l=M.getCompiledRuleId(f,r,h.repository))}else l=M.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else l=M.getCompiledRuleId(s,r,n);if(l!==-1){const u=r.getRule(l);let m=!1;if((u instanceof Tr||u instanceof Xt||u instanceof mt)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Fe=class Rn{constructor(e,r){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],a=!1;for(let s=0;s<n;s++)if(e.charAt(s)==="\\"&&s+1<n){const u=e.charAt(s+1);u==="z"?(o.push(e.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=ro.test(this.source):this.hasBackReferences=!1}clone(){return new Rn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return Lr.lastIndex=0,this.source.replace(Lr,(i,o)=>bn(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),e[o]=s,r[o]=s,n[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="ï¿¿",r[o+1]="ï¿¿",n[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="ï¿¿",r[o+1]="G",n[o+1]="ï¿¿",i[o+1]="G"):(e[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},je=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");
2this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new Pr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new Pr(t,n,this._items.map(i=>i.ruleId))}},Pr=class{constructor(t,e,r){g(this,"scanner");this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(` 3`)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Ot=class{constructor(t,e){this.languageId=t,this.tokenType=e}},ae,ao=(ae=class{constructor(e,r){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new wn(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Ot(r,n)}));this._defaultAttributes=new Ot(e,8),this._embeddedLanguagesMatcher=new so(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?ae._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(ae.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 new Error("Unexpected match for standard token type!")}},g(ae,"_NULL_SCOPE_METADATA",new Ot(0,0)),g(ae,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ae),so=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>bn(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Or=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Ln(t,e,r,n,i,o,a,s){const l=e.content.length;let u=!1,m=-1;if(a){const h=lo(t,e,r,n,i,o);i=h.stack,n=h.linePos,r=h.isFirstLine,m=h.anchorPosition}const p=Date.now();for(;!u;){if(s!==0&&Date.now()-p>s)return new Or(i,!0);d()}return new Or(i,!1);function d(){const h=uo(t,e,r,n,i,m);if(!h){o.produce(i,l),u=!0;return}const f=h.captureIndices,b=h.matchedRuleId,w=f&&f.length>0?f[0].end>n:!1;if(b===no){const E=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),Me(t,e,r,i,o,E.endCaptures,f),o.produce(i,f[0].end);const v=i;if(i=i.parent,m=v.getAnchorPos(),!w&&v.getEnterPos()===n){i=v,o.produce(i,l),u=!0;return}}else{const E=t.getRule(b);o.produce(i,f[0].start);const v=i,_=E.getName(e.content,f),C=i.contentNameScopesList.pushAttributed(_,t);if(i=i.push(b,n,m,f[0].end===l,null,C,C),E instanceof Xt){const A=E;Me(t,e,r,i,o,A.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const R=A.getContentName(e.content,f),I=C.pushAttributed(R,t);
3if(i=i.withContentNameScopesList(I),A.endHasBackReferences&&(i=i.withEndRule(A.getEndWithResolvedBackReferences(e.content,f))),!w&&v.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(E instanceof mt){const A=E;Me(t,e,r,i,o,A.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const R=A.getContentName(e.content,f),I=C.pushAttributed(R,t);if(i=i.withContentNameScopesList(I),A.whileHasBackReferences&&(i=i.withEndRule(A.getWhileWithResolvedBackReferences(e.content,f))),!w&&v.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Me(t,e,r,i,o,E.captures,f),o.produce(i,f[0].end),i=i.pop(),!w){i=i.safePop(),o.produce(i,l),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function lo(t,e,r,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const u=l.getRule(t);u instanceof mt&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:u,findOptions:m}=mo(l.rule,t,l.stack.endRule,r,n===a),p=u.findNextMatchSync(e,n,m);if(p){if(p.ruleId!==Sn){i=l.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(l.stack,p.captureIndices[0].start),Me(t,e,r,l.stack,o,l.rule.whileCaptures,p.captureIndices),o.produce(l.stack,p.captureIndices[0].end),a=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function uo(t,e,r,n,i,o){const a=co(t,e,r,n,i,o),s=t.getInjections();if(s.length===0)return a;const l=po(s,t,e,r,n,i,o);if(!l)return a;
3if(!a)return l;const u=a.captureIndices[0].start,m=l.captureIndices[0].start;return m<u||l.priorityMatch&&m===u?l:a}function co(t,e,r,n,i,o){const a=i.getRule(t),{ruleScanner:s,findOptions:l}=Tn(a,t,i.endRule,r,n===o),u=s.findNextMatchSync(e,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function po(t,e,r,n,i,o,a){let s=Number.MAX_VALUE,l=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let d=0,h=t.length;d<h;d++){const f=t[d];if(!f.matcher(p))continue;const b=e.getRule(f.ruleId),{ruleScanner:w,findOptions:E}=Tn(b,e,null,n,i===a),v=w.findNextMatchSync(r,i,E);if(!v)continue;const _=v.captureIndices[0].start;if(!(_>=s)&&(s=_,l=v.captureIndices,u=v.ruleId,m=f.priority,s===i))break}return l?{priorityMatch:m===-1,captureIndices:l,matchedRuleId:u}:null}function Tn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function mo(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Me(t,e,r,n,i,o,a){if(o.length===0)return;const s=e.content,l=Math.min(o.length,a.length),u=[],m=a[0].end;for(let p=0;p<l;p++){const d=o[p];if(d===null)continue;const h=a[p];if(h.length===0)continue;if(h.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(n,h.start),d.retokenizeCapturedWithRuleId){const b=d.getName(s,a),w=n.contentNameScopesList.pushAttributed(b,t),E=d.getContentName(s,a),v=w.pushAttributed(E,t),_=n.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,w,v),C=t.createOnigString(s.substring(0,h.end));Ln(t,C,r&&h.start===0,h.start,_,i,!1,0),An(C);continue}const f=d.getName(s,a);if(f!==null){const w=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);u.push(new ho(w,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ho=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function fo(t,e,r,n,i,o,a,s){return new _o(t,e,r,n,i,o,a,s)}function xr(t,e,r,n,i){const o=ct(e,dt),a=In.getCompiledRuleId(r,n,i.repository);for(const s of o)t.push({debugSelector:e,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function dt(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(go(e[i],n))return r=i+1,!0;return!1})}function go(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var _o=class{constructor(t,e,r,n,i,o,a,s){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new ao(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Dr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=ct(l,dt);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)xr(e,a,i[a],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&xr(e,l,s,this,s)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);
3if(r)return this._includedGrammars[t]=Dr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=In.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Kt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=Oe.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=Ge.createRootAndLookUpScopeName(d,p,this):h=Ge.createRoot("unknown",p),e=new Kt(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();t=t+` 4`;const o=this.createOnigString(t),a=o.content.length,s=new Eo(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Ln(this,o,i,0,e,s,!0,n);return An(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Dr(t,e){return t=Ni(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Ge=class ee{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=(e==null?void 0:e.scopePath)??null;for(const o of r)i=Pt.push(i,o.scopeNames),n=new ee(n,i,o.encodedTokenAttributes);return n}static createRoot(e,r){return new ee(null,new Pt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),o=new Pt(null,e),a=n.themeProvider.themeMatch(o),s=ee.mergeAttributes(r,i,a);return new ee(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return ee.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),Oe.set(e,r.languageId,r.tokenType,null,i,o,a)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return ee._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const o of n)i=ee._pushAttributed(i,o,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),o=e.scopePath.push(r),a=n.themeProvider.themeMatch(o),s=ee.mergeAttributes(e.tokenAttributes,i,a);return new ee(e,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===e?r.reverse():void 0}},q,Kt=(q=class{constructor(e,r,n,i,o,a,s,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return e===null?!1:q._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?Ge.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){q._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,o,a,s){return new q(this,e,r,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){var n,i;return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new q(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var e,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,r){const n=Ge.fromExtension((e==null?void 0:e.nameScopesList)??null,r.nameScopesList);return new q(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Ge.fromExtension(n,r.contentNameScopesList))}},g(q,"NULL",new q(null,0,0,0,!1,null,null,null)),q),yo=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ct(r,dt).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>ct(r,dt).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Eo=class{constructor(t,e,r,n){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var n;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,o=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>
40||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(t==null?void 0:t.getScopeNames())??[];for(const s of this._tokenTypeOverrides)s.matcher(a)&&(i=Oe.set(i,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(i=Oe.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const r=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},bo=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,fo(t,o,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},wo=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new bo(ut.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(ut.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new yo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,o){const a=new Ki(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(e,r,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,o)}},Qt=Kt.NULL;const vo=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Qe{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function Pn(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Qe(r,n,e)}function Jt(t){return t.toLowerCase()}class j{constructor(e,r){this.attribute=r,this.property=e}}j.prototype.attribute="";j.prototype.booleanish=!1;j.prototype.boolean=!1;j.prototype.commaOrSpaceSeparated=!1;j.prototype.commaSeparated=!1;j.prototype.defined=!1;j.prototype.mustUseProperty=!1;j.prototype.number=!1;j.prototype.overloadedBoolean=!1;j.prototype.property="";j.prototype.spaceSeparated=!1;j.prototype.space=void 0;let Co=0;const S=Ce(),P=Ce(),Yt=Ce(),y=Ce(),L=Ce(),Te=Ce(),H=Ce();function Ce(){return 2**++Co}const Zt=Object.freeze(Object.defineProperty({__proto__:null,boolean:S,booleanish:P,commaOrSpaceSeparated:H,commaSeparated:Te,number:y,overloadedBoolean:Yt,spaceSeparated:L},Symbol.toStringTag,{value:"Module"})),xt=Object.keys(Zt);class ur extends j{constructor(e,r,n,i){let o=-1;if(super(e,r),Nr(this,"space",i),typeof n=="number")for(;++o<xt.length;){const a=xt[o];Nr(this,xt[o],(n&Zt[a])===Zt[a])}}}ur.prototype.defined=!0;function Nr(t,e,r){r&&(t[e]=r)}function xe(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const o=new ur(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,r[Jt(n)]=n,r[Jt(o.attribute)]=n}return new Qe(e,r,t.space)}
vendor: 1,032 bytes, line 4
4const On=xe({properties:{ariaActiveDescendant:null,ariaAtomic:P,ariaAutoComplete:null,ariaBusy:P,ariaChecked:P,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:P,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:P,ariaFlowTo:L,ariaGrabbed:P,ariaHasPopup:null,ariaHidden:P,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:y,ariaLive:null,ariaModal:P,ariaMultiLine:P,ariaMultiSelectable:P,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:P,ariaReadOnly:P,ariaRelevant:null,ariaRequired:P,ariaRoleDescription:L,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:P,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function xn(t,e){return e in t?t[e]:e}function Dn(t,e){return xn(t,e.toLowerCase())}const Ao=xe({attributes:{acceptcharset:"accept-charset",classname:"
4class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:S,allowPaymentRequest:S,allowUserMedia:S,alt:null,as:null,async:S,autoCapitalize:null,autoComplete:L,autoFocus:S,autoPlay:S,blocking:L,capture:null,charSet:null,checked:S,cite:null,className:L,cols:y,colSpan:null,content:null,contentEditable:P,controls:S,controlsList:L,coords:y|Te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:S,defer:S,dir:null,dirName:null,disabled:S,download:Yt,draggable:P,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:S,formTarget:null,headers:L,height:y,hidden:Yt,high:y,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:S,inputMode:null,integrity:null,is:null,isMap:S,itemId:null,itemProp:L,itemRef:L,itemScope:S,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:S,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:S,muted:S,name:null,nonce:null,noModule:S,noValidate:S,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:S,optimum:y,pattern:null,ping:L,placeholder:null,playsInline:S,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:S,referrerPolicy:null,rel:L,required:S,reversed:S,rows:y,rowSpan:y,sandbox:L,scope:null,scoped:S,seamless:S,selected:S,shadowRootClonable:S,shadowRootDelegatesFocus:S,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:P,src:null,
4srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:S,useMap:null,value:P,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:S,declare:S,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:S,noHref:S,noShade:S,noWrap:S,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:P,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:S,disableRemotePlayback:S,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:Dn}),ko=xe({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",colorRendering:"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
4-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:H,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:L,clip: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:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:S,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,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:Te,g2:Te,glyphName:Te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:H,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,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:y,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,on
4Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:H,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:H,rev:H,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:H,requiredFeatures:H,requiredFonts:H,requiredFormats:H,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:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:H,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:H,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:H,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xn}),Nn=xe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Vn=xe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Dn}),$n=xe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),So=/[A-Z]/g,Vr=/-[a-z]/g,Io=/^data[-\w.:]+$/i;function Ro(t,e){const r=Jt(e);let n=e,i=j;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Io.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Vr,To);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Vr.test(o)){let a=o.replace(So,Lo);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=ur}return new i(n,e)}function Lo(t){return"-"+t.toLowerCase()}function To(t){return t.charAt(1).toUpperCase()}const Po=Pn([On,Ao,Nn,Vn,$n],"html"),Mn=Pn([On,ko,Nn,Vn,$n],"svg"),$r={}.hasOwnProperty;function Oo(t,e){const r=e||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&$r.call(i,t)){const l=String(i[t]);a=$r.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const xo=/["&'<>`]/g,Do=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,No=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Vo=/[|\\{}()[\]^$+*?.]/g,Mr=new WeakMap;function $o(t,e){if(t=t.replace(e.subset?Mo(e.subset):xo,n),e.subset||e.escapeOnly)return t;return t.replace(Do,r).replace(No,n);function r(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function n(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function Mo(t){let e=Mr.get(t);return e||(e=Go(t),Mr.set(t,e)),e}function Go(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(Vo,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Bo=/[\dA-Fa-f]/;function Uo(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!Bo.test(String.fromCharCode(e))?n:n+";"}const Fo=/\d/;function jo(t,e,r){const n="&#"+String(t);return r&&e&&!Fo.test(String.fromCharCode(e))?n:n+";"}const Ho=["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","oslas
4h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Dt={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
4:"â",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:"â¬"},Wo=["cent","copy","divide","gt","lt","not","para","times"],Gn={}.hasOwnProperty,er={};let Ze;for(Ze in Dt)Gn.call(Dt,Ze)&&(er[Dt[Ze]]=Ze);const zo=/[^\dA-Za-z]/;function qo(t,e,r,n){const i=String.fromCharCode(t);if(Gn.call(er,i)){const o=er[i],a="&"+o;return r&&Ho.includes(o)&&!Wo.includes(o)&&(!n||e&&e!==61&&zo.test(String.fromCharCode(e)))?a:a+";"}return""}function Xo(t,e,r){let n=Uo(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=qo(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=jo(t,e,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Pe(t,e){return $o(t,Object.assign({format:Xo},e))}const Ko=/^>|^->|<!--|-->|--!>|<!-$/g,Qo=[">"],Jo=["<",">"];function Yo(t,e,r,n){return n.settings.bogusComments?"<?"+Pe(t.value,Object.assign({},n.settings.characterReferences,{subset:Qo}))+">":"<!--"+t.value.replace(Ko,i)+"-->";function i(o){return Pe(o,Object.assign({},n.settings.characterReferences,{subset:Jo}))}}function Zo(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Gr(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}function ea(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function ta(t){return t.join(" ").trim()}const ra=/[ \t\n\f\r]/g;function cr(t){return typeof t=="object"?t.type==="text"?Br(t.value):!1:Br(t)}function Br(t){return t.replace(ra,"")===""}const N=Un(1),Bn=Un(-1),na=[];function Un(t){return e;function e(r,n,i){const o=r?r.children:na;let a=(n||0)+t,s=o[a];if(!i)for(;s&&cr(s);)a+=t,s=o[a];return s}}const ia={}.hasOwnProperty;function Fn(t){return e;function e(r,n,i){return ia.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const pr=Fn({body:aa,caption:Nt,colgroup:Nt,dd:ca,dt:ua,head:Nt,html:oa,li:la,optgroup:pa,option:ma,p:sa,rp:Ur,rt:Ur,tbody:ha,td:Fr,tfoot:fa,th:Fr,thead:da,tr:ga});function Nt(t,e,r){const n=N(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&cr(n.value.charAt(0)))}function oa(t,e,r){const n=N(r,e);return!n||n.type!=="comment"}function aa(t,e,r){const n=N(r,e);return!n||n.type!=="comment"}function sa(t,e,r){const n=N(r,e);return n?n.type==="element"&&(n.tagName==="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"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function la(t,e,r){const n=N(r,e);return!n||n.type==="element"&&n.tagName==="li"}function ua(t,e,r){const n=N(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function ca(t,e,r){const n=N(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Ur(t,e,r){const n=N(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function pa(t,e,r){const n=N(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function ma(t,e,r){const n=N(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function da(t,e,r){const n=N(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ha(t,e,r){const n=N(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function fa(t,e,r){return!N(r,e)}function ga(t,e,r){const n=N(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function Fr(t,e,r){const n=N(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const _a=Fn({body:ba,colgroup:wa,head:Ea,html:ya,tbody:va});function ya(t){const e=N(t,-1);return!e||e.type!=="comment"}function Ea(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function ba(t){const e=N(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&cr(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function wa(t,e,r){const n=Bn(r,e),i=N(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&pr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function va(t,e,r){const n=Bn(r,e),i=N(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&pr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const et={name:[[` 5\f\r &/=>`.split(""),` 6\f\r "&'/=>
6\``.split("")],[`\0 7\f\r "&'/<=>`.split(""),`\0 8\f\r "&'/<=>\``.split("")]],unquoted:[[` 9\f\r &>`.split(""),`\0 10\f\r "&'<=>\``.split("")],[`\0 11\f\r "&'<=>\``.split(""),`\0 12\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ca(t,e,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const s=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=Mn);const u=Aa(n,t.properties),m=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,m&&(a=!1),(u||!o||!_a(t,e,r))&&(s.push("<",t.tagName,u?" "+u:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(m),!a&&(!o||!pr(t,e,r))&&s.push("</"+t.tagName+">"),s.join("")}function Aa(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=ka(t,i,e[i]);o&&r.push(o)}}for(;++n<r.length;){const o=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function ka(t,e,r){const n=Ro(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let a=t.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Pe(n.attribute,Object.assign({},t.settings.characterReferences,{subset:et.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?ea:ta)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?l:(t.settings.preferUnquoted&&(s=Pe(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:et.unquoted[i][o]}))),s!==r&&(t.settings.quoteSmart&&Gr(r,a)>Gr(r,t.alternative)&&(a=t.alternative),s=a+Pe(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?et.single:et.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const Sa=["<","&"];function jn(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Pe(t.value,Object.assign({},n.settings.characterReferences,{subset:Sa}))}function Ia(t,e,r,n){return n.settings.allowDangerousHtml?t.value:jn(t,e,r,n)}function Ra(t,e,r,n){return n.all(t)}const La=Oo("type",{invalid:Ta,unknown:Pa,handlers:{comment:Yo,doctype:Zo,element:Ca,raw:Ia,root:Ra,text:jn}});function Ta(t){throw new Error("Expected node, not `"+t+"`")}function Pa(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Oa={},xa={},Da=[];function Na(t,e){const r=e||Oa,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Va,all:$a,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||vo,characterReferences:r.characterReferences||xa,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Mn:Po,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Va(t,e,r){return La(t,e,r,this)}function $a(t){const e=[],r=t&&t.children||Da;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}function ht(t,e){const r=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}
12))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function de(t,e){return t&&((e==null?void 0:e[t==null?void 0:t.toLowerCase()])||t)}function Ma(t){return Array.isArray(t)?t:[t]}async function Hn(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function mr(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Wn(t){return t==="ansi"||mr(t)}function dr(t){return t==="none"}function zn(t){return dr(t)}function qn(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties).class||(n.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const r=Array.isArray(e)?e:e.split(/\s+/g);for(const i of r)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function yt(t,e=!1){var o;if(t.length===0)return[["",0]];const r=t.split(/(\r?\n)/g);let n=0;const i=[];for(let a=0;a<r.length;a+=2){const s=e?r[a]+(r[a+1]||""):r[a];i.push([s,n]),n+=r[a].length,n+=((o=r[a+1])==null?void 0:o.length)||0}return i}function Ga(t){const e=yt(t,!0).map(([i])=>i);function r(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(const s of e){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function n(i,o){let a=0;for(let s=0;s<i;s++)a+=e[s].length;return a+=o,a}return{lines:e,indexToPos:r,posToIndex:n}}function Ba(t,e,r){const n=new Set;for(const o of t.matchAll(/:?lang=["']([^"']+)["']/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/\\begin\{([\w-]+)\}/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=o[1].toLowerCase().trim(),s=a.includes("/")?a.split("/").pop():a;s&&n.add(s)}if(!r)return Array.from(n);const i=r.getBundledLanguages();return Array.from(n).filter(o=>o&&i[o])}const hr="light-dark()",Ua=["color","background-color"];function Fa(t,e){let r=0;const n=[];for(const i of e)i>r&&n.push({...t,content:t.content.slice(r,i),offset:t.offset+r}),r=i;return r<t.content.length&&n.push({...t,content:t.content.slice(r),offset:t.offset+r}),n}function ja(t,e){const r=Array.from(e instanceof Set?e:new Set(e)).sort((n,i)=>n-i);return r.length?t.map(n=>n.flatMap(i=>{const o=r.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?Fa(i,o):i})):t}function Ha(t,e,r,n,i="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(m=>ft(t.variants[m])),s=new Set(a.flatMap(m=>Object.keys(m))),l={},u=(m,p)=>{const d=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return r+e[m]+(p==="color"?"":d)};return a.forEach((m,p)=>{for(const d of s){const h=m[d]||"inherit";if(p===0&&n&&Ua.includes(d))if(n===hr&&a.length>1){const f=e.findIndex(v=>v==="light"),b=e.findIndex(v=>v==="dark");if(f===-1||b===-1)throw new O('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=a[f][d]||"inherit",E=a[b][d]||"inherit";l[d]=`light-dark(${w}, ${E})`,i==="css-vars"&&(l[u(p,d)]=h)}else l[d]=h;else i==="css-vars"&&(l[u(p,d)]=h)}}),o.htmlStyle=l,o}function ft(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&G.Italic&&(e["font-style"]="italic"),t.fontStyle&G.Bold&&(e["font-weight"]="bold");const r=[];t.fontStyle&G.Underline&&r.push("underline"),t.fontStyle&G.Strikethrough&&r.push("line-through"),r.length&&(e["text-decoration"]=r.join(" "))}return e}function tr(t){return typeof t=="string"?t:Object.entries(t).map(([e,r])=>`${e}:${r}`).join(";")}const Xn=new WeakMap;function Et(t,e){Xn.set(t,e)}function He(t){return Xn.get(t)}class De{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){const[r,n]=e;this.lang=n,this._stacks=r}else{const[r,n,i]=e;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,r){return new De(Object.fromEntries(Ma(r).map(n=>[n,Qt])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Wa(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Wa(t){const e=[],r=new Set;function n(i){var a;if(r.has(i))return;r.add(i);const o=(a=i==null?void 0:i.nameScopesList)==null?void 0:a.scopeName;o&&e.push(o),i.parent&&n(i.parent)}return n(t),e}function za(t,e){if(!(t instanceof De))throw new O("Invalid grammar state");return t.getInternalStack(e)}function qa(){const t=new WeakMap;
12function e(r){if(!t.has(r.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new O(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...i.indexToPos(a),offset:a}}else{const s=i.lines[a.line];if(s===void 0)throw new O(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new O(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:i.posToIndex(a.line,l)}}};const i=Ga(r.source),o=(r.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));Xa(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}return{name:"shiki:decorations",tokens(r){var a;if(!((a=this.options.decorations)!=null&&a.length))return;const i=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return ja(r,i)},code(r){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const n=e(this),i=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(i.length!==n.converter.lines.length)throw new O(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(p,d,h,f){const b=i[p];let w="",E=-1,v=-1;if(d===0&&(E=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=b.children.length),E===-1||v===-1)for(let C=0;C<b.children.length;C++)w+=Kn(b.children[C]),E===-1&&w.length===d&&(E=C+1),v===-1&&w.length===h&&(v=C+1);if(E===-1)throw new O(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(v===-1)throw new O(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const _=b.children.slice(E,v);if(!f.alwaysWrap&&_.length===b.children.length)s(b,f,"line");else if(!f.alwaysWrap&&_.length===1&&_[0].type==="element")s(_[0],f,"token");else{const C={type:"element",tagName:"span",properties:{},children:_};s(C,f,"wrapper"),b.children.splice(E,_.length,C)}}function a(p,d){i[p]=s(i[p],d,"line")}function s(p,d,h){var w;const f=d.properties||{},b=d.transform||(E=>E);return p.tagName=d.tagName||"span",p.properties={...p.properties,...f,class:p.properties.class},(w=d.properties)!=null&&w.class&&qn(p,d.properties.class),p=b(p,h)||p,p}const l=[],u=n.decorations.sort((p,d)=>d.start.offset-p.start.offset||p.end.offset-d.end.offset);for(const p of u){const{start:d,end:h}=p;if(d.line===h.line)o(d.line,d.character,h.character,p);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,p);for(let f=d.line+1;f<h.line;f++)l.unshift(()=>a(f,p));o(h.line,0,h.character,p)}}l.forEach(p=>p())}}}function Xa(t){for(let e=0;e<t.length;e++){const r=t[e];if(r.start.offset>r.end.offset)throw new O(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=e+1;n<t.length;n++){const i=t[n],o=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,s=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,l=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&r.start.offset===r.end.offset||a&&i.start.offset===i.end.offset)continue;throw new O(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Kn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Kn).join(""):""}const Ka=[qa()];function gt(t){const e=Qa(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Ka]}function Qa(t){const e=[],r=[],n=[];for(const i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:e,post:r,normal:n}}var ye=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ja(t,e){const r=t.indexOf("\x1B",e);if(r!==-1&&t[r+1]==="["){const n=t.indexOf("m",r);if(n!==-1)return{sequence:t.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:t.length}}function jr(t){const e=t.shift();if(e==="2"){const r=t.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(e==="5"){const r=t.shift();if(r)return{type:"table",index:Number(r)}}}function Ya(t){const e=[];for(;t.length>0;){const r=t.shift();if(!r)continue;const n=Number.parseInt(r);
12if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)Vt[n]&&e.push({type:"setDecoration",value:Vt[n]});else if(n<=29){const i=Vt[n-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:ye[n-30]}});else if(n===38){const i=jr(t);i&&e.push({type:"setForegroundColor",value:i})}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:ye[n-40]}});else if(n===48){const i=jr(t);i&&e.push({type:"setBackgroundColor",value:i})}else n===49?e.push({type:"resetBackgroundColor"}):n===53?e.push({type:"setDecoration",value:"overline"}):n===55?e.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:ye[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:ye[n-100+8]}})}return e}function Za(){let t=null,e=null,r=new Set;return{parse(n){const i=[];let o=0;do{const a=Ja(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:e,decorations:new Set(r)}),a.sequence){const l=Ya(a.sequence);for(const u of l)u.type==="resetAll"?(t=null,e=null,r.clear()):u.type==="resetForegroundColor"?t=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&r.delete(u.value);for(const u of l)u.type==="setForegroundColor"?t=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&r.add(u.value)}o=a.position}while(o<n.length);return i}}}var es={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 ts(t=es){function e(s){return t[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<ye.length;u++)n.push(e(ye[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)n.push(r([s[u],s[m],s[p]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(r([l,l,l]));return n}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return e(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:a}}const rs={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function ns(t,e,r){const n=ht(t,r),i=yt(e),o=Object.fromEntries(ye.map(l=>{var p;const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,m=(p=t.colors)==null?void 0:p[u];return[l,m||rs[l]]}
12)),a=ts(o),s=Za();return i.map(l=>s.parse(l[0]).map(u=>{let m,p;u.decorations.has("reverse")?(m=u.background?a.value(u.background):t.bg,p=u.foreground?a.value(u.foreground):t.fg):(m=u.foreground?a.value(u.foreground):t.fg,p=u.background?a.value(u.background):void 0),m=de(m,n),p=de(p,n),u.decorations.has("dim")&&(m=is(m));let d=G.None;return u.decorations.has("bold")&&(d|=G.Bold),u.decorations.has("italic")&&(d|=G.Italic),u.decorations.has("underline")&&(d|=G.Underline),u.decorations.has("strikethrough")&&(d|=G.Strikethrough),{content:u.value,offset:l[1],color:m,bgColor:p,fontStyle:d}}))}function is(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const n=e[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],o=n[1],a=n[2],s=n[3],l=Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${a}${a}${l}`}else if(n.length===3){const i=n[0],o=n[1],a=n[2];return`#${i}${i}${o}${o}${a}${a}80`}}}const r=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:t}function bt(t,e,r={}){const{theme:n=t.getLoadedThemes()[0]}=r,i=t.resolveLangAlias(r.lang||"text");if(mr(i)||dr(n))return yt(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:a}=t.setTheme(n);if(i==="ansi")return ns(o,e,r);const s=t.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==s.name)throw new O(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(o.name))throw new O(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return os(e,s,o,a,r)}function Qn(...t){if(t.length===2)return He(t[1]);const[e,r,n={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=n;if(mr(i)||dr(o))throw new O("Plain language does not have grammar state");if(i==="ansi")throw new O("ANSI language does not have grammar state");const{theme:a,colorMap:s}=e.setTheme(o),l=e.getLanguage(i);return new De(fr(r,l,a,s,n).stateStack,l.name,a.name)}function os(t,e,r,n,i){const o=fr(t,e,r,n,i),a=new De(o.stateStack,e.name,r.name);return Et(o.tokens,a),o.tokens}function fr(t,e,r,n,i){const o=ht(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=yt(t);let u=i.grammarState?za(i.grammarState,r.name)??Qt:i.grammarContextCode!=null?fr(i.grammarContextCode,e,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Qt,m=[];const p=[];for(let d=0,h=l.length;d<h;d++){const[f,b]=l[d];if(f===""){m=[],p.push([]);continue}if(a>0&&f.length>=a){m=[],p.push([{content:f,offset:b,color:"",fontStyle:0}]);continue}let w,E,v;i.includeExplanation&&(w=e.tokenizeLine(f,u,s),E=w.tokens,v=0);const _=e.tokenizeLine2(f,u,s),C=_.tokens.length/2;for(let A=0;A<C;A++){const R=_.tokens[2*A],I=A+1<C?_.tokens[2*A+2]:f.length;if(R===I)continue;const B=_.tokens[2*A+1],U=de(n[Oe.getForeground(B)],o),Z=Oe.getFontStyle(B),le={content:f.substring(R,I),offset:b+R,color:U,fontStyle:Z};if(i.includeExplanation){const W=[];if(i.includeExplanation!=="scopeName")for(const re of r.settings){let Ae;switch(typeof re.scope){case"string":Ae=re.scope.split(/,/).map(It=>It.trim());break;case"object":Ae=re.scope;break;default:continue}W.push({settings:re,selectors:Ae.map(It=>It.split(/ /))})}le.explanation=[];let Ar=0;for(;R+Ar<I;){const re=E[v],Ae=f.substring(re.startIndex,re.endIndex);Ar+=Ae.length,le.explanation.push({content:Ae,scopes:i.includeExplanation==="scopeName"?as(re.scopes):ss(W,re.scopes)}),v+=1}}m.push(le)}p.push(m),m=[],u=_.ruleStack}return{tokens:p,stateStack:u}}function as(t){return t.map(e=>({scopeName:e}))}function ss(t,e){const r=[];for(let n=0,i=e.length;n<i;n++){const o=e[n];r[n]={scopeName:o,themeMatches:us(t,o,e.slice(0,n))}}return r}function Hr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function ls(t,e,r){if(!Hr(t[t.length-1],e))return!1;let n=t.length-2,i=r.length-1;for(;n>=0&&i>=0;)Hr(t[n],r[i])&&(n-=1),i-=1;return n===-1}function us(t,e,r){const n=[];for(const{selectors:i,settings:o}of t)for(const a of i)if(ls(a,e,r)){n.push(o);break}return n}function gr(t,e,r){const n=Object.entries(r.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=n.map(l=>{const u=bt(t,e,{...r,theme:l.theme}),m=He(u),p=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:m,theme:p}}),o=cs(...i.map(l=>l.tokens)),a=o[0].map((l,u)=>l.map((m,p)=>{const d={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(d.explanation=m.explanation),o.forEach((h,f)=>{const{content:b,explanation:w,offset:E,...v}=h[u][p];d.variants[n[f].color]=v}),d})),s=i[0].state?new De(Object.fromEntries(i.map(l=>{var u;return[l.theme,(u=l.state)==null?void 0:u.getInternalStack(l.theme)]})),i[0].state.lang):void 0;return s&&Et(a,s),a}function cs(...t){const e=t.map(()=>[]),r=t.length;for(let n=0;n<t[0].length;n++){const i=t.map(l=>l[n]),o=e.map(()=>[]);e.forEach((l,u)=>l.push(o[u]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){const m=s[u];m.content.length===l?(o[u].push(m),a[u]+=1,s[u]=i[u][a[u]]):(o[u].push({...m,content:m.content.slice(0,l)}),s[u]={...m,content:m.content.slice(l),offset:m.offset+l})}}}return e}function We(t,e,r){let n,i,o,a,s,l;if("themes"in r){const{defaultColor:u="light",cssVariablePrefix:m="--shiki-",colorsRendering:p="css-vars"}=r,d=Object.entries(r.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,v)=>E.color===u?-1:v.color===u?1:0);if(d.length===0)throw new O("`themes` option must not be empty");const h=gr(t,e,r);
12if(l=He(h),u&&hr!==u&&!d.find(E=>E.color===u))throw new O(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=d.map(E=>t.getTheme(E.theme)),b=d.map(E=>E.color);o=h.map(E=>E.map(v=>Ha(v,b,m,u,p))),l&&Et(o,l);const w=d.map(E=>ht(E.theme,r));i=Wr(d,f,w,m,u,"fg",p),n=Wr(d,f,w,m,u,"bg",p),a=`shiki-themes ${f.map(E=>E.name).join(" ")}`,s=u?void 0:[i,n].join(";")}else if("theme"in r){const u=ht(r.theme,r);o=bt(t,e,r);const m=t.getTheme(r.theme);n=de(m.bg,u),i=de(m.fg,u),a=m.name,l=He(o)}else throw new O("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function Wr(t,e,r,n,i,o,a){return t.map((s,l)=>{const u=de(e[l][o],r[l])||"inherit",m=`${n+s.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i===hr&&t.length>1){const p=t.findIndex(b=>b.color==="light"),d=t.findIndex(b=>b.color==="dark");if(p===-1||d===-1)throw new O('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=de(e[p][o],r[p])||"inherit",f=de(e[d][o],r[d])||"inherit";return`light-dark(${h}, ${f});${m}`}return u}return a==="css-vars"?m:null}).filter(s=>!!s).join(";")}function ze(t,e,r,n={meta:{},options:r,codeToHast:(i,o)=>ze(t,i,o),codeToTokens:(i,o)=>We(t,i,o)}){var f,b;let i=e;for(const w of gt(r))i=((f=w.preprocess)==null?void 0:f.call(n,i,r))||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:u,grammarState:m}=We(t,i,r);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:d=!1}=r;p===!0?o=ms(o):p==="never"&&(o=ds(o)),d&&(o=hs(o));const h={...n,get source(){return i}};for(const w of gt(r))o=((b=w.tokens)==null?void 0:b.call(h,o))||o;return ps(o,{...r,fg:a,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},h,m)}function ps(t,e,r,n=He(t)){var b,w,E,v;const i=gt(e),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=e,u={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?u.style=e.rootStyle:u.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[_,C]of Object.entries(e.meta||{}))_.startsWith("_")||(u[_]=C);let m={type:"element",tagName:"pre",properties:u,children:[],data:e.data},p={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...r,structure:s,addClassToHast:qn,get source(){return r.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return m},get code(){return p},get lines(){return d}};if(t.forEach((_,C)=>{var I,B;C&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` 13`}));let A={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const U of _){let Z={type:"element",tagName:"span",properties:{...U.htmlAttrs},children:[{type:"text",value:U.content}]};const le=tr(U.htmlStyle||ft(U));le&&(Z.properties.style=le);for(const W of i)Z=((I=W==null?void 0:W.span)==null?void 0:I.call(h,Z,C+1,R,A,U))||Z;s==="inline"?a.children.push(Z):s==="classic"&&A.children.push(Z),R+=U.content.length}if(s==="classic"){for(const U of i)A=((B=U==null?void 0:U.line)==null?void 0:B.call(h,A,C+1))||A;d.push(A),o.push(A)}else s==="inline"&&d.push(A)}),s==="classic"){for(const _ of i)p=((b=_==null?void 0:_.code)==null?void 0:b.call(h,p))||p;m.children.push(p);for(const _ of i)m=((w=_==null?void 0:_.pre)==null?void 0:w.call(h,m))||m;a.children.push(m)}else if(s==="inline"){const _=[];let C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const I of a.children)I.type==="element"&&I.tagName==="br"?(_.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(I.type==="element"||I.type==="text")&&C.children.push(I);_.push(C);let R={type:"element",tagName:"code",properties:{},children:_};for(const I of i)R=((E=I==null?void 0:I.code)==null?void 0:E.call(h,R))||R;a.children=[];for(let I=0;I<R.children.length;I++){I>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const B=R.children[I];B.type==="element"&&a.children.push(...B.children)}}
13let f=a;for(const _ of i)f=((v=_==null?void 0:_.root)==null?void 0:v.call(h,f))||f;return n&&Et(f,n),f}function ms(t){return t.map(e=>{const r=[];let n="",i;return e.forEach((o,a)=>{const l=!(o.fontStyle&&(o.fontStyle&G.Underline||o.fontStyle&G.Strikethrough));l&&o.content.match(/^\s+$/)&&e[a+1]?(i===void 0&&(i=o.offset),n+=o.content):n?(l?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=void 0,n=""):r.push(o)}),r})}function ds(t){return t.map(e=>e.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,o,a]=n;if(!i&&!a)return r;const s=[{...r,offset:r.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:r.offset}),a&&s.push({content:a,offset:r.offset+i.length+o.length}),s}))}function hs(t){return t.map(e=>{const r=[];for(const n of e){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],o=tr(i.htmlStyle||ft(i)),a=tr(n.htmlStyle||ft(n)),s=i.fontStyle&&(i.fontStyle&G.Underline||i.fontStyle&G.Strikethrough),l=n.fontStyle&&(n.fontStyle&G.Underline||n.fontStyle&G.Strikethrough);!s&&!l&&o===a?i.content+=n.content:r.push({...n})}return r})}const fs=Na;function Jn(t,e,r){var o;const n={meta:{},options:r,codeToHast:(a,s)=>ze(t,a,s),codeToTokens:(a,s)=>We(t,a,s)};let i=fs(ze(t,e,r,n));for(const a of gt(r))i=((o=a.postprocess)==null?void 0:o.call(n,i,r))||i;return i}const zr={light:"#333333",dark:"#bbbbbb"},qr={light:"#fffffe",dark:"#1e1e1e"},Xr="__shiki_resolved";function _r(t){var s,l,u,m,p;if(t!=null&&t[Xr])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:r,fg:n}=e;if(!r||!n){const d=e.settings?e.settings.find(h=>!h.name&&!h.scope):void 0;(s=d==null?void 0:d.settings)!=null&&s.foreground&&(n=d.settings.foreground),(l=d==null?void 0:d.settings)!=null&&l.background&&(r=d.settings.background),!n&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(n=e.colors["editor.foreground"]),!r&&((m=e==null?void 0:e.colors)!=null&&m["editor.background"])&&(r=e.colors["editor.background"]),n||(n=e.type==="light"?zr.light:zr.dark),r||(r=e.type==="light"?qr.light:qr.dark),e.fg=n,e.bg=r}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function a(d){var f;if(o.has(d))return o.get(d);i+=1;const h=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(f=e.colorReplacements)!=null&&f[`#${h}`]?a(d):(o.set(d,h),h)}e.settings=e.settings.map(d=>{var w,E;const h=((w=d.settings)==null?void 0:w.foreground)&&!d.settings.foreground.startsWith("#"),f=((E=d.settings)==null?void 0:E.background)&&!d.settings.background.startsWith("#");if(!h&&!f)return d;const b={...d,settings:{...d.settings}};if(h){const v=a(d.settings.foreground);e.colorReplacements[v]=d.settings.foreground,b.settings.foreground=v}if(f){const v=a(d.settings.background);e.colorReplacements[v]=d.settings.background,b.settings.background=v}return b});for(const d of Object.keys(e.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((p=e.colors[d])!=null&&p.startsWith("#"))){const h=a(e.colors[d]);e.colorReplacements[h]=e.colors[d],e.colors[d]=h}return Object.defineProperty(e,Xr,{enumerable:!1,writable:!1,value:!0}),e}async function Yn(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Wn(e)).map(async e=>await Hn(e).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Zn(t){return(await Promise.all(t.map(async r=>zn(r)?null:_r(await Hn(r))))).filter(r=>!!r)}let st=3,ei=!1;function Nu(t=!0,e=!1){st=t,ei=e}function gs(t,e=3){if(st&&!(typeof st=="number"&&e>st)){if(ei)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}let Le=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ti(t,e){if(!e)return t;if(e[t]){const r=new Set([t]);for(;e[t];){if(t=e[t],r.has(t))throw new Le(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return t}class _s extends wo{constructor(r,n,i,o={}){super(r);g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=i,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=_r(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=ut.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){return r=ti(r,this._alias),this._resolvedGrammars.get(r)}loadLanguage(r){var a,s,l,u;if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(m=>{var p;return(p=m.embeddedLangsLazy)==null?void 0:p.includes(r.name)}));this._resolver.addLanguage(r);const i={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const o=this.loadGrammarWithConfiguration(r.scopeName,1,i);if(o.name=r.name,this._resolvedGrammars.set(r.name,o),r.aliases&&r.aliases.forEac
13h(m=>{this._alias[m]=r.name}),this._loadedLanguagesCache=null,n.size)for(const m of n)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(s=(a=this._syncRegistry)==null?void 0:a._injectionGrammars)==null||s.delete(m.scopeName),(u=(l=this._syncRegistry)==null?void 0:l._grammars)==null||u.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const o of r)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),i=n.filter(([o,a])=>!a);if(i.length){const o=n.filter(([a,s])=>{if(!s)return!1;const l=s.embeddedLanguages||s.embeddedLangs;return l==null?void 0:l.some(u=>i.map(([m])=>m).includes(u))}).filter(a=>!i.includes(a));throw new Le(`Missing languages ${i.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[o,a]of n)this._resolver.addLanguage(a);for(const[o,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){this._langMap.set(r.name,r),this._langGraph.set(r.name,r);const n=r.embeddedLanguages??r.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class ys{constructor(e,r){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},r.forEach(n=>this.addLanguage(n))}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(r=>{this._langs.set(r,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(e.scopeName)})}getInjections(e){const r=e.split(".");let n=[];for(let i=1;i<=r.length;i++){const o=r.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let $e=0;function ri(t){$e+=1,t.warnings!==!1&&$e>=10&&$e%10===0&&console.warn(`[Shiki] ${$e} 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 e=!1;if(!t.engine)throw new Le("`engine` option is required for synchronous mode");const r=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(_r),i=new ys(t.engine,r),o=new _s(i,n,r,t.langAlias);let a;function s(_){return ti(_,t.langAlias)}function l(_){E();const C=o.getGrammar(typeof _=="string"?_:_.name);if(!C)throw new Le(`Language \`${_}\` not found, you may need to load it first`);return C}function u(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const C=o.getTheme(_);if(!C)throw new Le(`Theme \`${_}\` not found, you may need to load it first`);return C}function m(_){E();const C=u(_);a!==_&&(o.setTheme(C),a=_);const A=o.getColorMap();return{theme:C,colorMap:A}}function p(){return E(),o.getLoadedThemes()}function d(){return E(),o.getLoadedLanguages()}function h(..._){E(),o.loadLanguages(_.flat(1))}async function f(..._){return h(await Yn(_))}function b(..._){E();for(const C of _.flat(1))o.loadTheme(C)}async function w(..._){return E(),b(await Zn(_))}function E(){if(e)throw new Le("Shiki instance has been disposed")}function v(){e||(e=!0,o.dispose(),$e-=1)}return{setTheme:m,getTheme:u,getLanguage:l,getLoadedThemes:p,getLoadedLanguages:d,resolveLangAlias:s,loadLanguage:f,loadLanguageSync:h,loadTheme:w,loadThemeSync:b,dispose:v,[Symbol.dispose]:v}}async function Es(t){t.engine||gs("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,r,n]=await Promise.all([Zn(t.themes||[]),Yn(t.langs||[]),t.engine]);return ri({...t,themes:e,langs:r,engine:n})}async function ni(t){const e=await Es(t);return{getLastGrammarState:(...r)=>Qn(e,...r),codeToTokensBase:(r,n)=>bt(e,r,n),codeToTokensWithThemes:(r,n)=>gr(e,r,n),codeToTokens:(r,n)=>We(e,r,n),codeToHast:(r,n)=>ze(e,r,n),codeToHtml:(r,n)=>Jn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function $u(t){const e=ri(t);return{getLastGrammarState:(...r)=>Qn(e,...r),codeToTokensBase:(r,n)=>bt(e,r,n),codeToTokensWithThemes:(r,n)=>gr(e,r,n),codeToTokens:(r,n)=>We(e,r,n),codeToHast:(r,n)=>ze(e,r,n),codeToHtml:(r,n)=>Jn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function bs(t){let e;async function r(n){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}const Mu=bs(ni);function ii(t){const e=t.langs,r=t.themes,n=t.engine;async function i(o){function a(p){var d;if(typeof p=="string"){if(p=((d=o.langAlias)==null?void 0:d[p])||p,Wn(p))return[];const h=e[p];if(!h)throw new O(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return h}return p}function s(p){if(zn(p))return"none";if(typeof p=="string"){const d=r[p];if(!d)throw new O(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return d}return p}const l=(o.themes??[]).map(p=>s(p)),u=(o.langs??[]).map(p=>a(p)),m=await ni({engine:o.engine??n(),...o,themes:l,langs:u});return{...m,loadLanguage(...p){return m.loadLanguage(...p.map(a))},loadTheme(...p){return m.loadTheme(...p.map(s))},getBundledLanguages(){return e},getBundledThemes(){return r}}}return i}function ws(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else{e=t({...n,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}}return r}function vs(t,e){const r=ws(t);async function n(i,o){var l;const a=await r({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}
13),s=await((l=e==null?void 0:e.guessEmbeddedLanguages)==null?void 0:l.call(e,i,o.lang,a));return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return r(i)},async codeToHtml(i,o){return(await n(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await n(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await n(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await n(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await n(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await r({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Gu=ii;function Bu(t={}){var a;const{name:e="css-variables",variablePrefix:r="--shiki-",fontStyle:n=!0}=t,i=s=>{var l;return(l=t.variableDefaults)!=null&&l[s]?`var(${r}${s}, ${t.variableDefaults[s]})`:`var(${r}${s})`},o={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return n||(o.tokenColors=(a=o.tokenColors)==null?void 0:a.map(s=>{var l;return(l=s.settings)!=null&&l.fontStyle&&delete s.settings.fontStyle,s})),o}const oi=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>c(()=>import("./actionscript-3-CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./angular-html-CU67Zn6k.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./apex-D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./asciidoc-Ve4PFQV2.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>c(()=>import("./bat-BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>c(()=>import("./bird2-DPOp833l.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>c(()=>import("./c3-eo99z4R2.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>
13import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./clarity-D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>c(()=>import("./coq-DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./csharp-COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./css-DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./dart-CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./emacs-lisp-C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]),import.meta.url))}
13,{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./gdscript-C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>c(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./go-CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./haxe-CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"just",name:"Just",import:(()=>c(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./kusto-DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([67,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./llvm-DjAJT7YJ.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26]),import.meta.url))}
13,{id:"luau",name:"Luau",import:(()=>c(()=>import("./luau-C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([68,3,69,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([70,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mermaid-mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./mojo-rZm6bMo-.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./moonbit-_H4v1dQx.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./move-IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([71,72]),import.meta.url))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>c(()=>import("./nextflow-groovy-BeH2EWoN.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./nushell-Cz2AlsmD.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./odin-BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>c(()=>import("./powershell-Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./prisma-Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([76,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./r-Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([78,1,2,3,79]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>c(()=>import("./ron-D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))}
13,{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./scala-C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>c(()=>import("./smalltalk-BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./solidity-rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([86,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./sql-BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([91,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./swift-D82vCrfD.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./system-verilog-CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([92,93,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))}
13,{id:"tex",name:"TeX",import:(()=>c(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./typespec-BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./typst-DHCkPAjA.js"),[],import.meta.url))}
13,{id:"v",name:"V",import:(()=>c(()=>import("./v-BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>c(()=>import("./vb-D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./verilog-BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([96,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([98,3,5,69,99,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:(()=>c(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Cs=Object.fromEntries(oi.map(t=>[t.id,t.import])),As=Object.fromEntries(oi.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(r=>[r,t.import]))||[]})),ks={...Cs,...As},Ss=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./andromeeda-C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./ayu-dark-DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./ayu-light-BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./ayu-mirage-32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./catppuccin-frappe-DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>
13import("./horizon-BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>c(()=>import("./horizon-bright-Cn-bp-IR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./night-owl-light-CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./one-light-C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./rose-pine-qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./rose-pine-moon-D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url))}
13,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./vesper-DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url))}],Is=Object.fromEntries(Ss.map(t=>[t.id,t.import]));class yr extends Error{constructor(e){super(e),this.name="ShikiError"}}function Rs(){return 2147483648}function Ls(){return typeof performance<"u"?performance.now():Date.now()}const Ts=(t,e)=>t+(e-t%e)%e;async function Ps(t){let e,r;const n={};function i(h){r=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function o(h,f,b){n.HEAPU8.copyWithin(h,f,f+b)}function a(h){try{return e.grow(h-r.byteLength+65535>>>16),i(e.buffer),1}catch{}}function s(h){const f=n.HEAPU8.length;h=h>>>0;const b=Rs();if(h>b)return!1;for(let w=1;w<=4;w*=2){let E=f*(1+.2/w);E=Math.min(E,h+100663296);const v=Math.min(b,Ts(Math.max(h,E),65536));if(a(v))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,f,b=1024){const w=f+b;let E=f;for(;h[E]&&!(E>=w);)++E;if(E-f>16&&h.buffer&&l)return l.decode(h.subarray(f,E));let v="";for(;f<E;){let _=h[f++];if(!(_&128)){v+=String.fromCharCode(_);continue}const C=h[f++]&63;if((_&224)===192){v+=String.fromCharCode((_&31)<<6|C);continue}const A=h[f++]&63;if((_&240)===224?_=(_&15)<<12|C<<6|A:_=(_&7)<<18|C<<12|A<<6|h[f++]&63,_<65536)v+=String.fromCharCode(_);else{const R=_-65536;v+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return v}function m(h,f){return h?u(n.HEAPU8,h,f):""}const p={emscripten_get_now:Ls,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function d(){const f=await t({env:p,wasi_snapshot_preview1:p});e=f.memory,i(e.buffer),Object.assign(n,f),n.UTF8ToString=m}return await d(),n}var Os=Object.defineProperty,xs=(t,e,r)=>e in t?Os(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e,r)=>xs(t,typeof e!="symbol"?e+"":e,r);let V=null;function Ds(t){throw new yr(t.UTF8ToString(t.getLastOnigError()))}class wt{constructor(e){x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16Value"),x(this,"utf8Value"),x(this,"utf16OffsetToUtf8"),x(this,"utf8OffsetToUtf16");const r=e.length,n=wt._utf8ByteLength(e),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const s=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const m=e.charCodeAt(u);let p=m,d=!1;if(m>=55296&&m<=56319&&u+1<r){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,d=!0)}i&&(o[u]=l,d&&(o[u+1]=l),p<=127?a[l+0]=u:p<=2047?(a[l+0]=u,a[l+1]=u):p<=65535?(a[l+0]=u,a[l+1]=u,a[l+2]=u):(a[l+0]=u,a[l+1]=u,a[l+2]=u,a[l+3]=u)),p<=127?s[l++]=p:p<=2047?(s[l++]=192|(p&1984)>>>6,s[l++]=128|(p&63)>>>0):p<=65535?(s[l++]=224|(p&61440)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0):(s[l++]=240|(p&1835008)>>>18,s[l++]=128|(p&258048)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0),d&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let r=0;for(let n=0,i=e.length;n<i;n++){const o=e.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<i){const l=e.charCodeAt(n+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,s&&n++}return r}createString(e){const r=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,r),r}}const vt=class te{constructor(e){if(x(this,"id",++te.LAST_ID),x(this,"_onigBinding"),x(this,"content"),x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16OffsetToUtf8"),x(this,"utf8Off
13setToUtf16"),x(this,"ptr"),!V)throw new yr("Must invoke loadWasm first.");this._onigBinding=V,this.content=e;const r=new wt(e);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!te._sharedPtrInUse?(te._sharedPtr||(te._sharedPtr=V.omalloc(1e4)),te._sharedPtrInUse=!0,V.HEAPU8.set(r.utf8Value,te._sharedPtr),this.ptr=te._sharedPtr):this.ptr=r.createString(V)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===te._sharedPtr?te._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};x(vt,"LAST_ID",0);x(vt,"_sharedPtr",0);x(vt,"_sharedPtrInUse",!1);let ai=vt;class Ns{constructor(e){if(x(this,"_onigBinding"),x(this,"_ptr"),!V)throw new yr("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=e.length;s<l;s++){const u=new wt(e[s]);r[s]=u.createString(V),n[s]=u.utf8Length}const i=V.omalloc(4*e.length);V.HEAPU32.set(r,i/4);const o=V.omalloc(4*e.length);V.HEAPU32.set(n,o/4);const a=V.createOnigScanner(i,o,e.length);for(let s=0,l=e.length;s<l;s++)V.ofree(r[s]);V.ofree(o),V.ofree(i),a===0&&Ds(V),this._onigBinding=V,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new ai(e);const o=this._findNextMatchSync(e,r,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,r,!1,i)}_findNextMatchSync(e,r,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const u=s[l++],m=s[l++],p=[];for(let d=0;d<m;d++){const h=e.convertUtf8OffsetToUtf16(s[l++]),f=e.convertUtf8OffsetToUtf16(s[l++]);p[d]={start:h,end:f,length:f-h}}return{index:u,captureIndices:p}}}function Vs(t){return typeof t.instantiator=="function"}function $s(t){return typeof t.default=="function"}function Ms(t){return typeof t.data<"u"}function Gs(t){return typeof Response<"u"&&t instanceof Response}function Bs(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let tt;function Us(t){if(tt)return tt;async function e(){V=await Ps(async r=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Vs(n)?n=await n.instantiator(r):$s(n)?n=await n.default(r):(Ms(n)&&(n=n.data),Gs(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Fs(n)(r):n=await js(n)(r):Bs(n)?n=await $t(n)(r):n instanceof WebAssembly.Module?n=await $t(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await $t(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return tt=e(),tt}function $t(t){return e=>WebAssembly.instantiate(t,e)}function Fs(t){return e=>WebAssembly.instantiateStreaming(t,e)}function js(t){return async e=>{const r=await t.arrayBuffer();return WebAssembly.instantiate(r,e)}}async function Hs(t){return t&&await Us(t),{createScanner(e){return new Ns(e.map(r=>typeof r=="string"?r:r.source))},createString(e){return new ai(e)}}}const Ws=ii({langs:ks,themes:Is,engine:()=>Hs(c(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Uu,codeToHast:Fu,codeToTokens:ju,codeToTokensBase:Hu,codeToTokensWithThemes:Wu,getSingletonHighlighter:zu,getLastGrammarState:qu}=vs(Ws,{guessEmbeddedLanguages:Ba});function Ne(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function zs(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}const Er=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),$=String.raw;function Ve(t,e){if(t==null)throw new Error(e??"Value expected");return t}const si=$`\[\^?`,li=`c.? | C(?:-.?)?|${$`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${$`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${$`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${$`o\{[^\}]*\}?`}|${$`\d{1,3}`}`,br=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,rt=new RegExp($` 14 \\ (?: 15 ${li} 16 | [gk]<[^>]*>? 17 | [gk]'[^']*'? 18 | . 19 ) 20 | \( (?: 21 \? (?: 22 [:=!>({] 23 | <[=!] 24 | <[^>]*> 25 | '[^']*' 26 | ~\|? 27 | #(?:[^)\\]|\\.?)* 28 | [^:)]*[:)] 29 )? 30 | \*[^\)]*\)? 31 )? 32 | (?:${br.source})+ 33 | ${si} 34 | . 35`.replace(/\s+/g,""),"gsu"),Mt=new RegExp($` 36 \\ (?: 37 ${li} 38 | . 39 ) 40 | \[:(?:\^?\p{Alpha}+|\^):\] 41 | ${si} 42 | && 43 | . 44`.replace(/\s+/g,""),"gsu");function qs(t,e={}){const r={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const n=ml(r.flags),i=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(p){i.push(p)},replaceCurrentModX(p){i[i.length-1]=p},singleline:r.rules.singleline};let a=[],s;for(rt.lastIndex=0;s=rt.exec(t);){const p=Xs(o,t,s[0],rt.lastIndex);p.tokens?a.push(...p.tokens):p.token&&a.push(p.token),p.lastIndex!==void 0&&(rt.lastIndex=p.lastIndex)}const l=[];let u=0;a.filter(p=>p.type==="GroupOpen").forEach(p=>{p.kind==="capturing"?p.number=++u:p.raw==="("&&l.push(p)}),u||l.forEach((p,d)=>{p.kind="capturing",p.number=d+1});const m=u||l.length;return{tokens:a.map(p=>p.type==="EscapedNumber"?hl(p,m):p).flat(),flags:n}}function Xs(t,e,r,n){const[i,o]=r;if(r==="["||r==="[^"){const a=Ks(e,r,n);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Kr(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ol(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ci(r)}}if(o==="K")return{token:pi("keep",r)};if(o==="N"||o==="R")return{token:Ee("newline",r,{negate:o==="N"})};if(o==="O")return{token:Ee("any",r)};if(o==="X")return{token:Ee("text_segment",r)};const a=ui(r,{inCharClass:!1}
44);return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:ul(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:ll(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r==="("&&!t.captureGroup||r==="(?:")return{token:Ie("group",r)};if(r==="(?>")return{token:Ie("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Ie(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&t.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Ie("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Ie("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:rl(r)}}if(t.getCurrentModX()){if(r==="#"){const a=e.indexOf(` 45`,n);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(r)){const a=/\s+/y;return a.lastIndex=n,{lastIndex:a.exec(e)?a.lastIndex:n}}}if(r===".")return{token:Ee("dot",r)};if(r==="^"||r==="$"){const a=t.singleline?{"^":$`\A`,$:$`\Z`}[r]:r;return{token:Kr(a,r)}}return r==="|"?{token:Js(r)}:br.test(r)?{tokens:fl(r)}:{token:se(Ne(r),r)}}function Ks(t,e,r){const n=[Qr(e[1]==="^",e)];let i=1,o;for(Mt.lastIndex=r;o=Mt.exec(t);){const a=o[0];if(a[0]==="["&&a[1]!==":")i++,n.push(Qr(a[1]==="^",a));else if(a==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(se(93,a));else if(i--,n.push(Ys(a)),!i)break}else{const s=Qs(a);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:Mt.lastIndex||t.length}}function Qs(t){if(t[0]==="\\")return ui(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!Er.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return Ee("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?Zs(t):t==="&&"?el(t):se(Ne(t),t)}function ui(t,{inCharClass:e}){const r=t[1];if(r==="c"||r==="C")return sl(t);if("dDhHsSwW".includes(r))return cl(t);if(t.startsWith($`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return pl(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const n=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(a=>{const s=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return se(Ne(a),s)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return se(dl(t),t);if(Jr.has(r))return se(Jr.get(r),t);if(/\d/.test(r))return tl(e,t);if(t==="\\")throw new Error($`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return se(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function Js(t){return{type:"Alternator",raw:t}}function Kr(t,e){return{type:"Assertion",kind:t,raw:e}}function ci(t){return{type:"Backreference",raw:t}}function se(t,e){return{type:"Character",value:t,raw:e}}function Ys(t){return{type:"CharacterClassClose",raw:t}}function Zs(t){return{type:"CharacterClassHyphen",raw:t}}function el(t){return{type:"CharacterClassIntersector",raw:t}}function Qr(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function Ee(t,e,r={}){return{type:"CharacterSet",kind:t,...r,raw:e}}function pi(t,e,r={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:Ve(r.flags),raw:e}}function tl(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function rl(t){return{type:"GroupClose",raw:t}}function Ie(t,e,r={}){return{type:"GroupOpen",kind:t,...r,raw:e}}function nl(t,e,r,n){return{type:"NamedCallout",kind:t,tag:e,arguments:r,raw:n}}function il(t,e,r,n){return{type:"Quantifier",kind:t,min:e,max:r,raw:n}}function ol(t){return{type:"Subroutine",raw:t}}const al=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Jr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11
45]]);function sl(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return se(Ne(e.toUpperCase())-64,t)}function ll(t,e){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;n??(n="");const i=(e.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=Zr(r),a=Zr(n),s={};if(o&&(s.enable=o),a&&(s.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),pi("flags",t,{flags:s});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,Ie("group",t,{...(o||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${t}"`)}function ul(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:r,tag:n,args:i}=e.groups;if(!r)throw new Error(`Invalid named callout "${t}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const o=i?i.split(",").filter(m=>m!=="").map(m=>/^[+-]?\d+$/.test(m)?+m:m):[],[a,s,l]=o,u=al.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return nl(u,n??null,(i==null?void 0:i.split(","))??null,t)}function Yr(t){let e=null,r,n;if(t[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=o===void 0?+i:o===""?1/0:+o,r>n&&(e="possessive",[r,n]=[n,r]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else r=t[0]==="+"?1:0,n=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return il(e,r,n,t)}function cl(t){const e=t[1].toLowerCase();return Ee({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function pl(t){const{p:e,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return Ee("property",t,{value:n,negate:e==="P"&&!r||e==="p"&&!!r})}function Zr(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function ml(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<t.length;r++){const n=t[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(t.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[r+2]==="g"?"grapheme":"word",r+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return e}function dl(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function hl(t,e){const{raw:r,inCharClass:n}=t,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[ci(r)];const o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){const l=a[s];let u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error($`Octal encoded byte above 177 unsupported "${r}"`)}else u=Ne(l);o.push(se(u,(s===0?"\\":"")+l))}return o}function fl(t){const e=[],r=new RegExp(br,"gy");let n;for(;n=r.exec(t);){const i=n[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:a,max:s}=o.groups;if(+a>+s&&i.endsWith("?")){r.lastIndex--,e.push(Yr(i.slice(0,-1)));continue}}}e.push(Yr(i))}return e}function mi(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const r=t.body[0];return!e||Object.keys(e).every(n=>e[n]===r[n])}function gl(t){return _l.has(t.type)}const _l=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subrout
45ine"]);function di(t,e={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},n=qs(t,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(d,h)=>{const f=n.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,f.type){case"Alternator":return ve();case"Assertion":return yl(f);case"Backreference":return El(f,o);case"Character":return Ct(f.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return bl(f,o,h);case"CharacterClassOpen":return wl(f,o,h);case"CharacterSet":return vl(f,o);case"Directive":return Rl(f.kind,{flags:f.flags});case"GroupOpen":return Cl(f,o,h);case"NamedCallout":return Tl(f.kind,f.tag,f.arguments);case"Quantifier":return Al(f,o);case"Subroutine":return kl(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={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},a=Ol(Ll(n.flags));let s=a.body[0];for(;o.nextIndex<n.tokens.length;){const d=i(s,{});d.type==="Alternative"?(a.body.push(d),s=d):s.body.push(d)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:m,subroutines:p}=o;if(u&&m.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of p)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(m.has(d)){if(m.get(d).length>1)throw new Error($`Subroutine uses a duplicate group name "\g<${d}>"`);m.get(d)[0].isSubroutined=!0}else throw new Error($`Subroutine uses a group name that's not defined "\g<${d}>"`);return a}function yl({kind:t}){return rr(Ve({"^":"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"}[t],`Unexpected assertion kind "${t}"`),{negate:t===$`\B`||t===$`\Y`})}function El({raw:t},e){const r=/^\\k[<']/.test(t),n=r?t.slice(3,-1):t.slice(1),i=(o,a=!1)=>{const s=e.capturingGroups.length;let l=!1;if(o>s)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,nr(a?s+1-o:o,{orphan:l})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${t}"`);return nr(n)}return i(+n)}function bl(t,e,r){const{tokens:n,walk:i}=e,o=e.parent,a=o.body.at(-1),s=n[e.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){const l=i(o,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),Il(a,l);throw new Error("Invalid character class range")}return Ct(Ne("-"))}function wl({negate:t},e,r){const{tokens:n,walk:i}=e,o=[lt()],a=n[e.nextIndex];let s=rn(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")o.push(lt()),e.nextIndex++;else{const u=o.at(-1);u.body.push(i(u,r))}s=rn(n[e.nextIndex],a)}const l=lt({negate:t});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(u=>u.body.length===1?u.body[0]:u)),e.nextIndex++,l}function vl({kind:t,negate:e,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=n;if(t==="property"){const s=At(r);if(Er.has(s)&&!(a!=null&&a.has(s)))t="posix",r=s;else return Re(r,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return t==="posix"?Pl(r,{negate:e}):ir(t,{negate:e})}function Cl(t,e,r){const{tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:s}=e,l=xl(t),u=l.type==="AbsenceFunction",m=tn(l),p=m&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&zs(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=nn(n[e.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(ve()),e.nextIndex++;else{const h=l.body.at(-1),f=s(h,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||m,isInNegLookbehind:r.isInNegLookbehind||p});if(h.body.push(f),(m||r.isInLookbehind)&&!a){const b="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(en(f)||f.type==="CapturingGroup")throw new Error(b)}else if(en(f)||tn(f)&&f.negate)throw new Error(b)}}d=nn(n[e.nextIndex])}return e.nextIndex++,l}function Al({kind:t,min:e,max:r},n){const i=n.parent,o=i.body.at(-1);if(!o||!gl(o))throw new Error("Quantifier requires a repeatable token");const a=fi(t,e,r,o);return i.body.pop(),a}function kl({raw:t}
45,e){const{capturingGroups:r,subroutines:n}=e;let i=t.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const s=+o.groups.num,l=r.length;if(e.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=gi(i);return n.push(a),a}function Sl(t,e){return{type:"AbsenceFunction",kind:t,body:Je(e==null?void 0:e.body)}}function ve(t){return{type:"Alternative",body:_i(t==null?void 0:t.body)}}function rr(t,e){const r={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(r.negate=!!(e!=null&&e.negate)),r}function nr(t,e){const r=!!(e!=null&&e.orphan);return{type:"Backreference",ref:t,...r&&{orphan:r}}}function hi(t,e){const r={name:void 0,isSubroutined:!1,...e};if(r.name!==void 0&&!Dl(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Je(e==null?void 0:e.body)}}function Ct(t,e){const r={useLastValid:!1,...e};if(t>1114111){const n=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:t}}function lt(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:_i(t==null?void 0:t.body)}}function Il(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function ir(t,e){const r=!!(e!=null&&e.negate),n={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(n.negate=r),(t==="text_segment"||t==="newline"&&!r)&&(n.variableLength=!0),n}function Rl(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:Ve(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function Ll(t){return{type:"Flags",...t}}function J(t){const e=t==null?void 0:t.atomic,r=t==null?void 0:t.flags;if(e&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...r&&{flags:r},body:Je(t==null?void 0:t.body)}}function _e(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:Je(t==null?void 0:t.body)}}function Tl(t,e,r){return{type:"NamedCallout",kind:t,tag:e,arguments:r}}function Pl(t,e){const r=!!(e!=null&&e.negate);if(!Er.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:r}}function fi(t,e,r,n){if(e>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:r,body:n}}function Ol(t,e){return{type:"Regex",body:Je(e==null?void 0:e.body),flags:t}}function gi(t){return{type:"Subroutine",ref:t}}function Re(t,e){var i;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let n=(i=r.unicodePropertyMap)==null?void 0:i.get(At(t));
45if(!n){if(r.normalizeUnknownPropertyNames)n=Nl(t);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error($`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:n??t,negate:r.negate}}function xl({flags:t,kind:e,name:r,negate:n,number:i}){switch(e){case"absence_repeater":return Sl("repeater");case"atomic":return J({atomic:!0});case"capturing":return hi(i,{name:r});case"group":return J({flags:t});case"lookahead":case"lookbehind":return _e({behind:e==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Je(t){if(t===void 0)t=[ve()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function _i(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function en(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function tn(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function Dl(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function Nl(t){return t.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 At(t){return t.replace(/[- _]+/g,"").toLowerCase()}function rn(t,e){const r=e;return Ve(t,`Unclosed character class${(r==null?void 0:r.type)==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}function nn(t){return Ve(t,"Unclosed group")}function Be(t,e,r=null){function n(o,a){for(let s=0;s<o.length;s++){const l=i(o[s],a,s,o);s=Math.max(-1,s+l)}}function i(o,a=null,s=null,l=null){var E,v;let u=0,m=!1;const p={node:o,parent:a,key:s,container:l,root:t,remove(){nt(l).splice(Math.max(0,ke(s)+u),1),u--,m=!0},removeAllNextSiblings(){return nt(l).splice(ke(s)+1)},removeAllPrevSiblings(){const _=ke(s)+u;return u-=_,nt(l).splice(0,Math.max(0,_))},replaceWith(_,C={}){const A=!!C.traverse;l?l[Math.max(0,ke(s)+u)]=_:Ve(a,"Can't replace root node")[s]=_,A&&i(_,a,s,l),m=!0},replaceWithMultiple(_,C={}){const A=!!C.traverse;if(nt(l).splice(Math.max(0,ke(s)+u),1,..._),u+=_.length-1,A){let R=0;for(let I=0;I<_.length;I++)R+=i(_[I],a,ke(s)+I+R,l)}m=!0},skip(){m=!0}},{type:d}=o,h=e["*"],f=e[d],b=typeof h=="function"?h:h==null?void 0:h.enter,w=typeof f=="function"?f:f==null?void 0:f.enter;if(b==null||b(p,r),w==null||w(p,r),!m)switch(d){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":n(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(E=f==null?void 0:f.exit)==null||E.call(f,p,r),(v=h==null?void 0:h.exit)==null||v.call(h,p,r),u}return i(t),t}function nt(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function ke(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const Vl=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function $l(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function Ml(t,e,r,n){return t.slice(0,e)+n+t.slice(e+r.length)}const K=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function wr(t,e,r,n){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of t.matchAll(i)){const{0:u,groups:{$skip:m}}=l;if(!m&&(!n||n===K.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?K.CHAR_CLASS:K.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),s+=u}return s}function yi(t,e,r,n){wr(t,e,r,n)}function Gl(t,e,r=0,n){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,a;for(;a=i.exec(t);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===K.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function it(t,e,r){return!!Gl(t,e,0,r)}function Bl(t,e){const r=/\\?./gsu;r.lastIndex=e;let n=t.length,i=0,o=1,a;for(;a=r.exec(t);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return t.slice(e,n)}const on=new RegExp(String.raw`(?<noncapturingStart>${Vl})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Ul(t,e){const r=(e==null?void 0:e.hiddenCaptures)??[];let n=(e==null?void 0:e.captureTransfers)??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:n,hiddenCaptures:r};const i="(?>",o="(?:(?=(",a=[0],s=[];let l=0,u=0,m=NaN,p;do{p=!1;let d=0,h=0,f=!1,b;for(on.lastIndex=Number.isNaN(m)?0:m+o.length;b=on.exec(t);){const{0:w,index:E,groups:{capturingStart:v,noncapturingStart:_}}=b;if(w==="[")d++;else if(d)w==="]"&&d--;
45else if(w===i&&!f)m=E,f=!0;else if(f&&_)h++;else if(v)f?h++:(l++,a.push(l+u));else if(w===")"&&f){if(!h){u++;const C=l+u;if(t=`${t.slice(0,m)}${o}${t.slice(m+i.length,E)}))<$$${C}>)${t.slice(E+1)}`,p=!0,s.push(C),$l(r,C),n.size){const A=new Map;n.forEach((R,I)=>{A.set(I>=C?I+1:I,R.map(B=>B>=C?B+1:B))}),n=A}break}h--}}}while(p);return r.push(...s),t=wr(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:f}})=>{if(h){const b=+h;if(b>a.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${a[b]}`}return`\\${f}`},K.DEFAULT),{pattern:t,captureTransfers:n,hiddenCaptures:r}}const Ei=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Gt=new RegExp(String.raw` 46\\(?: \d+ 47 | c[A-Za-z] 48 | [gk]<[^>]+> 49 | [pPu]\{[^\}]+\} 50 | u[A-Fa-f\d]{4} 51 | x[A-Fa-f\d]{2} 52 ) 53| \((?: \? (?: [:=!>] 54 | <(?:[=!]|[^>]+>) 55 | [A-Za-z\-]+: 56 | \(DEFINE\) 57 ))? 58| (?<qBase>${Ei})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 59| \\?. 60`.replace(/\s+/g,""),"gsu");function Fl(t){if(!new RegExp(`${Ei}\\+`).test(t))return{pattern:t};const e=[];let r=null,n=null,i="",o=0,a;for(Gt.lastIndex=0;a=Gt.exec(t);){const{0:s,index:l,groups:{qBase:u,qMod:m,invalidQ:p}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(m==="+"&&i&&!i.startsWith("(")){if(p)throw new Error(`Invalid quantifier "${s}"`);let d=-1;if(/^\{\d+\}$/.test(u))t=Ml(t,l+u.length,m,"");else{if(i===")"||i==="]"){const h=i===")"?r:n;if(h===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,h)}(?>${t.slice(h,l)}${u})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${u})${t.slice(l+s.length)}`;d+=4}Gt.lastIndex+=d}else s[0]==="("?e.push(l):s===")"&&(r=e.length?e.pop():null);i=s}return{pattern:t}}const X=String.raw,jl=X`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,or=X`\(\?R=(?<rDepth>[^\)]+)\)|${jl}`,kt=X`\(\?<(?![=!])(?<captureName>[^>]+)>`,bi=X`${kt}|(?<unnamed>\()(?!\?)`,ge=new RegExp(X`${kt}|${or}|\(\?|\\?.`,"gsu"),Bt="Cannot use multiple overlapping recursions";function Hl(t,e){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...e};let i=(e==null?void 0:e.captureTransfers)??new Map;if(!new RegExp(or,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&it(t,X`\(\?\(DEFINE\)`,K.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=it(t,X`\\[1-9]`,K.DEFAULT),s=new Map,l=[];let u=!1,m=0,p=0,d;for(ge.lastIndex=0;d=ge.exec(t);){const{0:h,groups:{captureName:f,rDepth:b,gRNameOrNum:w,gRDepth:E}}=d;if(h==="[")m++;else if(m)h==="]"&&m--;else if(b){if(an(b),u)throw new Error(Bt);if(a)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=t.slice(0,d.index),_=t.slice(ge.lastIndex);if(it(_,or,K.DEFAULT))throw new Error(Bt);const C=+b-1;t=sn(v,_,C,!1,r,o,p),i=un(i,v,C,o.length,0,p);break}else if(w){an(E);let v=!1;for(const W of l)if(W.name===w||W.num===+w){if(v=!0,W.hasRecursedWithin)throw new Error(Bt);break}if(!v)throw new Error(X`Recursive \g cannot be used outside the referenced group "${n==="external"?w:X`\g<${w}&R=${E}>`}"`);const _=s.get(w),C=Bl(t,_);if(a&&it(C,X`${kt}|\((?!\?)`,K.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const A=t.slice(_,d.index),R=C.slice(A.length+h.length),I=o.length,B=+E-1,U=sn(A,R,B,!0,r,o,p);i=un(i,A,B,o.length-I,I,p);const Z=t.slice(0,_),le=t.slice(_+C.length);t=`${Z}${U}${le}`,ge.lastIndex+=U.length-h.length-A.length-R.length,l.forEach(W=>W.hasRecursedWithin=!0),u=!0}else if(f)p++,s.set(String(p),ge.lastIndex),s.set(f,ge.lastIndex),l.push({num:p,name:f});else if(h[0]==="("){const v=h==="(";v&&(p++,s.set(String(p),ge.lastIndex)),l.push(v?{num:p}:{})}else h===")"&&l.pop()}return r.push(...o),{pattern:t,captureTransfers:i,hiddenCaptures:r}}function an(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);
60if(t=+t,t<2||t>100)throw new Error(e)}function sn(t,e,r,n,i,o,a){const s=new Set;n&&yi(t+e,kt,({groups:{captureName:u}})=>{s.add(u)},K.DEFAULT);const l=[r,n?s:null,i,o,a];return`${t}${ln(`(?:${t}`,"forward",...l)}(?:)${ln(`${e})`,"backward",...l)}${e}`}function ln(t,e,r,n,i,o,a){const l=m=>e==="forward"?m+2:r-m+2-1;let u="";for(let m=0;m<r;m++){const p=l(m);u+=wr(t,X`${bi}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:f,backref:b}})=>{if(b&&n&&!n.has(b))return d;const w=`_$${p}`;if(f||h){const E=a+o.length+1;return o.push(E),Wl(i,E),f?d:`(?<${h}${w}>`}return X`\k<${b}${w}>`},K.DEFAULT)}return u}function Wl(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function un(t,e,r,n,i,o){if(t.size&&n){let a=0;yi(e,bi,()=>a++,K.DEFAULT);const s=o-a+i,l=new Map;return t.forEach((u,m)=>{const p=(n-a*r)/r,d=a*r,h=m>s+a?m+n:m,f=[];for(const b of u)if(b<=s)f.push(b);else if(b>s+a+p)f.push(b+n);else if(b<=s+a)for(let w=0;w<=r;w++)f.push(b+a*w);else for(let w=0;w<=r;w++)f.push(b+d+p*w);l.set(h,f)}),l}return t}var D=String.fromCodePoint,k=String.raw,Y={},St=globalThis.RegExp;Y.flagGroups=(()=>{try{new St("(?i:)")}catch{return!1}return!0})();Y.unicodeSets=(()=>{try{new St("[[]]","v")}catch{return!1}return!0})();Y.bugFlagVLiteralHyphenIsRange=Y.unicodeSets?(()=>{try{new St(k`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Y.bugNestedClassIgnoresNegation=Y.unicodeSets&&new St("[[^a]]","v").test("a");function _t(t,{enable:e,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function qe(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}function ar(t,e){return cn[t]>=cn[e]}function zl(t,e){if(t==null)throw new Error(e??"Value expected");return t}var cn={ES2025:2025,ES2024:2024,ES2018:2018},ql={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function wi(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");
60if(t.target!==void 0&&!ql[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=Y.flagGroups?"ES2025":Y.unicodeSets?"ES2024":"ES2018"),e}var Xl="[ -\r ]",Kl=new Set([D(304),D(305)]),ne=k`[\p{L}\p{M}\p{N}\p{Pc}]`;function vi(t){if(Kl.has(t))return[t];const e=new Set,r=t.toLowerCase(),n=r.toUpperCase(),i=Yl.get(r),o=Ql.get(r),a=Jl.get(r);return[...n].length===1&&e.add(n),a&&e.add(a),i&&e.add(i),e.add(r),o&&e.add(o),[...e]}var vr=new Map(`C Other 61Cc Control cntrl 62Cf Format 63Cn Unassigned 64Co Private_Use 65Cs Surrogate 66L Letter 67LC Cased_Letter 68Ll Lowercase_Letter 69Lm Modifier_Letter 70Lo Other_Letter 71Lt Titlecase_Letter 72Lu Uppercase_Letter 73M Mark Combining_Mark 74Mc Spacing_Mark 75Me Enclosing_Mark 76Mn Nonspacing_Mark 77N Number 78Nd Decimal_Number digit 79Nl Letter_Number 80No Other_Number 81P Punctuation punct 82Pc Connector_Punctuation 83Pd Dash_Punctuation 84Pe Close_Punctuation 85Pf Final_Punctuation 86Pi Initial_Punctuation 87Po Other_Punctuation 88Ps Open_Punctuation 89S Symbol 90Sc Currency_Symbol 91Sk Modifier_Symbol 92Sm Math_Symbol 93So Other_Symbol 94Z Separator 95Zl Line_Separator 96Zp Paragraph_Separator 97Zs Space_Separator 98ASCII 99ASCII_Hex_Digit AHex 100Alphabetic Alpha 101Any 102Assigned 103Bidi_Control Bidi_C 104Bidi_Mirrored Bidi_M 105Case_Ignorable CI 106Cased 107Changes_When_Casefolded CWCF 108Changes_When_Casemapped CWCM 109Changes_When_Lowercased CWL 110Changes_When_NFKC_Casefolded CWKCF 111Changes_When_Titlecased CWT 112Changes_When_Uppercased CWU 113Dash 114Default_Ignorable_Code_Point DI 115Deprecated Dep 116Diacritic Dia 117Emoji 118Emoji_Component EComp 119Emoji_Modifier EMod 120Emoji_Modifier_Base EBase 121Emoji_Presentation EPres 122Extended_Pictographic ExtPict 123Extender Ext 124Grapheme_Base Gr_Base 125Grapheme_Extend Gr_Ext 126Hex_Digit Hex 127IDS_Binary_Operator IDSB 128IDS_Trinary_Operator IDST 129ID_Continue IDC 130ID_Start IDS 131Ideographic Ideo 132Join_Control Join_C 133Logical_Order_Exception LOE 134Lowercase Lower 135Math 136Noncharacter_Code_Point NChar 137Pattern_Syntax Pat_Syn 138Pattern_White_Space Pat_WS 139Quotation_Mark QMark 140Radical 141Regional_Indicator RI 142Sentence_Terminal STerm
143Soft_Dotted SD 144Terminal_Punctuation Term 145Unified_Ideograph UIdeo 146Uppercase Upper 147Variation_Selector VS 148White_Space space 149XID_Continue XIDC 150XID_Start XIDS`.split(/\s/).map(t=>[At(t),t])),Ql=new Map([["s",D(383)],[D(383),"s"]]),Jl=new Map([[D(223),D(7838)],[D(107),D(8490)],[D(229),D(8491)],[D(969),D(8486)]]),Yl=new Map([ue(453),ue(456),ue(459),ue(498),...Ut(8072,8079),...Ut(8088,8095),...Ut(8104,8111),ue(8124),ue(8140),ue(8188)]),Zl=new Map([["alnum",k`[\p{Alpha}\p{Nd}]`],["alpha",k`\p{Alpha}`],["ascii",k`\p{ASCII}`],["blank",k`[\p{Zs}\t]`],["cntrl",k`\p{Cc}`],["digit",k`\p{Nd}`],["graph",k`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",k`\p{Lower}`],["print",k`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",k`[\p{P}\p{S}]`],["space",k`\p{space}`],["upper",k`\p{Upper}`],["word",k`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",k`\p{AHex}`]]);function eu(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function ue(t){const e=D(t);return[e.toLowerCase(),e]}function Ut(t,e){return eu(t,e).map(r=>ue(r))}var Ci=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function tu(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Ai(t);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ar(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};Be(t,ru,n);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Be(t,nu,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Be(t,iu,a),t._originMap=o.groupOriginByCopy,t._strategy=n.strategy,t}var ru={AbsenceFunction({node:t,parent:e,replaceWith:r}){const{body:n,kind:i}=t;if(i==="repeater"){const o=J();o.body[0].body.push(_e({negate:!0,body:n}),Re("Any"));const a=J();a.body[0].body.push(fi("greedy",0,1/0,o)),r(T(a,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.body.filter(o=>o.kind==="flags");for(let o=r+1;o<e.body.length;o++){const a=e.body[o];qe(n,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var r;if((r=e.get(t))!=null&&r.length){const n=Si(e.get(t));if(n){const i=J({flags:n});i.body[0].body=t.body,t.body=[T(i,t)]}}}},Assertion({node:t,parent:e,key:r,container:n,root:i,remove:o,replaceWith:a},s){const{kind:l,negate:u}=t,{asciiWordBoundaries:m,avoidSubclass:p,supportedGNodes:d,wordIsAscii:h}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")a(T(_e({body:[ve({body:[rr("string_end")]}),ve({body:[Ct(10)]})]}),e));else if(l==="line_start")a(T(ie(k`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(d.has(t))i.flags.sticky=!0,o();else{const f=n[r-1];if(f&&cu(f))a(T(_e({negate:!0}),e));else{if(p)throw new Error(k`Uses "\G" in a way that requires a subclass`);a(ce(rr("string_start"),e)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(T(ie(k`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!h&&!m){const f=`(?:(?<=${ne})(?!${ne})|(?<!${ne})(?=${ne}))`,b=`(?:(?<=${ne})(?=${ne})|(?<!${ne})(?!${ne}))`;a(T(ie(u?b:f),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!jt(r)&&(r=Ft(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!jt(n)&&(n=Ft(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterClassRange({node:t,parent:e,replaceWith:r}){if(e.kind==="intersection"){const n=lt({body:[t]});r(T(n,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:s}){const{kind:l,negate:u,value:m}=t;if(o&&(l==="digit"||m==="digit")){r(ce(ir("digit",{negate:u}),e));return}if(a&&(l==="space"||m==="space")){r(T(Ht(ie(Xl),u),e));return}if(s&&(l==="word"||m==="word")){r(ce(ir("word",{negate:u}),e));return}if(l==="any")r(ce(Re("Any"),e));else if(l==="digit")r(ce(Re("Nd",{negate:u}),e));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(k`Use of "\X" requires non-strict accuracy`);const p="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=k`\p{RI}{2}|${p}(?:\u200D${p})*`;r(T(ie(k`(?>\r\n|${i?k`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}
150),e))}else if(l==="hex")r(ce(Re("AHex",{negate:u}),e));else if(l==="newline")r(T(ie(u?`[^ 151]`:`(?>\r 152?|[ 153\v\f \u2028\u2029])`),e));else if(l==="posix")if(!i&&(m==="graph"||m==="print")){if(n==="strict")throw new Error(`POSIX class "${m}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[m];u&&(p=`\0-${D(p.codePointAt(0)-1)}${D(p.codePointAt(2)+1)}-ô¿¿`),r(T(ie(`[${p}]`),e))}else r(T(Ht(ie(Zl.get(m)),u),e));else if(l==="property")vr.has(At(m))||(t.key="sc");else if(l==="space")r(ce(Re("space",{negate:u}),e));else if(l==="word")r(T(Ht(ie(ne),u),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:s,flags:l}=t;if(s==="flags")if(!l.enable&&!l.disable)n();else{const u=J({flags:l});u.body[0].body=a(),i(T(u,e),{traverse:!0})}else if(s==="keep"){const u=r.body[0],p=r.body.length===1&&mi(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(e.parent!==p||p.body.length>1)throw new Error(k`Uses "\K" in a way that's unsupported`);const d=_e({behind:!0});d.body[0].body=o(),i(T(d,e))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e!=null&&e.extended&&delete e.extended,r!=null&&r.extended&&delete r.extended,e!=null&&e.dotAll&&(r!=null&&r.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(r!=null&&r.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:r}=t;r==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:r}){const{kind:n}=t;if(n==="fail")r(T(_e({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=J();e.body[0].body.push(t.body),t.body=T(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=Ri(o.body);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(k`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!jt(r)&&(r=Ft(r,e),t.ref=r)}},nu={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){const u=i.get(t);if(u&&s.has(t.number)){const p=ce(pn(t.number),e);l.set(p,s.get(t.number)),r(p);return}s.set(t.number,t),a.set(t.number,[]),t.name&&qe(a,t.name,[]);const m=a.get(t.name??t.number);for(let p=0;p<m.length;p++){const d=m[p];if(u===d.node||u&&u===d.origin||t===d.origin){m.splice(p,1);break}}if(a.get(t.number).push({node:t,origin:u}),t.name&&a.get(t.name).push({node:t,origin:u}),t.name){const p=qe(o,t.name,new Map);let d=!1;if(u)d=!0;else for(const h of p.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}},exit({node:t},{openRefs:e}){e.get(t.number)===t&&e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=_t(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:r},n){const{isRecursive:i,ref:o}=t;if(i){let m=e;for(;(m=m.parent)&&!(m.type==="CapturingGroup"&&(m.name===o||m.number===o)););n.reffedNodesByReferencer.set(t,m);return}const a=n.subroutineRefMap.get(o),s=o===0,l=s?pn(0):ki(a,n.groupOriginByCopy,null);let u=l;if(!s){const m=Si(su(a,d=>d.type==="Group"&&!!d.flags)),p=m?_t(n.globalFlags,m):n.globalFlags;ou(p,n.currentFlags)||(u=J({flags:lu(p)}),u.body[0].body.push(l))}r(T(u,e),{traverse:!s})}},iu={Backreference({node:t,parent:e,replaceWith:r}
153,n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const o=n.reffedNodesByReferencer.get(t).filter(a=>au(a,t));if(!o.length)r(T(_e({negate:!0}),e));else if(o.length>1){const a=J({atomic:!0,body:o.reverse().map(s=>ve({body:[nr(s.number)]}))});r(T(a,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=hi();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Ai(t){Be(t,{"*"({node:e,parent:r}){e.parent=r}})}function ou(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function au(t,e){let r=e;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===t)return!1;const n=Ii(r.parent);for(const i of n){if(i===r)break;if(i===t||Li(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function ki(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[o,a]of Object.entries(t))o==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[o]=ki(a,e,i,r):(o==="type"&&a==="CapturingGroup"&&e.set(i,e.get(t)??t),i[o]=a);return i}function pn(t){const e=gi(t);return e.isRecursive=!0,e}function su(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function Ft(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function Si(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{var o,a;(o=n.enable)!=null&&o[i]&&(delete r.disable[i],r.enable[i]=!0),(a=n.disable)!=null&&a[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function lu({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function Ii(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Ri(t){const e=t.find(r=>r.kind==="search_start"||pu(r,{negate:!1})||!uu(r));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const r=[];for(const n of e.body){const i=Ri(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function Li(t,e){const r=Ii(t)??[];for(const n of r)if(n===e||Li(n,e))return!0;return!1}function uu({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function cu(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function pu(t,e){const r={negate:null,...e};return t.type==="LookaroundAssertion"&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&mi(t.body[0],{type:"Assertion",kind:"search_start"})}function jt(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function ie(t,e){const n=di(t,{...e,unicodePropertyMap:vr}).body;return n.length>1||n[0].body.length>1?J({body:n}):n[0].body[0]}function Ht(t,e){return t.negate=e,t}function ce(t,e){return t.parent=e,t}function T(t,e){return Ai(t),t.parent=e,t}function mu(t,e){const r=wi(e),n=ar(r.target,"ES2024"),i=ar(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){const h=[t.flags.ignoreCase];Be(t,du,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(f){h.push(f)}
153,setHasCasedChar(){h.at(-1)?a=!0:s=!0}})}const l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!s)};let u=t;const m={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(h){return m.lastNode=u,u=h,zl(hu[h.type],`Unexpected node type "${h.type}"`)(h,m,p)}const d={pattern:t.body.map(p).join("|"),flags:p(t.flags),options:{...t.options}};return n||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],m.captureMap.forEach((h,f)=>{h.hidden&&d._hiddenCaptures.push(f),h.transferTo&&qe(d._captureTransfers,h.transferTo,[]).push(f)}),d}var du={"*":{enter({node:t},e){if(dn(t)){const r=e.getCurrentModI();e.pushModI(t.flags?_t({ignoreCase:r},t.flags).ignoreCase:r)}},exit({node:t},e){dn(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedCh
153ar()},Character({node:t},e){Cr(D(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),Ti(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Ci.has(t.value)&&e.setHasCasedChar()}},hu={Alternative({body:t},e,r){return t.map(r).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?k`\B`:k`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,r){const{body:n,name:i,number:o}=t,a={ignoreCase:e.currentFlags.ignoreCase},s=e.originMap.get(t);return s&&(a.hidden=!0,o>s.number&&(a.transferTo=s.number)),e.captureMap.set(o,a),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:t},e){const r=D(t),n=Se(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Cr(r)){const i=vi(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(t,e,r){const{kind:n,negate:i,parent:o}=t;let{body:a}=t;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Y.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&a.some(hn)&&(a=[Ct(45),...a.filter(u=>!hn(u))]);const s=()=>`[${i?"^":""}${a.map(r).join(n==="intersection"?"&&":"")}]`;
153if(!e.inCharClass){if((!e.useFlagV||Y.bugNestedClassIgnoresNegation)&&!i){const m=a.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(m.length){const p=J(),d=p.body[0];return p.parent=o,d.parent=p,a=a.filter(h=>!m.includes(h)),t.body=a,a.length?(t.parent=d,d.body.push(t)):p.body.pop(),m.forEach(h=>{const f=ve({body:[h]});h.parent=f,f.parent=p,p.body.push(f)}),r(p)}}e.inCharClass=!0;const u=s();return e.inCharClass=!1,u}const l=a[0];if(n==="union"&&!i&&l&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(Y.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(r).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(t,e){const r=t.min.value,n=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=Se(r,i),a=Se(n,i),s=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=Ti(t);Eu(l).forEach(m=>{s.add(Array.isArray(m)?`${Se(m[0],i)}-${Se(m[1],i)}`:Se(m,i))})}return`${o}-${a}${[...s].join("")}`},CharacterSet({kind:t,negate:e,value:r,key:n},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":k`[^\n]`;if(t==="digit")return e?k`\D`:k`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ci.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?k`\P`:k`\p`}{${n?`${n}=`:""}${r}}`}if(t==="word")return e?k`\W`:k`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:r,parent:n},i,o){const a=i.currentFlags;r&&(i.currentFlags=_t(a,r));const s=e.map(o).join("|"),l=!i.verbose&&e.length===1&&n.type!=="Quantifier"&&!t&&(!i.useFlagMods||!r)?s:`(?${bu(t,r,i.useFlagMods)}${s})`;return i.currentFlags=a,l},LookaroundAssertion({body:t,kind:e,negate:r},n,i){return`(?${`${e==="lookahead"?"":"<"}${r?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,r){return r(t.body)+wu(t)},Subroutine({isRecursive:t,ref:e},r){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return e===0?`(?R=${n})`:k`\g<${e}&R=${n}>`}},fu=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),gu=new Set(["-","\\","]","^","["]),_u=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),mn=new Map([[9,k`\t`],[10,k`\n`],[11,k`\v`],[12,k`\f`],[13,k`\r`],[8232,k`\u2028`],[8233,k`\u2029`],[65279,k`\uFEFF`]]),yu=new RegExp("^\\p{Cased}$","u");function Cr(t){return yu.test(t)}function Ti(t,e){const r=!!(e!=null&&e.firstOnly),n=t.min.value,i=t.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let a=n;a<=i;a++){const s=D(a);if(!Cr(s))continue;const l=vi(s).filter(u=>{const m=u.codePointAt(0);return m<n||m>i});if(l.length&&(o.push(...l),r))break}return o}function Se(t,{escDigit:e,inCharClass:r,useFlagV:n}){if(mn.has(t))return mn.get(t);if(t<32||t>126&&t<160||t>262143||e&&vu(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?_u:gu:fu,o=D(t);return(i.has(o)?"\\":"")+o}function Eu(t){const e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??(n=e[i]):n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function bu(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:o}=e;n=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${n}:`}function wu({kind:t,max:e,min:r}){let n;return!r&&e===1?n="?":!r&&e===1/0?n="*":r===1&&e===1/0?n="+":r===e?n=`{${r}}`:n=`{${r},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[t]}function dn({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function vu(t){return t>47&&t<58}function hn({type:t,value:e}){return t==="Character"&&e===45}var pe,oe,be,me,we,Xe,sr,he,Cu=(he=class extends RegExp{constructor(r,n,i){var e=(...Ic)=>(super(...Ic),fe(this,Xe),fe(this,pe,new Map),fe(this,oe,null),fe(this,be),fe(this,me,null),fe(this,we,null),g(this,"rawOptions",{}),this);const o=!!(i!=null&&i.lazyCompile);
153if(r instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const a=r;e(a,n),Q(this,be,a.source),a instanceof he&&(Q(this,pe,F(a,pe)),Q(this,me,F(a,me)),Q(this,we,F(a,we)),this.rawOptions=a.rawOptions)}else{const a={hiddenCaptures:[],strategy:null,transfers:[],...i};e(o?"":r,n),Q(this,be,r),Q(this,pe,ku(a.hiddenCaptures,a.transfers)),Q(this,we,a.strategy),this.rawOptions=i??{}}o||Q(this,oe,this)}get source(){return F(this,be)||"(?:)"}exec(r){if(!F(this,oe)){const{lazyCompile:o,...a}=this.rawOptions;Q(this,oe,new he(F(this,be),this.flags,a))}const n=this.global||this.sticky,i=this.lastIndex;if(F(this,we)==="clip_search"&&n&&i){this.lastIndex=0;const o=Lt(this,Xe,sr).call(this,r.slice(i));return o&&(Au(o,i,r,this.hasIndices),this.lastIndex+=i),o}return Lt(this,Xe,sr).call(this,r)}},pe=new WeakMap,oe=new WeakMap,be=new WeakMap,me=new WeakMap,we=new WeakMap,Xe=new WeakSet,sr=function(r){F(this,oe).lastIndex=this.lastIndex;const n=Sr(he.prototype,this,"exec").call(F(this,oe),r);if(this.lastIndex=F(this,oe).lastIndex,!n||!F(this,pe).size)return n;const i=[...n];n.length=1;let o;this.hasIndices&&(o=[...n.indices],n.indices.length=1);const a=[0];for(let s=1;s<i.length;s++){const{hidden:l,transferTo:u}=F(this,pe).get(s)??{};if(l?a.push(null):(a.push(n.length),n.push(i[s]),this.hasIndices&&n.indices.push(o[s])),u&&i[s]!==void 0){const m=a[u];if(!m)throw new Error(`Invalid capture transfer to "${m}"`);if(n[m]=i[s],this.hasIndices&&(n.indices[m]=o[s]),n.groups){F(this,me)||Q(this,me,Su(this.source));const p=F(this,me).get(u);p&&(n.groups[p]=i[s],this.hasIndices&&(n.indices.groups[p]=o[s]))}}}return n},he);function Au(t,e,r,n){if(t.index+=e,t.input=r,n){const i=t.indices;for(let a=0;a<i.length;a++){const s=i[a];s&&(i[a]=[s[0]+e,s[1]+e])}const o=i.groups;o&&Object.keys(o).forEach(a=>{const s=o[a];s&&(o[a]=[s[0]+e,s[1]+e])})}}function ku(t,e){const r=new Map;for(const n of t)r.set(n,{hidden:!0});for(const[n,i]of e)for(const o of i)qe(r,o,{}).transferTo=n;return r}function Su(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,o;for(;o=e.exec(t);){const{0:a,groups:{capture:s,name:l}}=o;a==="["?n++:n?a==="]"&&n--:s&&(i++,l&&r.set(i,l))}return r}function Iu(t,e){const r=Ru(t,e);return r.options?new Cu(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Ru(t,e){const r=wi(e),n=di(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:vr}),i=tu(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=mu(i,r),a=Hl(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=Fl(a.pattern),l=Ul(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const m=l.hiddenCaptures.sort((f,b)=>f-b),p=Array.from(l.captureTransfers),d=i._strategy,h=u.pattern.length>=r.lazyCompileLength;(m.length||p.length||d||h)&&(u.options={...m.length&&{hiddenCaptures:m},...p.length&&{transfers:p},...d&&{strategy:d},...h&&{lazyCompile:h}})}return u}const fn=4294967295;class Lu{constructor(e,r={}){g(this,"regexps");this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:o}=r;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;const s=i==null?void 0:i.get(a);if(s){if(s instanceof RegExp)return s;if(n)return null;throw s}try{const l=o(a);return i==null||i.set(a,l),l}catch(l){if(i==null||i.set(a,l),n)return null;throw l}})}findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,o=[];function a(s,l,u=0){return{index:s,captureIndices:l.indices.map(m=>m==null?{start:fn,end:fn,length:0}:{start:m[0]+u,end:m[1]+u,length:m[1]-m[0]})}}for(let s=0;s<this.regexps.length;s++){const l=this.regexps[s];if(l)try{l.lastIndex=r;const u=l.exec(i);if(!u)continue;if(u.index===r)return a(s,u,0);o.push([s,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const s=Math.min(...o.map(l=>l[1].index));for(const[l,u,m]of o)if(u.index===s)return a(l,u,m)}return null}}function Tu(t,e){return Iu(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Xu(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||(e.regexConstructor=r=>Tu(r,{target:e.target})),{createScanner(r){return new Lu(r,e)},createString(r){return{content:r}}}}export{O as ShikiError,qn as addClassToHast,de as applyColorReplacements,ks as bundledLanguages,As as bundledLanguagesAlias,Cs as bundledLanguagesBase,oi as bundledLanguagesInfo,Is as bundledThemes,Ss as bundledThemesInfo,Fu as codeToHast,Uu as codeToHtml,ju as codeToTokens,Hu as codeToTokensBase,Wu as codeToTokensWithThemes,ii as createBundledHighlighter,Bu as createCssVariablesTheme,Ws as createHighlighter,ni as createHighlighterCore,$u as createHighlighterCoreSync,Xu as createJavaScriptRegexEngine,Hs as createOnigurumaEngine,Ga as createPositionConverter,Es as createShikiInternal,ri as createShikiInternalSync,vs as createSingletonShorthands,Gu as createdBundledHighlighter,Tu as defaultJavaScriptRegexConstructor,Nu as enableDeprecationWarnings,Ha as flatTokenVariants,qu as getLastGrammarState,zu as getSingletonHighlighter,Mu as getSingletonHighlighterCore,ft as getTokenStyleObject,Ba as guessEmbeddedLanguages,fs as hastToHtml,dr as isNoneTheme,mr as isPlainLang,Wn as isSpecialLang,zn as isSpecialTheme,Us as loadWasm,ws as makeSingletonHighlighter,bs as makeSingletonHighlighterCore,Hn as
153normalizeGetter,_r as normalizeTheme,ht as resolveColorReplacements,yt as splitLines,Fa as splitToken,ja as splitTokens,tr as stringifyTokenStyle,Ma as toArray,ns as tokenizeAnsiWithTheme,os as tokenizeWithTheme,ps as tokensToHast,qa as transformerDecorations,gs as warnDeprecated};
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.