nuxt-og-image 2.2.4 → 3.0.0-beta.1
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/README.md +2 -2
- package/dist/client/200.html +8 -8
- package/dist/client/404.html +8 -8
- package/dist/client/_nuxt/IconCSS.8f429b14.css +1 -0
- package/dist/client/_nuxt/IconCSS.ac398b56.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/d1d517c3-4927-4803-bbb0-d94e9d3e9581.json +1 -0
- package/dist/client/_nuxt/entry.434c2c45.css +1 -0
- package/dist/client/_nuxt/entry.bdb8a8d5.js +137 -0
- package/dist/client/_nuxt/{error-404.407d76a3.js → error-404.f37119e7.js} +1 -1
- package/dist/client/_nuxt/{error-500.531c4147.js → error-500.74b0a30f.js} +1 -1
- package/dist/client/grid.png +0 -0
- package/dist/client/index.html +8 -8
- package/dist/module.d.mts +43 -39
- package/dist/module.d.ts +43 -39
- package/dist/module.json +1 -1
- package/dist/module.mjs +341 -667
- package/dist/runtime/cache.d.ts +4 -4
- package/dist/runtime/cache.mjs +2 -1
- package/dist/runtime/components/OgImage/Cached.mjs +1 -1
- package/dist/runtime/components/OgImage/Dynamic.mjs +1 -1
- package/dist/runtime/components/OgImage/Screenshot.mjs +1 -1
- package/dist/runtime/components/OgImage/Static.mjs +1 -1
- package/dist/runtime/components/OgImage/WithoutCache.mjs +1 -1
- package/dist/runtime/components/OgImage/index.mjs +1 -1
- package/dist/runtime/components/Templates/Community/Nuxt.vue +183 -0
- package/dist/runtime/components/Templates/Official/BrandedLogo.vue +28 -0
- package/dist/runtime/components/Templates/Official/Fallback.vue +147 -0
- package/dist/runtime/components/Templates/Official/SimpleBlog.vue +33 -0
- package/dist/runtime/components/Templates/Official/Wave.vue +33 -0
- package/dist/runtime/components/Templates/Official/WithEmoji.vue +27 -0
- package/dist/runtime/composables/defineOgImage.d.ts +10 -6
- package/dist/runtime/composables/defineOgImage.mjs +21 -9
- package/dist/runtime/core/bindings/chromium/node.d.ts +2 -0
- package/dist/runtime/{nitro/providers/browser/universal.mjs → core/bindings/chromium/node.mjs} +3 -3
- package/dist/runtime/core/bindings/resvg/node.d.ts +6 -0
- package/dist/runtime/core/bindings/resvg/node.mjs +5 -0
- package/dist/runtime/core/bindings/resvg/wasm.d.ts +40 -0
- package/dist/runtime/core/bindings/resvg/wasm.mjs +7 -0
- package/dist/runtime/core/bindings/satori/node.d.ts +6 -0
- package/dist/runtime/core/bindings/satori/node.mjs +5 -0
- package/dist/runtime/core/bindings/satori/yoga-wasm.d.ts +6 -0
- package/dist/runtime/core/bindings/satori/yoga-wasm.mjs +7 -0
- package/dist/runtime/core/bindings/sharp/node.d.ts +2 -0
- package/dist/runtime/core/bindings/sharp/node.mjs +2 -0
- package/dist/runtime/core/bindings/sharp/wasm.d.ts +2 -0
- package/dist/runtime/core/bindings/sharp/wasm.mjs +2 -0
- package/dist/runtime/core/cache/prerender.d.ts +6 -0
- package/dist/runtime/core/cache/prerender.mjs +6 -0
- package/dist/runtime/core/env/assets.d.ts +2 -0
- package/dist/runtime/core/env/assets.mjs +15 -0
- package/dist/runtime/core/font/cache.d.ts +1 -0
- package/dist/runtime/core/font/cache.mjs +1 -0
- package/dist/runtime/core/font/fetch.d.ts +3 -0
- package/dist/runtime/core/font/fetch.mjs +29 -0
- package/dist/runtime/core/html/fetch.d.ts +3 -0
- package/dist/runtime/core/html/fetch.mjs +117 -0
- package/dist/runtime/core/options/extract.d.ts +3 -0
- package/dist/runtime/{nitro/utils-pure.mjs → core/options/extract.mjs} +23 -21
- package/dist/runtime/core/options/fetch.d.ts +3 -0
- package/dist/runtime/core/options/fetch.mjs +21 -0
- package/dist/runtime/core/options/normalise.d.ts +2 -0
- package/dist/runtime/{composables/util.mjs → core/options/normalise.mjs} +9 -6
- package/dist/runtime/core/renderers/chromium/index.d.ts +3 -0
- package/dist/runtime/core/renderers/chromium/index.mjs +26 -0
- package/dist/runtime/core/renderers/chromium/screenshot.d.ts +6 -0
- package/dist/runtime/core/renderers/chromium/screenshot.mjs +47 -0
- package/dist/runtime/core/renderers/satori/fonts.d.ts +3 -0
- package/dist/runtime/core/renderers/satori/fonts.mjs +8 -0
- package/dist/runtime/core/renderers/satori/index.d.ts +5 -0
- package/dist/runtime/core/renderers/satori/index.mjs +53 -0
- package/dist/runtime/core/renderers/satori/instances.d.ts +39 -0
- package/dist/runtime/core/renderers/satori/instances.mjs +17 -0
- package/dist/runtime/{nitro → core}/renderers/satori/plugins/encoding.mjs +1 -1
- package/dist/runtime/{nitro → core}/renderers/satori/plugins/imageSrc.mjs +9 -14
- package/dist/runtime/{nitro → core}/renderers/satori/plugins/twClasses.mjs +1 -0
- package/dist/runtime/core/renderers/satori/utils.d.ts +4 -0
- package/dist/runtime/core/renderers/satori/utils.mjs +20 -0
- package/dist/runtime/core/renderers/satori/vnodes.d.ts +3 -0
- package/dist/runtime/core/renderers/satori/vnodes.mjs +21 -0
- package/dist/runtime/core/utils/resolveRendererContext.d.ts +7 -0
- package/dist/runtime/core/utils/resolveRendererContext.mjs +76 -0
- package/dist/runtime/nitro/plugins/nuxt-content.d.ts +2 -0
- package/dist/runtime/nitro/plugins/nuxt-content.mjs +50 -0
- package/dist/runtime/nitro/plugins/prerender.d.ts +2 -3
- package/dist/runtime/nitro/plugins/prerender.mjs +25 -33
- package/dist/runtime/nuxt/plugins/nuxt-content-canonical-urls.mjs +29 -0
- package/dist/runtime/nuxt/plugins/route-rule-og-image.server.d.ts +2 -0
- package/dist/runtime/nuxt/plugins/route-rule-og-image.server.mjs +72 -0
- package/dist/runtime/{nitro/routes/debug.d.ts → server/routes/__og-image__/debug.json.d.ts} +1 -1
- package/dist/runtime/{nitro/routes/debug.mjs → server/routes/__og-image__/debug.json.mjs} +3 -2
- package/dist/runtime/server/routes/__og-image__/font-[name]-[weight].[extension].mjs +30 -0
- package/dist/runtime/server/routes/__og-image__/image-[path]-og.[extension].mjs +44 -0
- package/dist/runtime/types.d.ts +29 -24
- package/dist/runtime/utilts.d.ts +2 -0
- package/dist/runtime/utilts.mjs +8 -0
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +37 -22
- package/dist/client/_nuxt/IconCSS.4a9d43d0.css +0 -1
- package/dist/client/_nuxt/IconCSS.9c30257a.js +0 -1
- package/dist/client/_nuxt/ImageLoader.752b0c7a.js +0 -1
- package/dist/client/_nuxt/ImageLoader.7571516f.css +0 -1
- package/dist/client/_nuxt/builds/meta/bb64bb30-cf6f-4625-97ba-06e6a0d3f8d1.json +0 -1
- package/dist/client/_nuxt/entry.39e39f51.css +0 -1
- package/dist/client/_nuxt/entry.ac864471.js +0 -135
- package/dist/client/_nuxt/index.dc1538d5.js +0 -1
- package/dist/client/_nuxt/index.ffbea0a9.css +0 -1
- package/dist/client/_nuxt/options.a77f5921.js +0 -1
- package/dist/client/_nuxt/png.41e0b446.js +0 -1
- package/dist/client/_nuxt/shiki.d4e62362.js +0 -7
- package/dist/client/_nuxt/svg.b8198280.js +0 -1
- package/dist/client/_nuxt/vnodes.67720126.js +0 -1
- package/dist/client/options/index.html +0 -15
- package/dist/client/png/index.html +0 -15
- package/dist/client/svg/index.html +0 -15
- package/dist/client/vnodes/index.html +0 -15
- package/dist/runtime/browserUtil.d.ts +0 -5
- package/dist/runtime/browserUtil.mjs +0 -41
- package/dist/runtime/components/OgImageTemplate/Fallback.vue +0 -161
- package/dist/runtime/composables/util.d.ts +0 -2
- package/dist/runtime/nitro/middleware/og.png.mjs +0 -69
- package/dist/runtime/nitro/middleware/playground.d.ts +0 -2
- package/dist/runtime/nitro/middleware/playground.mjs +0 -27
- package/dist/runtime/nitro/providers/browser/lambda.d.ts +0 -1
- package/dist/runtime/nitro/providers/browser/lambda.mjs +0 -9
- package/dist/runtime/nitro/providers/browser/playwright.d.ts +0 -1
- package/dist/runtime/nitro/providers/browser/playwright.mjs +0 -22
- package/dist/runtime/nitro/providers/browser/universal.d.ts +0 -2
- package/dist/runtime/nitro/providers/png/resvg-node.d.ts +0 -4
- package/dist/runtime/nitro/providers/png/resvg-node.mjs +0 -6
- package/dist/runtime/nitro/providers/png/resvg-wasm.d.ts +0 -3
- package/dist/runtime/nitro/providers/png/resvg-wasm.mjs +0 -11
- package/dist/runtime/nitro/providers/png/svg2png.d.ts +0 -3
- package/dist/runtime/nitro/providers/png/svg2png.mjs +0 -11
- package/dist/runtime/nitro/providers/satori/default.d.ts +0 -2
- package/dist/runtime/nitro/providers/satori/default.mjs +0 -4
- package/dist/runtime/nitro/providers/satori/yoga-wasm.d.ts +0 -3
- package/dist/runtime/nitro/providers/satori/yoga-wasm.mjs +0 -10
- package/dist/runtime/nitro/renderers/browser.d.ts +0 -3
- package/dist/runtime/nitro/renderers/browser.mjs +0 -36
- package/dist/runtime/nitro/renderers/satori/index.d.ts +0 -3
- package/dist/runtime/nitro/renderers/satori/index.mjs +0 -58
- package/dist/runtime/nitro/renderers/satori/utils.d.ts +0 -4
- package/dist/runtime/nitro/renderers/satori/utils.mjs +0 -60
- package/dist/runtime/nitro/routes/font.mjs +0 -22
- package/dist/runtime/nitro/routes/html.d.ts +0 -2
- package/dist/runtime/nitro/routes/html.mjs +0 -178
- package/dist/runtime/nitro/routes/options.d.ts +0 -3
- package/dist/runtime/nitro/routes/options.mjs +0 -35
- package/dist/runtime/nitro/routes/svg.mjs +0 -19
- package/dist/runtime/nitro/routes/vnode.d.ts +0 -2
- package/dist/runtime/nitro/routes/vnode.mjs +0 -19
- package/dist/runtime/nitro/utils-pure.d.ts +0 -3
- package/dist/runtime/nitro/utils.d.ts +0 -18
- package/dist/runtime/nitro/utils.mjs +0 -108
- package/dist/runtime/public-assets-optional/resvg/resvg.wasm +0 -0
- package/dist/runtime/public-assets-optional/svg2png/svg2png.wasm +0 -0
- package/dist/runtime/public-assets-optional/yoga/yoga.wasm +0 -0
- /package/dist/runtime/{nitro/providers → core/bindings}/css-inline/mock.d.ts +0 -0
- /package/dist/runtime/{nitro/providers → core/bindings}/css-inline/mock.mjs +0 -0
- /package/dist/runtime/{nitro/providers/css-inline/css-inline.d.ts → core/bindings/css-inline/node.d.ts} +0 -0
- /package/dist/runtime/{nitro/providers/css-inline/css-inline.mjs → core/bindings/css-inline/node.mjs} +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/emojis.d.ts +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/emojis.mjs +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/encoding.d.ts +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/flex.d.ts +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/flex.mjs +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/imageSrc.d.ts +0 -0
- /package/dist/runtime/{nitro → core}/renderers/satori/plugins/twClasses.d.ts +0 -0
- /package/dist/runtime/{nitro/routes/font.d.ts → nuxt/plugins/nuxt-content-canonical-urls.d.ts} +0 -0
- /package/dist/runtime/{nitro/middleware/og.png.d.ts → server/routes/__og-image__/font-[name]-[weight].[extension].d.ts} +0 -0
- /package/dist/runtime/{nitro/routes/svg.d.ts → server/routes/__og-image__/image-[path]-og.[extension].d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as y,r as u,h as k,i as W,j as t,k as b,l as d,m as B,u as D,n as S,q as F,o as $,c as H,a as I,s as w,v as o,_ as L,x as M,y as z,z as C,A as N,B as T,b as j,C as q}from"./entry.ac864471.js";const A=["width","height"],V=y({__name:"IFrameLoader",props:{src:String,aspectRatio:Number,description:String},setup(l){const c=l,h=u(c.src),n=k(),r=u(),s=u(0),a=W(()=>{let e=r.value;e||(e=document.querySelector("#iframe-loader"));const i=Date.now();e.src="";const m=t.value.width,_=t.value.height,f=e.offsetHeight,v=e.offsetWidth,g=f>_?1:f/_,x=v>m?1:v/m,R=x>g?g:x;s.value=0,e.style.opacity="0",e.onload=()=>{e.style.opacity="1",s.value=Date.now()-i},e.src=`${h.value}&scale=${R}&mode=${n.value}`},200);b(()=>{d(()=>c.src,e=>{h.value=e,a()},{immediate:!0}),d([()=>B.value,n],()=>{a()})}),D({bodyAttrs:{onresize:()=>{a()}}});const p=S(()=>c.description.replace("%s",s.value.toString()));return d(p,e=>{F.value=e}),(e,i)=>($(),H("div",{class:"w-full mx-auto h-full justify-center flex",style:w({maxHeight:`${o(t).height}px`,maxWidth:`${o(t).width}px`})},[I("iframe",{id:"iframe-loader",ref_key:"iframe",ref:r,class:"max-h-full",style:w({aspectRatio:l.aspectRatio}),width:o(t).width,height:o(t).height},null,12,A)],4))}});const E=L(V,[["__scopeId","data-v-cc6e66d7"]]),G={class:"flex h-full w-full"},Q=y({__name:"index",setup(l){var s,a;const c=((s=t.value)==null?void 0:s.height)||630,n=(((a=t.value)==null?void 0:a.width)||1200)/c,r=S(()=>M(`${T.value}/api/og-image-html`,{options:z.value,path:C.value,timestamp:N.value}));return(p,e)=>{const i=E;return $(),H("div",G,[j(i,{src:o(r),"aspect-ratio":n,description:"[HTML] Generated in %sms.",class:"max-h-full",onRefresh:o(q)},null,8,["src","onRefresh"])])}}});export{Q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
iframe[data-v-cc6e66d7]{height:auto;margin:0 auto;max-width:100%;transition:.4s ease-in-out;width:auto}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./shiki.d4e62362.js";import{g as n,o,c as s,v as e,j as r}from"./entry.ac864471.js";const a=["innerHTML"],f=n({__name:"options",setup(i){return(p,c)=>(o(),s("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:e(t)(JSON.stringify(e(r),null,2),"json")},null,8,a))}});export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./ImageLoader.752b0c7a.js";import{g as c,j as s,n as _,x as p,A as u,y as m,D as g,o as h,E as l,v as d}from"./entry.ac864471.js";const y=c({__name:"png",setup(v){var e,t;const a=((e=s.value)==null?void 0:e.height)||630,o=(((t=s.value)==null?void 0:t.width)||1200)/a,n=_(()=>p(`${g.value}/__og_image__/og.png`,{timestamp:u.value,...m.value}));return(w,x)=>{const r=i;return h(),l(r,{src:d(n),"aspect-ratio":o,description:"[PNG] Generated in %sms using Satori & Resvg."},null,8,["src"])}}});export{y as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{r as Je,h as Qe}from"./entry.ac864471.js";var Ge=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},Me={exports:{}};(function(e,h){(function(L,i){e.exports=i()})(Ge,()=>{return L={770:function(T,r,k){var y=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(r,"__esModule",{value:!0}),r.setDefaultDebugCall=r.createOnigScanner=r.createOnigString=r.loadWASM=r.OnigScanner=r.OnigString=void 0;const v=y(k(418));let s=null,w=!1;class d{static _utf8ByteLength(b){let m=0;for(let p=0,_=b.length;p<_;p++){const c=b.charCodeAt(p);let t=c,a=!1;if(c>=55296&&c<=56319&&p+1<_){const o=b.charCodeAt(p+1);o>=56320&&o<=57343&&(t=65536+(c-55296<<10)|o-56320,a=!0)}m+=t<=127?1:t<=2047?2:t<=65535?3:4,a&&p++}return m}constructor(b){const m=b.length,p=d._utf8ByteLength(b),_=p!==m,c=_?new Uint32Array(m+1):null;_&&(c[m]=p);const t=_?new Uint32Array(p+1):null;_&&(t[p]=m);const a=new Uint8Array(p);let o=0;for(let n=0;n<m;n++){const u=b.charCodeAt(n);let l=u,f=!1;if(u>=55296&&u<=56319&&n+1<m){const j=b.charCodeAt(n+1);j>=56320&&j<=57343&&(l=65536+(u-55296<<10)|j-56320,f=!0)}_&&(c[n]=o,f&&(c[n+1]=o),l<=127?t[o+0]=n:l<=2047?(t[o+0]=n,t[o+1]=n):l<=65535?(t[o+0]=n,t[o+1]=n,t[o+2]=n):(t[o+0]=n,t[o+1]=n,t[o+2]=n,t[o+3]=n)),l<=127?a[o++]=l:l<=2047?(a[o++]=192|(1984&l)>>>6,a[o++]=128|(63&l)>>>0):l<=65535?(a[o++]=224|(61440&l)>>>12,a[o++]=128|(4032&l)>>>6,a[o++]=128|(63&l)>>>0):(a[o++]=240|(1835008&l)>>>18,a[o++]=128|(258048&l)>>>12,a[o++]=128|(4032&l)>>>6,a[o++]=128|(63&l)>>>0),f&&n++}this.utf16Length=m,this.utf8Length=p,this.utf16Value=b,this.utf8Value=a,this.utf16OffsetToUtf8=c,this.utf8OffsetToUtf16=t}createString(b){const m=b._omalloc(this.utf8Length);return b.HEAPU8.set(this.utf8Value,m),m}}class N{constructor(b){if(this.id=++N.LAST_ID,!s)throw new Error("Must invoke loadWASM first.");this._onigBinding=s,this.content=b;const m=new d(b);this.utf16Length=m.utf16Length,this.utf8Length=m.utf8Length,this.utf16OffsetToUtf8=m.utf16OffsetToUtf8,this.utf8OffsetToUtf16=m.utf8OffsetToUtf16,this.utf8Length<1e4&&!N._sharedPtrInUse?(N._sharedPtr||(N._sharedPtr=s._omalloc(1e4)),N._sharedPtrInUse=!0,s.HEAPU8.set(m.utf8Value,N._sharedPtr),this.ptr=N._sharedPtr):this.ptr=m.createString(s)}convertUtf8OffsetToUtf16(b){return this.utf8OffsetToUtf16?b<0?0:b>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[b]:b}convertUtf16OffsetToUtf8(b){return this.utf16OffsetToUtf8?b<0?0:b>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[b]:b}dispose(){this.ptr===N._sharedPtr?N._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}r.OnigString=N,N.LAST_ID=0,N._sharedPtr=0,N._sharedPtrInUse=!1;class P{constructor(b){if(!s)throw new Error("Must invoke loadWASM first.");const m=[],p=[];for(let a=0,o=b.length;a<o;a++){const n=new d(b[a]);m[a]=n.createString(s),p[a]=n.utf8Length}const _=s._omalloc(4*b.length);s.HEAPU32.set(m,_/4);const c=s._omalloc(4*b.length);s.HEAPU32.set(p,c/4);const t=s._createOnigScanner(_,c,b.length);for(let a=0,o=b.length;a<o;a++)s._ofree(m[a]);s._ofree(c),s._ofree(_),t===0&&function(a){throw new Error(a.UTF8ToString(a._getLastOnigError()))}(s),this._onigBinding=s,this._ptr=t}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(b,m,p){let _=w,c=0;if(typeof p=="number"?(8&p&&(_=!0),c=p):typeof p=="boolean"&&(_=p),typeof b=="string"){b=new N(b);const t=this._findNextMatchSync(b,m,_,c);return b.dispose(),t}return this._findNextMatchSync(b,m,_,c)}_findNextMatchSync(b,m,p,_){const c=this._onigBinding;let t;if(t=p?c._findNextOnigScannerMatchDbg(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(m),_):c._findNextOnigScannerMatch(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(m),_),t===0)return null;const a=c.HEAPU32;let o=t/4;const n=a[o++],u=a[o++];let l=[];for(let f=0;f<u;f++){const j=b.convertUtf8OffsetToUtf16(a[o++]),x=b.convertUtf8OffsetToUtf16(a[o++]);l[f]={start:j,end:x,length:x-j}}return{index:n,captureIndices:l}}}r.OnigScanner=P;let g=!1,A=null;r.loadWASM=function(S){if(g)return A;let b,m,p,_;if(g=!0,function(c){return typeof c.instantiator=="function"}(S))b=S.instantiator,m=S.print;else{let c;(function(t){return t.data!==void 0})(S)?(c=S.data,m=S.print):c=S,b=function(t){return typeof Response<"u"&&t instanceof Response}(c)?typeof WebAssembly.instantiateStreaming=="function"?function(t){return a=>WebAssembly.instantiateStreaming(t,a)}(c):function(t){return async a=>{const o=await t.arrayBuffer();return WebAssembly.instantiate(o,a)}}(c):function(t){return a=>WebAssembly.instantiate(t,a)}(c)}return A=new Promise((c,t)=>{p=c,_=t}),function(c,t,a,o){(0,v.default)({print:t,instantiateWasm:(n,u)=>{if(typeof performance>"u"){const l=()=>Date.now();n.env.emscripten_get_now=l,n.wasi_snapshot_preview1.emscripten_get_now=l}return c(n).then(l=>u(l.instance),o),{}}}).then(n=>{s=n,a()})}(b,m,p,_),A},r.createOnigString=function(S){return new N(S)},r.createOnigScanner=function(S){return new P(S)},r.setDefaultDebugCall=function(S){w=S}},418:T=>{var r=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(k){var y,v,s=(k=k||{})!==void 0?k:{};s.ready=new Promise(function(I,E){y=I,v=E});var w,d=Object.assign({},s),N=!1,P="";function g(I){return s.locateFile?s.locateFile(I,P):P+I}w=function(I){let E;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(E=read(I,"binary"),_(typeof E=="object"),E)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var A,S,b=s.print||console.log.bind(console),m=s.printErr||console.warn.bind(console);Object.assign(s,d),d=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(A=s.wasmBinary),s.noExitRuntime,typeof WebAssembly!="object"&&$("no native wasm support detected");var p=!1;function _(I,E){I||$(E)}var c,t,a,o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function n(I,E,X){for(var te=E+X,q=E;I[q]&&!(q>=te);)++q;if(q-E>16&&I.buffer&&o)return o.decode(I.subarray(E,q));for(var U="";E<q;){var Y=I[E++];if(128&Y){var de=63&I[E++];if((224&Y)!=192){var ge=63&I[E++];if((Y=(240&Y)==224?(15&Y)<<12|de<<6|ge:(7&Y)<<18|de<<12|ge<<6|63&I[E++])<65536)U+=String.fromCharCode(Y);else{var we=Y-65536;U+=String.fromCharCode(55296|we>>10,56320|1023&we)}}else U+=String.fromCharCode((31&Y)<<6|de)}else U+=String.fromCharCode(Y)}return U}function u(I,E){return I?n(t,I,E):""}function l(I){c=I,s.HEAP8=new Int8Array(I),s.HEAP16=new Int16Array(I),s.HEAP32=new Int32Array(I),s.HEAPU8=t=new Uint8Array(I),s.HEAPU16=new Uint16Array(I),s.HEAPU32=a=new Uint32Array(I),s.HEAPF32=new Float32Array(I),s.HEAPF64=new Float64Array(I)}s.INITIAL_MEMORY;var f=[],j=[],x=[];function O(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)M(s.preRun.shift());se(f)}function B(){se(j)}function H(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)V(s.postRun.shift());se(x)}function M(I){f.unshift(I)}function G(I){j.unshift(I)}function V(I){x.unshift(I)}var z=0,C=null;function F(I){z++,s.monitorRunDependencies&&s.monitorRunDependencies(z)}function D(I){if(z--,s.monitorRunDependencies&&s.monitorRunDependencies(z),z==0&&C){var E=C;C=null,E()}}function $(I){s.onAbort&&s.onAbort(I),m(I="Aborted("+I+")"),p=!0,I+=". Build with -sASSERTIONS for more info.";var E=new WebAssembly.RuntimeError(I);throw v(E),E}var Q,R,J="data:application/octet-stream;base64,";function W(I){return I.startsWith(J)}function ee(I){try{if(I==Q&&A)return new Uint8Array(A);if(w)return w(I);throw"both async and sync fetching of the wasm failed"}catch(E){$(E)}}function oe(){return A||!N||typeof fetch!="function"?Promise.resolve().then(function(){return ee(Q)}):fetch(Q,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+Q+"'";return I.arrayBuffer()}).catch(function(){return ee(Q)})}function ye(){var I={env:pe,wasi_snapshot_preview1:pe};function E(q,U){var Y=q.exports;s.asm=Y,l((S=s.asm.memory).buffer),s.asm.__indirect_function_table,G(s.asm.__wasm_call_ctors),D()}function X(q){E(q.instance)}function te(q){return oe().then(function(U){return WebAssembly.instantiate(U,I)}).then(function(U){return U}).then(q,function(U){m("failed to asynchronously prepare wasm: "+U),$(U)})}if(F(),s.instantiateWasm)try{return s.instantiateWasm(I,E)}catch(q){m("Module.instantiateWasm callback failed with error: "+q),v(q)}return(A||typeof WebAssembly.instantiateStreaming!="function"||W(Q)||typeof fetch!="function"?te(X):fetch(Q,{credentials:"same-origin"}).then(function(q){return WebAssembly.instantiateStreaming(q,I).then(X,function(U){return m("wasm streaming compile failed: "+U),m("falling back to ArrayBuffer instantiation"),te(X)})})).catch(v),{}}function se(I){for(;I.length>0;)I.shift()(s)}function ae(I,E,X){t.copyWithin(I,E,E+X)}function he(I){try{return S.grow(I-c.byteLength+65535>>>16),l(S.buffer),1}catch{}}function ce(I){var E,X=t.length,te=2147483648;if((I>>>=0)>te)return!1;for(var q=1;q<=4;q*=2){var U=X*(1+.2/q);if(U=Math.min(U,I+100663296),he(Math.min(te,(E=Math.max(I,U))+(65536-E%65536)%65536)))return!0}return!1}W(Q="onig.wasm")||(Q=g(Q)),R=typeof dateNow<"u"?dateNow:()=>performance.now();var le=[null,[],[]];function ue(I,E){var X=le[I];E===0||E===10?((I===1?b:m)(n(X,0)),X.length=0):X.push(E)}function re(I,E,X,te){for(var q=0,U=0;U<X;U++){var Y=a[E>>2],de=a[E+4>>2];E+=8;for(var ge=0;ge<de;ge++)ue(I,t[Y+ge]);q+=de}return a[te>>2]=q,0}var Z,pe={emscripten_get_now:R,emscripten_memcpy_big:ae,emscripten_resize_heap:ce,fd_write:re};function me(I){function E(){Z||(Z=!0,s.calledRun=!0,p||(B(),y(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),H()))}z>0||(O(),z>0||(s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),E()},1)):E()))}if(ye(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=u,C=function I(){Z||me(),Z||(C=I)},s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return me(),k.ready});T.exports=r}},i={},function T(r){var k=i[r];if(k!==void 0)return k.exports;var y=i[r]={exports:{}};return L[r].call(y.exports,y,y.exports,T),y.exports}(770);var L,i})})(Me);var ke=Me.exports,De={exports:{}};(function(e,h){(function(L,i){e.exports=i()})(Ge,function(){return(()=>{var L={350:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UseOnigurumaFindOptions=r.DebugFlags=void 0,r.DebugFlags={InDebugMode:typeof process<"u"&&!1},r.UseOnigurumaFindOptions=!1},36:(T,r)=>{var k;Object.defineProperty(r,"__esModule",{value:!0}),r.toOptionalTokenType=r.EncodedTokenAttributes=void 0,(k=r.EncodedTokenAttributes||(r.EncodedTokenAttributes={})).toBinaryStr=function(y){let v=y.toString(2);for(;v.length<32;)v="0"+v;return v},k.print=function(y){const v=k.getLanguageId(y),s=k.getTokenType(y),w=k.getFontStyle(y),d=k.getForeground(y),N=k.getBackground(y);console.log({languageId:v,tokenType:s,fontStyle:w,foreground:d,background:N})},k.getLanguageId=function(y){return(255&y)>>>0},k.getTokenType=function(y){return(768&y)>>>8},k.containsBalancedBrackets=function(y){return(1024&y)!=0},k.getFontStyle=function(y){return(30720&y)>>>11},k.getForeground=function(y){return(16744448&y)>>>15},k.getBackground=function(y){return(4278190080&y)>>>24},k.set=function(y,v,s,w,d,N,P){let g=k.getLanguageId(y),A=k.getTokenType(y),S=k.containsBalancedBrackets(y)?1:0,b=k.getFontStyle(y),m=k.getForeground(y),p=k.getBackground(y);return v!==0&&(g=v),s!==8&&(A=s),w!==null&&(S=w?1:0),d!==-1&&(b=d),N!==0&&(m=N),P!==0&&(p=P),(g<<0|A<<8|S<<10|b<<11|m<<15|p<<24)>>>0},r.toOptionalTokenType=function(y){return y}},996:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BasicScopeAttributesProvider=r.BasicScopeAttributes=void 0;const y=k(878);class v{constructor(N,P){this.languageId=N,this.tokenType=P}}r.BasicScopeAttributes=v;class s{constructor(N,P){this._getBasicScopeAttributes=new y.CachedFn(g=>{const A=this._scopeToLanguage(g),S=this._toStandardTokenType(g);return new v(A,S)}),this._defaultAttributes=new v(N,8),this._embeddedLanguagesMatcher=new w(Object.entries(P||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(N){return N===null?s._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(N)}_scopeToLanguage(N){return this._embeddedLanguagesMatcher.match(N)||0}_toStandardTokenType(N){const P=N.match(s.STANDARD_TOKEN_TYPE_REGEXP);if(!P)return 8;switch(P[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!")}}r.BasicScopeAttributesProvider=s,s._NULL_SCOPE_METADATA=new v(0,0),s.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class w{constructor(N){if(N.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(N);const P=N.map(([g,A])=>y.escapeRegExpCharacters(g));P.sort(),P.reverse(),this.scopesRegExp=new RegExp(`^((${P.join(")|(")}))($|\\.)`,"")}}match(N){if(!this.scopesRegExp)return;const P=N.match(this.scopesRegExp);return P?this.values.get(P[1]):void 0}}},947:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LineTokens=r.BalancedBracketSelectors=r.StateStack=r.AttributedScopeStack=r.Grammar=r.createGrammar=void 0;const y=k(350),v=k(36),s=k(736),w=k(44),d=k(792),N=k(583),P=k(878),g=k(996),A=k(47);function S(o,n,u,l,f){const j=s.createMatchers(n,b),x=d.RuleFactory.getCompiledRuleId(u,l,f.repository);for(const O of j)o.push({debugSelector:n,matcher:O.matcher,ruleId:x,grammar:f,priority:O.priority})}function b(o,n){if(n.length<o.length)return!1;let u=0;return o.every(l=>{for(let f=u;f<n.length;f++)if(m(n[f],l))return u=f+1,!0;return!1})}function m(o,n){if(!o)return!1;if(o===n)return!0;const u=n.length;return o.length>u&&o.substr(0,u)===n&&o[u]==="."}r.createGrammar=function(o,n,u,l,f,j,x,O){return new p(o,n,u,l,f,j,x,O)};class p{constructor(n,u,l,f,j,x,O,B){if(this._rootScopeName=n,this.balancedBracketSelectors=x,this._onigLib=B,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(l,f),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=_(u,null),this._injections=null,this._tokenTypeMatchers=[],j)for(const H of Object.keys(j)){const M=s.createMatchers(H,b);for(const G of M)this._tokenTypeMatchers.push({matcher:G.matcher,type:j[H]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n=[],u=this._rootScopeName,l=(f=>f===this._rootScopeName?this._grammar:this.getExternalGrammar(f))(u);if(l){const f=l.injections;if(f)for(let x in f)S(n,x,f[x],this,l);const j=this._grammarRepository.injections(u);j&&j.forEach(x=>{const O=this.getExternalGrammar(x);if(O){const B=O.injectionSelector;B&&S(n,B,O,this,O)}})}return n.sort((f,j)=>f.priority-j.priority),n}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),y.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const n of this._injections)console.log(` - ${n.debugSelector}`)}return this._injections}registerRule(n){const u=++this._lastRuleId,l=n(d.ruleIdFromNumber(u));return this._ruleId2desc[u]=l,l}getRule(n){return this._ruleId2desc[d.ruleIdToNumber(n)]}getExternalGrammar(n,u){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const l=this._grammarRepository.lookup(n);if(l)return this._includedGrammars[n]=_(l,u&&u.$base),this._includedGrammars[n]}}tokenizeLine(n,u,l=0){const f=this._tokenize(n,u,!1,l);return{tokens:f.lineTokens.getResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}tokenizeLine2(n,u,l=0){const f=this._tokenize(n,u,!0,l);return{tokens:f.lineTokens.getBinaryResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}_tokenize(n,u,l,f){let j;if(this._rootId===-1&&(this._rootId=d.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),u&&u!==t.NULL)j=!1,u.reset();else{j=!0;const M=this._basicScopeAttributesProvider.getDefaultAttributes(),G=this.themeProvider.getDefaults(),V=v.EncodedTokenAttributes.set(0,M.languageId,M.tokenType,null,G.fontStyle,G.foregroundId,G.backgroundId),z=this.getRule(this._rootId).getName(null,null);let C;C=z?c.createRootAndLookUpScopeName(z,V,this):c.createRoot("unknown",V),u=new t(null,this._rootId,-1,-1,!1,null,C,C)}n+=`
|
|
2
|
-
`;const x=this.createOnigString(n),O=x.content.length,B=new a(l,n,this._tokenTypeMatchers,this.balancedBracketSelectors),H=A._tokenizeString(this,x,j,0,u,B,!0,f);return w.disposeOnigString(x),{lineLength:O,lineTokens:B,ruleStack:H.stack,stoppedEarly:H.stoppedEarly}}}function _(o,n){return(o=P.clone(o)).repository=o.repository||{},o.repository.$self={$vscodeTextmateLocation:o.$vscodeTextmateLocation,patterns:o.patterns,name:o.scopeName},o.repository.$base=n||o.repository.$self,o}r.Grammar=p;class c{constructor(n,u,l){this.parent=n,this.scopePath=u,this.tokenAttributes=l}static createRoot(n,u){return new c(null,new N.ScopeStack(null,n),u)}static createRootAndLookUpScopeName(n,u,l){const f=l.getMetadataForScope(n),j=new N.ScopeStack(null,n),x=l.themeProvider.themeMatch(j),O=c.mergeAttributes(u,f,x);return new c(null,j,O)}get scopeName(){return this.scopePath.scopeName}equals(n){return c._equals(this,n)}static _equals(n,u){for(;;){if(n===u||!n&&!u)return!0;if(!n||!u||n.scopeName!==u.scopeName||n.tokenAttributes!==u.tokenAttributes)return!1;n=n.parent,u=u.parent}}static mergeAttributes(n,u,l){let f=-1,j=0,x=0;return l!==null&&(f=l.fontStyle,j=l.foregroundId,x=l.backgroundId),v.EncodedTokenAttributes.set(n,u.languageId,u.tokenType,null,f,j,x)}pushAttributed(n,u){if(n===null)return this;if(n.indexOf(" ")===-1)return c._pushAttributed(this,n,u);const l=n.split(/ /g);let f=this;for(const j of l)f=c._pushAttributed(f,j,u);return f}static _pushAttributed(n,u,l){const f=l.getMetadataForScope(u),j=n.scopePath.push(u),x=l.themeProvider.themeMatch(j),O=c.mergeAttributes(n.tokenAttributes,f,x);return new c(n,j,O)}getScopeNames(){return this.scopePath.getSegments()}}r.AttributedScopeStack=c;class t{constructor(n,u,l,f,j,x,O,B){this.parent=n,this.ruleId=u,this.beginRuleCapturedEOL=j,this.endRule=x,this.nameScopesList=O,this.contentNameScopesList=B,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=l,this._anchorPos=f}equals(n){return n!==null&&t._equals(this,n)}static _equals(n,u){return n===u||!!this._structuralEquals(n,u)&&n.contentNameScopesList.equals(u.contentNameScopesList)}static _structuralEquals(n,u){for(;;){if(n===u||!n&&!u)return!0;if(!n||!u||n.depth!==u.depth||n.ruleId!==u.ruleId||n.endRule!==u.endRule)return!1;n=n.parent,u=u.parent}}clone(){return this}static _reset(n){for(;n;)n._enterPos=-1,n._anchorPos=-1,n=n.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,u,l,f,j,x,O){return new t(this,n,u,l,f,j,x,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(n){return n.getRule(this.ruleId)}toString(){const n=[];return this._writeString(n,0),"["+n.join(",")+"]"}_writeString(n,u){return this.parent&&(u=this.parent._writeString(n,u)),n[u++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,u}withContentNameScopesList(n){return this.contentNameScopesList===n?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,n)}withEndRule(n){return this.endRule===n?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(n){let u=this;for(;u&&u._enterPos===n._enterPos;){if(u.ruleId===n.ruleId)return!0;u=u.parent}return!1}}r.StateStack=t,t.NULL=new t(null,0,0,0,!1,null,null,null),r.BalancedBracketSelectors=class{constructor(o,n){this.allowAny=!1,this.balancedBracketScopes=o.flatMap(u=>u==="*"?(this.allowAny=!0,[]):s.createMatchers(u,b).map(l=>l.matcher)),this.unbalancedBracketScopes=n.flatMap(u=>s.createMatchers(u,b).map(l=>l.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(o){for(const n of this.unbalancedBracketScopes)if(n(o))return!1;for(const n of this.balancedBracketScopes)if(n(o))return!0;return this.allowAny}};class a{constructor(n,u,l,f){this.balancedBracketSelectors=f,this._emitBinaryTokens=n,this._tokenTypeOverrides=l,y.DebugFlags.InDebugMode?this._lineText=u:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,u){this.produceFromScopes(n.contentNameScopesList,u)}produceFromScopes(n,u){var f;if(this._lastTokenEndIndex>=u)return;if(this._emitBinaryTokens){let j=n.tokenAttributes,x=!1;if((f=this.balancedBracketSelectors)!=null&&f.matchesAlways&&(x=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const O=n.getScopeNames();for(const B of this._tokenTypeOverrides)B.matcher(O)&&(j=v.EncodedTokenAttributes.set(j,0,v.toOptionalTokenType(B.type),null,-1,0,0));this.balancedBracketSelectors&&(x=this.balancedBracketSelectors.match(O))}if(x&&(j=v.EncodedTokenAttributes.set(j,0,8,x,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===j)return void(this._lastTokenEndIndex=u);if(y.DebugFlags.InDebugMode){const O=n.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,u).replace(/\n$/,"\\n")+"|");for(let B=0;B<O.length;B++)console.log(" * "+O[B])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(j),void(this._lastTokenEndIndex=u)}const l=n.getScopeNames();if(y.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,u).replace(/\n$/,"\\n")+"|");for(let j=0;j<l.length;j++)console.log(" * "+l[j])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:u,scopes:l}),this._lastTokenEndIndex=u}getResult(n,u){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===u-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,u),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,u){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===u-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,u),this._binaryTokens[this._binaryTokens.length-2]=0);const l=new Uint32Array(this._binaryTokens.length);for(let f=0,j=this._binaryTokens.length;f<j;f++)l[f]=this._binaryTokens[f];return l}}r.LineTokens=a},965:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.parseInclude=r.TopLevelRepositoryReference=r.TopLevelReference=r.RelativeReference=r.SelfReference=r.BaseReference=r.ScopeDependencyProcessor=r.ExternalReferenceCollector=r.TopLevelRepositoryRuleReference=r.TopLevelRuleReference=void 0;const y=k(878);class v{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}r.TopLevelRuleReference=v;class s{constructor(t,a){this.scopeName=t,this.ruleName=a}toKey(){return`${this.scopeName}#${this.ruleName}`}}r.TopLevelRepositoryRuleReference=s;class w{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const a=t.toKey();this._seenReferenceKeys.has(a)||(this._seenReferenceKeys.add(a),this._references.push(t))}}function d(c,t,a,o){const n=a.lookup(c.scopeName);if(!n){if(c.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const u=a.lookup(t);c instanceof v?P({baseGrammar:u,selfGrammar:n},o):N(c.ruleName,{baseGrammar:u,selfGrammar:n,repository:n.repository},o);const l=a.injections(c.scopeName);if(l)for(const f of l)o.add(new v(f))}function N(c,t,a){t.repository&&t.repository[c]&&g([t.repository[c]],t,a)}function P(c,t){c.selfGrammar.patterns&&Array.isArray(c.selfGrammar.patterns)&&g(c.selfGrammar.patterns,{...c,repository:c.selfGrammar.repository},t),c.selfGrammar.injections&&g(Object.values(c.selfGrammar.injections),{...c,repository:c.selfGrammar.repository},t)}function g(c,t,a){for(const o of c){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const n=o.repository?y.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&g(o.patterns,{...t,repository:n},a);const u=o.include;if(!u)continue;const l=_(u);switch(l.kind){case 0:P({...t,selfGrammar:t.baseGrammar},a);break;case 1:P(t,a);break;case 2:N(l.ruleName,{...t,repository:n},a);break;case 3:case 4:const f=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const j={baseGrammar:t.baseGrammar,selfGrammar:f,repository:n};l.kind===4?N(l.ruleName,j,a):P(j,a)}else l.kind===4?a.add(new s(l.scopeName,l.ruleName)):a.add(new v(l.scopeName))}}}r.ExternalReferenceCollector=w,r.ScopeDependencyProcessor=class{constructor(c,t){this.repo=c,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new v(this.initialScopeName)]}processQueue(){const c=this.Q;this.Q=[];const t=new w;for(const a of c)d(a,this.initialScopeName,this.repo,t);for(const a of t.references)if(a instanceof v){if(this.seenFullScopeRequests.has(a.scopeName))continue;this.seenFullScopeRequests.add(a.scopeName),this.Q.push(a)}else{if(this.seenFullScopeRequests.has(a.scopeName)||this.seenPartialScopeRequests.has(a.toKey()))continue;this.seenPartialScopeRequests.add(a.toKey()),this.Q.push(a)}}};class A{constructor(){this.kind=0}}r.BaseReference=A;class S{constructor(){this.kind=1}}r.SelfReference=S;class b{constructor(t){this.ruleName=t,this.kind=2}}r.RelativeReference=b;class m{constructor(t){this.scopeName=t,this.kind=3}}r.TopLevelReference=m;class p{constructor(t,a){this.scopeName=t,this.ruleName=a,this.kind=4}}function _(c){if(c==="$base")return new A;if(c==="$self")return new S;const t=c.indexOf("#");if(t===-1)return new m(c);if(t===0)return new b(c.substring(1));{const a=c.substring(0,t),o=c.substring(t+1);return new p(a,o)}}r.TopLevelRepositoryReference=p,r.parseInclude=_},391:function(T,r,k){var y=this&&this.__createBinding||(Object.create?function(s,w,d,N){N===void 0&&(N=d),Object.defineProperty(s,N,{enumerable:!0,get:function(){return w[d]}})}:function(s,w,d,N){N===void 0&&(N=d),s[N]=w[d]}),v=this&&this.__exportStar||function(s,w){for(var d in s)d==="default"||Object.prototype.hasOwnProperty.call(w,d)||y(w,s,d)};Object.defineProperty(r,"__esModule",{value:!0}),v(k(947),r)},47:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LocalStackElement=r._tokenizeString=void 0;const y=k(350),v=k(44),s=k(792),w=k(878);class d{constructor(p,_){this.stack=p,this.stoppedEarly=_}}function N(m,p,_,c,t,a,o,n){const u=p.content.length;let l=!1,f=-1;if(o){const O=function(B,H,M,G,V,z){let C=V.beginRuleCapturedEOL?0:-1;const F=[];for(let D=V;D;D=D.pop()){const $=D.getRule(B);$ instanceof s.BeginWhileRule&&F.push({rule:$,stack:D})}for(let D=F.pop();D;D=F.pop()){const{ruleScanner:$,findOptions:Q}=g(D.rule,B,D.stack.endRule,M,G===C),R=$.findNextMatchSync(H,G,Q);if(y.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log($.toString())),!R){y.DebugFlags.InDebugMode&&console.log(" popping "+D.rule.debugName+" - "+D.rule.debugWhileRegExp),V=D.stack.pop();break}if(R.ruleId!==s.whileRuleId){V=D.stack.pop();break}R.captureIndices&&R.captureIndices.length&&(z.produce(D.stack,R.captureIndices[0].start),S(B,H,M,D.stack,z,D.rule.whileCaptures,R.captureIndices),z.produce(D.stack,R.captureIndices[0].end),C=R.captureIndices[0].end,R.captureIndices[0].end>G&&(G=R.captureIndices[0].end,M=!1))}return{stack:V,linePos:G,anchorPosition:C,isFirstLine:M}}(m,p,_,c,t,a);t=O.stack,c=O.linePos,_=O.isFirstLine,f=O.anchorPosition}const j=Date.now();for(;!l;){if(n!==0&&Date.now()-j>n)return new d(t,!0);x()}return new d(t,!1);function x(){y.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${c}: |${p.content.substr(c).replace(/\n$/,"\\n")}|`));const O=function(G,V,z,C,F,D){const $=function(ee,oe,ye,se,ae,he){const ce=ae.getRule(ee),{ruleScanner:le,findOptions:ue}=P(ce,ee,ae.endRule,ye,se===he);let re=0;y.DebugFlags.InDebugMode&&(re=w.performanceNow());const Z=le.findNextMatchSync(oe,se,ue);if(y.DebugFlags.InDebugMode){const pe=w.performanceNow()-re;pe>5&&console.warn(`Rule ${ce.debugName} (${ce.id}) matching took ${pe} against '${oe}'`),console.log(` scanning for (linePos: ${se}, anchorPosition: ${he})`),console.log(le.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(G,V,z,C,F,D),Q=G.getInjections();if(Q.length===0)return $;const R=function(ee,oe,ye,se,ae,he,ce){let le,ue=Number.MAX_VALUE,re=null,Z=0;const pe=he.contentNameScopesList.getScopeNames();for(let me=0,I=ee.length;me<I;me++){const E=ee[me];if(!E.matcher(pe))continue;const X=oe.getRule(E.ruleId),{ruleScanner:te,findOptions:q}=P(X,oe,null,se,ae===ce),U=te.findNextMatchSync(ye,ae,q);if(!U)continue;y.DebugFlags.InDebugMode&&(console.log(` matched injection: ${E.debugSelector}`),console.log(te.toString()));const Y=U.captureIndices[0].start;if(!(Y>=ue)&&(ue=Y,re=U.captureIndices,le=U.ruleId,Z=E.priority,ue===ae))break}return re?{priorityMatch:Z===-1,captureIndices:re,matchedRuleId:le}:null}(Q,G,V,z,C,F,D);if(!R)return $;if(!$)return R;const J=$.captureIndices[0].start,W=R.captureIndices[0].start;return W<J||R.priorityMatch&&W===J?R:$}(m,p,_,c,t,f);if(!O)return y.DebugFlags.InDebugMode&&console.log(" no more matches."),a.produce(t,u),void(l=!0);const B=O.captureIndices,H=O.matchedRuleId,M=!!(B&&B.length>0)&&B[0].end>c;if(H===s.endRuleId){const G=t.getRule(m);y.DebugFlags.InDebugMode&&console.log(" popping "+G.debugName+" - "+G.debugEndRegExp),a.produce(t,B[0].start),t=t.withContentNameScopesList(t.nameScopesList),S(m,p,_,t,a,G.endCaptures,B),a.produce(t,B[0].end);const V=t;if(t=t.parent,f=V.getAnchorPos(),!M&&V.getEnterPos()===c)return y.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=V,a.produce(t,u),void(l=!0)}else{const G=m.getRule(H);a.produce(t,B[0].start);const V=t,z=G.getName(p.content,B),C=t.contentNameScopesList.pushAttributed(z,m);if(t=t.push(H,c,f,B[0].end===u,null,C,C),G instanceof s.BeginEndRule){const F=G;y.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName+" - "+F.debugBeginRegExp),S(m,p,_,t,a,F.beginCaptures,B),a.produce(t,B[0].end),f=B[0].end;const D=F.getContentName(p.content,B),$=C.pushAttributed(D,m);if(t=t.withContentNameScopesList($),F.endHasBackReferences&&(t=t.withEndRule(F.getEndWithResolvedBackReferences(p.content,B))),!M&&V.hasSameRuleAs(t))return y.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),a.produce(t,u),void(l=!0)}else if(G instanceof s.BeginWhileRule){const F=G;y.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName),S(m,p,_,t,a,F.beginCaptures,B),a.produce(t,B[0].end),f=B[0].end;const D=F.getContentName(p.content,B),$=C.pushAttributed(D,m);if(t=t.withContentNameScopesList($),F.whileHasBackReferences&&(t=t.withEndRule(F.getWhileWithResolvedBackReferences(p.content,B))),!M&&V.hasSameRuleAs(t))return y.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),a.produce(t,u),void(l=!0)}else{const F=G;if(y.DebugFlags.InDebugMode&&console.log(" matched "+F.debugName+" - "+F.debugMatchRegExp),S(m,p,_,t,a,F.captures,B),a.produce(t,B[0].end),t=t.pop(),!M)return y.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),a.produce(t,u),void(l=!0)}}B[0].end>c&&(c=B[0].end,_=!1)}}function P(m,p,_,c,t){return y.UseOnigurumaFindOptions?{ruleScanner:m.compile(p,_),findOptions:A(c,t)}:{ruleScanner:m.compileAG(p,_,c,t),findOptions:0}}function g(m,p,_,c,t){return y.UseOnigurumaFindOptions?{ruleScanner:m.compileWhile(p,_),findOptions:A(c,t)}:{ruleScanner:m.compileWhileAG(p,_,c,t),findOptions:0}}function A(m,p){let _=0;return m||(_|=1),p||(_|=4),_}function S(m,p,_,c,t,a,o){if(a.length===0)return;const n=p.content,u=Math.min(a.length,o.length),l=[],f=o[0].end;for(let j=0;j<u;j++){const x=a[j];if(x===null)continue;const O=o[j];if(O.length===0)continue;if(O.start>f)break;for(;l.length>0&&l[l.length-1].endPos<=O.start;)t.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?t.produceFromScopes(l[l.length-1].scopes,O.start):t.produce(c,O.start),x.retokenizeCapturedWithRuleId){const H=x.getName(n,o),M=c.contentNameScopesList.pushAttributed(H,m),G=x.getContentName(n,o),V=M.pushAttributed(G,m),z=c.push(x.retokenizeCapturedWithRuleId,O.start,-1,!1,null,M,V),C=m.createOnigString(n.substring(0,O.end));N(m,C,_&&O.start===0,O.start,z,t,!1,0),v.disposeOnigString(C);continue}const B=x.getName(n,o);if(B!==null){const H=(l.length>0?l[l.length-1].scopes:c.contentNameScopesList).pushAttributed(B,m);l.push(new b(H,O.end))}}for(;l.length>0;)t.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}r._tokenizeString=N;class b{constructor(p,_){this.scopes=p,this.endPos=_}}r.LocalStackElement=b},974:(T,r)=>{function k(w,d){throw new Error("Near offset "+w.pos+": "+d+" ~~~"+w.source.substr(w.pos,50)+"~~~")}Object.defineProperty(r,"__esModule",{value:!0}),r.parseJSON=void 0,r.parseJSON=function(w,d,N){let P=new y(w),g=new v,A=0,S=null,b=[],m=[];function p(){b.push(A),m.push(S)}function _(){A=b.pop(),S=m.pop()}function c(t){k(P,t)}for(;s(P,g);){if(A===0){if(S!==null&&c("too many constructs in root"),g.type===3){S={},N&&(S.$vscodeTextmateLocation=g.toLocation(d)),p(),A=1;continue}if(g.type===2){S=[],p(),A=4;continue}c("unexpected token in root")}if(A===2){if(g.type===5){_();continue}if(g.type===7){A=3;continue}c("expected , or }")}if(A===1||A===3){if(A===1&&g.type===5){_();continue}if(g.type===1){let t=g.value;if(s(P,g)&&g.type===6||c("expected colon"),s(P,g)||c("expected value"),A=2,g.type===1){S[t]=g.value;continue}if(g.type===8){S[t]=null;continue}if(g.type===9){S[t]=!0;continue}if(g.type===10){S[t]=!1;continue}if(g.type===11){S[t]=parseFloat(g.value);continue}if(g.type===2){let a=[];S[t]=a,p(),A=4,S=a;continue}if(g.type===3){let a={};N&&(a.$vscodeTextmateLocation=g.toLocation(d)),S[t]=a,p(),A=1,S=a;continue}}c("unexpected token in dict")}if(A===5){if(g.type===4){_();continue}if(g.type===7){A=6;continue}c("expected , or ]")}if(A===4||A===6){if(A===4&&g.type===4){_();continue}if(A=5,g.type===1){S.push(g.value);continue}if(g.type===8){S.push(null);continue}if(g.type===9){S.push(!0);continue}if(g.type===10){S.push(!1);continue}if(g.type===11){S.push(parseFloat(g.value));continue}if(g.type===2){let t=[];S.push(t),p(),A=4,S=t;continue}if(g.type===3){let t={};N&&(t.$vscodeTextmateLocation=g.toLocation(d)),S.push(t),p(),A=1,S=t;continue}c("unexpected token in array")}c("unknown state")}return m.length!==0&&c("unclosed constructs"),S};class y{constructor(d){this.source=d,this.pos=0,this.len=d.length,this.line=1,this.char=0}}class v{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(d){return{filename:d,line:this.line,char:this.char}}}function s(w,d){d.value=null,d.type=0,d.offset=-1,d.len=-1,d.line=-1,d.char=-1;let N,P=w.source,g=w.pos,A=w.len,S=w.line,b=w.char;for(;;){if(g>=A)return!1;if(N=P.charCodeAt(g),N!==32&&N!==9&&N!==13){if(N!==10)break;g++,S++,b=0}else g++,b++}if(d.offset=g,d.line=S,d.char=b,N===34){for(d.type=1,g++,b++;;){if(g>=A)return!1;if(N=P.charCodeAt(g),g++,b++,N!==92){if(N===34)break}else g++,b++}d.value=P.substring(d.offset+1,g-1).replace(/\\u([0-9A-Fa-f]{4})/g,(m,p)=>String.fromCodePoint(parseInt(p,16))).replace(/\\(.)/g,(m,p)=>{switch(p){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
3
|
-
`;case"r":return"\r";case"t":return" ";default:k(w,"invalid escape sequence")}throw new Error("unreachable")})}else if(N===91)d.type=2,g++,b++;else if(N===123)d.type=3,g++,b++;else if(N===93)d.type=4,g++,b++;else if(N===125)d.type=5,g++,b++;else if(N===58)d.type=6,g++,b++;else if(N===44)d.type=7,g++,b++;else if(N===110){if(d.type=8,g++,b++,N=P.charCodeAt(g),N!==117||(g++,b++,N=P.charCodeAt(g),N!==108)||(g++,b++,N=P.charCodeAt(g),N!==108))return!1;g++,b++}else if(N===116){if(d.type=9,g++,b++,N=P.charCodeAt(g),N!==114||(g++,b++,N=P.charCodeAt(g),N!==117)||(g++,b++,N=P.charCodeAt(g),N!==101))return!1;g++,b++}else if(N===102){if(d.type=10,g++,b++,N=P.charCodeAt(g),N!==97||(g++,b++,N=P.charCodeAt(g),N!==108)||(g++,b++,N=P.charCodeAt(g),N!==115)||(g++,b++,N=P.charCodeAt(g),N!==101))return!1;g++,b++}else for(d.type=11;;){if(g>=A)return!1;if(N=P.charCodeAt(g),!(N===46||N>=48&&N<=57||N===101||N===69||N===45||N===43))break;g++,b++}return d.len=g-d.offset,d.value===null&&(d.value=P.substr(d.offset,d.len)),w.pos=g,w.line=S,w.char=b,!0}},787:function(T,r,k){var y=this&&this.__createBinding||(Object.create?function(g,A,S,b){b===void 0&&(b=S),Object.defineProperty(g,b,{enumerable:!0,get:function(){return A[S]}})}:function(g,A,S,b){b===void 0&&(b=S),g[b]=A[S]}),v=this&&this.__exportStar||function(g,A){for(var S in g)S==="default"||Object.prototype.hasOwnProperty.call(A,S)||y(A,g,S)};Object.defineProperty(r,"__esModule",{value:!0}),r.parseRawGrammar=r.INITIAL=r.Registry=void 0;const s=k(391),w=k(50),d=k(652),N=k(583),P=k(965);v(k(44),r),r.Registry=class{constructor(g){this._options=g,this._syncRegistry=new d.SyncRegistry(N.Theme.createFromRawTheme(g.theme,g.colorMap),g.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(g,A){this._syncRegistry.setTheme(N.Theme.createFromRawTheme(g,A))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(g,A,S){return this.loadGrammarWithConfiguration(g,A,{embeddedLanguages:S})}loadGrammarWithConfiguration(g,A,S){return this._loadGrammar(g,A,S.embeddedLanguages,S.tokenTypes,new s.BalancedBracketSelectors(S.balancedBracketSelectors||[],S.unbalancedBracketSelectors||[]))}loadGrammar(g){return this._loadGrammar(g,0,null,null,null)}async _loadGrammar(g,A,S,b,m){const p=new P.ScopeDependencyProcessor(this._syncRegistry,g);for(;p.Q.length>0;)await Promise.all(p.Q.map(_=>this._loadSingleGrammar(_.scopeName))),p.processQueue();return this._grammarForScopeName(g,A,S,b,m)}async _loadSingleGrammar(g){return this._ensureGrammarCache.has(g)||this._ensureGrammarCache.set(g,this._doLoadSingleGrammar(g)),this._ensureGrammarCache.get(g)}async _doLoadSingleGrammar(g){const A=await this._options.loadGrammar(g);if(A){const S=typeof this._options.getInjections=="function"?this._options.getInjections(g):void 0;this._syncRegistry.addGrammar(A,S)}}async addGrammar(g,A=[],S=0,b=null){return this._syncRegistry.addGrammar(g,A),await this._grammarForScopeName(g.scopeName,S,b)}_grammarForScopeName(g,A=0,S=null,b=null,m=null){return this._syncRegistry.grammarForScopeName(g,A,S,b,m)}},r.INITIAL=s.StateStack.NULL,r.parseRawGrammar=w.parseRawGrammar},736:(T,r)=>{function k(y){return!!y&&!!y.match(/[\w\.:]+/)}Object.defineProperty(r,"__esModule",{value:!0}),r.createMatchers=void 0,r.createMatchers=function(y,v){const s=[],w=function(g){let A=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,S=A.exec(g);return{next:()=>{if(!S)return null;const b=S[0];return S=A.exec(g),b}}}(y);let d=w.next();for(;d!==null;){let g=0;if(d.length===2&&d.charAt(1)===":"){switch(d.charAt(0)){case"R":g=1;break;case"L":g=-1;break;default:console.log(`Unknown priority ${d} in scope selector`)}d=w.next()}let A=P();if(s.push({matcher:A,priority:g}),d!==",")break;d=w.next()}return s;function N(){if(d==="-"){d=w.next();const g=N();return A=>!!g&&!g(A)}if(d==="("){d=w.next();const g=function(){const A=[];let S=P();for(;S&&(A.push(S),d==="|"||d===",");){do d=w.next();while(d==="|"||d===",");S=P()}return b=>A.some(m=>m(b))}();return d===")"&&(d=w.next()),g}if(k(d)){const g=[];do g.push(d),d=w.next();while(k(d));return A=>v(g,A)}return null}function P(){const g=[];let A=N();for(;A;)g.push(A),A=N();return S=>g.every(b=>b(S))}}},44:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.disposeOnigString=void 0,r.disposeOnigString=function(k){typeof k.dispose=="function"&&k.dispose()}},50:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.parseRawGrammar=void 0;const y=k(69),v=k(350),s=k(974);r.parseRawGrammar=function(w,d=null){return d!==null&&/\.json$/.test(d)?(N=w,P=d,v.DebugFlags.InDebugMode?s.parseJSON(N,P,!0):JSON.parse(N)):function(g,A){return v.DebugFlags.InDebugMode?y.parseWithLocation(g,A,"$vscodeTextmateLocation"):y.parsePLIST(g)}(w,d);var N,P}},69:(T,r)=>{function k(y,v,s){const w=y.length;let d=0,N=1,P=0;function g(R){if(s===null)d+=R;else for(;R>0;)y.charCodeAt(d)===10?(d++,N++,P=0):(d++,P++),R--}function A(R){s===null?d=R:g(R-d)}function S(){for(;d<w;){let R=y.charCodeAt(d);if(R!==32&&R!==9&&R!==13&&R!==10)break;g(1)}}function b(R){return y.substr(d,R.length)===R&&(g(R.length),!0)}function m(R){let J=y.indexOf(R,d);A(J!==-1?J+R.length:w)}function p(R){let J=y.indexOf(R,d);if(J!==-1){let W=y.substring(d,J);return A(J+R.length),W}{let W=y.substr(d);return A(w),W}}w>0&&y.charCodeAt(0)===65279&&(d=1);let _=0,c=null,t=[],a=[],o=null;function n(R,J){t.push(_),a.push(c),_=R,c=J}function u(){if(t.length===0)return l("illegal state stack");_=t.pop(),c=a.pop()}function l(R){throw new Error("Near offset "+d+": "+R+" ~~~"+y.substr(d,50)+"~~~")}const f=function(){if(o===null)return l("missing <key>");let R={};s!==null&&(R[s]={filename:v,line:N,char:P}),c[o]=R,o=null,n(1,R)},j=function(){if(o===null)return l("missing <key>");let R=[];c[o]=R,o=null,n(2,R)},x=function(){let R={};s!==null&&(R[s]={filename:v,line:N,char:P}),c.push(R),n(1,R)},O=function(){let R=[];c.push(R),n(2,R)};function B(){if(_!==1)return l("unexpected </dict>");u()}function H(){return _===1||_!==2?l("unexpected </array>"):void u()}function M(R){if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function G(R){if(isNaN(R))return l("cannot parse float");if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function V(R){if(isNaN(R))return l("cannot parse integer");if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function z(R){if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function C(R){if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function F(R){if(_===1){if(o===null)return l("missing <key>");c[o]=R,o=null}else _===2?c.push(R):c=R}function D(){let R=p(">"),J=!1;return R.charCodeAt(R.length-1)===47&&(J=!0,R=R.substring(0,R.length-1)),{name:R.trim(),isClosed:J}}function $(R){if(R.isClosed)return"";let J=p("</");return m(">"),J.replace(/&#([0-9]+);/g,function(W,ee){return String.fromCodePoint(parseInt(ee,10))}).replace(/&#x([0-9a-f]+);/g,function(W,ee){return String.fromCodePoint(parseInt(ee,16))}).replace(/&|<|>|"|'/g,function(W){switch(W){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return W})}for(;d<w&&(S(),!(d>=w));){const R=y.charCodeAt(d);if(g(1),R!==60)return l("expected <");if(d>=w)return l("unexpected end of input");const J=y.charCodeAt(d);if(J===63){g(1),m("?>");continue}if(J===33){if(g(1),b("--")){m("-->");continue}m(">");continue}if(J===47){if(g(1),S(),b("plist")){m(">");continue}if(b("dict")){m(">"),B();continue}if(b("array")){m(">"),H();continue}return l("unexpected closed tag")}let W=D();switch(W.name){case"dict":_===1?f():_===2?x():(c={},s!==null&&(c[s]={filename:v,line:N,char:P}),n(1,c)),W.isClosed&&B();continue;case"array":_===1?j():_===2?O():(c=[],n(2,c)),W.isClosed&&H();continue;case"key":Q=$(W),_!==1?l("unexpected <key>"):o!==null?l("too many <key>"):o=Q;continue;case"string":M($(W));continue;case"real":G(parseFloat($(W)));continue;case"integer":V(parseInt($(W),10));continue;case"date":z(new Date($(W)));continue;case"data":C($(W));continue;case"true":$(W),F(!0);continue;case"false":$(W),F(!1);continue}if(!/^plist/.test(W.name))return l("unexpected opened tag "+W.name)}var Q;return c}Object.defineProperty(r,"__esModule",{value:!0}),r.parsePLIST=r.parseWithLocation=void 0,r.parseWithLocation=function(y,v,s){return k(y,v,s)},r.parsePLIST=function(y){return k(y,null,null)}},652:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SyncRegistry=void 0;const y=k(391);r.SyncRegistry=class{constructor(v,s){this._onigLibPromise=s,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=v}dispose(){for(const v of this._grammars.values())v.dispose()}setTheme(v){this._theme=v}getColorMap(){return this._theme.getColorMap()}addGrammar(v,s){this._rawGrammars.set(v.scopeName,v),s&&this._injectionGrammars.set(v.scopeName,s)}lookup(v){return this._rawGrammars.get(v)}injections(v){return this._injectionGrammars.get(v)}getDefaults(){return this._theme.getDefaults()}themeMatch(v){return this._theme.match(v)}async grammarForScopeName(v,s,w,d,N){if(!this._grammars.has(v)){let P=this._rawGrammars.get(v);if(!P)return null;this._grammars.set(v,y.createGrammar(v,P,s,w,d,N,this,await this._onigLibPromise))}return this._grammars.get(v)}}},792:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CompiledRule=r.RegExpSourceList=r.RegExpSource=r.RuleFactory=r.BeginWhileRule=r.BeginEndRule=r.IncludeOnlyRule=r.MatchRule=r.CaptureRule=r.Rule=r.ruleIdToNumber=r.ruleIdFromNumber=r.whileRuleId=r.endRuleId=void 0;const y=k(878),v=k(965),s=/\\(\d+)/,w=/\\(\d+)/g;r.endRuleId=-1,r.whileRuleId=-2,r.ruleIdFromNumber=function(c){return c},r.ruleIdToNumber=function(c){return c};class d{constructor(t,a,o,n){this.$location=t,this.id=a,this._name=o||null,this._nameIsCapturing=y.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=y.RegexSource.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${y.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,a){return this._nameIsCapturing&&this._name!==null&&t!==null&&a!==null?y.RegexSource.replaceCaptures(this._name,t,a):this._name}getContentName(t,a){return this._contentNameIsCapturing&&this._contentName!==null?y.RegexSource.replaceCaptures(this._contentName,t,a):this._contentName}}r.Rule=d;class N extends d{constructor(t,a,o,n,u){super(t,a,o,n),this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(t,a){throw new Error("Not supported!")}compile(t,a){throw new Error("Not supported!")}compileAG(t,a,o,n){throw new Error("Not supported!")}}r.CaptureRule=N;class P extends d{constructor(t,a,o,n,u){super(t,a,o,null),this._match=new m(n,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,a){a.push(this._match)}compile(t,a){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,a,o,n){return this._getCachedCompiledPatterns(t).compileAG(t,o,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}r.MatchRule=P;class g extends d{constructor(t,a,o,n,u){super(t,a,o,n),this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,a){for(const o of this.patterns)t.getRule(o).collectPatterns(t,a)}compile(t,a){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,a,o,n){return this._getCachedCompiledPatterns(t).compileAG(t,o,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}r.IncludeOnlyRule=g;class A extends d{constructor(t,a,o,n,u,l,f,j,x,O){super(t,a,o,n),this._begin=new m(u,this.id),this.beginCaptures=l,this._end=new m(f||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=j,this.applyEndPatternLast=x||!1,this.patterns=O.patterns,this.hasMissingPatterns=O.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,a){return this._end.resolveBackReferences(t,a)}collectPatterns(t,a){a.push(this._begin)}compile(t,a){return this._getCachedCompiledPatterns(t,a).compile(t)}compileAG(t,a,o,n){return this._getCachedCompiledPatterns(t,a).compileAG(t,o,n)}_getCachedCompiledPatterns(t,a){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new p;for(const o of this.patterns)t.getRule(o).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,a):this._cachedCompiledPatterns.setSource(0,a)),this._cachedCompiledPatterns}}r.BeginEndRule=A;class S extends d{constructor(t,a,o,n,u,l,f,j,x){super(t,a,o,n),this._begin=new m(u,this.id),this.beginCaptures=l,this.whileCaptures=j,this._while=new m(f,r.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=x.patterns,this.hasMissingPatterns=x.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,a){return this._while.resolveBackReferences(t,a)}collectPatterns(t,a){a.push(this._begin)}compile(t,a){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,a,o,n){return this._getCachedCompiledPatterns(t).compileAG(t,o,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new p;for(const a of this.patterns)t.getRule(a).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,a){return this._getCachedCompiledWhilePatterns(t,a).compile(t)}compileWhileAG(t,a,o,n){return this._getCachedCompiledWhilePatterns(t,a).compileAG(t,o,n)}_getCachedCompiledWhilePatterns(t,a){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new p,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,a||""),this._cachedCompiledWhilePatterns}}r.BeginWhileRule=S;class b{static createCaptureRule(t,a,o,n,u){return t.registerRule(l=>new N(a,l,o,n,u))}static getCompiledRuleId(t,a,o){return t.id||a.registerRule(n=>{if(t.id=n,t.match)return new P(t.$vscodeTextmateLocation,t.id,t.name,t.match,b._compileCaptures(t.captures,a,o));if(t.begin===void 0){t.repository&&(o=y.mergeObjects({},o,t.repository));let u=t.patterns;return u===void 0&&t.include&&(u=[{include:t.include}]),new g(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,b._compilePatterns(u,a,o))}return t.while?new S(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,a,o),t.while,b._compileCaptures(t.whileCaptures||t.captures,a,o),b._compilePatterns(t.patterns,a,o)):new A(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,a,o),t.end,b._compileCaptures(t.endCaptures||t.captures,a,o),t.applyEndPatternLast,b._compilePatterns(t.patterns,a,o))}),t.id}static _compileCaptures(t,a,o){let n=[];if(t){let u=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const f=parseInt(l,10);f>u&&(u=f)}for(let l=0;l<=u;l++)n[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const f=parseInt(l,10);let j=0;t[l].patterns&&(j=b.getCompiledRuleId(t[l],a,o)),n[f]=b.createCaptureRule(a,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,j)}}return n}static _compilePatterns(t,a,o){let n=[];if(t)for(let u=0,l=t.length;u<l;u++){const f=t[u];let j=-1;if(f.include){const x=v.parseInclude(f.include);switch(x.kind){case 0:case 1:j=b.getCompiledRuleId(o[f.include],a,o);break;case 2:let O=o[x.ruleName];O&&(j=b.getCompiledRuleId(O,a,o));break;case 3:case 4:const B=x.scopeName,H=x.kind===4?x.ruleName:null,M=a.getExternalGrammar(B,o);if(M)if(H){let G=M.repository[H];G&&(j=b.getCompiledRuleId(G,a,M.repository))}else j=b.getCompiledRuleId(M.repository.$self,a,M.repository)}}else j=b.getCompiledRuleId(f,a,o);if(j!==-1){const x=a.getRule(j);let O=!1;if((x instanceof g||x instanceof A||x instanceof S)&&x.hasMissingPatterns&&x.patterns.length===0&&(O=!0),O)continue;n.push(j)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}}r.RuleFactory=b;class m{constructor(t,a){if(t){const o=t.length;let n=0,u=[],l=!1;for(let f=0;f<o;f++)if(t.charAt(f)==="\\"&&f+1<o){const j=t.charAt(f+1);j==="z"?(u.push(t.substring(n,f)),u.push("$(?!\\n)(?<!\\n)"),n=f+2):j!=="A"&&j!=="G"||(l=!0),f++}this.hasAnchor=l,n===0?this.source=t:(u.push(t.substring(n,o)),this.source=u.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=a,this.hasBackReferences=s.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,a){let o=a.map(n=>t.substring(n.start,n.end));return w.lastIndex=0,this.source.replace(w,(n,u)=>y.escapeRegExpCharacters(o[parseInt(u,10)]||""))}_buildAnchorCache(){let t,a,o,n,u=[],l=[],f=[],j=[];for(t=0,a=this.source.length;t<a;t++)o=this.source.charAt(t),u[t]=o,l[t]=o,f[t]=o,j[t]=o,o==="\\"&&t+1<a&&(n=this.source.charAt(t+1),n==="A"?(u[t+1]="",l[t+1]="",f[t+1]="A",j[t+1]="A"):n==="G"?(u[t+1]="",l[t+1]="G",f[t+1]="",j[t+1]="G"):(u[t+1]=n,l[t+1]=n,f[t+1]=n,j[t+1]=n),t++);return{A0_G0:u.join(""),A0_G1:l.join(""),A1_G0:f.join(""),A1_G1:j.join("")}}resolveAnchors(t,a){return this.hasAnchor&&this._anchorCache?t?a?this._anchorCache.A1_G1:this._anchorCache.A1_G0:a?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}r.RegExpSource=m;class p{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,a){this._items[t].source!==a&&(this._disposeCaches(),this._items[t].setSource(a))}compile(t){if(!this._cached){let a=this._items.map(o=>o.source);this._cached=new _(t,a,this._items.map(o=>o.ruleId))}return this._cached}compileAG(t,a,o){return this._hasAnchors?a?o?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,a,o)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,a,o)),this._anchorCache.A1_G0):o?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,a,o)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,a,o)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,a,o){let n=this._items.map(u=>u.resolveAnchors(a,o));return new _(t,n,this._items.map(u=>u.ruleId))}}r.RegExpSourceList=p;class _{constructor(t,a,o){this.regExps=a,this.rules=o,this.scanner=t.createOnigScanner(a)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let a=0,o=this.rules.length;a<o;a++)t.push(" - "+this.rules[a]+": "+this.regExps[a]);return t.join(`
|
|
4
|
-
`)}findNextMatchSync(t,a,o){const n=this.scanner.findNextMatchSync(t,a,o);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}}r.CompiledRule=_},583:(T,r,k)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeTrieElement=r.ThemeTrieElementRule=r.ColorMap=r.fontStyleToString=r.ParsedThemeRule=r.parseTheme=r.StyleAttributes=r.ScopeStack=r.Theme=void 0;const y=k(878);class v{constructor(m,p,_){this._colorMap=m,this._defaults=p,this._root=_,this._cachedMatchRoot=new y.CachedFn(c=>this._root.match(c))}static createFromRawTheme(m,p){return this.createFromParsedTheme(N(m),p)}static createFromParsedTheme(m,p){return function(_,c){_.sort((f,j)=>{let x=y.strcmp(f.scope,j.scope);return x!==0?x:(x=y.strArrCmp(f.parentScopes,j.parentScopes),x!==0?x:f.index-j.index)});let t=0,a="#000000",o="#ffffff";for(;_.length>=1&&_[0].scope==="";){let f=_.shift();f.fontStyle!==-1&&(t=f.fontStyle),f.foreground!==null&&(a=f.foreground),f.background!==null&&(o=f.background)}let n=new g(c),u=new d(t,n.getId(a),n.getId(o)),l=new S(new A(0,null,-1,0,0),[]);for(let f=0,j=_.length;f<j;f++){let x=_[f];l.insert(0,x.scope,x.parentScopes,x.fontStyle,n.getId(x.foreground),n.getId(x.background))}return new v(n,u,l)}(m,p)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(m){if(m===null)return this._defaults;const p=m.scopeName,_=this._cachedMatchRoot.get(p).find(c=>function(t,a){if(a===null)return!0;let o=0,n=a[o];for(;t;){if(w(t.scopeName,n)){if(o++,o===a.length)return!0;n=a[o]}t=t.parent}return!1}(m.parent,c.parentScopes));return _?new d(_.fontStyle,_.foreground,_.background):null}}r.Theme=v;class s{constructor(m,p){this.parent=m,this.scopeName=p}static from(...m){let p=null;for(let _=0;_<m.length;_++)p=new s(p,m[_]);return p}push(m){return new s(this,m)}getSegments(){let m=this;const p=[];for(;m;)p.push(m.scopeName),m=m.parent;return p.reverse(),p}toString(){return this.getSegments().join(" ")}}function w(b,m){return m===b||b.startsWith(m)&&b[m.length]==="."}r.ScopeStack=s;class d{constructor(m,p,_){this.fontStyle=m,this.foregroundId=p,this.backgroundId=_}}function N(b){if(!b)return[];if(!b.settings||!Array.isArray(b.settings))return[];let m=b.settings,p=[],_=0;for(let c=0,t=m.length;c<t;c++){let a,o=m[c];if(!o.settings)continue;if(typeof o.scope=="string"){let f=o.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else a=Array.isArray(o.scope)?o.scope:[""];let n=-1;if(typeof o.settings.fontStyle=="string"){n=0;let f=o.settings.fontStyle.split(" ");for(let j=0,x=f.length;j<x;j++)switch(f[j]){case"italic":n|=1;break;case"bold":n|=2;break;case"underline":n|=4;break;case"strikethrough":n|=8}}let u=null;typeof o.settings.foreground=="string"&&y.isValidHexColor(o.settings.foreground)&&(u=o.settings.foreground);let l=null;typeof o.settings.background=="string"&&y.isValidHexColor(o.settings.background)&&(l=o.settings.background);for(let f=0,j=a.length;f<j;f++){let x=a[f].trim().split(" "),O=x[x.length-1],B=null;x.length>1&&(B=x.slice(0,x.length-1),B.reverse()),p[_++]=new P(O,B,c,n,u,l)}}return p}r.StyleAttributes=d,r.parseTheme=N;class P{constructor(m,p,_,c,t,a){this.scope=m,this.parentScopes=p,this.index=_,this.fontStyle=c,this.foreground=t,this.background=a}}r.ParsedThemeRule=P,r.fontStyleToString=function(b){if(b===-1)return"not set";let m="";return 1&b&&(m+="italic "),2&b&&(m+="bold "),4&b&&(m+="underline "),8&b&&(m+="strikethrough "),m===""&&(m="none"),m.trim()};class g{constructor(m){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(m)){this._isFrozen=!0;for(let p=0,_=m.length;p<_;p++)this._color2id[m[p]]=p,this._id2color[p]=m[p]}else this._isFrozen=!1}getId(m){if(m===null)return 0;m=m.toUpperCase();let p=this._color2id[m];if(p)return p;if(this._isFrozen)throw new Error(`Missing color in color map - ${m}`);return p=++this._lastColorId,this._color2id[m]=p,this._id2color[p]=m,p}getColorMap(){return this._id2color.slice(0)}}r.ColorMap=g;class A{constructor(m,p,_,c,t){this.scopeDepth=m,this.parentScopes=p,this.fontStyle=_,this.foreground=c,this.background=t}clone(){return new A(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(m){let p=[];for(let _=0,c=m.length;_<c;_++)p[_]=m[_].clone();return p}acceptOverwrite(m,p,_,c){this.scopeDepth>m?console.log("how did this happen?"):this.scopeDepth=m,p!==-1&&(this.fontStyle=p),_!==0&&(this.foreground=_),c!==0&&(this.background=c)}}r.ThemeTrieElementRule=A;class S{constructor(m,p=[],_={}){this._mainRule=m,this._children=_,this._rulesWithParentScopes=p}static _sortBySpecificity(m){return m.length===1||m.sort(this._cmpBySpecificity),m}static _cmpBySpecificity(m,p){if(m.scopeDepth===p.scopeDepth){const _=m.parentScopes,c=p.parentScopes;let t=_===null?0:_.length,a=c===null?0:c.length;if(t===a)for(let o=0;o<t;o++){const n=_[o].length,u=c[o].length;if(n!==u)return u-n}return a-t}return p.scopeDepth-m.scopeDepth}match(m){if(m==="")return S._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let p,_,c=m.indexOf(".");return c===-1?(p=m,_=""):(p=m.substring(0,c),_=m.substring(c+1)),this._children.hasOwnProperty(p)?this._children[p].match(_):S._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(m,p,_,c,t,a){if(p==="")return void this._doInsertHere(m,_,c,t,a);let o,n,u,l=p.indexOf(".");l===-1?(o=p,n=""):(o=p.substring(0,l),n=p.substring(l+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new S(this._mainRule.clone(),A.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(m+1,n,_,c,t,a)}_doInsertHere(m,p,_,c,t){if(p!==null){for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let n=this._rulesWithParentScopes[a];if(y.strArrCmp(n.parentScopes,p)===0)return void n.acceptOverwrite(m,_,c,t)}_===-1&&(_=this._mainRule.fontStyle),c===0&&(c=this._mainRule.foreground),t===0&&(t=this._mainRule.background),this._rulesWithParentScopes.push(new A(m,p,_,c,t))}else this._mainRule.acceptOverwrite(m,_,c,t)}}r.ThemeTrieElement=S},878:(T,r)=>{function k(s){return Array.isArray(s)?function(w){let d=[];for(let N=0,P=w.length;N<P;N++)d[N]=k(w[N]);return d}(s):typeof s=="object"?function(w){let d={};for(let N in w)d[N]=k(w[N]);return d}(s):s}Object.defineProperty(r,"__esModule",{value:!0}),r.performanceNow=r.CachedFn=r.escapeRegExpCharacters=r.isValidHexColor=r.strArrCmp=r.strcmp=r.RegexSource=r.basename=r.mergeObjects=r.clone=void 0,r.clone=function(s){return k(s)},r.mergeObjects=function(s,...w){return w.forEach(d=>{for(let N in d)s[N]=d[N]}),s},r.basename=function s(w){const d=~w.lastIndexOf("/")||~w.lastIndexOf("\\");return d===0?w:~d==w.length-1?s(w.substring(0,w.length-1)):w.substr(1+~d)};let y=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function v(s,w){return s<w?-1:s>w?1:0}r.RegexSource=class{static hasCaptures(s){return s!==null&&(y.lastIndex=0,y.test(s))}static replaceCaptures(s,w,d){return s.replace(y,(N,P,g,A)=>{let S=d[parseInt(P||g,10)];if(!S)return N;{let b=w.substring(S.start,S.end);for(;b[0]===".";)b=b.substring(1);switch(A){case"downcase":return b.toLowerCase();case"upcase":return b.toUpperCase();default:return b}}})}},r.strcmp=v,r.strArrCmp=function(s,w){if(s===null&&w===null)return 0;if(!s)return-1;if(!w)return 1;let d=s.length,N=w.length;if(d===N){for(let P=0;P<d;P++){let g=v(s[P],w[P]);if(g!==0)return g}return 0}return d-N},r.isValidHexColor=function(s){return!!(/^#[0-9a-f]{6}$/i.test(s)||/^#[0-9a-f]{8}$/i.test(s)||/^#[0-9a-f]{3}$/i.test(s)||/^#[0-9a-f]{4}$/i.test(s))},r.escapeRegExpCharacters=function(s){return s.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},r.CachedFn=class{constructor(s){this.fn=s,this.cache=new Map}get(s){if(this.cache.has(s))return this.cache.get(s);const w=this.fn(s);return this.cache.set(s,w),w}},r.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},i={};return function T(r){var k=i[r];if(k!==void 0)return k.exports;var y=i[r]={exports:{}};return L[r].call(y.exports,y,y.exports,T),y.exports}(787)})()})})(De);var $e=De.exports;const Ne=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",aliases:["bash","console","sh","shell","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"}];var ie=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(ie||{});class K{static toBinaryStr(h){let L=h.toString(2);for(;L.length<32;)L="0"+L;return L}static printMetadata(h){let L=K.getLanguageId(h),i=K.getTokenType(h),T=K.getFontStyle(h),r=K.getForeground(h),k=K.getBackground(h);console.log({languageId:L,tokenType:i,fontStyle:T,foreground:r,background:k})}static getLanguageId(h){return(h&255)>>>0}static getTokenType(h){return(h&768)>>>8}static getFontStyle(h){return(h&14336)>>>11}static getForeground(h){return(h&8372224)>>>15}static getBackground(h){return(h&4286578688)>>>24}static containsBalancedBrackets(h){return(h&1024)!==0}static set(h,L,i,T,r,k){let y=K.getLanguageId(h),v=K.getTokenType(h),s=K.getFontStyle(h),w=K.getForeground(h),d=K.getBackground(h),N=K.containsBalancedBrackets(h)?1:0;return L!==0&&(y=L),i!==0&&(v=i===8?0:i),T!==-1&&(s=T),r!==0&&(w=r),k!==0&&(d=k),(y<<0|v<<8|s<<11|N<<10|w<<15|d<<24)>>>0}}function Xe(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Ye(e){return e.startsWith("./")?e.slice(2):e}function Fe(e){const h=e.split(/[\/\\]/g);return h.slice(0,h.length-1)}function We(...e){return e.map(Xe).map(Ye).join("/")}function Ze(e,h){const L=new Map;for(const i of e){const T=h(i);L.has(T)?L.get(T).push(i):L.set(T,[i])}return L}function Ke(e,h=!1){const L=e.length;let i=0,T="",r=0,k=16,y=0,v=0,s=0,w=0,d=0;function N(p,_){let c=0,t=0;for(;c<p||!_;){let a=e.charCodeAt(i);if(a>=48&&a<=57)t=t*16+a-48;else if(a>=65&&a<=70)t=t*16+a-65+10;else if(a>=97&&a<=102)t=t*16+a-97+10;else break;i++,c++}return c<p&&(t=-1),t}function P(p){i=p,T="",r=0,k=16,d=0}function g(){let p=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&fe(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&fe(e.charCodeAt(i)))for(i++;i<e.length&&fe(e.charCodeAt(i));)i++;else return d=3,e.substring(p,i);let _=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&fe(e.charCodeAt(i))){for(i++;i<e.length&&fe(e.charCodeAt(i));)i++;_=i}else d=3;return e.substring(p,_)}function A(){let p="",_=i;for(;;){if(i>=L){p+=e.substring(_,i),d=2;break}const c=e.charCodeAt(i);if(c===34){p+=e.substring(_,i),i++;break}if(c===92){if(p+=e.substring(_,i),i++,i>=L){d=2;break}switch(e.charCodeAt(i++)){case 34:p+='"';break;case 92:p+="\\";break;case 47:p+="/";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+=`
|
|
5
|
-
`;break;case 114:p+="\r";break;case 116:p+=" ";break;case 117:const a=N(4,!0);a>=0?p+=String.fromCharCode(a):d=4;break;default:d=5}_=i;continue}if(c>=0&&c<=31)if(be(c)){p+=e.substring(_,i),d=2;break}else d=6;i++}return p}function S(){if(T="",d=0,r=i,v=y,w=s,i>=L)return r=L,k=17;let p=e.charCodeAt(i);if(Le(p)){do i++,T+=String.fromCharCode(p),p=e.charCodeAt(i);while(Le(p));return k=15}if(be(p))return i++,T+=String.fromCharCode(p),p===13&&e.charCodeAt(i)===10&&(i++,T+=`
|
|
6
|
-
`),y++,s=i,k=14;switch(p){case 123:return i++,k=1;case 125:return i++,k=2;case 91:return i++,k=3;case 93:return i++,k=4;case 58:return i++,k=6;case 44:return i++,k=5;case 34:return i++,T=A(),k=10;case 47:const _=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<L&&!be(e.charCodeAt(i));)i++;return T=e.substring(_,i),k=12}if(e.charCodeAt(i+1)===42){i+=2;const c=L-1;let t=!1;for(;i<c;){const a=e.charCodeAt(i);if(a===42&&e.charCodeAt(i+1)===47){i+=2,t=!0;break}i++,be(a)&&(a===13&&e.charCodeAt(i)===10&&i++,y++,s=i)}return t||(i++,d=1),T=e.substring(_,i),k=13}return T+=String.fromCharCode(p),i++,k=16;case 45:if(T+=String.fromCharCode(p),i++,i===L||!fe(e.charCodeAt(i)))return k=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return T+=g(),k=11;default:for(;i<L&&b(p);)i++,p=e.charCodeAt(i);if(r!==i){switch(T=e.substring(r,i),T){case"true":return k=8;case"false":return k=9;case"null":return k=7}return k=16}return T+=String.fromCharCode(p),i++,k=16}}function b(p){if(Le(p)||be(p))return!1;switch(p){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function m(){let p;do p=S();while(p>=12&&p<=15);return p}return{setPosition:P,getPosition:()=>i,scan:h?m:S,getToken:()=>k,getTokenValue:()=>T,getTokenOffset:()=>r,getTokenLength:()=>i-r,getTokenStartLine:()=>v,getTokenStartCharacter:()=>r-w,getTokenError:()=>d}}function Le(e){return e===32||e===9}function be(e){return e===10||e===13}function fe(e){return e>=48&&e<=57}var Ae;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Ae||(Ae={}));var _e;(function(e){e.DEFAULT={allowTrailingComma:!1}})(_e||(_e={}));function et(e,h=[],L=_e.DEFAULT){let i=null,T=[];const r=[];function k(v){Array.isArray(T)?T.push(v):i!==null&&(T[i]=v)}return tt(e,{onObjectBegin:()=>{const v={};k(v),r.push(T),T=v,i=null},onObjectProperty:v=>{i=v},onObjectEnd:()=>{T=r.pop()},onArrayBegin:()=>{const v=[];k(v),r.push(T),T=v,i=null},onArrayEnd:()=>{T=r.pop()},onLiteralValue:k,onError:(v,s,w)=>{h.push({error:v,offset:s,length:w})}},L),T[0]}function tt(e,h,L=_e.DEFAULT){const i=Ke(e,!1),T=[];function r(f){return f?()=>f(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function k(f){return f?()=>f(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>T.slice()):()=>!0}function y(f){return f?j=>f(j,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function v(f){return f?j=>f(j,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>T.slice()):()=>!0}const s=k(h.onObjectBegin),w=v(h.onObjectProperty),d=r(h.onObjectEnd),N=k(h.onArrayBegin),P=r(h.onArrayEnd),g=v(h.onLiteralValue),A=y(h.onSeparator),S=r(h.onComment),b=y(h.onError),m=L&&L.disallowComments,p=L&&L.allowTrailingComma;function _(){for(;;){const f=i.scan();switch(i.getTokenError()){case 4:c(14);break;case 5:c(15);break;case 3:c(13);break;case 1:m||c(11);break;case 2:c(12);break;case 6:c(16);break}switch(f){case 12:case 13:m?c(10):S();break;case 16:c(1);break;case 15:case 14:break;default:return f}}}function c(f,j=[],x=[]){if(b(f),j.length+x.length>0){let O=i.getToken();for(;O!==17;){if(j.indexOf(O)!==-1){_();break}else if(x.indexOf(O)!==-1)break;O=_()}}}function t(f){const j=i.getTokenValue();return f?g(j):(w(j),T.push(j)),_(),!0}function a(){switch(i.getToken()){case 11:const f=i.getTokenValue();let j=Number(f);isNaN(j)&&(c(2),j=0),g(j);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return _(),!0}function o(){return i.getToken()!==10?(c(3,[],[2,5]),!1):(t(!1),i.getToken()===6?(A(":"),_(),l()||c(4,[],[2,5])):c(5,[],[2,5]),T.pop(),!0)}function n(){s(),_();let f=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(f||c(4,[],[]),A(","),_(),i.getToken()===2&&p)break}else f&&c(6,[],[]);o()||c(4,[],[2,5]),f=!0}return d(),i.getToken()!==2?c(7,[2],[]):_(),!0}function u(){N(),_();let f=!0,j=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(j||c(4,[],[]),A(","),_(),i.getToken()===4&&p)break}else j&&c(6,[],[]);f?(T.push(0),f=!1):T[T.length-1]++,l()||c(4,[],[4,5]),j=!0}return P(),f||T.pop(),i.getToken()!==4?c(8,[4],[]):_(),!0}function l(){switch(i.getToken()){case 3:return u();case 1:return n();case 10:return t(!0);default:return a()}}return _(),i.getToken()===17?L.allowEmptyContent?!0:(c(4,[],[]),!1):l()?(i.getToken()!==17&&c(9,[],[]),!0):(c(4,[],[]),!1)}var Te;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Te||(Te={}));var Pe;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Pe||(Pe={}));const st=et;var Re;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Re||(Re={}));"process"in globalThis&&typeof process<"u"&&typeof process.release<"u"&&process.release.name;let Ue="";const nt="dist/";function at(e){Ue=e.endsWith("/")?e:e+"/"}let ve=null;async function rt(e){if(!ve){let h;h=ke.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(Ce(We(...Fe(e),"onig.wasm")))}),ve=h.then(()=>({createOnigScanner(L){return ke.createOnigScanner(L)},createOnigString(L){return ke.createOnigString(L)}}))}return ve}function Ce(e){return`${Ue}${e}`}async function it(e){const h=Ce(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(h).then(L=>L.text())}async function qe(e){const h=[],L=await it(e);let i;try{i=JSON.parse(L)}catch{if(i=st(L,h,{allowTrailingComma:!0}),h.length)throw h[0]}return i}async function He(e){let h=await qe(e);const L=Ve(h);if(L.include){const i=await He(We(...Fe(e),L.include));i.settings&&(L.settings=i.settings.concat(L.settings)),i.bg&&!L.bg&&(L.bg=i.bg),i.colors&&(L.colors={...i.colors,...L.colors}),delete L.include}return L}async function ot(e){return await qe(e)}function ct(e){e.settings||(e.settings=[]),!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope)&&e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function Ve(e){const h=e.type||"dark",L={name:e.name,type:h,...e,...lt(e)};return e.include&&(L.include=e.include),e.tokenColors&&(L.settings=e.tokenColors,delete L.tokenColors),ct(L),L}const xe={light:"#333333",dark:"#bbbbbb"},Ie={light:"#fffffe",dark:"#1e1e1e"};function lt(e){var r,k,y,v;let h,L,i=e.settings?e.settings:e.tokenColors;const T=i?i.find(s=>!s.name&&!s.scope):void 0;return(r=T==null?void 0:T.settings)!=null&&r.foreground&&(h=T.settings.foreground),(k=T==null?void 0:T.settings)!=null&&k.background&&(L=T.settings.background),!h&&((y=e==null?void 0:e.colors)!=null&&y["editor.foreground"])&&(h=e.colors["editor.foreground"]),!L&&((v=e==null?void 0:e.colors)!=null&&v["editor.background"])&&(L=e.colors["editor.background"]),h||(h=e.type==="light"?xe.light:xe.dark),L||(L=e.type==="light"?Ie.light:Ie.dark),{fg:h,bg:L}}class ut{constructor(h,L){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=h,this._onigLibName=L}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(h){return this.languageMap[h]}async loadGrammar(h){const L=this.scopeToLangMap[h];if(!L)return null;if(L.grammar)return L.grammar;const i=await ot(Ne.includes(L)?`${this.languagesPath}${L.path}`:L.path);return L.grammar=i,i}addLanguage(h){this.languageMap[h.id]=h,h.aliases&&h.aliases.forEach(L=>{this.languageMap[L]=h}),this.scopeToLangMap[h.scopeName]=h}}function pt(e,h,L,i,T){let r=L.split(/\r\n|\r|\n/),k=$e.INITIAL,y=[],v=[];for(let s=0,w=r.length;s<w;s++){let d=r[s];if(d===""){y=[],v.push([]);continue}let N,P,g;T.includeExplanation&&(N=i.tokenizeLine(d,k),P=N.tokens,g=0);let A=i.tokenizeLine2(d,k),S=A.tokens.length/2;for(let b=0;b<S;b++){let m=A.tokens[2*b],p=b+1<S?A.tokens[2*b+2]:d.length;if(m===p)continue;let _=A.tokens[2*b+1],c=K.getForeground(_),t=h[c],a=K.getFontStyle(_),o=[];if(T.includeExplanation){let n=0;for(;m+n<p;){let u=P[g],l=d.substring(u.startIndex,u.endIndex);n+=l.length,o.push({content:l,scopes:ht(e,u.scopes)}),g++}}y.push({content:d.substring(m,p),color:t,fontStyle:a,explanation:o})}v.push(y),y=[],k=A.ruleStack}return v}function ht(e,h){let L=[];for(let i=0,T=h.length;i<T;i++){let r=h.slice(0,i),k=h[i];L[i]={scopeName:k,themeMatches:dt(e,k,r)}}return L}function Oe(e,h){let L=e+".";return e===h||h.substring(0,L.length)===L}function mt(e,h,L,i){if(!Oe(e,L))return!1;let T=h.length-1,r=i.length-1;for(;T>=0&&r>=0;)Oe(h[T],i[r])&&T--,r--;return T===-1}function dt(e,h,L){let i=[],T=0;for(let r=0,k=e.settings.length;r<k;r++){let y=e.settings[r],v;if(typeof y.scope=="string")v=y.scope.split(/,/).map(s=>s.trim());else if(Array.isArray(y.scope))v=y.scope;else continue;for(let s=0,w=v.length;s<w;s++){let N=v[s].split(/ /),P=N[N.length-1],g=N.slice(0,N.length-1);mt(P,g,h,L)&&(i[T++]=y,s=w)}}return i}var ne=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],je={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function gt(e,h){const L=e.indexOf("\x1B",h);if(L!==-1&&e[L+1]==="["){const i=e.indexOf("m",L);return{sequence:e.substring(L+2,i).split(";"),startPosition:L,position:i+1}}return{position:e.length}}function Be(e){const h=e.shift();if(h==="2"){const L=e.splice(0,3).map(i=>Number.parseInt(i));return L.length!==3||L.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:L}}else if(h==="5"){const L=e.shift();if(L)return{type:"table",index:Number(L)}}}function ft(e){const h=[];for(;e.length>0;){const L=e.shift();if(!L)continue;const i=Number.parseInt(L);if(!Number.isNaN(i))if(i===0)h.push({type:"resetAll"});else if(i<=9)je[i]&&h.push({type:"setDecoration",value:je[i]});else if(i<=29){const T=je[i-20];T&&h.push({type:"resetDecoration",value:T})}else if(i<=37)h.push({type:"setForegroundColor",value:{type:"named",name:ne[i-30]}});else if(i===38){const T=Be(e);T&&h.push({type:"setForegroundColor",value:T})}else if(i===39)h.push({type:"resetForegroundColor"});else if(i<=47)h.push({type:"setBackgroundColor",value:{type:"named",name:ne[i-40]}});else if(i===48){const T=Be(e);T&&h.push({type:"setBackgroundColor",value:T})}else i===49?h.push({type:"resetBackgroundColor"}):i>=90&&i<=97?h.push({type:"setForegroundColor",value:{type:"named",name:ne[i-90+8]}}):i>=100&&i<=107&&h.push({type:"setBackgroundColor",value:{type:"named",name:ne[i-100+8]}})}return h}function yt(){let e=null,h=null,L=new Set;return{parse(i){const T=[];let r=0;do{const k=gt(i,r),y=k.sequence?i.substring(r,k.startPosition):i.substring(r);if(y.length>0&&T.push({value:y,foreground:e,background:h,decorations:new Set(L)}),k.sequence){const v=ft(k.sequence);for(const s of v)s.type==="resetAll"?(e=null,h=null,L.clear()):s.type==="resetForegroundColor"?e=null:s.type==="resetBackgroundColor"?h=null:s.type==="resetDecoration"&&L.delete(s.value);for(const s of v)s.type==="setForegroundColor"?e=s.value:s.type==="setBackgroundColor"?h=s.value:s.type==="setDecoration"&&L.add(s.value)}r=k.position}while(r<i.length);return T}}}var bt={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _t(e=bt){function h(y){return e[y]}function L(y){return`#${y.map(v=>Math.max(0,Math.min(v,255)).toString(16).padStart(2,"0")).join("")}`}let i;function T(){if(i)return i;i=[];for(let s=0;s<ne.length;s++)i.push(h(ne[s]));let y=[0,95,135,175,215,255];for(let s=0;s<6;s++)for(let w=0;w<6;w++)for(let d=0;d<6;d++)i.push(L([y[s],y[w],y[d]]));let v=8;for(let s=0;s<24;s++,v+=10)i.push(L([v,v,v]));return i}function r(y){return T()[y]}function k(y){switch(y.type){case"named":return h(y.name);case"rgb":return L(y.rgb);case"table":return r(y.index)}}return{value:k}}function Nt(e,h){const L=h.split(/\r?\n/),i=_t(Object.fromEntries(ne.map(r=>[r,e.colors[`terminal.ansi${r[0].toUpperCase()}${r.substring(1)}`]]))),T=yt();return L.map(r=>T.parse(r).map(k=>{let y;k.decorations.has("reverse")?y=k.background?i.value(k.background):e.bg:y=k.foreground?i.value(k.foreground):e.fg,k.decorations.has("dim")&&(y=kt(y));let v=ie.None;return k.decorations.has("bold")&&(v|=ie.Bold),k.decorations.has("italic")&&(v|=ie.Italic),k.decorations.has("underline")&&(v|=ie.Underline),{content:k.value,color:y,fontStyle:v}}))}function kt(e){const h=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(h)if(h[3]){const i=Math.round(Number.parseInt(h[3],16)/2).toString(16).padStart(2,"0");return`#${h[1]}${h[2]}${i}`}else return h[2]?`#${h[1]}${h[2]}80`:`#${Array.from(h[1]).map(i=>`${i}${i}`).join("")}80`;const L=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return L?`var(${L[1]}-dim)`:e}const Lt={pre({className:e,style:h,children:L}){return`<pre class="${e}" style="${h}" tabindex="0">${L}</pre>`},code({children:e}){return`<code>${e}</code>`},line({className:e,children:h}){return`<span class="${e}">${h}</span>`},token({style:e,children:h}){return`<span style="${e}">${h}</span>`}};function Ee(e,h={}){const L=h.bg||"#fff",i=Ze(h.lineOptions??[],k=>k.line),T=h.elements||{};function r(k="",y={},v){const s=T[k]||Lt[k];return s?(v=v.filter(Boolean),s({...y,children:k==="code"?v.join(`
|
|
7
|
-
`):v.join("")})):""}return r("pre",{className:"shiki "+(h.themeName||""),style:`background-color: ${L}`},[h.langId?`<div class="language-id">${h.langId}</div>`:"",r("code",{},e.map((k,y)=>{const v=y+1,s=i.get(v)??[],w=St(s).join(" ");return r("line",{className:w,lines:e,line:k,index:y},k.map((d,N)=>{const P=[`color: ${d.color||h.fg}`];return d.fontStyle&ie.Italic&&P.push("font-style: italic"),d.fontStyle&ie.Bold&&P.push("font-weight: bold"),d.fontStyle&ie.Underline&&P.push("text-decoration: underline"),r("token",{style:P.join("; "),tokens:k,token:d,index:N},[jt(d.content)])}))}))])}const vt={"&":"&","<":"<",">":">",'"':""","'":"'"};function jt(e){return e.replace(/[&<>"']/g,h=>vt[h])}function St(e){const h=new Set(["line"]);for(const L of e)for(const i of L.classes??[])h.add(i);return Array.from(h)}class wt extends $e.Registry{constructor(h){super(h),this._resolver=h,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Ne.reduce((L,i)=>(L[i.id]=i,L),{})}getTheme(h){return typeof h=="string"?this._resolvedThemes[h]:h}async loadTheme(h){return typeof h=="string"?(this._resolvedThemes[h]||(this._resolvedThemes[h]=await He(`${this.themesPath}${h}.json`)),this._resolvedThemes[h]):(h=Ve(h),h.name&&(this._resolvedThemes[h.name]=h),h)}async loadThemes(h){return await Promise.all(h.map(L=>this.loadTheme(L)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(h){return this._resolvedGrammars[h]}async loadLanguage(h){var r;const i={embeddedLanguages:(r=h.embeddedLangs)==null?void 0:r.reduce(async(k,y,v)=>{if(!this.getLoadedLanguages().includes(y)&&this._resolver.getLangRegistration(y))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(y).scopeName),k[this._resolver.getLangRegistration(y).scopeName]=v+2,k},{}),balancedBracketSelectors:h.balancedBracketSelectors||["*"],unbalancedBracketSelectors:h.unbalancedBracketSelectors||[]},T=await this.loadGrammarWithConfiguration(h.scopeName,1,i);this._resolvedGrammars[h.id]=T,h.aliases&&h.aliases.forEach(k=>{this._resolvedGrammars[k]=T})}async loadLanguages(h){for(const i of h)this.resolveEmbeddedLanguages(i);const L=Array.from(this._langGraph.values());for(const i of L)this._resolver.addLanguage(i);for(const i of L)await this.loadLanguage(i)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(h){if(this._langGraph.has(h.id)||this._langGraph.set(h.id,h),h.embeddedLangs)for(const L of h.embeddedLangs)this._langGraph.set(L,this._langMap[L])}}function ze(e){return typeof e=="string"?Ne.find(h=>{var L;return h.id===e||((L=h.aliases)==null?void 0:L.includes(e))}):e}function At(e){var T;let h=Ne,L=e.themes||[],i=(T=e.paths)!=null&&T.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":nt;return e.langs&&(h=e.langs.map(ze)),e.theme&&L.unshift(e.theme),L.length||(L=["nord"]),{_languages:h,_themes:L,_wasmPath:i}}function Tt(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let h=0;h<ne.length;h++){const L=`#A${h.toString().padStart(5,"0")}`,i=ne[h].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[L]=`var(--shiki-color-ansi-${i})`}return e}async function Pt(e){var o,n;const{_languages:h,_themes:L,_wasmPath:i}=At(e),T=new ut(rt(i),"vscode-oniguruma"),r=new wt(T);(o=e.paths)!=null&&o.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(n=e.paths)!=null&&n.languages&&(T.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const y=(await r.loadThemes(L))[0];let v;await r.loadLanguages(h);let s=Tt();function w(u){s=u}function d(u,l){u.bg=s[u.bg]||u.bg,u.fg=s[u.fg]||u.fg,Object.entries(u.colors).forEach(([f,j])=>{u.colors[f]=s[j]||j}),l.forEach((f,j)=>{l[j]=s[f]||f})}function N(u){const l=u?r.getTheme(u):y;if(!l)throw Error(`No theme registration for ${u}`);(!v||v.name!==l.name)&&(r.setTheme(l),v=l);const f=r.getColorMap();return l.type==="css"&&d(l,f),{_theme:l,_colorMap:f}}function P(u){const l=r.getGrammar(u);if(!l)throw Error(`No language registration for ${u}`);return{_grammar:l}}function g(u,l="text",f,j={includeExplanation:!0}){if(Rt(l))return[...u.split(/\r\n|\r|\n/).map(M=>[{content:M}])];const{_grammar:x}=P(l),{_theme:O,_colorMap:B}=N(f);return pt(O,B,u,x,j)}function A(u,l){const{_theme:f}=N(l);return Nt(f,u)}function S(u,l="text",f){let j;typeof l=="object"?j=l:j={lang:l,theme:f};const x=g(u,j.lang,j.theme,{includeExplanation:!1}),{_theme:O}=N(j.theme);return Ee(x,{fg:O.fg,bg:O.bg,lineOptions:j==null?void 0:j.lineOptions,themeName:O.name})}function b(u,l){const f=A(u,l==null?void 0:l.theme),{_theme:j}=N(l==null?void 0:l.theme);return Ee(f,{fg:j.fg,bg:j.bg,lineOptions:l==null?void 0:l.lineOptions,themeName:j.name})}async function m(u){await r.loadTheme(u)}async function p(u){const l=ze(u);T.addLanguage(l),await r.loadLanguage(l)}function _(){return r.getLoadedThemes()}function c(){return r.getLoadedLanguages()}function t(u){const{_theme:l}=N(u);return l.bg}function a(u){const{_theme:l}=N(u);return l.fg}return{codeToThemedTokens:g,codeToHtml:S,ansiToThemedTokens:A,ansiToHtml:b,getTheme:u=>N(u)._theme,loadTheme:m,loadLanguage:p,getBackgroundColor:t,getForegroundColor:a,getLoadedThemes:_,getLoadedLanguages:c,setColorReplacements:w}}function Rt(e){return!e||["plaintext","txt","text"].includes(e)}const xt="0.14.0";at(`https://cdn.jsdelivr.net/npm/shiki-es@${xt}/dist/assets/`);const Se=Je();Pt({themes:["vitesse-dark","vitesse-light"],langs:["css","json","javascript","typescript"]}).then(e=>{Se.value=e});function Ot(e,h){const L=Qe();return Se.value?Se.value.codeToHtml(e,{lang:h,theme:L.value==="dark"?"vitesse-dark":"vitesse-light"}):e}export{Ot as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./ImageLoader.752b0c7a.js";import{g as c,j as s,n as p,x as u,z as m,A as _,y as h,B as l,o as d,E as v,v as g}from"./entry.ac864471.js";const G=c({__name:"svg",setup(f){var e,t;const a=((e=s.value)==null?void 0:e.height)||630,o=(((t=s.value)==null?void 0:t.width)||1200)/a,n=p(()=>u(`${l.value}/api/og-image-svg`,{path:m.value,timestamp:_.value,...h.value}));return(x,B)=>{const r=i;return d(),v(r,{src:g(n),"aspect-ratio":o,description:"[SVG] Generated in %sms using Satori."},null,8,["src"])}}});export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as o,F as a,o as r,c,v as s,G as i}from"./entry.ac864471.js";import{h as _}from"./shiki.d4e62362.js";const l=["innerHTML"],d=o({__name:"vnodes",async setup(p){let e,t;const n=([e,t]=a(()=>i()),e=await e,t(),e);return(f,h)=>(r(),c("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:s(_)(JSON.stringify(s(n),null,2),"json")},null,8,l))}});export{d as default};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html >
|
|
3
|
-
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.39e39f51.css">
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js">
|
|
7
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.407d76a3.js">
|
|
9
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.531c4147.js">
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
|
-
</script></head>
|
|
13
|
-
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
15
|
-
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html >
|
|
3
|
-
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.39e39f51.css">
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js">
|
|
7
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.407d76a3.js">
|
|
9
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.531c4147.js">
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
|
-
</script></head>
|
|
13
|
-
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
15
|
-
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html >
|
|
3
|
-
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.39e39f51.css">
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js">
|
|
7
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.407d76a3.js">
|
|
9
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.531c4147.js">
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
|
-
</script></head>
|
|
13
|
-
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
15
|
-
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html >
|
|
3
|
-
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.39e39f51.css">
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js">
|
|
7
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.407d76a3.js">
|
|
9
|
-
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.531c4147.js">
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.ac864471.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
|
-
</script></head>
|
|
13
|
-
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
15
|
-
</html>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { Buffer } from 'node:buffer';
|
|
3
|
-
import type { Browser } from 'playwright-core';
|
|
4
|
-
import type { ScreenshotOptions } from './types';
|
|
5
|
-
export declare function screenshot(browser: Browser, options: Partial<ScreenshotOptions> & Record<string, any>): Promise<Buffer>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { withBase } from "ufo";
|
|
2
|
-
export async function screenshot(browser, options) {
|
|
3
|
-
const page = await browser.newPage({
|
|
4
|
-
colorScheme: options.colorScheme
|
|
5
|
-
});
|
|
6
|
-
await page.setViewportSize({
|
|
7
|
-
width: options.width || 1200,
|
|
8
|
-
height: options.height || 630
|
|
9
|
-
});
|
|
10
|
-
const isHtml = options.html || options.path?.startsWith("html:");
|
|
11
|
-
if (isHtml) {
|
|
12
|
-
const html = options.html || options.path?.substring(5);
|
|
13
|
-
await page.evaluate((html2) => {
|
|
14
|
-
document.open("text/html");
|
|
15
|
-
document.write(html2);
|
|
16
|
-
document.close();
|
|
17
|
-
}, html);
|
|
18
|
-
await page.waitForLoadState("networkidle");
|
|
19
|
-
} else {
|
|
20
|
-
await page.goto(withBase(options.path, options.host), {
|
|
21
|
-
timeout: 1e4,
|
|
22
|
-
waitUntil: "networkidle"
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
const screenshotOptions = {
|
|
26
|
-
timeout: 1e4
|
|
27
|
-
};
|
|
28
|
-
if (options.delay)
|
|
29
|
-
await page.waitForTimeout(options.delay);
|
|
30
|
-
if (options.mask) {
|
|
31
|
-
await page.evaluate((mask) => {
|
|
32
|
-
for (const el of document.querySelectorAll(mask))
|
|
33
|
-
el.style.display = "none";
|
|
34
|
-
}, options.mask);
|
|
35
|
-
}
|
|
36
|
-
if (options.selector)
|
|
37
|
-
return await page.locator(options.selector).screenshot(screenshotOptions);
|
|
38
|
-
const screenshot2 = await page.screenshot(screenshotOptions);
|
|
39
|
-
await page.close();
|
|
40
|
-
return screenshot2;
|
|
41
|
-
}
|