@mastra/deployer-cloud 1.9.0-alpha.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/studio/assets/{chunk-REDZDNFN-5Tj-trdT.js → chunk-REDZDNFN-DBtAJyUR.js} +1 -1
- package/dist/studio/assets/{index-DhD27KDZ.js → index-1CIfQRPa.js} +1 -1
- package/dist/studio/assets/{index-r9pq8NPk.js → index-AYBaNmoq.js} +1 -1
- package/dist/studio/assets/{index-DHKhLHm8.js → index-B8WLnubh.js} +1 -1
- package/dist/studio/assets/{index-DU4KNmGl.js → index-B9lWwBXQ.js} +1 -1
- package/dist/studio/assets/{index-DEpD2Jfv.js → index-BJ47Zsb5.js} +1 -1
- package/dist/studio/assets/{index-EuikVAsT.js → index-BbrxUzO8.js} +1 -1
- package/dist/studio/assets/{index-Blz1NRPV.js → index-Bk2cWYRn.js} +1 -1
- package/dist/studio/assets/{index-CK-Rhk5D.js → index-C3zH8UNH.js} +1 -1
- package/dist/studio/assets/{index-D0q761D_.js → index-C5Gn56O1.js} +1 -1
- package/dist/studio/assets/{index-BmlTAJsW.js → index-CWOzX6bp.js} +1 -1
- package/dist/studio/assets/{index-C7caMlfs.js → index-CoMhsst-.js} +1 -1
- package/dist/studio/assets/{index-CxDXyU75.js → index-CoORZRmo.js} +1 -1
- package/dist/studio/assets/{index-Dn7Rt2wz.js → index-DJtMwJXc.js} +1 -1
- package/dist/studio/assets/{index-CAa0LkPQ.js → index-DVi3DnAy.js} +1 -1
- package/dist/studio/assets/{index-CRkty_QZ.js → index-DXQLCSe-.js} +1 -1
- package/dist/studio/assets/{index-C1ViNSxz.js → index-DbViMdCi.js} +1 -1
- package/dist/studio/assets/{index-DzGV1Iz6.js → index-De8FQYWG.js} +1 -1
- package/dist/studio/assets/{index-PaoSb2RY.js → index-Do6PzU9v.js} +1 -1
- package/dist/studio/assets/{main-CZUlzyAB.js → main-l-GkLRbZ.js} +6 -6
- package/dist/studio/assets/{token-6GSAFR2W-XRCSVUPZ-Br966x8T.js → token-6GSAFR2W-XRCSVUPZ-CJKKY7Xw.js} +1 -1
- package/dist/studio/assets/token-util-NEHG7TUY-U7CX7GS4-CvzVQPbB.js +1 -0
- package/dist/studio/index.html +1 -1
- package/package.json +7 -7
- package/versions.json +1 -1
- package/dist/studio/assets/token-util-NEHG7TUY-U7CX7GS4-CqTMHVgX.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-LfdN0zeE.js","./html-C2L_23MC.js","./javascript-ySlJ1b_l.js","./css-BPhBrDlE.js","./angular-ts-CKsD7JZE.js","./scss-C31hgJw-.js","./apl-BBq3IX1j.js","./xml-e3z08dGr.js","./java-xI-RfyKK.js","./json-BQoSv7ci.js","./astro-CqkE3fuf.js","./typescript-Dj6nwHGl.js","./postcss-B3ZDOciz.js","./blade-a8OxSdnT.js","./sql-COK4E0Yg.js","./bsl-Dgyn0ogV.js","./sdbl-BLhTXw86.js","./cairo--RitsXJZ.js","./python-DhUJRlN_.js","./cobol-PTqiYgYu.js","./coffee-dyiR41kL.js","./cpp-BksuvNSY.js","./regexp-DWJ3fJO_.js","./glsl-DBO2IWDn.js","./c-C3t2pwGQ.js","./crystal-DtDmRg-F.js","./shellscript-atvbtKCR.js","./edge-D5gP-w-T.js","./html-derivative-CSfWNPLT.js","./elixir-CLiX3zqd.js","./elm-CmHSxxaM.js","./erb-BYTLMnw6.js","./ruby-DeZ3UC14.js","./haml-B2EZWmdv.js","./graphql-cDcHW_If.js","./jsx-BAng5TT0.js","./tsx-B6W0miNI.js","./lua-CvWAzNxB.js","./yaml-CVw76BM1.js","./fortran-fixed-form-TqA4NnZg.js","./fortran-free-form-DKXYxT9g.js","./fsharp-XplgxFYe.js","./markdown-UIAJJxZW.js","./gdresource-BHYsBjWJ.js","./gdshader-SKMF96pI.js","./gdscript-DfxzS6Rs.js","./git-commit-i4q6IMui.js","./diff-BgYniUM_.js","./git-rebase-B-v9cOL2.js","./glimmer-js-D-cwc0-E.js","./glimmer-ts-pgjy16dm.js","./hack-D1yCygmZ.js","./handlebars-BQGss363.js","./http-FRrOvY1W.js","./hxml-TIA70rKU.js","./haxe-C5wWYbrZ.js","./imba-bv_oIlVt.js","./jinja-DGy0s7-h.js","./jison-BqZprYcd.js","./julia-BBuGR-5E.js","./r-CwjWoCRV.js","./latex-C-cWTeAZ.js","./tex-rYs2v40G.js","./liquid-D3W5UaiH.js","./marko-z0MBrx5-.js","./less-BfCpw3nA.js","./mdc-DB_EDNY_.js","./nginx-D_VnBJ67.js","./nim-ZlGxZxc3.js","./perl-CHQXSrWU.js","./php-B5ebYQev.js","./pug-CM9l7STV.js","./qml-D8XfuvdV.js","./razor-CNLDkMZG.js","./csharp-D9R-vmeu.js","./rst-4NLicBqY.js","./cmake-DbXoA79R.js","./sas-BmTFh92c.js","./shaderlab-B7qAK45m.js","./hlsl-ifBTmRxC.js","./shellsession-C_rIy8kc.js","./soy-C-lX7w71.js","./sparql-bYkjHRlG.js","./turtle-BMR_PYu6.js","./stata-DorPZHa4.js","./svelte-MSaWC3Je.js","./templ-dwX3ZSMB.js","./go-B1SYOhNW.js","./ts-tags-CipyTH0X.js","./twig-NC5TFiHP.js","./vue-BuYVFjOK.js","./vue-html-xdeiXROB.js","./xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as c}from"./index-CRkty_QZ.js";import{w as Ne,s as ut,f as Ft,a as qt,b as zt,d as Fe,h as Jt}from"./main-CZUlzyAB.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...o){let a=i.invalid;const l=i.handlers;if(n&&qe.call(n,r)){const s=String(n[r]);a=qe.call(l,s)?l[s]:i.unknown}if(a)return a.call(this,n,...o)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],Xt=Object.fromEntries(Qt.map(r=>[r.id,r.import]));let N=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yt(){return 2147483648}function Zt(){return typeof performance<"u"?performance.now():Date.now()}const er=(r,e)=>r+(e-r%e)%e;async function tr(r){let e,t;const i={};function n(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,d,R){i.HEAPU8.copyWithin(h,d,d+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(h){const d=i.HEAPU8.length;h=h>>>0;const R=Yt();if(h>R)return!1;for(let f=1;f<=4;f*=2){let E=d*(1+.2/f);E=Math.min(E,h+100663296);const g=Math.min(R,er(Math.max(h,E),65536));if(a(g))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,d,R=1024){const f=d+R;let E=d;for(;h[E]&&!(E>=f);)++E;if(E-d>16&&h.buffer&&s)return s.decode(h.subarray(d,E));let g="";for(;d<E;){let y=h[d++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=h[d++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=h[d++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|h[d++]&63,y<65536)g+=String.fromCharCode(y);else{const O=y-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function m(h,d){return h?u(i.HEAPU8,h,d):""}const p={emscripten_get_now:Zt,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function _(){const d=await r({env:p,wasi_snapshot_preview1:p});e=d.memory,n(e.buffer),Object.assign(i,d),i.UTF8ToString=m}return await _(),i}var rr=Object.defineProperty,ir=(r,e,t)=>e in r?rr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e,t)=>(ir(r,typeof e!="symbol"?e+"":e,t),t);let P=null;function nr(r){throw new Ve(r.UTF8ToString(r.getLastOnigError()))}class de{constructor(e){A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16Value"),A(this,"utf8Value"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16");const t=e.length,i=de._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const l=new Uint8Array(i);let s=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,_=!0)}n&&(o[u]=s,_&&(o[u+1]=s),p<=127?a[s+0]=u:p<=2047?(a[s+0]=u,a[s+1]=u):p<=65535?(a[s+0]=u,a[s+1]=u,a[s+2]=u):(a[s+0]=u,a[s+1]=u,a[s+2]=u,a[s+3]=u)),p<=127?l[s++]=p:p<=2047?(l[s++]=192|(p&1984)>>>6,l[s++]=128|(p&63)>>>0):p<=65535?(l[s++]=224|(p&61440)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0):(l[s++]=240|(p&1835008)>>>18,l[s++]=128|(p&258048)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const o=e.charCodeAt(i);let a=o,l=!1;if(o>=55296&&o<=56319&&i+1<n){const s=e.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class{constructor(r){if(A(this,"id",++w.LAST_ID),A(this,"_onigBinding"),A(this,"content"),A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16"),A(this,"ptr"),!P)throw new Ve("Must invoke loadWasm first.");this._onigBinding=P,this.content=r;const e=new de(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(e.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=e.createString(P)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Q=w;A(Q,"LAST_ID",0);A(Q,"_sharedPtr",0);A(Q,"_sharedPtrInUse",!1);class or{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let l=0,s=e.length;l<s;l++){const u=new de(e[l]);t[l]=u.createString(P),i[l]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const o=P.omalloc(4*e.length);P.HEAPU32.set(i,o/4);const a=P.createOnigScanner(n,o,e.length);for(let l=0,s=e.length;l<s;l++)P.ofree(t[l]);P.ofree(o),P.ofree(n),a===0&&nr(P),this._onigBinding=P,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new Q(e);const o=this._findNextMatchSync(e,t,!1,n);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const u=l[s++],m=l[s++],p=[];for(let _=0;_<m;_++){const h=e.convertUtf8OffsetToUtf16(l[s++]),d=e.convertUtf8OffsetToUtf16(l[s++]);p[_]={start:h,end:d,length:d-h}}return{index:u,captureIndices:p}}}function sr(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function lr(r){return typeof r.data<"u"}function cr(r){return typeof Response<"u"&&r instanceof Response}function ur(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let Y;function mr(r){if(Y)return Y;async function e(){P=await tr(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),sr(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(lr(i)&&(i=i.data),cr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await pr(i)(t):i=await hr(i)(t):ur(i)?i=await ye(i)(t):i instanceof WebAssembly.Module?i=await ye(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await ye(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Y=e(),Y}function ye(r){return e=>WebAssembly.instantiate(r,e)}function pr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function hr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let dr;function _r(){return dr}async function mt(r){return r&&await mr(r),{createScanner(e){return new or(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Q(e)}}}function fr(r){return xe(r)}function xe(r){return Array.isArray(r)?gr(r):r instanceof RegExp?r:typeof r=="object"?Er(r):r}function gr(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=xe(r[t]);return e}function Er(r){let e={};for(let t in r)e[t]=xe(r[t]);return e}function pt(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function ht(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?ht(r.substring(0,r.length-1)):r.substr(~e+1)}var Re=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Z=class{static hasCaptures(r){return r===null?!1:(Re.lastIndex=0,Re.test(r))}static replaceCaptures(r,e,t){return r.replace(Re,(i,n,o,a)=>{let l=t[parseInt(n||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return i})}};function dt(r,e){return r<e?-1:r>e?1:0}function _t(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let o=dt(r[n],e[n]);if(o!==0)return o}return 0}return t-i}function ze(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function ft(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gt=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ne=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Tr(r),e)}static createFromParsedTheme(r,e){return Ar(r,e)}_cachedMatchRoot=new gt(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>yr(r.parent,n.parentScopes));return i?new Et(i.fontStyle,i.foreground,i.background):null}},Te=class re{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new re(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new re(t,e[i]);return t}push(e){return new re(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function yr(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Rr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Rr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Et=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Tr(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,o=e.length;n<o;n++){let a=e[n];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let p=a.settings.fontStyle.split(" ");for(let _=0,h=p.length;_<h;_++)switch(p[_]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let u=null;typeof a.settings.foreground=="string"&&ze(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&ze(a.settings.background)&&(m=a.settings.background);for(let p=0,_=l.length;p<_;p++){let d=l[p].trim().split(" "),R=d[d.length-1],f=null;d.length>1&&(f=d.slice(0,d.length-1),f.reverse()),t[i++]=new vr(R,f,n,s,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}},D=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(D||{});function Ar(r,e){r.sort((s,u)=>{let m=dt(s.scope,u.scope);return m!==0||(m=_t(s.parentScopes,u.parentScopes),m!==0)?m:s.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let s=r.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(i=s.foreground),s.background!==null&&(n=s.background)}let o=new Lr(e),a=new Et(t,o.getId(i),o.getId(n)),l=new br(new be(0,null,-1,0,0),[]);for(let s=0,u=r.length;s<u;s++){let m=r[s];l.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ne(o,a,l)}var Lr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Pr=Object.freeze([]),be=class yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,i,n,o){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=o}clone(){return new yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},br=class Ie{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const o=t.parentScopes[n].length-e.parentScopes[i].length;if(o!==0)return o;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,o;if(i===-1?(n=e,o=""):(n=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,o,a){if(t===""){this._doInsertHere(e,i,n,o,a);return}let l=t.indexOf("."),s,u;l===-1?(s=t,u=""):(s=t.substring(0,l),u=t.substring(l+1));let m;this._children.hasOwnProperty(s)?m=this._children[s]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[s]=m),m.insert(e+1,u,i,n,o,a)}_doInsertHere(e,t,i,n,o){if(t===null){this._mainRule.acceptOverwrite(e,i,n,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(_t(s.parentScopes,t)===0){s.acceptOverwrite(e,i,n,o);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,o))}},$=class S{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=S.getLanguageId(e),i=S.getTokenType(e),n=S.getFontStyle(e),o=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,o,a,l){let s=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,p=S.getFontStyle(e),_=S.getForeground(e),h=S.getBackground(e);return t!==0&&(s=t),i!==8&&(u=i),n!==null&&(m=n?1:0),o!==-1&&(p=o),a!==0&&(_=a),l!==0&&(h=l),(s<<0|u<<8|m<<10|p<<11|_<<15|h<<24)>>>0}};function oe(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:s}),n!==",")break;n=i.next()}return t;function o(){if(n==="-"){n=i.next();const s=o();return u=>!!s&&!s(u)}if(n==="("){n=i.next();const s=l();return n===")"&&(n=i.next()),s}if(Je(n)){const s=[];do s.push(n),n=i.next();while(Je(n));return u=>e(s,u)}return null}function a(){const s=[];let u=o();for(;u;)s.push(u),u=o();return m=>s.every(p=>p(m))}function l(){const s=[];let u=a();for(;u&&(s.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>s.some(p=>p(m))}}function Je(r){return!!r&&!!r.match(/[\w\.:]+/)}function Ir(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function Rt(r){typeof r.dispose=="function"&&r.dispose()}var q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},Sr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Or=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},wr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new Or;for(const t of r)Cr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Cr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);r instanceof q?ie({baseGrammar:o,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const l of a)i.add(new q(l))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];se([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&se(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&se(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function se(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?pt({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&se(i.patterns,{...e,repository:n},t);const o=i.include;if(!o)continue;const a=Tt(o);switch(a.kind){case 0:ie({...e,selfGrammar:e.baseGrammar},t);break;case 1:ie(e,t);break;case 2:Se(a.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};a.kind===4?Se(a.ruleName,s,t):ie(s,t)}else a.kind===4?t.add(new Sr(a.scopeName,a.ruleName)):t.add(new q(a.scopeName));break}}}var kr=class{kind=0},Dr=class{kind=1},Nr=class{constructor(r){this.ruleName=r}kind=2},Vr=class{constructor(r){this.scopeName=r}kind=3},xr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function Tt(r){if(r==="$base")return new kr;if(r==="$self")return new Dr;const e=r.indexOf("#");if(e===-1)return new Vr(r);if(e===0)return new Nr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new xr(t,i)}}var Gr=/\\(\d+)/,Ke=/\\(\d+)/g,Mr=-1,vt=-2;var X=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=Z.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Z.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${ht(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:Z.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Z.replaceCaptures(this._contentName,r,e)}},Br=class extends X{retokenizeCapturedWithRuleId;constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},jr=class extends X{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,null),this._match=new z(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qe=class extends X{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oe=class extends X{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n,o,a,l,s,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const t of this.patterns)r.getRule(t).collectPatterns(r,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}},ae=class extends X{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,i,n,o,a,l,s){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.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(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},At=class b{static createCaptureRule(e,t,i,n,o){return e.registerRule(a=>new Br(t,a,i,n,o))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new jr(e.$vscodeTextmateLocation,e.id,e.name,e.match,b._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=pt({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(o,t,i))}return e.while?new ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,b._compileCaptures(e.whileCaptures||e.captures,t,i),b._compilePatterns(e.patterns,t,i)):new Oe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,b._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,b._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=b.getCompiledRuleId(e[a],t,i)),n[l]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const u=Tt(l.include);switch(u.kind){case 0:case 1:s=b.getCompiledRuleId(i[l.include],t,i);break;case 2:let m=i[u.ruleName];m&&(s=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const p=u.scopeName,_=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(p,i);if(h)if(_){let d=h.repository[_];d&&(s=b.getCompiledRuleId(d,t,h.repository))}else s=b.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=b.getCompiledRuleId(l,t,i);if(s!==-1){const u=t.getRule(s);let m=!1;if((u instanceof Qe||u instanceof Oe||u instanceof ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(s)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},z=class Lt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const i=e.length;let n=0,o=[],a=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(n,l)),o.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(a=!0),l++}this.hasAnchor=a,n===0?this.source=e:(o.push(e.substring(n,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Gr.test(this.source):this.hasBackReferences=!1}clone(){return new Lt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=t.map(n=>e.substring(n.start,n.end));return Ke.lastIndex=0,this.source.replace(Ke,(n,o)=>ft(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],i=[],n=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,i[o]=l,n[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",i[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",i[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,i[o+1]=s,n[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},J=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(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Xe(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new Xe(r,i,this._items.map(n=>n.ruleId))}},Xe=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
|
|
2
|
+
import{_ as c}from"./index-DXQLCSe-.js";import{w as Ne,s as ut,f as Ft,a as qt,b as zt,d as Fe,h as Jt}from"./main-l-GkLRbZ.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...o){let a=i.invalid;const l=i.handlers;if(n&&qe.call(n,r)){const s=String(n[r]);a=qe.call(l,s)?l[s]:i.unknown}if(a)return a.call(this,n,...o)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],Xt=Object.fromEntries(Qt.map(r=>[r.id,r.import]));let N=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yt(){return 2147483648}function Zt(){return typeof performance<"u"?performance.now():Date.now()}const er=(r,e)=>r+(e-r%e)%e;async function tr(r){let e,t;const i={};function n(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,d,R){i.HEAPU8.copyWithin(h,d,d+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(h){const d=i.HEAPU8.length;h=h>>>0;const R=Yt();if(h>R)return!1;for(let f=1;f<=4;f*=2){let E=d*(1+.2/f);E=Math.min(E,h+100663296);const g=Math.min(R,er(Math.max(h,E),65536));if(a(g))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,d,R=1024){const f=d+R;let E=d;for(;h[E]&&!(E>=f);)++E;if(E-d>16&&h.buffer&&s)return s.decode(h.subarray(d,E));let g="";for(;d<E;){let y=h[d++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=h[d++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=h[d++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|h[d++]&63,y<65536)g+=String.fromCharCode(y);else{const O=y-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function m(h,d){return h?u(i.HEAPU8,h,d):""}const p={emscripten_get_now:Zt,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function _(){const d=await r({env:p,wasi_snapshot_preview1:p});e=d.memory,n(e.buffer),Object.assign(i,d),i.UTF8ToString=m}return await _(),i}var rr=Object.defineProperty,ir=(r,e,t)=>e in r?rr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e,t)=>(ir(r,typeof e!="symbol"?e+"":e,t),t);let P=null;function nr(r){throw new Ve(r.UTF8ToString(r.getLastOnigError()))}class de{constructor(e){A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16Value"),A(this,"utf8Value"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16");const t=e.length,i=de._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const l=new Uint8Array(i);let s=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,_=!0)}n&&(o[u]=s,_&&(o[u+1]=s),p<=127?a[s+0]=u:p<=2047?(a[s+0]=u,a[s+1]=u):p<=65535?(a[s+0]=u,a[s+1]=u,a[s+2]=u):(a[s+0]=u,a[s+1]=u,a[s+2]=u,a[s+3]=u)),p<=127?l[s++]=p:p<=2047?(l[s++]=192|(p&1984)>>>6,l[s++]=128|(p&63)>>>0):p<=65535?(l[s++]=224|(p&61440)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0):(l[s++]=240|(p&1835008)>>>18,l[s++]=128|(p&258048)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const o=e.charCodeAt(i);let a=o,l=!1;if(o>=55296&&o<=56319&&i+1<n){const s=e.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class{constructor(r){if(A(this,"id",++w.LAST_ID),A(this,"_onigBinding"),A(this,"content"),A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16"),A(this,"ptr"),!P)throw new Ve("Must invoke loadWasm first.");this._onigBinding=P,this.content=r;const e=new de(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(e.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=e.createString(P)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Q=w;A(Q,"LAST_ID",0);A(Q,"_sharedPtr",0);A(Q,"_sharedPtrInUse",!1);class or{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let l=0,s=e.length;l<s;l++){const u=new de(e[l]);t[l]=u.createString(P),i[l]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const o=P.omalloc(4*e.length);P.HEAPU32.set(i,o/4);const a=P.createOnigScanner(n,o,e.length);for(let l=0,s=e.length;l<s;l++)P.ofree(t[l]);P.ofree(o),P.ofree(n),a===0&&nr(P),this._onigBinding=P,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new Q(e);const o=this._findNextMatchSync(e,t,!1,n);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const u=l[s++],m=l[s++],p=[];for(let _=0;_<m;_++){const h=e.convertUtf8OffsetToUtf16(l[s++]),d=e.convertUtf8OffsetToUtf16(l[s++]);p[_]={start:h,end:d,length:d-h}}return{index:u,captureIndices:p}}}function sr(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function lr(r){return typeof r.data<"u"}function cr(r){return typeof Response<"u"&&r instanceof Response}function ur(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let Y;function mr(r){if(Y)return Y;async function e(){P=await tr(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),sr(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(lr(i)&&(i=i.data),cr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await pr(i)(t):i=await hr(i)(t):ur(i)?i=await ye(i)(t):i instanceof WebAssembly.Module?i=await ye(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await ye(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Y=e(),Y}function ye(r){return e=>WebAssembly.instantiate(r,e)}function pr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function hr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let dr;function _r(){return dr}async function mt(r){return r&&await mr(r),{createScanner(e){return new or(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Q(e)}}}function fr(r){return xe(r)}function xe(r){return Array.isArray(r)?gr(r):r instanceof RegExp?r:typeof r=="object"?Er(r):r}function gr(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=xe(r[t]);return e}function Er(r){let e={};for(let t in r)e[t]=xe(r[t]);return e}function pt(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function ht(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?ht(r.substring(0,r.length-1)):r.substr(~e+1)}var Re=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Z=class{static hasCaptures(r){return r===null?!1:(Re.lastIndex=0,Re.test(r))}static replaceCaptures(r,e,t){return r.replace(Re,(i,n,o,a)=>{let l=t[parseInt(n||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return i})}};function dt(r,e){return r<e?-1:r>e?1:0}function _t(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let o=dt(r[n],e[n]);if(o!==0)return o}return 0}return t-i}function ze(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function ft(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gt=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ne=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Tr(r),e)}static createFromParsedTheme(r,e){return Ar(r,e)}_cachedMatchRoot=new gt(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>yr(r.parent,n.parentScopes));return i?new Et(i.fontStyle,i.foreground,i.background):null}},Te=class re{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new re(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new re(t,e[i]);return t}push(e){return new re(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function yr(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Rr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Rr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Et=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Tr(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,o=e.length;n<o;n++){let a=e[n];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let p=a.settings.fontStyle.split(" ");for(let _=0,h=p.length;_<h;_++)switch(p[_]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let u=null;typeof a.settings.foreground=="string"&&ze(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&ze(a.settings.background)&&(m=a.settings.background);for(let p=0,_=l.length;p<_;p++){let d=l[p].trim().split(" "),R=d[d.length-1],f=null;d.length>1&&(f=d.slice(0,d.length-1),f.reverse()),t[i++]=new vr(R,f,n,s,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}},D=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(D||{});function Ar(r,e){r.sort((s,u)=>{let m=dt(s.scope,u.scope);return m!==0||(m=_t(s.parentScopes,u.parentScopes),m!==0)?m:s.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let s=r.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(i=s.foreground),s.background!==null&&(n=s.background)}let o=new Lr(e),a=new Et(t,o.getId(i),o.getId(n)),l=new br(new be(0,null,-1,0,0),[]);for(let s=0,u=r.length;s<u;s++){let m=r[s];l.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ne(o,a,l)}var Lr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Pr=Object.freeze([]),be=class yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,i,n,o){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=o}clone(){return new yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},br=class Ie{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const o=t.parentScopes[n].length-e.parentScopes[i].length;if(o!==0)return o;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,o;if(i===-1?(n=e,o=""):(n=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,o,a){if(t===""){this._doInsertHere(e,i,n,o,a);return}let l=t.indexOf("."),s,u;l===-1?(s=t,u=""):(s=t.substring(0,l),u=t.substring(l+1));let m;this._children.hasOwnProperty(s)?m=this._children[s]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[s]=m),m.insert(e+1,u,i,n,o,a)}_doInsertHere(e,t,i,n,o){if(t===null){this._mainRule.acceptOverwrite(e,i,n,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(_t(s.parentScopes,t)===0){s.acceptOverwrite(e,i,n,o);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,o))}},$=class S{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=S.getLanguageId(e),i=S.getTokenType(e),n=S.getFontStyle(e),o=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,o,a,l){let s=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,p=S.getFontStyle(e),_=S.getForeground(e),h=S.getBackground(e);return t!==0&&(s=t),i!==8&&(u=i),n!==null&&(m=n?1:0),o!==-1&&(p=o),a!==0&&(_=a),l!==0&&(h=l),(s<<0|u<<8|m<<10|p<<11|_<<15|h<<24)>>>0}};function oe(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:s}),n!==",")break;n=i.next()}return t;function o(){if(n==="-"){n=i.next();const s=o();return u=>!!s&&!s(u)}if(n==="("){n=i.next();const s=l();return n===")"&&(n=i.next()),s}if(Je(n)){const s=[];do s.push(n),n=i.next();while(Je(n));return u=>e(s,u)}return null}function a(){const s=[];let u=o();for(;u;)s.push(u),u=o();return m=>s.every(p=>p(m))}function l(){const s=[];let u=a();for(;u&&(s.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>s.some(p=>p(m))}}function Je(r){return!!r&&!!r.match(/[\w\.:]+/)}function Ir(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function Rt(r){typeof r.dispose=="function"&&r.dispose()}var q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},Sr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Or=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},wr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new Or;for(const t of r)Cr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Cr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);r instanceof q?ie({baseGrammar:o,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const l of a)i.add(new q(l))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];se([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&se(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&se(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function se(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?pt({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&se(i.patterns,{...e,repository:n},t);const o=i.include;if(!o)continue;const a=Tt(o);switch(a.kind){case 0:ie({...e,selfGrammar:e.baseGrammar},t);break;case 1:ie(e,t);break;case 2:Se(a.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};a.kind===4?Se(a.ruleName,s,t):ie(s,t)}else a.kind===4?t.add(new Sr(a.scopeName,a.ruleName)):t.add(new q(a.scopeName));break}}}var kr=class{kind=0},Dr=class{kind=1},Nr=class{constructor(r){this.ruleName=r}kind=2},Vr=class{constructor(r){this.scopeName=r}kind=3},xr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function Tt(r){if(r==="$base")return new kr;if(r==="$self")return new Dr;const e=r.indexOf("#");if(e===-1)return new Vr(r);if(e===0)return new Nr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new xr(t,i)}}var Gr=/\\(\d+)/,Ke=/\\(\d+)/g,Mr=-1,vt=-2;var X=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=Z.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Z.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${ht(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:Z.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Z.replaceCaptures(this._contentName,r,e)}},Br=class extends X{retokenizeCapturedWithRuleId;constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},jr=class extends X{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,null),this._match=new z(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qe=class extends X{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oe=class extends X{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n,o,a,l,s,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const t of this.patterns)r.getRule(t).collectPatterns(r,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}},ae=class extends X{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,i,n,o,a,l,s){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.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(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},At=class b{static createCaptureRule(e,t,i,n,o){return e.registerRule(a=>new Br(t,a,i,n,o))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new jr(e.$vscodeTextmateLocation,e.id,e.name,e.match,b._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=pt({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(o,t,i))}return e.while?new ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,b._compileCaptures(e.whileCaptures||e.captures,t,i),b._compilePatterns(e.patterns,t,i)):new Oe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,b._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,b._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=b.getCompiledRuleId(e[a],t,i)),n[l]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const u=Tt(l.include);switch(u.kind){case 0:case 1:s=b.getCompiledRuleId(i[l.include],t,i);break;case 2:let m=i[u.ruleName];m&&(s=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const p=u.scopeName,_=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(p,i);if(h)if(_){let d=h.repository[_];d&&(s=b.getCompiledRuleId(d,t,h.repository))}else s=b.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=b.getCompiledRuleId(l,t,i);if(s!==-1){const u=t.getRule(s);let m=!1;if((u instanceof Qe||u instanceof Oe||u instanceof ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(s)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},z=class Lt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const i=e.length;let n=0,o=[],a=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(n,l)),o.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(a=!0),l++}this.hasAnchor=a,n===0?this.source=e:(o.push(e.substring(n,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Gr.test(this.source):this.hasBackReferences=!1}clone(){return new Lt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=t.map(n=>e.substring(n.start,n.end));return Ke.lastIndex=0,this.source.replace(Ke,(n,o)=>ft(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],i=[],n=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,i[o]=l,n[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",i[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",i[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,i[o+1]=s,n[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},J=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(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Xe(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new Xe(r,i,this._items.map(n=>n.ruleId))}},Xe=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
|
|
3
3
|
`)}findNextMatchSync(r,e,t){const i=this.scanner.findNextMatchSync(r,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},ve=class{constructor(r,e){this.languageId=r,this.tokenType=e}},$r=class we{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ve(e,8),this._embeddedLanguagesMatcher=new Wr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?we._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new ve(0,0);_getBasicScopeAttributes=new gt(e=>{const t=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new ve(t,i)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(we.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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/},Wr=class{values;scopesRegExp;constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,i])=>ft(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Ye=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function Pt(r,e,t,i,n,o,a,l){const s=e.content.length;let u=!1,m=-1;if(a){const h=Ur(r,e,t,i,n,o);n=h.stack,i=h.linePos,t=h.isFirstLine,m=h.anchorPosition}const p=Date.now();for(;!u;){if(l!==0&&Date.now()-p>l)return new Ye(n,!0);_()}return new Ye(n,!1);function _(){const h=Hr(r,e,t,i,n,m);if(!h){o.produce(n,s),u=!0;return}const d=h.captureIndices,R=h.matchedRuleId,f=d&&d.length>0?d[0].end>i:!1;if(R===Mr){const E=n.getRule(r);o.produce(n,d[0].start),n=n.withContentNameScopesList(n.nameScopesList),H(r,e,t,n,o,E.endCaptures,d),o.produce(n,d[0].end);const g=n;if(n=n.parent,m=g.getAnchorPos(),!f&&g.getEnterPos()===i){n=g,o.produce(n,s),u=!0;return}}else{const E=r.getRule(R);o.produce(n,d[0].start);const g=n,y=E.getName(e.content,d),v=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(R,i,m,d[0].end===s,null,v,v),E instanceof Oe){const T=E;H(r,e,t,n,o,T.beginCaptures,d),o.produce(n,d[0].end),m=d[0].end;const O=T.getContentName(e.content,d),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,d))),!f&&g.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),u=!0;return}}else if(E instanceof ae){const T=E;H(r,e,t,n,o,T.beginCaptures,d),o.produce(n,d[0].end),m=d[0].end;const O=T.getContentName(e.content,d),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,d))),!f&&g.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),u=!0;return}}else if(H(r,e,t,n,o,E.captures,d),o.produce(n,d[0].end),n=n.pop(),!f){n=n.safePop(),o.produce(n,s),u=!0;return}}d[0].end>i&&(i=d[0].end,t=!1)}}function Ur(r,e,t,i,n,o){let a=n.beginRuleCapturedEOL?0:-1;const l=[];for(let s=n;s;s=s.pop()){const u=s.getRule(r);u instanceof ae&&l.push({rule:u,stack:s})}for(let s=l.pop();s;s=l.pop()){const{ruleScanner:u,findOptions:m}=zr(s.rule,r,s.stack.endRule,t,i===a),p=u.findNextMatchSync(e,i,m);if(p){if(p.ruleId!==vt){n=s.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(s.stack,p.captureIndices[0].start),H(r,e,t,s.stack,o,s.rule.whileCaptures,p.captureIndices),o.produce(s.stack,p.captureIndices[0].end),a=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,t=!1))}else{n=s.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:a,isFirstLine:t}}function Hr(r,e,t,i,n,o){const a=Fr(r,e,t,i,n,o),l=r.getInjections();if(l.length===0)return a;const s=qr(l,r,e,t,i,n,o);if(!s)return a;if(!a)return s;const u=a.captureIndices[0].start,m=s.captureIndices[0].start;return m<u||s.priorityMatch&&m===u?s:a}function Fr(r,e,t,i,n,o){const a=n.getRule(r),{ruleScanner:l,findOptions:s}=bt(a,r,n.endRule,t,i===o),u=l.findNextMatchSync(e,i,s);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function qr(r,e,t,i,n,o,a){let l=Number.MAX_VALUE,s=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let _=0,h=r.length;_<h;_++){const d=r[_];if(!d.matcher(p))continue;const R=e.getRule(d.ruleId),{ruleScanner:f,findOptions:E}=bt(R,e,null,i,n===a),g=f.findNextMatchSync(t,n,E);if(!g)continue;const y=g.captureIndices[0].start;if(!(y>=l)&&(l=y,s=g.captureIndices,u=g.ruleId,m=d.priority,l===n))break}return s?{priorityMatch:m===-1,captureIndices:s,matchedRuleId:u}:null}function bt(r,e,t,i,n){return{ruleScanner:r.compileAG(e,t,i,n),findOptions:0}}function zr(r,e,t,i,n){return{ruleScanner:r.compileWhileAG(e,t,i,n),findOptions:0}}function H(r,e,t,i,n,o,a){if(o.length===0)return;const l=e.content,s=Math.min(o.length,a.length),u=[],m=a[0].end;for(let p=0;p<s;p++){const _=o[p];if(_===null)continue;const h=a[p];if(h.length===0)continue;if(h.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,h.start):n.produce(i,h.start),_.retokenizeCapturedWithRuleId){const R=_.getName(l,a),f=i.contentNameScopesList.pushAttributed(R,r),E=_.getContentName(l,a),g=f.pushAttributed(E,r),y=i.push(_.retokenizeCapturedWithRuleId,h.start,-1,!1,null,f,g),v=r.createOnigString(l.substring(0,h.end));Pt(r,v,t&&h.start===0,h.start,y,n,!1,0),Rt(v);continue}const d=_.getName(l,a);if(d!==null){const f=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(d,r);u.push(new Jr(f,h.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Jr=class{scopes;endPos;constructor(r,e){this.scopes=r,this.endPos=e}};function Kr(r,e,t,i,n,o,a,l){return new Xr(r,e,t,i,n,o,a,l)}function Ze(r,e,t,i,n){const o=oe(e,le),a=At.getCompiledRuleId(t,i,n.repository);for(const l of o)r.push({debugSelector:e,matcher:l.matcher,ruleId:a,grammar:n,priority:l.priority})}function le(r,e){if(e.length<r.length)return!1;let t=0;return r.every(i=>{for(let n=t;n<e.length;n++)if(Qr(e[n],i))return t=n+1,!0;return!1})}function Qr(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var Xr=class{constructor(r,e,t,i,n,o,a,l){if(this._rootScopeName=r,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new $r(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=et(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const s of Object.keys(n)){const u=oe(s,le);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,i=r.lookup(t);if(i){const n=i.injections;if(n)for(let a in n)Ze(e,a,n[a],this,i);const o=this._grammarRepository.injections(t);o&&o.forEach(a=>{const l=this.getExternalGrammar(a);if(l){const s=l.injectionSelector;s&&Ze(e,s,l,this,l)}})}return e.sort((n,o)=>n.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=et(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const i=this._tokenize(r,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,t=0){const i=this._tokenize(r,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,t,i){this._rootId===-1&&(this._rootId=At.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===Ce.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=$.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),_=this.getRule(this._rootId).getName(null,null);let h;_?h=F.createRootAndLookUpScopeName(_,p,this):h=F.createRoot("unknown",p),e=new Ce(null,this._rootId,-1,-1,!1,null,h,h)}else n=!1,e.reset();r=r+`
|
|
4
4
|
`;const o=this.createOnigString(r),a=o.content.length,l=new Zr(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),s=Pt(this,o,n,0,e,l,!0,i);return Rt(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function et(r,e){return r=fr(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var F=class C{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,n=e?.scopePath??null;for(const o of t)n=Te.push(n,o.scopeNames),i=new C(i,n,o.encodedTokenAttributes);return i}static createRoot(e,t){return new C(null,new Te(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const n=i.getMetadataForScope(e),o=new Te(null,e),a=i.themeProvider.themeMatch(o),l=C.mergeAttributes(t,n,a);return new C(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return C.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let n=-1,o=0,a=0;return i!==null&&(n=i.fontStyle,o=i.foregroundId,a=i.backgroundId),$.set(e,t.languageId,t.tokenType,null,n,o,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return C._pushAttributed(this,e,t);const i=e.split(/ /g);let n=this;for(const o of i)n=C._pushAttributed(n,o,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),o=e.scopePath.push(t),a=i.themeProvider.themeMatch(o),l=C.mergeAttributes(e.tokenAttributes,n,a);return new C(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===e?t.reverse():void 0}},Ce=class x{constructor(e,t,i,n,o,a,l,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new x(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:x._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?F.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){x._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,n,o,a,l){return new x(this,e,t,i,n,o,a,l)}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,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new x(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const i=F.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new x(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,F.fromExtension(i,t.contentNameScopesList))}},Yr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(r,e){this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):oe(t,le).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>oe(t,le).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},Zr=class{constructor(r,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=r?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=r?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(i=$.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(o))}if(n&&(i=$.set(i,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const t=r?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,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(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,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(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,n=this._binaryTokens.length;i<n;i++)t[i]=this._binaryTokens[i];return t}},ei=class{constructor(r,e){this._onigLib=e,this._theme=r}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,i,n){if(!this._grammars.has(r)){let o=this._rawGrammars.get(r);if(!o)return null;this._grammars.set(r,Kr(r,o,e,t,i,n,this,this._onigLib))}return this._grammars.get(r)}},ti=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ei(ne.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ne.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new Yr(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,n,o){const a=new wr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(l=>this._loadSingleGrammar(l.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,i,n,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,n)}_grammarForScopeName(e,t=0,i=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,o)}},ke=Ce.NULL;const ri=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ii=/["&'<>`]/g,ni=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oi=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,si=/[|\\{}()[\]^$+*?.]/g,tt=new WeakMap;function ai(r,e){if(r=r.replace(e.subset?li(e.subset):ii,i),e.subset||e.escapeOnly)return r;return r.replace(ni,t).replace(oi,i);function t(n,o,a){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function i(n,o,a){return e.format(n.charCodeAt(0),a.charCodeAt(o+1),e)}}function li(r){let e=tt.get(r);return e||(e=ci(r),tt.set(r,e)),e}function ci(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(si,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ui=/[\dA-Fa-f]/;function mi(r,e,t){const i="&#x"+r.toString(16).toUpperCase();return t&&e&&!ui.test(String.fromCharCode(e))?i:i+";"}const pi=/\d/;function hi(r,e,t){const i="&#"+String(r);return t&&e&&!pi.test(String.fromCharCode(e))?i:i+";"}const di=["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"],Ae={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:"€"},_i=["cent","copy","divide","gt","lt","not","para","times"],It={}.hasOwnProperty,De={};let ee;for(ee in Ae)It.call(Ae,ee)&&(De[Ae[ee]]=ee);const fi=/[^\dA-Za-z]/;function gi(r,e,t,i){const n=String.fromCharCode(r);if(It.call(De,n)){const o=De[n],a="&"+o;return t&&di.includes(o)&&!_i.includes(o)&&(!i||e&&e!==61&&fi.test(String.fromCharCode(e)))?a:a+";"}return""}function Ei(r,e,t){let i=mi(r,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=gi(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const o=hi(r,e,t.omitOptionalSemicolons);o.length<i.length&&(i=o)}return n&&(!t.useShortestReferences||n.length<i.length)?n:i}function j(r,e){return ai(r,Object.assign({format:Ei},e))}const yi=/^>|^->|<!--|-->|--!>|<!-$/g,Ri=[">"],Ti=["<",">"];function vi(r,e,t,i){return i.settings.bogusComments?"<?"+j(r.value,Object.assign({},i.settings.characterReferences,{subset:Ri}))+">":"<!--"+r.value.replace(yi,n)+"-->";function n(o){return j(o,Object.assign({},i.settings.characterReferences,{subset:Ti}))}}function Ai(r,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const L=Ot(1),St=Ot(-1),Li=[];function Ot(r){return e;function e(t,i,n){const o=t?t.children:Li;let a=(i||0)+r,l=o[a];if(!n)for(;l&&Ne(l);)a+=r,l=o[a];return l}}const Pi={}.hasOwnProperty;function wt(r){return e;function e(t,i,n){return Pi.call(r,t.tagName)&&r[t.tagName](t,i,n)}}const Ge=wt({body:Ii,caption:Le,colgroup:Le,dd:Ci,dt:wi,head:Le,html:bi,li:Oi,optgroup:ki,option:Di,p:Si,rp:rt,rt,tbody:Vi,td:it,tfoot:xi,th:it,thead:Ni,tr:Gi});function Le(r,e,t){const i=L(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&Ne(i.value.charAt(0)))}function bi(r,e,t){const i=L(t,e);return!i||i.type!=="comment"}function Ii(r,e,t){const i=L(t,e);return!i||i.type!=="comment"}function Si(r,e,t){const i=L(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Oi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="li"}function wi(r,e,t){const i=L(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Ci(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function rt(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function ki(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function Di(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function Ni(r,e,t){const i=L(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function xi(r,e,t){return!L(t,e)}function Gi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function it(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Mi=wt({body:$i,colgroup:Wi,head:ji,html:Bi,tbody:Ui});function Bi(r){const e=L(r,-1);return!e||e.type!=="comment"}function ji(r){const e=new Set;for(const i of r.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=r.children[0];return!t||t.type==="element"}function $i(r){const e=L(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ne(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Wi(r,e,t){const i=St(t,e),n=L(r,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ge(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Ui(r,e,t){const i=St(t,e),n=L(r,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ge(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const te={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as O,g as r,e as b,i as s,j as a,k as t,p as P,r as n,t as e}from"./main-
|
|
1
|
+
import{L as O,g as r,e as b,i as s,j as a,k as t,p as P,r as n,t as e}from"./main-l-GkLRbZ.js";import"./index-DXQLCSe-.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},i=b.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),Q=O.define({name:"wast",parser:i.configure({props:[s.add({App:P({closing:")",align:!1})}),a.add({App:n,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),t({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function l(){return new r(Q)}export{l as wast,Q as wastLanguage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as d,y as g,z as v,g as m,L as u,A as x,o as G,e as b,k as Z,i as R,j as h,t as a,p as k,E as f,u as w}from"./main-CZUlzyAB.js";import"./index-CRkty_QZ.js";const X=1,T=2,y=3,U=155,z=4,j=156;function Y(O){return O>=65&&O<=90||O>=97&&O<=122}const E=new f(O=>{let i=O.pos;for(;;){let{next:t}=O;if(t<0)break;if(t==123){let r=O.peek(1);if(r==123){if(O.pos>i)break;O.acceptToken(X,2);return}else if(r==35){if(O.pos>i)break;O.acceptToken(T,2);return}else if(r==37){if(O.pos>i)break;let e=2,P=2;for(;;){let Q=O.peek(e);if(Q==32||Q==10)++e;else if(Q==35)for(++e;;){let o=O.peek(e);if(o<0||o==10)break;e++}else if(Q==45&&P==2)P=++e;else{O.acceptToken(y,P);return}}}}if(O.advance(),t==10)break}O.pos>i&&O.acceptToken(U)});function _(O,i,t){return new f(r=>{let e=r.pos;for(;;){let{next:P}=r;if(P==123&&r.peek(1)==37){let Q=2;for(;;Q++){let n=r.peek(Q);if(n!=32&&n!=10)break}let o="";for(;;Q++){let n=r.peek(Q);if(!Y(n))break;o+=String.fromCharCode(n)}if(o==O){if(r.pos>e)break;r.acceptToken(t,2);break}}else if(P<0)break;if(r.advance(),P==10)break}r.pos>e&&r.acceptToken(i)})}const W=_("endraw",j,z),V={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},q={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},F=b.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO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#WhQ#YiQ#[jQ#_lQ$U!eQ$W!fQ$i!pQ$j!qQ$k!rQ$l!sQ$p!xS$q!y)gQ$r!zQ$s!{Q$t!|Q$u!}Q$z#RQ${#SQ$|#TQ$}#UQ%O#VQ%]#eQ%l$OQ&h%PQ&k%UQ&l%VQ&y%tQ'U&UQ'V&VQ'X&XQ'a&bQ'e&dQ'f&gQ'g(yQ'i&xQ'm&}Q'r'TQ'w'WS(R(z)zQ(S({Q(T(|Q(U(}Q(W)PQ(X)QQ(Y)RQ(Z)SQ([)TQ(]'hQ(m(QQ(o(`Q(t)WQ(u(pQ(w(rQ(x(vQ)U)ZQ)V)[Q)X)bQ)Y)cQ)])fQ)^)lQ)_)mQ)`)nQ)a)sQ)d*TQ)e*UQ)o)hQ)p)iQ)q)jQ)r)kQ)t)yQ)u*PQ)v*QQ)w*RQ)x*SQ*V){Q*W)|Q*X)}R*Y*OQ$c!lT$y#O)OR$x!}R#XhR#^jR%|$^R$h!o",nodeNames:"⚠ {{ {# {% {% Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}",maxTerm:173,nodeProps:[["closedBy",1,"}}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h*y#R#S+h#X#Y*y~,ROt~~,WRa~uv,a!O!P*b!Q![+h~,dP#q#r&v~,lPZ~!Q![*h~,tP`~!P!Q*Q~,|O!P~~-RPb~!_!`#q~-ZPs~!_!`#q!`-iVm`[p!XS$gY!Q![-^!c!}-^#R#S-^#T#o-^%W;'S-^;'S;:j.O<%lO-^!`.RP;=`<%l-^~.ZO$i~~.`O$h~~.eO$n~~.jOl~^.oP$m[#q#r.rQ.wOVQ~.|O_~",tokenizers:[E,W,1,2,3,4,5,new w("b~RPstU~XP#q#r[~aO$Q~~",17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:O=>V[O]||-1},{term:55,get:O=>q[O]||-1}],tokenPrec:3602});function S(O,i){return O.split(" ").map(t=>({label:t,type:i}))}const N=S("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr","function"),C=S("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace","function"),D=S("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller","keyword"),l=C.concat(D),$=S("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends","keyword");function A(O){var i;let{state:t,pos:r}=O,e=G(t).resolveInner(r,-1).enterUnfinishedNodesBefore(r),P=((i=e.childBefore(r))===null||i===void 0?void 0:i.name)||e.name;if(e.name=="FilterName")return{type:"filter",node:e};if(O.explicit&&(P=="FilterOp"||P=="filter"))return{type:"filter"};if(e.name=="TagName")return{type:"tag",node:e};if(O.explicit&&P=="{%")return{type:"tag"};if(e.name=="PropertyName"&&e.parent.name=="MemberExpression")return{type:"prop",node:e,target:e.parent};if(e.name=="."&&e.parent.name=="MemberExpression")return{type:"prop",target:e.parent};if(e.name=="MemberExpression"&&P==".")return{type:"prop",target:e};if(e.name=="VariableName")return{type:"expr",from:e.from};if(e.name=="Comment"||e.name=="StringLiteral"||e.name=="NumberLiteral")return null;let Q=O.matchBefore(/[\w\u00c0-\uffff]+$/);return Q?{type:"expr",from:Q.from}:O.explicit?{type:"expr"}:null}function L(O,i,t,r){let e=[];for(;;){let P=i.getChild("Expression");if(!P)return[];if(P.name=="VariableName"){e.unshift(O.sliceDoc(P.from,P.to));break}else if(P.name=="MemberExpression"){let Q=P.getChild("PropertyName");Q&&e.unshift(O.sliceDoc(Q.from,Q.to)),i=P}else return[]}return r(e,O,t)}function I(O={}){let i=O.tags?O.tags.concat($):$,t=O.variables?O.variables.concat(l):l,{properties:r}=O;return e=>{var P;let Q=A(e);if(!Q)return null;let o=(P=Q.from)!==null&&P!==void 0?P:Q.node?Q.node.from:e.pos,n;return Q.type=="filter"?n=N:Q.type=="tag"?n=i:Q.type=="expr"?n=t:n=r?L(e.state,Q.target,e,r):[],n.length?{options:n,from:o,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const H=d.inputHandler.of((O,i,t,r)=>r!="%"||i!=t||O.state.doc.sliceString(i-1,t+1)!="{}"?!1:(O.dispatch(O.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:"%%"},range:g.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function p(O){return i=>{let t=O.test(i.textAfter);return i.lineIndent(i.node.from)+(t?0:i.unit)}}const B=u.define({name:"jinja",parser:F.configure({props:[Z({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":a.keyword,"required scoped recursive with without context ignore missing":a.modifier,self:a.self,"loop super":a.standard(a.variableName),"if elif else endif for endfor call endcall":a.controlKeyword,"block endblock set endset macro endmacro import from include":a.definitionKeyword,"Comment/...":a.blockComment,VariableName:a.variableName,Definition:a.definition(a.variableName),PropertyName:a.propertyName,FilterName:a.special(a.variableName),ArithOp:a.arithmeticOperator,AssignOp:a.definitionOperator,"not and or":a.logicOperator,CompareOp:a.compareOperator,"in is":a.operatorKeyword,"FilterOp ConcatOp":a.operator,StringLiteral:a.string,NumberLiteral:a.number,BooleanLiteral:a.bool,"{% %} {# #} {{ }} { }":a.brace,"( )":a.paren,".":a.derefOperator,": , .":a.punctuation}),R.add({Tag:k({closing:"%}"}),"IfStatement ForStatement":p(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:p(/^\s*(\{%-?\s*)?end\w/)}),h.add({"Statement Comment"(O){let i=O.firstChild,t=O.lastChild;return!i||i.name!="Tag"&&i.name!="{#"?null:{from:i.to,to:t.name=="EndTag"||t.name=="#}"?t.from:O.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),s=v();function c(O){return B.configure({wrap:x(i=>i.type.isTop?{parser:O.parser,overlay:t=>t.name=="Text"||t.name=="RawText"}:null)},"jinja")}const J=c(s.language);function OO(O={}){let i=O.base||s,t=i.language==s.language?J:c(i.language);return new m(t,[i.support,t.data.of({autocomplete:I(O)}),i.language.data.of({closeBrackets:{brackets:["{"]}}),H])}export{H as closePercentBrace,OO as jinja,I as jinjaCompletionSource,J as jinjaLanguage};
|
|
1
|
+
import{x as d,y as g,z as v,g as m,L as u,A as x,o as G,e as b,k as Z,i as R,j as h,t as a,p as k,E as f,u as w}from"./main-l-GkLRbZ.js";import"./index-DXQLCSe-.js";const X=1,T=2,y=3,U=155,z=4,j=156;function Y(O){return O>=65&&O<=90||O>=97&&O<=122}const E=new f(O=>{let i=O.pos;for(;;){let{next:t}=O;if(t<0)break;if(t==123){let r=O.peek(1);if(r==123){if(O.pos>i)break;O.acceptToken(X,2);return}else if(r==35){if(O.pos>i)break;O.acceptToken(T,2);return}else if(r==37){if(O.pos>i)break;let e=2,P=2;for(;;){let Q=O.peek(e);if(Q==32||Q==10)++e;else if(Q==35)for(++e;;){let o=O.peek(e);if(o<0||o==10)break;e++}else if(Q==45&&P==2)P=++e;else{O.acceptToken(y,P);return}}}}if(O.advance(),t==10)break}O.pos>i&&O.acceptToken(U)});function _(O,i,t){return new f(r=>{let e=r.pos;for(;;){let{next:P}=r;if(P==123&&r.peek(1)==37){let Q=2;for(;;Q++){let n=r.peek(Q);if(n!=32&&n!=10)break}let o="";for(;;Q++){let n=r.peek(Q);if(!Y(n))break;o+=String.fromCharCode(n)}if(o==O){if(r.pos>e)break;r.acceptToken(t,2);break}}else if(P<0)break;if(r.advance(),P==10)break}r.pos>e&&r.acceptToken(i)})}const W=_("endraw",j,z),V={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},q={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},F=b.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO!yOPO'#DnO#XOQO'#DuO#^OPO'#D{O#lOPO'#ESO#zOPO'#E[O$YOPO'#EaO$hOPO'#EfO$vOPO'#EkO%UOPO'#ErO%dOPO'#EwOOOP'#F|'#F|O%rQWO'#E|O&sO#tO'#F]OOOP'#Fq'#FqOOOP'#F_'#F_QVOPOOOOOP-E9^-E9^OOQO'#Ce'#CeO'sQSO,59OO'zQSO'#DWO(RQSO'#DXO(YQ`O'#DZOOQO'#Fr'#FrOvQSO'#CuO(aOPO'#CbOOOP'#Fd'#FdO!kOPO,59}OOOP,59},59}O(oOPO,59}O(}QWO'#E|OOOP,5:Y,5:YO)[OPO,5:YO!yOPO,5:YO)jQWO'#E|OOOQ'#Ff'#FfO)tOQO'#DxO)|OQO,5:aOOOP,5:g,5:gO#^OPO,5:gO*RQWO'#E|OOOP,5:n,5:nO#l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RQ)x*SQ*V){Q*W)|Q*X)}R*Y*OQ$c!lT$y#O)OR$x!}R#XhR#^jR%|$^R$h!o",nodeNames:"⚠ {{ {# {% {% Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}",maxTerm:173,nodeProps:[["closedBy",1,"}}",2,"#}",-2,3,4,"%}",32,")"],["openedBy",7,"{{",31,"(",57,"{%",140,"{#"],["group",-18,9,10,13,14,21,22,25,27,38,41,42,43,44,45,49,50,51,52,"Expression",-11,53,64,71,77,84,92,97,102,107,114,119,"Statement"]],skippedNodes:[0],repeatNodeCount:13,tokenData:".|~RqXY#YYZ#Y]^#Ypq#Yqr#krs#vuv&nwx&{xy)nyz)sz{)x{|*V|}+|}!O,R!O!P,g!P!Q,o!Q![+h![!],w!^!_,|!_!`-U!`!a,|!c!}-^!}#O.U#P#Q.Z#R#S-^#T#o-^#o#p.`#p#q.e#q#r.j#r#s.w%W;'S-^;'S;:j.O<%lO-^~#_S$d~XY#YYZ#Y]^#Ypq#Y~#nP!_!`#q~#vOb~~#yWOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~$hOe~~$kYOY#vYZ#vZr#vrs%Zs#O#v#O#P$h#P;'S#v;'S;=`&O;=`<%l#v<%lO#v~%`We~OY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~%{P;=`<%l#v~&RXOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x;=`<%l#v<%lO#v~&sP`~#q#r&v~&{O!Z~~'OWOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~'kYOY&{YZ&{Zw&{wx(Zx#O&{#O#P'h#P;'S&{;'S;=`)O;=`<%l&{<%lO&{~(`We~OY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~({P;=`<%l&{~)RXOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x;=`<%l&{<%lO&{~)sOp~~)xOo~~)}P`~z{*Q~*VO`~~*[Qa~!O!P*b!Q![+h~*eP!Q![*h~*mSf~!Q![*h!g!h*y#R#S*h#X#Y*y~*|R{|+V}!O+V!Q![+]~+YP!Q![+]~+bQf~!Q![+]#R#S+]~+mTf~!O!P*b!Q![+h!g!h*y#R#S+h#X#Y*y~,ROt~~,WRa~uv,a!O!P*b!Q![+h~,dP#q#r&v~,lPZ~!Q![*h~,tP`~!P!Q*Q~,|O!P~~-RPb~!_!`#q~-ZPs~!_!`#q!`-iVm`[p!XS$gY!Q![-^!c!}-^#R#S-^#T#o-^%W;'S-^;'S;:j.O<%lO-^!`.RP;=`<%l-^~.ZO$i~~.`O$h~~.eO$n~~.jOl~^.oP$m[#q#r.rQ.wOVQ~.|O_~",tokenizers:[E,W,1,2,3,4,5,new w("b~RPstU~XP#q#r[~aO$Q~~",17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:O=>V[O]||-1},{term:55,get:O=>q[O]||-1}],tokenPrec:3602});function S(O,i){return O.split(" ").map(t=>({label:t,type:i}))}const N=S("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr","function"),C=S("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace","function"),D=S("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller","keyword"),l=C.concat(D),$=S("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends","keyword");function A(O){var i;let{state:t,pos:r}=O,e=G(t).resolveInner(r,-1).enterUnfinishedNodesBefore(r),P=((i=e.childBefore(r))===null||i===void 0?void 0:i.name)||e.name;if(e.name=="FilterName")return{type:"filter",node:e};if(O.explicit&&(P=="FilterOp"||P=="filter"))return{type:"filter"};if(e.name=="TagName")return{type:"tag",node:e};if(O.explicit&&P=="{%")return{type:"tag"};if(e.name=="PropertyName"&&e.parent.name=="MemberExpression")return{type:"prop",node:e,target:e.parent};if(e.name=="."&&e.parent.name=="MemberExpression")return{type:"prop",target:e.parent};if(e.name=="MemberExpression"&&P==".")return{type:"prop",target:e};if(e.name=="VariableName")return{type:"expr",from:e.from};if(e.name=="Comment"||e.name=="StringLiteral"||e.name=="NumberLiteral")return null;let Q=O.matchBefore(/[\w\u00c0-\uffff]+$/);return Q?{type:"expr",from:Q.from}:O.explicit?{type:"expr"}:null}function L(O,i,t,r){let e=[];for(;;){let P=i.getChild("Expression");if(!P)return[];if(P.name=="VariableName"){e.unshift(O.sliceDoc(P.from,P.to));break}else if(P.name=="MemberExpression"){let Q=P.getChild("PropertyName");Q&&e.unshift(O.sliceDoc(Q.from,Q.to)),i=P}else return[]}return r(e,O,t)}function I(O={}){let i=O.tags?O.tags.concat($):$,t=O.variables?O.variables.concat(l):l,{properties:r}=O;return e=>{var P;let Q=A(e);if(!Q)return null;let o=(P=Q.from)!==null&&P!==void 0?P:Q.node?Q.node.from:e.pos,n;return Q.type=="filter"?n=N:Q.type=="tag"?n=i:Q.type=="expr"?n=t:n=r?L(e.state,Q.target,e,r):[],n.length?{options:n,from:o,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const H=d.inputHandler.of((O,i,t,r)=>r!="%"||i!=t||O.state.doc.sliceString(i-1,t+1)!="{}"?!1:(O.dispatch(O.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:"%%"},range:g.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function p(O){return i=>{let t=O.test(i.textAfter);return i.lineIndent(i.node.from)+(t?0:i.unit)}}const B=u.define({name:"jinja",parser:F.configure({props:[Z({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":a.keyword,"required scoped recursive with without context ignore missing":a.modifier,self:a.self,"loop super":a.standard(a.variableName),"if elif else endif for endfor call endcall":a.controlKeyword,"block endblock set endset macro endmacro import from include":a.definitionKeyword,"Comment/...":a.blockComment,VariableName:a.variableName,Definition:a.definition(a.variableName),PropertyName:a.propertyName,FilterName:a.special(a.variableName),ArithOp:a.arithmeticOperator,AssignOp:a.definitionOperator,"not and or":a.logicOperator,CompareOp:a.compareOperator,"in is":a.operatorKeyword,"FilterOp ConcatOp":a.operator,StringLiteral:a.string,NumberLiteral:a.number,BooleanLiteral:a.bool,"{% %} {# #} {{ }} { }":a.brace,"( )":a.paren,".":a.derefOperator,": , .":a.punctuation}),R.add({Tag:k({closing:"%}"}),"IfStatement ForStatement":p(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:p(/^\s*(\{%-?\s*)?end\w/)}),h.add({"Statement Comment"(O){let i=O.firstChild,t=O.lastChild;return!i||i.name!="Tag"&&i.name!="{#"?null:{from:i.to,to:t.name=="EndTag"||t.name=="#}"?t.from:O.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),s=v();function c(O){return B.configure({wrap:x(i=>i.type.isTop?{parser:O.parser,overlay:t=>t.name=="Text"||t.name=="RawText"}:null)},"jinja")}const J=c(s.language);function OO(O={}){let i=O.base||s,t=i.language==s.language?J:c(i.language);return new m(t,[i.support,t.data.of({autocomplete:I(O)}),i.language.data.of({closeBrackets:{brackets:["{"]}}),H])}export{H as closePercentBrace,OO as jinja,I as jinjaCompletionSource,J as jinjaLanguage};
|