ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
13 lines • 138 kB
JavaScript
const jt=require("./rolldown-runtime-DGqZhkpL.cjs");var Ue=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyNames,ir=Object.prototype.hasOwnProperty,or=(t,e)=>{let n={};for(var r in t)Ue(n,r,{get:t[r],enumerable:!0});return e||Ue(n,Symbol.toStringTag,{value:"Module"}),n},gt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var s=sr(e),i=0,o=s.length,a;i<o;i++)a=s[i],!ir.call(t,a)&&a!==n&&Ue(t,a,{get:(l=>e[l]).bind(null,a),enumerable:!(r=rr(e,a))||r.enumerable});return t},ar=(t,e,n)=>(gt(t,e,"default"),n&>(n,e,"default")),lr=jt.__exportAll({createOnigurumaEngine:()=>Tr,getDefaultWasmLoader:()=>Pr,loadWasm:()=>Wt,setDefaultWasmLoader:()=>Cr}),et=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function cr(){return 2147483648}function ur(){return typeof performance<"u"?performance.now():Date.now()}var hr=(t,e)=>t+(e-t%e)%e;async function dr(t){let e,n;const r={};function s(d){n=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function i(d,m,_){r.HEAPU8.copyWithin(d,m,m+_)}function o(d){try{return e.grow(d-n.byteLength+65535>>>16),s(e.buffer),1}catch{}}function a(d){const m=r.HEAPU8.length;d=d>>>0;const _=cr();if(d>_)return!1;for(let b=1;b<=4;b*=2){let g=m*(1+.2/b);if(g=Math.min(g,d+100663296),o(Math.min(_,hr(Math.max(d,g),65536))))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,m,_=1024){const b=m+_;let g=m;for(;d[g]&&!(g>=b);)++g;if(g-m>16&&d.buffer&&l)return l.decode(d.subarray(m,g));let y="";for(;m<g;){let v=d[m++];if(!(v&128)){y+=String.fromCharCode(v);continue}const C=d[m++]&63;if((v&224)===192){y+=String.fromCharCode((v&31)<<6|C);continue}const N=d[m++]&63;if((v&240)===224?v=(v&15)<<12|C<<6|N:v=(v&7)<<18|C<<12|N<<6|d[m++]&63,v<65536)y+=String.fromCharCode(v);else{const E=v-65536;y+=String.fromCharCode(55296|E>>10,56320|E&1023)}}return y}function h(d,m){return d?c(r.HEAPU8,d,m):""}const u={emscripten_get_now:ur,emscripten_memcpy_big:i,emscripten_resize_heap:a,fd_write:()=>0};async function f(){const d=await t({env:u,wasi_snapshot_preview1:u});e=d.memory,s(e.buffer),Object.assign(r,d),r.UTF8ToString=h}return await f(),r}var fr=Object.defineProperty,pr=(t,e,n)=>e in t?fr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e,n)=>pr(t,typeof e!="symbol"?e+"":e,n),L=null;function mr(t){throw new et(t.UTF8ToString(t.getLastOnigError()))}var $t=class Ut{constructor(e){T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16Value"),T(this,"utf8Value"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16");const n=e.length,r=Ut._utf8ByteLength(e),s=r!==n,i=s?new Uint32Array(n+1):null;s&&(i[n]=r);const o=s?new Uint32Array(r+1):null;s&&(o[r]=n);const a=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const h=e.charCodeAt(c);let u=h,f=!1;if(h>=55296&&h<=56319&&c+1<n){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(u=(h-55296<<10)+65536|d-56320,f=!0)}s&&(i[c]=l,f&&(i[c+1]=l),u<=127?o[l+0]=c:u<=2047?(o[l+0]=c,o[l+1]=c):u<=65535?(o[l+0]=c,o[l+1]=c,o[l+2]=c):(o[l+0]=c,o[l+1]=c,o[l+2]=c,o[l+3]=c)),u<=127?a[l++]=u:u<=2047?(a[l++]=192|(u&1984)>>>6,a[l++]=128|(u&63)>>>0):u<=65535?(a[l++]=224|(u&61440)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0):(a[l++]=240|(u&1835008)>>>18,a[l++]=128|(u&258048)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0),f&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let n=0;for(let r=0,s=e.length;r<s;r++){const i=e.charCodeAt(r);let o=i,a=!1;if(i>=55296&&i<=56319&&r+1<s){const l=e.charCodeAt(r+1);l>=56320&&l<=57343&&(o=(i-55296<<10)+65536|l-56320,a=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,a&&r++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}},Te=class B{constructor(e){if(T(this,"id",++B.LAST_ID),T(this,"_onigBinding"),T(this,"content"),T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16"),T(this,"ptr"),!L)throw new et("Must invoke loadWasm first.");this._onigBinding=L,this.content=e;const n=new $t(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!B._sharedPtrInUse?(B._sharedPtr||(B._sharedPtr=L.omalloc(1e4)),B._sharedPtrInUse=!0,L.HEAPU8.set(n.utf8Value,B._sharedPtr),this.ptr=B._sharedPtr):this.ptr=n.createString(L)}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===B._sharedPtr?B._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(Te,"LAST_ID",0);T(Te,"_sharedPtr",0);T(Te,"_sharedPtrInUse",!1);var Ht=Te,gr=class{constructor(t){if(T(this,"_onigBinding"),T(this,"_ptr"),!L)throw new et("Must invoke loadWasm first.");const e=[],n=[];for(let o=0,a=t.length;o<a;o++){const l=new $t(t[o]);e[o]=l.createString(L),n[o]=l.utf8Length}const r=L.omalloc(4*t.length);L.HEAPU32.set(e,r/4);const s=L.omalloc(4*t.length);L.HEAPU32.set(n,s/4);const i=L.createOnigScanner(r,s,t.length);for(let o=0,a=t.length;o<a;o++)L.ofree(e[o]);L.ofree(s),L.ofree(r),i===0&&mr(L),this._onigBinding=L,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,e,n){let r=0;if(typeof n=="number"&&(r=n),typeof t=="string"){t=new Ht(t);const s=this._findNextMatchSync(t,e,!1,r);return t.dispose(),s}return this._findNextMatchSync(t,e,!1,r)}_findNextMatchSync(t,e,n,r){const s=this._onigBinding,i=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),r);if(i===0)return null;const o=s.HEAPU32;let a=i/4;const l=o[a++],c=o[a++],h=[];for(let u=0;u<c;u++){const f=t.convertUtf8OffsetToUtf16(o[a++]),d=t.convertUtf8OffsetToUtf16(o[a++]);h[u]={start:f,end:d,length:d-f}}return{index:l,captureIndices:h}}};function yr(t){return typeof t.instantiator=="function"}function _r(t){return typeof t.default=="function"}function vr(t){return typeof t.data<"u"}function br(t){return typeof Response<"u"&&t instanceof Response}function Sr(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}var de;function Wt(t){if(de)return de;async function e(){L=await dr(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),yr(r)?r=await r.instantiator(n):_r(r)?r=await r.default(n):(vr(r)&&(r=r.data),br(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await kr(r)(n):r=await wr(r)(n):Sr(r)?r=await Oe(r)(n):r instanceof WebAssembly.Module?r=await Oe(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Oe(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return de=e(),de}function Oe(t){return e=>WebAssembly.instantiate(t,e)}function kr(t){return e=>WebAssembly.instantiateStreaming(t,e)}function wr(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}var Ft;function Cr(t){Ft=t}function Pr(){return Ft}async function Tr(t){return t&&await Wt(t),{createScanner(e){return new gr(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new Ht(e)}}}var zt=or({});ar(zt,lr);var Vt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>require("./andromeeda-BdF8dqHX.cjs")))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>require("./aurora-x-Cg0T99ch.cjs")))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./ayu-dark-0dWAWTPS.cjs")))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./ayu-light-CySrxmtK.cjs")))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>require("./ayu-mirage-DoaYWkjf.cjs")))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>Promise.resolve().then(()=>require("./catppuccin-frappe-BGxGqkjA.cjs")))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>require("./catppuccin-latte-C6FSWbLF.cjs")))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-BnEAZgKO.cjs")))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>require("./catppuccin-mocha-CPG5A_bn.cjs")))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>require("./dark-plus-CjVtwTrp.cjs")))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>require("./dracula-g25mANYw.cjs")))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>require("./dracula-soft-ndDNObRY.cjs")))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./everforest-dark-B8k-UElY.cjs")))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./everforest-light-CFDNo-tz.cjs")))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./github-dark-BkWBJT4-.cjs")))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>require("./github-dark-default-B3HBO0oM.cjs")))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>require("./github-dark-dimmed-CLAwdf1e.cjs")))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-BrxXtPcV.cjs")))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./github-light-CgxGgwEC.cjs")))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>require("./github-light-default-DZEKyKOa.cjs")))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>require("./github-light-high-contrast-DfgvScgR.cjs")))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>require("./gruvbox-dark-hard-CzOaOJLl.cjs")))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>require("./gruvbox-dark-medium-Dn3pVVVy.cjs")))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>require("./gruvbox-dark-soft-CkGaPjmT.cjs")))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>require("./gruvbox-light-hard-CX7EKD20.cjs")))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>require("./gruvbox-light-medium-B1XT3H-u.cjs")))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>require("./gruvbox-light-soft-J8Y4wrFn.cjs")))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>require("./horizon-Cmw3aRZ4.cjs")))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>require("./horizon-bright-DEhuMgj5.cjs")))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>require("./houston-CK5qBvcK.cjs")))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>require("./kanagawa-dragon-DStfv8E4.cjs")))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>require("./kanagawa-lotus-CGBhp9i7.cjs")))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>require("./kanagawa-wave-DPA3eEc5.cjs")))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>require("./laserwave-rG8a60D4.cjs")))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>require("./light-plus-BMpqdsxy.cjs")))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>require("./material-theme-CRnvWINB.cjs")))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>require("./material-theme-darker-Bme-3rj5.cjs")))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>require("./material-theme-lighter-BEPlmcbI.cjs")))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>require("./material-theme-ocean-szPyG6QY.cjs")))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>require("./material-theme-palenight-Db7Fe_tR.cjs")))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./min-dark-D5jKcSDB.cjs")))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./min-light-BfZfCl1D.cjs")))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>require("./monokai-DFB-Dk9z.cjs")))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>require("./night-owl-hs1YHr2H.cjs")))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./night-owl-light-DzeC9HNb.cjs")))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>require("./nord-CTh_TqIu.cjs")))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>require("./one-dark-pro-28_R7P0v.cjs")))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./one-light-DkUZ5orf.cjs")))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>require("./plastic-CftNCtzJ.cjs")))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>require("./poimandres-DlBATkkY.cjs")))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>require("./red-EzeYAzkR.cjs")))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>Promise.resolve().then(()=>require("./rose-pine-WCzzag2u.cjs")))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>require("./rose-pine-dawn-DChEqPMF.cjs")))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>require("./rose-pine-moon-DNLeWxg4.cjs")))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./slack-dark-By8CL20R.cjs")))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>require("./slack-ochin-CNyxWqdM.cjs")))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./snazzy-light-C5LzWFMU.cjs")))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./solarized-dark-BRx9q0hx.cjs")))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./solarized-light-CL6C3dTo.cjs")))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>require("./synthwave-84-C89Ra1gy.cjs")))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>require("./tokyo-night-C0X_dThP.cjs")))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>require("./vesper-BLMD7Yx3.cjs")))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>require("./vitesse-black-BuHOuPAM.cjs")))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>require("./vitesse-dark-D7GAJ8rV.cjs")))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>require("./vitesse-light-BowfCCEN.cjs")))}],Kt=Object.fromEntries(Vt.map(t=>[t.id,t.import])),w=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Rr(t){return tt(t)}function tt(t){return Array.isArray(t)?Nr(t):t instanceof RegExp?t:typeof t=="object"?Lr(t):t}function Nr(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=tt(t[n]);return e}function Lr(t){let e={};for(let n in t)e[n]=tt(t[n]);return e}function Yt(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function Jt(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Jt(t.substring(0,t.length-1)):t.substr(~e+1)}var Me=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fe=class{static hasCaptures(t){return t===null?!1:(Me.lastIndex=0,Me.test(t))}static replaceCaptures(t,e,n){return t.replace(Me,(r,s,i,o)=>{let a=n[parseInt(s||i,10)];if(a){let l=e.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(o){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Xt(t,e){return t<e?-1:t>e?1:0}function Qt(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let i=Xt(t[s],e[s]);if(i!==0)return i}return 0}return n-r}function yt(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 Zt(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var en=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},_e=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(Er(t),e)}static createFromParsedTheme(t,e){return Or(t,e)}_cachedMatchRoot=new en(t=>this._root.match(t));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(r=>Ar(t.parent,r.parentScopes));return n?new tn(n.fontStyle,n.foreground,n.background):null}},Be=class ge{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const r of n)e=new ge(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new ge(n,e[r]);return n}push(e){return new ge(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function Ar(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}for(;t&&!xr(t.scopeName,r);){if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function xr(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var tn=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function Er(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,i=e.length;s<i;s++){let o=e[s];if(!o.settings)continue;let a;if(typeof o.scope=="string"){let u=o.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),a=u.split(",")}else Array.isArray(o.scope)?a=o.scope:a=[""];let l=-1;if(typeof o.settings.fontStyle=="string"){l=0;let u=o.settings.fontStyle.split(" ");for(let f=0,d=u.length;f<d;f++)switch(u[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8}}let c=null;typeof o.settings.foreground=="string"&&yt(o.settings.foreground)&&(c=o.settings.foreground);let h=null;typeof o.settings.background=="string"&&yt(o.settings.background)&&(h=o.settings.background);for(let u=0,f=a.length;u<f;u++){let d=a[u].trim().split(" "),m=d[d.length-1],_=null;d.length>1&&(_=d.slice(0,d.length-1),_.reverse()),n[r++]=new Ir(m,_,s,l,c,h)}}return n}var Ir=class{constructor(t,e,n,r,s,i){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=i}},x=(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))(x||{});function Or(t,e){t.sort((l,c)=>{let h=Xt(l.scope,c.scope);return h!==0||(h=Qt(l.parentScopes,c.parentScopes),h!==0)?h:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let i=new Mr(e),o=new tn(n,i.getId(r),i.getId(s)),a=new qr(new He(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let h=t[l];a.insert(0,h.scope,h.parentScopes,h.fontStyle,i.getId(h.foreground),i.getId(h.background))}return new _e(i,o,a)}var Mr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;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)}},Br=Object.freeze([]),He=class nn{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,s,i){this.scopeDepth=e,this.parentScopes=n||Br,this.fontStyle=r,this.foreground=s,this.background=i}clone(){return new nn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){this.scopeDepth>e||(this.scopeDepth=e),n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},qr=class We{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=e.parentScopes.length||s>=n.parentScopes.length);){const i=n.parentScopes[s].length-e.parentScopes[r].length;if(i!==0)return i;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,i;if(r===-1?(s=e,i=""):(s=e.substring(0,r),i=e.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(We._cmpBySpecificity),n}insert(e,n,r,s,i,o){if(n===""){this._doInsertHere(e,r,s,i,o);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let h;this._children.hasOwnProperty(l)?h=this._children[l]:(h=new We(this._mainRule.clone(),He.cloneArr(this._rulesWithParentScopes)),this._children[l]=h),h.insert(e+1,c,r,s,i,o)}_doInsertHere(e,n,r,s,i){if(n===null){this._mainRule.acceptOverwrite(e,r,s,i);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let l=this._rulesWithParentScopes[o];if(Qt(l.parentScopes,n)===0){l.acceptOverwrite(e,r,s,i);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new He(e,n,r,s,i))}},H=class M{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){M.getLanguageId(e),M.getTokenType(e),M.getFontStyle(e),M.getForeground(e),M.getBackground(e)}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,n,r,s,i,o,a){let l=M.getLanguageId(e),c=M.getTokenType(e),h=M.containsBalancedBrackets(e)?1:0,u=M.getFontStyle(e),f=M.getForeground(e),d=M.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(h=s?1:0),i!==-1&&(u=i),o!==0&&(f=o),a!==0&&(d=a),(l<<0|c<<8|h<<10|u<<11|f<<15|d<<24)>>>0}};function ve(t,e){const n=[],r=Dr(t);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:`${s}`}s=r.next()}let c=o();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function i(){if(s==="-"){s=r.next();const l=i();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(_t(s)){const l=[];do l.push(s),s=r.next();while(_t(s));return c=>e(l,c)}return null}function o(){const l=[];let c=i();for(;c;)l.push(c),c=i();return h=>l.every(u=>u(h))}function a(){const l=[];let c=o();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=o()}return h=>l.some(u=>u(h))}}function _t(t){return!!t&&!!t.match(/[\w\.:]+/)}function Dr(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}function rn(t){typeof t.dispose=="function"&&t.dispose()}var Q=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Gr=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},jr=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},$r=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new jr;for(const n of t)Ur(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Q){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Ur(t,e,n,r){const s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const i=n.lookup(e);t instanceof Q?ye({baseGrammar:i,selfGrammar:s},r):Fe(t.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},r);const o=n.injections(t.scopeName);if(o)for(const a of o)r.add(new Q(a))}function Fe(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];be([r],e,n)}}function ye(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&be(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&be(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function be(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Yt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&be(r.patterns,{...e,repository:s},n);const i=r.include;if(!i)continue;const o=sn(i);switch(o.kind){case 0:ye({...e,selfGrammar:e.baseGrammar},n);break;case 1:ye(e,n);break;case 2:Fe(o.ruleName,{...e,repository:s},n);break;case 3:case 4:const a=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};o.kind===4?Fe(o.ruleName,l,n):ye(l,n)}else o.kind===4?n.add(new Gr(o.scopeName,o.ruleName)):n.add(new Q(o.scopeName))}}}var Hr=class{kind=0},Wr=class{kind=1},Fr=class{constructor(t){this.ruleName=t}kind=2},zr=class{constructor(t){this.scopeName=t}kind=3},Vr=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function sn(t){if(t==="$base")return new Hr;if(t==="$self")return new Wr;const e=t.indexOf("#");return e===-1?new zr(t):e===0?new Fr(t.substring(1)):new Vr(t.substring(0,e),t.substring(e+1))}var Kr=/\\(\d+)/,vt=/\\(\d+)/g,Yr=-1,on=-2;var oe=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=fe.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=fe.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Jt(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:fe.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fe.replaceCaptures(this._contentName,t,e)}},Jr=class extends oe{retokenizeCapturedWithRuleId;constructor(t,e,n,r,s){super(t,e,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,r){throw new Error("Not supported!")}},Xr=class extends oe{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,null),this._match=new Z(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},bt=class extends oe{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ze=class extends oe{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s,i,o,a,l,c){super(t,e,n,r),this._begin=new Z(s,this.id),this.beginCaptures=i,this._end=new Z(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ee;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Se=class extends oe{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,s,i,o,a,l){super(t,e,n,r),this._begin=new Z(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Z(o,on),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ee;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ee,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},an=class A{static createCaptureRule(e,n,r,s,i){return e.registerRule(o=>new Jr(n,o,r,s,i))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(s=>{if(e.id=s,e.match)return new Xr(e.$vscodeTextmateLocation,e.id,e.name,e.match,A._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=Yt({},r,e.repository));let i=e.patterns;return typeof i>"u"&&e.include&&(i=[{include:e.include}]),new bt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,A._compilePatterns(i,n,r))}return e.while?new Se(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,A._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,A._compileCaptures(e.whileCaptures||e.captures,n,r),A._compilePatterns(e.patterns,n,r)):new ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,A._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,A._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,A._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let s=[];if(e){let i=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);a>i&&(i=a)}for(let o=0;o<=i;o++)s[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);let l=0;e[o].patterns&&(l=A.getCompiledRuleId(e[o],n,r)),s[a]=A.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,l)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let i=0,o=e.length;i<o;i++){const a=e[i];let l=-1;if(a.include){const c=sn(a.include);switch(c.kind){case 0:case 1:l=A.getCompiledRuleId(r[a.include],n,r);break;case 2:let h=r[c.ruleName];h&&(l=A.getCompiledRuleId(h,n,r));break;case 3:case 4:const u=c.scopeName,f=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(u,r);if(d)if(f){let m=d.repository[f];m&&(l=A.getCompiledRuleId(m,n,d.repository))}else l=A.getCompiledRuleId(d.repository.$self,n,d.repository)}}else l=A.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let h=!1;if((c instanceof bt||c instanceof ze||c instanceof Se)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},Z=class ln{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){const r=e.length;let s=0,i=[],o=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const l=e.charAt(a+1);l==="z"?(i.push(e.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2):(l==="A"||l==="G")&&(o=!0),a++}this.hasAnchor=o,s===0?this.source=e:(i.push(e.substring(s,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Kr.test(this.source):this.hasBackReferences=!1}clone(){return new ln(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>e.substring(s.start,s.end));return vt.lastIndex=0,this.source.replace(vt,(s,i)=>Zt(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],i,o,a,l;for(i=0,o=this.source.length;i<o;i++)a=this.source.charAt(i),e[i]=a,n[i]=a,r[i]=a,s[i]=a,a==="\\"&&i+1<o&&(l=this.source.charAt(i+1),l==="A"?(e[i+1]="",n[i+1]="",r[i+1]="A",s[i+1]="A"):l==="G"?(e[i+1]="",n[i+1]="G",r[i+1]="",s[i+1]="G"):(e[i+1]=l,n[i+1]=l,r[i+1]=l,s[i+1]=l),i++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ee=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}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(n=>n.source);this._cached=new St(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){return new St(t,this._items.map(r=>r.resolveAnchors(e,n)),this._items.map(r=>r.ruleId))}},St=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
`)}findNextMatchSync(t,e,n){const r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},qe=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Qr=class Ve{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new qe(e,8),this._embeddedLanguagesMatcher=new Zr(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ve._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new qe(0,0);_getBasicScopeAttributes=new en(e=>new qe(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Ve.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Zr=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,r])=>Zt(n));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])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var cn=!1,kt=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function un(t,e,n,r,s,i,o,a){const l=e.content.length;let c=!1,h=-1;if(o){const d=es(t,e,n,r,s,i);s=d.stack,r=d.linePos,n=d.isFirstLine,h=d.anchorPosition}const u=Date.now();for(;!c;){if(a!==0&&Date.now()-u>a)return new kt(s,!0);f()}return new kt(s,!1);function f(){const d=ts(t,e,n,r,s,h);if(!d){i.produce(s,l),c=!0;return}const m=d.captureIndices,_=d.matchedRuleId,b=m&&m.length>0?m[0].end>r:!1;if(_===Yr){const g=s.getRule(t);i.produce(s,m[0].start),s=s.withContentNameScopesList(s.nameScopesList),J(t,e,n,s,i,g.endCaptures,m),i.produce(s,m[0].end);const y=s;if(s=s.parent,h=y.getAnchorPos(),!b&&y.getEnterPos()===r){s=y,i.produce(s,l),c=!0;return}}else{const g=t.getRule(_);i.produce(s,m[0].start);const y=s,v=g.getName(e.content,m),C=s.contentNameScopesList.pushAttributed(v,t);if(s=s.push(_,r,h,m[0].end===l,null,C,C),g instanceof ze){const N=g;J(t,e,n,s,i,N.beginCaptures,m),i.produce(s,m[0].end),h=m[0].end;const E=N.getContentName(e.content,m),j=C.pushAttributed(E,t);if(s=s.withContentNameScopesList(j),N.endHasBackReferences&&(s=s.withEndRule(N.getEndWithResolvedBackReferences(e.content,m))),!b&&y.hasSameRuleAs(s)){s=s.pop(),i.produce(s,l),c=!0;return}}else if(g instanceof Se){const N=g;J(t,e,n,s,i,N.beginCaptures,m),i.produce(s,m[0].end),h=m[0].end;const E=N.getContentName(e.content,m),j=C.pushAttributed(E,t);if(s=s.withContentNameScopesList(j),N.whileHasBackReferences&&(s=s.withEndRule(N.getWhileWithResolvedBackReferences(e.content,m))),!b&&y.hasSameRuleAs(s)){s=s.pop(),i.produce(s,l),c=!0;return}}else if(J(t,e,n,s,i,g.captures,m),i.produce(s,m[0].end),s=s.pop(),!b){s=s.safePop(),i.produce(s,l),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function es(t,e,n,r,s,i){let o=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const c=l.getRule(t);c instanceof Se&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:h}=ss(l.rule,t,l.stack.endRule,n,r===o),u=c.findNextMatchSync(e,r,h);if(u){if(u.ruleId!==on){s=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(i.produce(l.stack,u.captureIndices[0].start),J(t,e,n,l.stack,i,l.rule.whileCaptures,u.captureIndices),i.produce(l.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:o,isFirstLine:n}}function ts(t,e,n,r,s,i){const o=ns(t,e,n,r,s,i),a=t.getInjections();if(a.length===0)return o;const l=rs(a,t,e,n,r,s,i);if(!l)return o;if(!o)return l;const c=o.captureIndices[0].start,h=l.captureIndices[0].start;return h<c||l.priorityMatch&&h===c?l:o}function ns(t,e,n,r,s,i){const{ruleScanner:o,findOptions:a}=hn(s.getRule(t),t,s.endRule,n,r===i),l=o.findNextMatchSync(e,r,a);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function rs(t,e,n,r,s,i,o){let a=Number.MAX_VALUE,l=null,c,h=0;const u=i.contentNameScopesList.getScopeNames();for(let f=0,d=t.length;f<d;f++){const m=t[f];if(!m.matcher(u))continue;const{ruleScanner:_,findOptions:b}=hn(e.getRule(m.ruleId),e,null,r,s===o),g=_.findNextMatchSync(n,s,b);if(!g)continue;const y=g.captureIndices[0].start;if(!(y>=a)&&(a=y,l=g.captureIndices,c=g.ruleId,h=m.priority,a===s))break}return l?{priorityMatch:h===-1,captureIndices:l,matchedRuleId:c}:null}function hn(t,e,n,r,s){return cn?{ruleScanner:t.compile(e,n),findOptions:dn(r,s)}:{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function ss(t,e,n,r,s){return cn?{ruleScanner:t.compileWhile(e,n),findOptions:dn(r,s)}:{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function dn(t,e){let n=0;return t||(n|=1),e||(n|=4),n}function J(t,e,n,r,s,i,o){if(i.length===0)return;const a=e.content,l=Math.min(i.length,o.length),c=[],h=o[0].end;for(let u=0;u<l;u++){const f=i[u];if(f===null)continue;const d=o[u];if(d.length===0)continue;if(d.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,d.start):s.produce(r,d.start),f.retokenizeCapturedWithRuleId){const _=f.getName(a,o),b=r.contentNameScopesList.pushAttributed(_,t),g=f.getContentName(a,o),y=b.pushAttributed(g,t),v=r.push(f.retokenizeCapturedWithRuleId,d.start,-1,!1,null,b,y),C=t.createOnigString(a.substring(0,d.end));un(t,C,n&&d.start===0,d.start,v,s,!1,0),rn(C);continue}const m=f.getName(a,o);if(m!==null){const _=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);c.push(new is(_,d.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var is=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function os(t,e,n,r,s,i,o,a){return new ls(t,e,n,r,s,i,o,a)}function wt(t,e,n,r,s){const i=ve(e,ke),o=an.getCompiledRuleId(n,r,s.repository);for(const a of i)t.push({debugSelector:e,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function ke(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let s=n;s<e.length;s++)if(as(e[s],r))return n=s+1,!0;return!1})}function as(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var ls=class{constructor(t,e,n,r,s,i,o,a){if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new Qr(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ct(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=ve(l,ke);for(const h of c)this._tokenTypeMatchers.push({matcher:h.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;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:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){const s=r.injections;if(s)for(let o in s)wt(e,o,s[o],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach(o=>{const a=this.getExternalGrammar(o);if(a){const l=a.injectionSelector;l&&wt(e,l,a,this,a)}})}return e.sort((s,i)=>s.priority-i.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Ct(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){const r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=an.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!e||e===Ke.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),u=H.set(0,c.languageId,c.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),f=this.getRule(this._rootId).getName(null,null);let d;f?d=X.createRootAndLookUpScopeName(f,u,this):d=X.createRoot("unknown",u),e=new Ke(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,e.reset();t=t+`
`;const i=this.createOnigString(t),o=i.content.length,a=new us(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=un(this,i,s,0,e,a,!0,r);return rn(i),{lineLength:o,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Ct(t,e){return t=Rr(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 X=class q{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(const i of n)s=Be.push(s,i.scopeNames),r=new q(r,s,i.encodedTokenAttributes);return r}static createRoot(e,n){return new q(null,new Be(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const s=r.getMetadataForScope(e),i=new Be(null,e),o=r.themeProvider.themeMatch(i),a=q.mergeAttributes(n,s,o);return new q(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return q.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,i=0,o=0;return r!==null&&(s=r.fontStyle,i=r.foregroundId,o=r.backgroundId),H.set(e,n.languageId,n.tokenType,null,s,i,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return q._pushAttributed(this,e,n);const r=e.split(/ /g);let s=this;for(const i of r)s=q._pushAttributed(s,i,n);return s}static _pushAttributed(e,n,r){const s=r.getMetadataForScope(n),i=e.scopePath.push(n),o=r.themeProvider.themeMatch(i),a=q.mergeAttributes(e.tokenAttributes,s,o);return new q(e,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},Ke=class ${constructor(e,n,r,s,i,o,a,l){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new $(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:$._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?X.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){$._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,s,i,o,a){return new $(this,e,n,r,s,i,o,a)}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,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}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 $(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const r=X.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new $(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,X.fromExtension(r,n.contentNameScopesList))}},cs=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ve(n,ke).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>ve(n,ke).map(r=>r.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}},us=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=t?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(i)&&(r=H.set(r,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(i))}if(s&&(r=H.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),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 n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},hs=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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,n,r,s){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,os(t,i,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},ds=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new hs(_e.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(_e.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new cs(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){const i=new $r(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(o=>this._loadSingleGrammar(o.scopeName)),i.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const e=this._options.loadGrammar(t);if(e){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},Ye=Ke.NULL;function te(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[s,i]of Object.entries(e?.colorReplacements||{}))typeof i=="string"?n[s]=i:s===r&&Object.assign(n,i);return n}function G(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function fn(t){return Array.isArray(t)?t:[t]}async function nt(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function ae(t){return!t||["plaintext","txt","text","plain"].includes(t)}function rt(t){return t==="ansi"||ae(t)}function le(t){return t==="none"}function st(t){return le(t)}var fs=/(\r?\n)/g;function ce(t,e=!1){if(t.length===0)return[["",0]];const n=t.split(fs);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const o=e?n[i]+(n[i+1]||""):n[i];s.push([o,r]),r+=n[i].length,r+=n[i+1]?.length||0}return s}var Pt={light:"#333333",dark:"#bbbbbb"},Tt={light:"#fffffe",dark:"#1e1e1e"},Rt="__shiki_resolved";function Re(t){if(t?.[Rt])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const a=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Pt.light:Pt.dark),n||(n=e.type==="light"?Tt.light:Tt.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0;const i=new Map;function o(a){if(i.has(a))return i.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?o(a):(i.set(a,l),l)}e.settings=e.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const h={...a,settings:{...a.settings}};if(l){const u=o(a.settings.foreground);e.colorReplacements[u]=a.settings.foreground,h.settings.foreground=u}if(c){const u=o(a.settings.background);e.colorReplacements[u]=a.settings.background,h.settings.background=u}return h});for(const a of Object.keys(e.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!e.colors[a]?.startsWith("#")){const l=o(e.colors[a]);e.colorReplacements[l]=e.colors[a],e.colors[a]=l}return Object.defineProperty(e,Rt,{enumerable:!1,writable:!1,value:!0}),e}async function pn(t){return[...new Set((await Promise.all(t.filter(e=>!rt(e)).map(async e=>await nt(e).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function mn(t){return(await Promise.all(t.map(async e=>st(e)?null:Re(await nt(e))))).filter(e=>!!e)}function gn(t,e){if(!e)return t;if(e[t]){const n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new w(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var ps=class extends ds{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,r={}){super(t),this._resolver=t,this._themes=e,this._langs=n,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const e=Re(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);e||(e=_e.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e)}getGrammar(t){return t=gn(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const e=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,e.size)for(const s of e)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const e=[...this._langGraph.entries()],n=e.filter(([r,s])=>!s);if(n.length){const r=e.filter(([s,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(o=>n.map(([a])=>a).includes(o)):!1).filter(s=>!n.includes(s));throw new w(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of e)this._resolver.addLanguage(s);for(const[r,s]of e)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const e=t.embeddedLanguages??t.embeddedLangs;if(e)for(const n of e)this._langGraph.set(n,this._langMap.get(n))}},ms=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,e){this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(e=>{this._langs.set(e,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)})}getInjections(t){const e=t.split(".");let n=[];for(let r=1;r<=e.length;r++){const s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},Y=0;function Ne(t){Y+=1,t.warnings!==!1&&Y>=10&&Y%10===0&&console.warn(`[Shiki] ${Y} 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 w("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(Re),s=new ps(new ms(t.engine,n),r,n,t.langAlias);let i;function o(y){return gn(y,t.langAlias)}function a(y){b();const v=s.getGrammar(typeof y=="string"?y:y.name);if(!v)throw new w(`Language \`${y}\` not found, you may need to load it first`);return v}function l(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const v=s.getTheme(y);if(!v)throw new w(`Theme \`${y}\` not found, you may need to load it first`);return v}function c(y){b();const v=l(y);return i!==y&&(s.setTheme(v),i=y),{theme:v,colorMap:s.getColorMap()}}function h(){return b(),s.getLoadedThemes()}function u(){return b(),s.getLoadedLanguages()}function f(...y){b(),s.loadLanguages(y.flat(1))}async function d(...y){return f(await pn(y))}function m(...y){b();for(const v of y.flat(1))s.loadTheme(v)}async function _(...y){return b(),m(await mn(y))}function b(){if(e)throw new w("Shiki instance has been disposed")}function g(){e||(e=!0,s.dispose(),Y-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:h,getLoadedLanguages:u,resolveLangAlias:o,loadLanguage:d,loadLanguageSync:f,loadTheme:_,loadThemeSync:m,dispose:g,[Symbol.dispose]:g}}var gs=Ne;async function it(t){t.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,r]=await Promise.all([mn(t.themes||[]),pn(t.langs||[]),t.engine]);return Ne({...t,themes:e,langs:n,engine:r})}var ys=it,yn=new WeakMap;function Le(t,e){yn.set(t,e)}function ne(t){return yn.get(t)}var Ae=class _n{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new _n(Object.fromEntries(fn(n).map(r=>[r,Ye])),e)}constructor(...e){if(e.length===2){const[n,r]=e;this.lang=r,this._stacks=n}else{const[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return _s(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function _s(t){const e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const i=s?.nameScopesList?.scopeName;i&&e.push(i),s.parent&&r(s.parent)}return r(t),e}function vs(t,e){if(!(t instanceof Ae))throw new w("Invalid grammar state");return t.getInternalStack(e)}var bs=/,/,Ss=/ /;function vn(t,e,n={}){const{theme:r=t.getLoadedThemes()[0]}=n;if(ae(t.resolveLangAlias(n.lang||"text"))||le(r))return ce(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:s,colorMap:i}=t.setTheme(r),o=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new w(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new w(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Sn(e,o,s,i,n)}function bn(...t){if(t.length===2)return ne(t[1]);const[e,n,r={}]=t,{lang:s="text",theme:i=e.getLoadedThemes()[0]}=r;if(ae(s)||le(i))throw new w("Plain language does not have grammar state");if(s==="ansi")throw new w("ANSI language does not have grammar state");const{theme:o,colorMap:a}=e.setTheme(i),l=e.getLanguage(s);return new Ae(ot(n,l,o,a,r).stateStack,l.name,o.name)}function Sn(t,e,n,r,s){const i=ot(t,e,n,r,s),o=new Ae(i.stateStack,e.name,n.name);return Le(i.tokens,o),i.tokens}function ot(t,e,n,r,s){const i=te(n,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=s,c=ce(t);let h=s.grammarState?vs(s.grammarState,n.name)??Ye:s.grammarContextCode!=null?ot(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ye,u=[];const f=[];for(let d=0,m=c.length;d<m;d++){const[_,b]=c[d];if(_===""){u=[],f.push([]);continue}if(o>0&&_.length>=o){u=[],f.push([{content:_,offset:b,color:"",fontStyle:0}]);continue}let g,y,v;l&&l!=="tokenType"&&(g=e.tokenizeLine(_,h,a),y=g.tokens,v=0);const C=e.tokenizeLine2(_,h,a),N=C.tokens.length/2;for(let E=0;E<N;E++){const j=C.tokens[2*E],xe=E+1<N?C.tokens[2*E+2]:_.length;if(j===xe)continue;const Ee=C.tokens[2*E+1],tr=G(r[H.getForeground(Ee)],i),nr=H.getFontStyle(Ee),he={content:_.substring(j,xe),offset:b+j,color:tr,fontStyle:nr};if(l==="tokenType")he.type=H.getTokenType(Ee);else if(l){const pt=[];if(l!=="scopeName")for(const D of n.settings){let z;switch(typeof D.scope){case"string":z=D.scope.split(bs).map(Ie=>Ie.trim());break;case"object":z=D.scope;break;default:continue}pt.push({settings:D,selectors:z.map(Ie=>Ie.split(Ss))})}he.explanation=[];let mt=0;for(;j+mt<xe;){const D=y[v],z=_.substring(D.startIndex,D.endIndex);mt+=z.length,he.explanation.push({content:z,scopes:l==="scopeName"?ks(D.scopes):ws(pt,D.scopes)}),v+=1}}u.push(he)}f.push(u),u=[],h=C.ruleStack}return{tokens:f,stateStack:h}}function ks(t){return t.map(e=>({scopeName:e}))}function ws(t,e){const n=[];for(let r=0,s=e.length;r<s;r++){const i=e[r];n[r]={scopeName:i,themeMatches:Ps(t,i,e.slice(0,r))}}return n}function Nt(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Cs(t,e,n){if(!Nt(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;for(;r>=0&&s>=0;)Nt(t[r],n[s])&&(r-=1),s-=1;return r===-1}function Ps(t,e,n){const r=[];for(const{selectors:s,settings:i}of t)for(const o of s)if(Cs(o,e,n)){r.push(i);break}return r}function at(t,e,n,r=vn){const s=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),i=s.map(c=>{const h=r(t,e,{...n,theme:c.theme});return{tokens:h,state:ne(h),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),o=Ts(...i.map(c=>c.tokens)),a=o[0].map((c,h)=>c.map((u,f)=>{const d={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=u.explanation),o.forEach((m,_)=>{const{content:b,explanation:g,offset:y,...v}=m[h][f];d.variants[s[_].color]=v}),d})),l=i[0].state?new Ae(Object.fromEntries(i.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),i[0].state.lang):void 0;return l&&Le(a,l),a}function Ts(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const s=t.map(l=>l[r]),i=e.map(()=>[]);e.forEach((l,c)=>l.push(i[c]));const o=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const h=a[c];h.content.length===l?(i[c].push(h),o[c]+=1,a[c]=s[c][o[c]]):(i[c].push({...h,content:h.content.slice(0,l)}),a[c]={...h,content:h.content.slice(l),offset:h.offset+l})}}}return e}var Rs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ue=class{constructor(t,e,n){this.normal=e,this.property=t,n&&(this.space=n)}};ue.prototype.normal={};ue.prototype.property={};ue.prototype.space=void 0;function kn(t,e){const n={},r={};for(const s of t)Object.assign(n,s.property),Object.assign(r,s.normal);return new ue(n,r,e)}function Je(t){return t.toLowerCase()}var I=class{constructor(t,e){this.attribute=e,this.property=t}};I.prototype.attribute="";I.prototype.booleanish=!1;I.prototype.boolean=!1;I.prototype.commaOrSpaceSeparated=!1;I.prototype.commaSeparated=!1;I.prototype.defined=!1;I.prototype.mustUseProperty=!1;I.prototype.number=!1;I.prototype.overloadedBoolean=!1;I.prototype.property="";I.prototype.spaceSeparated=!1;I.prototype.space=void 0;var Xe=jt.__exportAll({boolean:()=>S,booleanish:()=>P,commaOrSpaceSeparated:()=>O,commaSeparated:()=>W,number:()=>p,overloadedBoolean:()=>Qe,spaceSeparated:()=>k}),Ns=0,S=F(),P=F(),Qe=F(),p=F(),k=F(),W=F(),O=F();function F(){return 2**++Ns}var De=Object.keys(Xe),lt=class extends I{constructor(t,e,n,r){let s=-1;if(super(t,e),Lt(this,"space",r),typeof n=="number")for(;++s<De.length;){const i=De[s];Lt(this,De[s],(n&Xe[i])===Xe[i])}}};lt.prototype.defined=!0;function Lt(t,e,n){n&&(t[e]=n)}function K(t){const e={},n={};for(const[r,s]of Object.entries(t.properties)){const i=new lt(r,t.transform(t.attributes||{},r),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,n[Je(r)]=r,n[Je(i.attribute)]=r}return new ue(e,n,t.space)}var wn=K({properties:{ariaActiveDescendant:null,ariaAtomic:P,ariaAutoComplete:null,ariaBusy:P,ariaChecked:P,ariaColCount:p,ariaColIndex:p,ariaColSpan:p,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:P,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:P,ariaFlowTo:k,ariaGrabbed:P,ariaHasPopup:null,ariaHidden:P,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:p,ariaLive:null,ariaModal:P,ariaMultiLine:P,ariaMultiSelectable:P,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:p,ariaPressed:P,ariaReadOnly:P,ariaRelevant:null,ariaRequired:P,ariaRoleDescription:k,ariaRowCount:p,ariaRowIndex:p,ariaRowSpan:p,ariaSelected:P,ariaSetSize:p,ariaSort:null,ariaValueMax:p,ariaValueMin:p,ariaValueNow:p,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Cn(t,e){return e in t?t[e]:e}function Pn(t,e){return Cn(t,e.toLowerCase())}var Ls=K({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:W,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:S,allowPaymentRequest:S,allowUserMedia:S,alpha:S,alt:null,as:null,async:S,autoCapitalize:null,autoComplete:k,autoFocus:S,autoPlay:S,blocking:k,capture:null,charSet:null,checked:S,cite:null,className:k,closedBy:null,colorSpace:null,cols:p,colSpan:p,command:null,commandFor:null,content:null,contentEditable:P,controls:S,controlsList:k,coords:p|W,crossOrigin:null,data:null,dateTime:null,decoding:null,default:S,defer:S,dir:null,dirName:null,disabled:S,download:Qe,draggable:P,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:S,formTarget:null,headers:k,height:p,hidden:Qe,high:p,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:S,inputMode:null,integrity:null,is:null,isMap:S,itemId:null,itemProp:k,itemRef:k,itemScope:S,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:S,low:p,manifest:null,max:null,maxLength:p,media:null,method:null,min:null,minLength:p,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:p,pattern:null,ping:k,placeholder:null,playsInline:S,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:S,referrerPolicy:null,rel:k,required:S,reversed:S,rows:p,rowSpan:p,sandbox:k,scope:null,scoped:S,seamless:S,selected:S,shadowRootClonable:S,shadowRootCustomElementRegistry:S,shadowRootDelegatesFocus:S,shadowRootMode:null,shadowRootSerializable:S,shape:null,size:p,sizes:null,slot:null,span:p,spellCheck:P,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p,step:null,style:null,tabIndex:p,target:null,title:null,translate:null,type:null,typeMustMatch:S,useMap:null,value:P,width:p,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:p,borderColor:null,bottomMargin:p,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:p,leftMargin:p,link:null,longDesc:null,lowSrc:null,marginHeight:p,marginWidth:p,noResize:S,noHref:S,noShade:S,noWrap:S,object:null,profile:null,prompt:null,rev:null,rightMargin:p,rules:null,scheme:null,scrolling:P,standby:null,summary:null,text:null,topMargin:p,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:S,disablePictureInPicture:S,disableRemotePlayback:S,exportParts:W,part:k,prefix:null,property:null,results:p,security:null,unselectable:null},space:"html",transform:Pn}),As=K({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",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:O,accentHeight:p,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p,amplitude:p,arabicForm:null,ascent:p,attributeName:null,attributeType:null,azimuth:p,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p,by:null,calcMode:null,capHeight:p,className:k,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:p,diffuseConstant:p,direction:null,display:null,dur:null,divisor:p,dominantBaseline:null,download:S,dx:null,dy:null,edgeMode:null,editable:null,elevation:p,enableBackground:null,end:null,event:null,exponent:p,externalResourcesRequired:null,fill:null,fillOpacity:p,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:W,g2:W,glyphName:W,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p,horizOriginX:p,horizOriginY:p,id:null,ideographic:p,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p,k:p,k1:p,k2:p,k3:p,k4:p,kernelMatrix:O,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:p,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:p,overlineThickness:p,paintOrder:null,panose1:null,path:null,pathLength:p,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p,pointsAtY:p,pointsAtZ:p,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O,rev:O,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O,requiredFeatures:O,requiredFonts:O,requiredFormats:O,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:p,specularExponent:p,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p,strikethroughThickness:p,string:null,stroke:null,strokeDashArray:O,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p,strokeOpacity:p,strokeWidth:null,style:null,surfaceScale:p,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O,tabIndex:p,tableValues:null,target:null,targetX:p,targetY:p,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p,underlineThickness:p,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p,values:null,vAlphabetic:p,vMathematical:p,vectorEffect:null,vHanging:p,vIdeographic:p,version:null,vertAdvY:p,vertOriginX:p,vertOriginY:p,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Cn}),Tn=K({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()}}),Rn=K({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pn}),Nn=K({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),xs=/[A-Z]/g,At=/-[a-z]/g,Es=/^data[-\w.:]+$/i;function Is(t,e){const n=Je(e);let r=e,s=I;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Es.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(At,Ms);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!At.test(i)){let o=i.replace(xs,Os);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}s=lt}return new s(r,e)}function Os(t){return"-"+t.toLowerCase()}function Ms(t){return t.charAt(1).toUpperCase()}var Bs=kn([wn,Ls,Tn,Rn,Nn],"html"),Ln=kn([wn,As,Tn,Rn,Nn],"svg"),xt={}.hasOwnProperty;function qs(t,e){const n=e||{};function r(s,...i){let o=r.invalid;const a=r.handlers;if(s&&xt.call(s,t)){const l=String(s[t]);o=xt.call(a,l)?a[l]:r.unknown}if(o)return o.call(this,s,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Ds=/["&'<>`]/g,Gs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,js=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$s=/[|\\{}()[\]^$+*?.]/g,Et=new WeakMap;function Us(t,e){if(t=t.replace(e.subset?Hs(e.subset):Ds,r),e.subset||e.escapeOnly)return t;return t.replace(Gs,n).replace(js,r);function n(s,i,o){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function r(s,i,o){return e.format(s.charCodeAt(0),o.charCodeAt(i+1),e)}}function Hs(t){let e=Et.get(t);return e||(e=Ws(t),Et.set(t,e)),e}function Ws(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace($s,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var Fs=/[\dA-Fa-f]/;function zs(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Fs.test(String.fromCharCode(e))?r:r+";"}var Vs=/\d/;function Ks(t,e,n){const r="&#"+String(t);return n&&e&&!Vs.test(String.fromCharCode(e))?r:r+";"}var Ys=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ge={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:"⊄",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:"€"},Js=["cent","copy","divide","gt","lt","not","para","times"],An={}.hasOwnProperty,Ze={},pe;for(pe in Ge)An.call(Ge,pe)&&(Ze[Ge[pe]]=pe);var Xs=/[^\dA-Za-z]/;function Qs(t,e,n,r){const s=String.fromCharCode(t);if(An.call(Ze,s)){const i=Ze[s],o="&"+i;return n&&Ys.includes(i)&&!Js.includes(i)&&(!r||e&&e!==61&&Xs.test(String.fromCharCode(e)))?o:o+";"}return""}function Zs(t,e,n){let r=zs(t,e,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=Qs(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const i=Ks(t,e,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function V(t,e){return Us(t,Object.assign({format:Zs},e))}var ei=/^>|^->|<!--|-->|--!>|<!-$/g,ti=[">"],ni=["<",">"];function ri(t,e,n,r){return r.settings.bogusComments?"<?"+V(t.value,Object.assign({},r.settings.characterReferences,{subset:ti}))+">":"<!--"+t.value.replace(ei,s)+"-->";function s(i){return V(i,Object.assign({},r.settings.characterReferences,{subset:ni}))}}function si(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function It(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(e);for(;s!==-1;)r++,s=n.indexOf(e,s+e.length);return r}function ii(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function oi(t){return t.join(" ").trim()}var ai=/[ \t\n\f\r]/g;function ct(t){return typeof t=="object"?t.type==="text"?Ot(t.value):!1:Ot(t)}function Ot(t){return t.replace(ai,"")===""}var R=En(1),xn=En(-1),li=[];function En(t){return e;function e(n,r,s){const i=n?n.children:li;let o=(r||0)+t,a=i[o];if(!s)for(;a&&ct(a);)o+=t,a=i[o];return a}}var ci={}.hasOwnProperty;function In(t){return e;function e(n,r,s){return ci.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var ut=In({body:hi,caption:je,colgroup:je,dd:mi,dt:pi,head:je,html:ui,li:fi,optgroup:gi,option:yi,p:di,rp:Mt,rt:Mt,tbody:vi,td:Bt,tfoot:bi,th:Bt,thead:_i,tr:Si});function je(t,e,n){const r=R(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ct(r.value.charAt(0)))}function ui(t,e,n){const r=R(n,e);return!r||r.type!=="comment"}function hi(t,e,n){const r=R(n,e);return!r||r.type!=="comment"}function di(t,e,n){const r=R(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function fi(t,e,n){const r=R(n,e);return!r||r.type==="element"&&r.tagName==="li"}function pi(t,e,n){const r=R(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function mi(t,e,n){const r=R(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Mt(t,e,n){const r=R(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function gi(t,e,n){const r=R(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function yi(t,e,n){const r=R(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function _i(t,e,n){const r=R(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function vi(t,e,n){const r=R(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function bi(t,e,n){return!R(n,e)}function Si(t,e,n){const r=R(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Bt(t,e,n){const r=R(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var ki=In({body:Pi,colgroup:Ti,head:Ci,html:wi,tbody:Ri});function wi(t){const e=R(t,-1);return!e||e.type!=="comment"}function Ci(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function Pi(t){const e=R(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&ct(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ti(t,e,n){const r=xn(n,e),s=R(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ut(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Ri(t,e,n){const r=xn(n,e),s=R(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ut(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}var me={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ni(t,e,n,r){const s=r.schema,i=s.space==="svg"?!1:r.settings.omitOptionalTags;let o=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const a=[];let l;s.space==="html"&&t.tagName==="svg"&&(r.schema=Ln);const c=Li(r,t.properties),h=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=s,h&&(o=!1),(c||!i||!ki(t,e,n))&&(a.push("<",t.tagName,c?" "+c:""),o&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(h),!o&&(!i||!ut(t,e,n))&&a.push("</"+t.tagName+">"),a.join("")}function Li(t,e){const n=[];let r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){const i=Ai(t,s,e[s]);i&&n.push(i)}}for(;++r<n.length;){const i=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function Ai(t,e,n){const r=Is(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1;let o=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=V(r.attribute,Object.assign({},t.settings.characterReferences,{subset:me.name[s][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ii:oi)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(a=V(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:me.unquoted[s][i]}))),a!==n&&(t.settings.quoteSmart&&It(n,o)>It(n,t.alternative)&&(o=t.alternative),a=o+V(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?me.single:me.double)[s][i],attribute:!0}))+o),l+(a&&"="+a))}var xi=["<","&"];function On(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:V(t.value,Object.assign({},r.settings.characterReferences,{subset:xi}))}function Ei(t,e,n,r){return r.settings.allowDangerousHtml?t.value:On(t,e,n,r)}function Ii(t,e,n,r){return r.all(t)}var Oi=qs("type",{invalid:Mi,unknown:Bi,handlers:{comment:ri,doctype:si,element:Ni,raw:Ei,root:Ii,text:On}});function Mi(t){throw new Error("Expected node, not `"+t+"`")}function Bi(t){throw new Error("Cannot compile unknown node `"+t.type+"`")}var qi={},Di={},Gi=[];function ji(t,e){const n=e||qi,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:$i,all:Ui,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Rs,characterReferences:n.characterReferences||Di,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Ln:Bs,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function $i(t,e,n){return Oi(t,e,n,this)}function Ui(t){const e=[],n=t&&t.children||Gi;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}var qt=/\s+/g;function ht(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(qt)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(qt);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}var Hi=/:?lang=["']([^"']+)["']/g,Wi=/(?:```|~~~)([\w-]+)/g,Fi=/\\begin\{([\w-]+)\}/g,zi=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,Vi=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function Mn(t){const e=ce(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let i=s,o=0;for(const a of e){if(i<a.length)break;i-=a.length,o++}return{line:o,character:i}}function r(s,i){let o=0;for(let a=0;a<s;a++)o+=e[a].length;return o+=i,o}return{lines:e,indexToPos:n,posToIndex:r}}function Bn(t,e,n){const r=new Set;for(const i of t.matchAll(Hi)){const o=i[1].toLowerCase().trim();o&&r.add(o)}for(const i of t.matchAll(Wi)){const o=i[1].toLowerCase().trim();o&&r.add(o)}for(const i of t.matchAll(Fi)){const o=i[1].toLowerCase().trim();o&&r.add(o)}for(const i of t.matchAll(zi)){const o=i[1].toLowerCase().trim(),a=o.includes("/")?o.split("/").pop():o;a&&r.add(a)}if(Vi.test(t)&&r.add("yaml"),!n)return[...r];const s=n.getBundledLanguages();return[...r].filter(i=>i&&s[i])}var Ki=["color","background-color"];function qn(t,e){let n=0;const r=[];for(const s of e)s>n&&r.push({...t,content:t.content.slice(n,s),offset:t.offset+n}),n=s;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function Yi(t,e){let n=0,r=t.length;for(;n<r;){const s=n+(r-n>>1);t[s]<=e?n=s+1:r=s}return n}function Dn(t,e){const n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);return n.length?t.map(r=>r.flatMap(s=>{const i=s.offset+s.content.length,o=Yi(n,s.offset);let a=o;for(;a<n.length&&n[a]<i;)a++;if(o===a)return s;const l=n.slice(o,a);for(let c=0;c<l.length;c++)l[c]-=s.offset;return qn(s,l)})):t}function Gn(t,e,n,r,s="css-vars"){const i={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(h=>re(t.variants[h])),a=new Set(o.flatMap(h=>Object.keys(h))),l={},c=(h,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+e[h]+(u==="color"?"":f)};return o.forEach((h,u)=>{for(const f of a){const d=h[f]||"inherit";if(u===0&&r&&Ki.includes(f))if(r==="light-dark()"&&o.length>1){const m=e.findIndex(y=>y==="light"),_=e.findIndex(y=>y==="dark");if(m===-1||_===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=o[m][f]||"inherit",g=o[_][f]||"inherit";l[f]=`light-dark(${b}, ${g})`,s==="css-vars"&&(l[c(u,f)]=d)}else l[f]=d;else s==="css-vars"&&(l[c(u,f)]=d)}}),i.htmlStyle=l,i}function re(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&x.Italic&&(e["font-style"]="italic"),t.fontStyle&x.Bold&&(e["font-weight"]="bold");const n=[];t.fontStyle&x.Underline&&n.push("underline"),t.fontStyle&x.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function we(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function jn(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let i=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new w(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...s.indexToPos(a),offset:a}}else{const l=s.lines[a.line];if(l===void 0)throw new w(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${s.lines.length}`);let c=a.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new w(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${l.length}`);return{...a,character:c,offset:s.posToIndex(a.line,c)}}};var r=i;const s=Mn(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:i(a.start),end:i(a.end)}));Ji(o),t.set(n.meta,{decorations:o,converter:s,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return Dn(n,e(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;const r=e(this),s=[...n.children].filter(h=>h.type==="element"&&h.tagName==="span");if(s.length!==r.converter.lines.length)throw new w(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(h,u,f,d){const m=s[h];let _="",b=-1,g=-1;if(u===0&&(b=0),f===0&&(g=0),f===Number.POSITIVE_INFINITY&&(g=m.children.length),b===-1||g===-1)for(let v=0;v<m.children.length;v++)_+=$n(m.children[v]),b===-1&&_.length===u&&(b=v+1),g===-1&&_.length===f&&(g=v+1);if(b===-1)throw new w(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(g===-1)throw new w(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const y=m.children.slice(b,g);if(!d.alwaysWrap&&y.length===m.children.length)a(m,d,"line");else if(!d.alwaysWrap&&y.length===1&&y[0].type==="element")a(y[0],d,"token");else{const v={type:"element",tagName:"span",properties:{},children:y};a(v,d,"wrapper"),m.children.splice(b,y.length,v)}}function o(h,u){s[h]=a(s[h],u,"line")}function a(h,u,f){const d=u.properties||{},m=u.transform||(_=>_);return h.tagName=u.tagName||"span",h.properties={...h.properties,...d,class:h.properties.class},u.properties?.class&&ht(h,u.properties.class),h=m(h,f)||h,h}const l=[],c=r.decorations.sort((h,u)=>u.start.offset-h.start.offset||h.end.offset-u.end.offset);for(const h of c){const{start:u,end:f}=h;if(u.line===f.line)i(u.line,u.character,f.character,h);else if(u.line<f.line){i(u.line,u.character,Number.POSITIVE_INFINITY,h);for(let d=u.line+1;d<f.line;d++)l.unshift(()=>o(d,h));i(f.line,0,f.character,h)}}l.forEach(h=>h())}}}function Ji(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new w(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){const s=t[r],i=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,o=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(i||o||a||l){if(i&&o||a&&l||a&&n.start.offset===n.end.offset||o&&s.start.offset===s.end.offset)continue;throw new w(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function $n(t){return t.type==="text"?t.value:t.type==="element"?t.children.map($n).join(""):""}var Xi=[jn()];function Ce(t){const e=Qi(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Xi]}function Qi(t){const e=[],n=[],r=[];for(const s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var U=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$e={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Zi(t,e){const n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){const r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function Dt(t){const e=t.shift();if(e==="2"){const n=t.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){const n=t.shift();if(n)return{type:"table",index:Number(n)}}}function eo(t){const e=[];for(;t.length>0;){const n=t.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)$e[r]&&e.push({type:"setDecoration",value:$e[r]});else if(r<=29){const s=$e[r-20];s&&(e.push({type:"resetDecoration",value:s}),s==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:U[r-30]}});else if(r===38){const s=Dt(t);s&&e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:U[r-40]}});else if(r===48){const s=Dt(t);s&&e.push({type:"setBackgroundColor",value:s})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:U[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:U[r-100+8]}})}return e}function to(){let t=null,e=null,n=new Set;return{parse(r){const s=[];let i=0;do{const o=Zi(r,i),a=o.sequence?r.substring(i,o.startPosition):r.substring(i);if(a.length>0&&s.push({value:a,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const l=eo(o.sequence);for(const c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}i=o.position}while(i<r.length);return s}}}var no={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 ro(t=no){function e(a){return t[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<U.length;c++)r.push(e(U[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let u=0;u<6;u++)r.push(n([a[c],a[h],a[u]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function i(a){return s()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return i(a.index)}}return{value:o}}var so=/#([0-9a-f]{3,8})/i,io=/var\((--[\w-]+-ansi-[\w-]+)\)/,oo={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 Un(t,e,n){const r=te(t,n),s=ce(e),i=ro(Object.fromEntries(U.map(a=>{const l=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,t.colors?.[l]||oo[a]]}))),o=to();return s.map(a=>o.parse(a[0]).map(l=>{let c,h;l.decorations.has("reverse")?(c=l.background?i.value(l.background):t.bg,h=l.foreground?i.value(l.foreground):t.fg):(c=l.foreground?i.value(l.foreground):t.fg,h=l.background?i.value(l.background):void 0),c=G(c,r),h=G(h,r),l.decorations.has("dim")&&(c=ao(c));let u=x.None;return l.decorations.has("bold")&&(u|=x.Bold),l.decorations.has("italic")&&(u|=x.Italic),l.decorations.has("underline")&&(u|=x.Underline),l.decorations.has("strikethrough")&&(u|=x.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:h,fontStyle:u}}))}function ao(t){const e=t.match(so);if(e){const r=e[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],i=r[1],o=r[2],a=r[3];return`#${s}${s}${i}${i}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const s=r[0],i=r[1],o=r[2];return`#${s}${s}${i}${i}${o}${o}80`}}}const n=t.match(io);return n?`var(${n[1]}-dim)`:t}function Pe(t,e,n={}){const r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!ae(r)&&!le(s)&&r==="ansi"){const{theme:i}=t.setTheme(s);return Un(i,e,n)}return vn(t,e,n)}function se(t,e,n){let r,s,i,o,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===c?-1:y.color===c?1:0);if(f.length===0)throw new w("`themes` option must not be empty");const d=at(t,e,n,Pe);if(l=ne(d),c&&c!=="light-dark()"&&!f.some(g=>g.color===c))throw new w(`\`themes\` option must contain the defaultColor key \`${c}\``);const m=f.map(g=>t.getTheme(g.theme)),_=f.map(g=>g.color);i=d.map(g=>g.map(y=>Gn(y,_,h,c,u))),l&&Le(i,l);const b=f.map(g=>te(g.theme,n));s=Gt(f,m,b,h,c,"fg",u),r=Gt(f,m,b,h,c,"bg",u),o=`shiki-themes ${m.map(g=>g.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){const c=te(n.theme,n);i=Pe(t,e,n);const h=t.getTheme(n.theme);r=G(h.bg,c),s=G(h.fg,c),o=h.name,l=ne(i)}else throw new w("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:s,bg:r,themeName:o,rootStyle:a,grammarState:l}}function Gt(t,e,n,r,s,i,o){return t.map((a,l)=>{const c=G(e[l][i],n[l])||"inherit",h=`${r+a.color}${i==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s==="light-dark()"&&t.length>1){const u=t.findIndex(d=>d.color==="light"),f=t.findIndex(d=>d.color==="dark");if(u===-1||f===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${G(e[u][i],n[u])||"inherit"}, ${G(e[f][i],n[f])||"inherit"});${h}`}return c}return o==="css-vars"?h:null}).filter(a=>!!a).join(";")}var Hn=/^\s+$/,lo=/^(\s*)(.*?)(\s*)$/;function ie(t,e,n,r={meta:{},options:n,codeToHast:(s,i)=>ie(t,s,i),codeToTokens:(s,i)=>se(t,s,i)}){let s=e;for(const m of Ce(n))s=m.preprocess?.call(r,s,n)||s;let{tokens:i,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:h}=se(t,s,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?i=co(i):u==="never"&&(i=uo(i)),f&&(i=ho(i));const d={...r,get source(){return s}};for(const m of Ce(n))i=m.tokens?.call(d,i)||i;return Wn(i,{...n,fg:o,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},d,h)}function Wn(t,e,n,r=ne(t)){const s=Ce(e),i=[],o={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[_,b]of Object.entries(e.meta||{}))_.startsWith("_")||(c[_]=b);let h={type:"element",tagName:"pre",properties:c,children:[],data:e.data},u={type:"element",tagName:"code",properties:{},children:i};const f=[],d={...n,structure:a,addClassToHast:ht,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return h},get code(){return u},get lines(){return f}};if(t.forEach((_,b)=>{b&&(a==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&i.push({type:"text",value:`
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(const v of _){let C={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};const N=we(v.htmlStyle||re(v));N&&(C.properties.style=N);for(const E of s)C=E?.span?.call(d,C,b+1,y,g,v)||C;a==="inline"?o.children.push(C):a==="classic"&&g.children.push(C),y+=v.content.length}if(a==="classic"){for(const v of s)g=v?.line?.call(d,g,b+1)||g;f.push(g),i.push(g)}else a==="inline"&&f.push(g)}),a==="classic"){for(const _ of s)u=_?.code?.call(d,u)||u;h.children.push(u);for(const _ of s)h=_?.pre?.call(d,h)||h;o.children.push(h)}else if(a==="inline"){const _=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const y of o.children)y.type==="element"&&y.tagName==="br"?(_.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(y.type==="element"||y.type==="text")&&b.children.push(y);_.push(b);let g={type:"element",tagName:"code",properties:{},children:_};for(const y of s)g=y?.code?.call(d,g)||g;o.children=[];for(let y=0;y<g.children.length;y++){y>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const v=g.children[y];v.type==="element"&&o.children.push(...v.children)}}let m=o;for(const _ of s)m=_?.root?.call(d,m)||m;return r&&Le(m,r),m}function co(t){return t.map(e=>{const n=[];let r="",s;return e.forEach((i,o)=>{const a=!(i.fontStyle&&(i.fontStyle&x.Underline||i.fontStyle&x.Strikethrough));a&&Hn.test(i.content)&&e[o+1]?(s===void 0&&(s=i.offset),r+=i.content):r?(a?n.push({...i,offset:s,content:r+i.content}):n.push({content:r,offset:s},i),s=void 0,r=""):n.push(i)}),n})}function uo(t){return t.map(e=>e.flatMap(n=>{if(Hn.test(n.content))return n;const r=n.content.match(lo);if(!r)return n;const[,s,i,o]=r;if(!s&&!o)return n;const a=[{...n,offset:n.offset+s.length,content:i}];return s&&a.unshift({content:s,offset:n.offset}),o&&a.push({content:o,offset:n.offset+s.length+i.length}),a}))}function ho(t){return t.map(e=>{const n=[];for(const r of e){if(n.length===0){n.push({...r});continue}const s=n.at(-1),i=we(s.htmlStyle||re(s)),o=we(r.htmlStyle||re(r)),a=s.fontStyle&&(s.fontStyle&x.Underline||s.fontStyle&x.Strikethrough),l=r.fontStyle&&(r.fontStyle&x.Underline||r.fontStyle&x.Strikethrough);!a&&!l&&i===o?s.content+=r.content:n.push({...r})}return n})}var Fn=ji;function zn(t,e,n){const r={meta:{},options:n,codeToHast:(i,o)=>ie(t,i,o),codeToTokens:(i,o)=>se(t,i,o)};let s=Fn(ie(t,e,n,r));for(const i of Ce(n))s=i.postprocess?.call(r,s,n)||s;return s}async function dt(t){const e=await it(t);return{getLastGrammarState:(...n)=>bn(e,...n),codeToTokensBase:(n,r)=>Pe(e,n,r),codeToTokensWithThemes:(n,r)=>at(e,n,r),codeToTokens:(n,r)=>se(e,n,r),codeToHast:(n,r)=>ie(e,n,r),codeToHtml:(n,r)=>zn(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function fo(t){const e=Ne(t);return{getLastGrammarState:(...n)=>bn(e,...n),codeToTokensBase:(n,r)=>Pe(e,n,r),codeToTokensWithThemes:(n,r)=>at(e,n,r),codeToTokens:(n,r)=>se(e,n,r),codeToHast:(n,r)=>ie(e,n,r),codeToHtml:(n,r)=>zn(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Vn(t){let e;async function n(r){if(e){const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else return e=t({...r,themes:r.themes||[],langs:r.langs||[]}),e}return n}var po=Vn(dt);function Kn(t){const e=t.langs,n=t.themes,r=t.engine;async function s(i){function o(u){if(typeof u=="string"){if(u=i.langAlias?.[u]||u,rt(u))return[];const f=e[u];if(!f)throw new w(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}function a(u){if(st(u))return"none";if(typeof u=="string"){const f=n[u];if(!f)throw new w(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}const l=(i.themes??[]).map(u=>a(u)),c=(i.langs??[]).map(u=>o(u)),h=await dt({engine:i.engine??r(),...i,themes:l,langs:c});return{...h,loadLanguage(...u){return h.loadLanguage(...u.map(o))},loadTheme(...u){return h.loadTheme(...u.map(a))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return s}function Yn(t){let e;async function n(r={}){if(e){const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else{e=t({...r,themes:[],langs:[]});const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}}return n}function Jn(t,e){const n=Yn(t);async function r(s,i){const o=await n({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)}),a=await e?.guessEmbeddedLanguages?.(s,i.lang,o);return a&&await o.loadLanguage(...a),o}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,i){return(await r(s,i)).codeToHtml(s,i)},async codeToHast(s,i){return(await r(s,i)).codeToHast(s,i)},async codeToTokens(s,i){return(await r(s,i)).codeToTokens(s,i)},async codeToTokensBase(s,i){return(await r(s,i)).codeToTokensBase(s,i)},async codeToTokensWithThemes(s,i){return(await r(s,i)).codeToTokensWithThemes(s,i)},async getLastGrammarState(s,i){return(await n({langs:[i.lang],themes:[i.theme]})).getLastGrammarState(s,i)}}}function mo(t={}){const{name:e="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=t,s=o=>t.variableDefaults?.[o]?`var(${n}${o}, ${t.variableDefaults[o]})`:`var(${n}${o})`,i={name:e,type:"dark",colors:{"editor.foreground":s("foreground"),"editor.background":s("background"),"terminal.ansiBlack":s("ansi-black"),"terminal.ansiRed":s("ansi-red"),"terminal.ansiGreen":s("ansi-green"),"terminal.ansiYellow":s("ansi-yellow"),"terminal.ansiBlue":s("ansi-blue"),"terminal.ansiMagenta":s("ansi-magenta"),"terminal.ansiCyan":s("ansi-cyan"),"terminal.ansiWhite":s("ansi-white"),"terminal.ansiBrightBlack":s("ansi-bright-black"),"terminal.ansiBrightRed":s("ansi-bright-red"),"terminal.ansiBrightGreen":s("ansi-bright-green"),"terminal.ansiBrightYellow":s("ansi-bright-yellow"),"terminal.ansiBrightBlue":s("ansi-bright-blue"),"terminal.ansiBrightMagenta":s("ansi-bright-magenta"),"terminal.ansiBrightCyan":s("ansi-bright-cyan"),"terminal.ansiBrightWhite":s("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:s("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:s("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:s("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:s("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:s("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:s("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:s("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:s("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:s("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:s("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:s("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:s("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:s("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:s("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:s("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:s("token-changed")}}]};return r||(i.tokenColors=i.tokenColors?.map(o=>(o.settings?.fontStyle&&delete o.settings.fontStyle,o))),i}var ft=[{id:"angular-html",name:"Angular HTML",import:(()=>Promise.resolve().then(()=>require("./angular-html-C6IZTUMw.cjs")).then(t=>t.angular_html_exports))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>Promise.resolve().then(()=>require("./angular-ts-BEpBq36S.cjs")))},{id:"astro",name:"Astro",import:(()=>Promise.resolve().then(()=>require("./astro-BZvK_3z5.cjs")))},{id:"blade",name:"Blade",import:(()=>Promise.resolve().then(()=>require("./blade-Bc1C7dEv.cjs")))},{id:"c",name:"C",import:(()=>Promise.resolve().then(()=>require("./c-BApjSqDd.cjs")).then(t=>t.c_exports))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>Promise.resolve().then(()=>require("./coffee-NINGc57x.cjs")))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>Promise.resolve().then(()=>require("./cpp-BGJp1Nu8.cjs")))},{id:"css",name:"CSS",import:(()=>Promise.resolve().then(()=>require("./css-E6GwWlx3.cjs")).then(t=>t.css_exports))},{id:"csv",name:"CSV",import:(()=>Promise.resolve().then(()=>require("./csv-CGgLh6Uc.cjs")))},{id:"glsl",name:"GLSL",import:(()=>Promise.resolve().then(()=>require("./glsl-BMGu39v4.cjs")).then(t=>t.glsl_exports))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>Promise.resolve().then(()=>require("./graphql-Dm4EdqrX.cjs")))},{id:"haml",name:"Ruby Haml",import:(()=>Promise.resolve().then(()=>require("./haml-DNST8bKA.cjs")))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>Promise.resolve().then(()=>require("./handlebars-CCW-bOn5.cjs")))},{id:"html",name:"HTML",import:(()=>Promise.resolve().then(()=>require("./html-CqKymEFB.cjs")).then(t=>t.html_exports))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>Promise.resolve().then(()=>require("./html-derivative-DxN34z2R.cjs")))},{id:"http",name:"HTTP",import:(()=>Promise.resolve().then(()=>require("./http-CE44FN2_.cjs")))},{id:"hurl",name:"Hurl",import:(()=>Promise.resolve().then(()=>require("./hurl-B0rlBQuW.cjs")))},{id:"imba",name:"Imba",import:(()=>Promise.resolve().then(()=>require("./imba-V6AortjC.cjs")))},{id:"java",name:"Java",import:(()=>Promise.resolve().then(()=>require("./java-B9uUwPXW.cjs")).then(t=>t.java_exports))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>Promise.resolve().then(()=>require("./javascript-BDmcQnw4.cjs")).then(t=>t.javascript_exports))},{id:"jinja",name:"Jinja",import:(()=>Promise.resolve().then(()=>require("./jinja-7Tf3fHGl.cjs")))},{id:"jison",name:"Jison",import:(()=>Promise.resolve().then(()=>require("./jison-Cj_J7SYl.cjs")))},{id:"json",name:"JSON",import:(()=>Promise.resolve().then(()=>require("./json-Btzvm-v-.cjs")))},{id:"json5",name:"JSON5",import:(()=>Promise.resolve().then(()=>require("./json5-DpX8IbZ4.cjs")))},{id:"jsonc",name:"JSON with Comments",import:(()=>Promise.resolve().then(()=>require("./jsonc-Do-Ix_Pp.cjs")))},{id:"jsonl",name:"JSON Lines",import:(()=>Promise.resolve().then(()=>require("./jsonl-ce__Zcoy.cjs")))},{id:"jsx",name:"JSX",import:(()=>Promise.resolve().then(()=>require("./jsx-MZI9SkTm.cjs")).then(t=>t.jsx_exports))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>Promise.resolve().then(()=>require("./julia-Biz6d6Op.cjs")))},{id:"less",name:"Less",import:(()=>Promise.resolve().then(()=>require("./less-BoxcQJHH.cjs")))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>Promise.resolve().then(()=>require("./markdown-HXsmHC3K.cjs")))},{id:"marko",name:"Marko",import:(()=>Promise.resolve().then(()=>require("./marko-DIyi00gY.cjs")))},{id:"mdc",name:"MDC",import:(()=>Promise.resolve().then(()=>require("./mdc-CtcqvQXp.cjs")))},{id:"mdx",name:"MDX",import:(()=>Promise.resolve().then(()=>require("./mdx-7uyPH8-T.cjs")))},{id:"php",name:"PHP",import:(()=>Promise.resolve().then(()=>require("./php-BxfIMLEY.cjs")))},{id:"postcss",name:"PostCSS",import:(()=>Promise.resolve().then(()=>require("./postcss-FxgG0HjA.cjs")))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>Promise.resolve().then(()=>require("./pug-BVwM23M5.cjs")))},{id:"python",name:"Python",aliases:["py"],import:(()=>Promise.resolve().then(()=>require("./python-DwKDM9tH.cjs")))},{id:"r",name:"R",import:(()=>Promise.resolve().then(()=>require("./r-CJIe781I.cjs")))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>Promise.resolve().then(()=>require("./regexp-BGLKtDw3.cjs")).then(t=>t.regexp_exports))},{id:"sass",name:"Sass",import:(()=>Promise.resolve().then(()=>require("./sass-vwOt5_j9.cjs")))},{id:"scss",name:"SCSS",import:(()=>Promise.resolve().then(()=>require("./scss-1JlyJ27i.cjs")).then(t=>t.scss_exports))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>Promise.resolve().then(()=>require("./shellscript--2vi8OCO.cjs")))},{id:"smithy",name:"Smithy",import:(()=>Promise.resolve().then(()=>require("./smithy-BdBOsMBw.cjs")))},{id:"sql",name:"SQL",import:(()=>Promise.resolve().then(()=>require("./sql-CWYIEgsv.cjs")).then(t=>t.sql_exports))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>Promise.resolve().then(()=>require("./stylus-CenVr_h7.cjs")))},{id:"svelte",name:"Svelte",import:(()=>Promise.resolve().then(()=>require("./svelte-CYk8pHlz.cjs")))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>Promise.resolve().then(()=>require("./ts-tags-CVXeqLd7.cjs")))},{id:"tsx",name:"TSX",import:(()=>Promise.resolve().then(()=>require("./tsx-CFinbL5y.cjs")).then(t=>t.tsx_exports))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>Promise.resolve().then(()=>require("./typescript-CeMPDQpU.cjs")).then(t=>t.typescript_exports))},{id:"vue",name:"Vue",import:(()=>Promise.resolve().then(()=>require("./vue-cG2ViZZg.cjs")))},{id:"vue-html",name:"Vue HTML",import:(()=>Promise.resolve().then(()=>require("./vue-html-CL_mHAvZ.cjs")))},{id:"vue-vine",name:"Vue Vine",import:(()=>Promise.resolve().then(()=>require("./vue-vine-cCANOBzO.cjs")))},{id:"wasm",name:"WebAssembly",import:(()=>Promise.resolve().then(()=>require("./wasm-B0lCdImK.cjs")))},{id:"wgsl",name:"WGSL",import:(()=>Promise.resolve().then(()=>require("./wgsl-CoRbctx4.cjs")))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>Promise.resolve().then(()=>require("./wit-DvVjr_z7.cjs")))},{id:"xml",name:"XML",import:(()=>Promise.resolve().then(()=>require("./xml-GemsM4Os.cjs")).then(t=>t.xml_exports))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>Promise.resolve().then(()=>require("./yaml-DB1gwyRv.cjs")))}],Xn=Object.fromEntries(ft.map(t=>[t.id,t.import])),Qn=Object.fromEntries(ft.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),Zn={...Xn,...Qn},er=Kn({langs:Zn,themes:Kt,engine:()=>(0,zt.createOnigurumaEngine)(Promise.resolve().then(()=>require("./wasm-3wQhbSqI.cjs")))}),{codeToHtml:go,codeToHast:yo,codeToTokensBase:_o,codeToTokens:vo,codeToTokensWithThemes:bo,getSingletonHighlighter:So,getLastGrammarState:ko}=Jn(er,{guessEmbeddedLanguages:Bn});exports.ShikiError=w;exports.addClassToHast=ht;exports.applyColorReplacements=G;exports.bundledLanguages=Zn;exports.bundledLanguagesAlias=Qn;exports.bundledLanguagesBase=Xn;exports.bundledLanguagesInfo=ft;exports.bundledThemes=Kt;exports.bundledThemesInfo=Vt;exports.codeToHast=yo;exports.codeToHtml=go;exports.codeToTokens=vo;exports.codeToTokensBase=_o;exports.codeToTokensWithThemes=bo;exports.createBundledHighlighter=Kn;exports.createCssVariablesTheme=mo;exports.createHighlighter=er;exports.createHighlighterCore=dt;exports.createHighlighterCoreSync=fo;exports.createPositionConverter=Mn;exports.createShikiInternal=ys;exports.createShikiInternalSync=gs;exports.createShikiPrimitive=Ne;exports.createShikiPrimitiveAsync=it;exports.createSingletonShorthands=Jn;exports.flatTokenVariants=Gn;exports.getLastGrammarState=ko;exports.getSingletonHighlighter=So;exports.getSingletonHighlighterCore=po;exports.getTokenStyleObject=re;exports.guessEmbeddedLanguages=Bn;exports.hastToHtml=Fn;exports.isNoneTheme=le;exports.isPlainLang=ae;exports.isSpecialLang=rt;exports.isSpecialTheme=st;exports.makeSingletonHighlighter=Yn;exports.makeSingletonHighlighterCore=Vn;exports.normalizeGetter=nt;exports.normalizeTheme=Re;exports.resolveColorReplacements=te;exports.splitLines=ce;exports.splitToken=qn;exports.splitTokens=Dn;exports.stringifyTokenStyle=we;exports.toArray=fn;exports.tokenizeAnsiWithTheme=Un;exports.tokenizeWithTheme=Sn;exports.tokensToHast=Wn;exports.transformerDecorations=jn;