mastra 1.34.1-alpha.4 → 1.34.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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-cli-mastra.md +13 -4
- package/dist/index.js +1 -1
- package/dist/studio/assets/{CodeDiff.es-SBXpVKyj.js → CodeDiff.es-D-3pK78A.js} +1 -1
- package/dist/studio/assets/{core-DQGqwISz.js → core-QQAS7ifM.js} +1 -1
- package/dist/studio/assets/{index-DyxTvlz7.js → index-C7U0QkuV.js} +1 -1
- package/dist/studio/assets/{index-DugGeUoA.js → index-mdIMRdQn.js} +2 -2
- package/dist/studio/assets/{main-CTnNchwc.js → main-CS8gBi_K.js} +5 -5
- package/dist/studio/index.html +1 -1
- package/package.json +7 -7
package/dist/docs/SKILL.md
CHANGED
|
@@ -2006,15 +2006,24 @@ Prints help message and exits.
|
|
|
2006
2006
|
|
|
2007
2007
|
## Telemetry
|
|
2008
2008
|
|
|
2009
|
-
By default, Mastra collects
|
|
2009
|
+
By default, Mastra collects telemetry about your project, including your OS, Mastra version, and Node.js version. Server events also include the project identifiers described below. You can read the [CLI telemetry source code](https://github.com/mastra-ai/mastra/blob/main/packages/cli/src/analytics/index.ts) to check what's collected by the CLI.
|
|
2010
2010
|
|
|
2011
|
-
When a server started with `mastra dev` or `mastra start` has observability metrics enabled, Mastra
|
|
2011
|
+
When a server started with `mastra dev` or `mastra start` has observability metrics enabled, Mastra sends aggregated model usage at startup: input and output token counts per provider and model, plus the command (`dev` or `start`) and `NODE_ENV`. No prompts, responses, or other message content is sent. You can read the [model usage telemetry source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/usage-telemetry.ts) to check what's collected.
|
|
2012
2012
|
|
|
2013
|
-
At server startup, Mastra
|
|
2013
|
+
At server startup, Mastra sends a project-surface snapshot with component counts, feature flags, and the coarse storage backend category, but no component names or component identifiers. You can read the [feature telemetry source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/feature-telemetry.ts) to check what's collected.
|
|
2014
|
+
|
|
2015
|
+
The server events `mastra_feature_usage` and `mastra_model_token_usage` include:
|
|
2016
|
+
|
|
2017
|
+
- `project_id`: The first 16 hexadecimal characters of the SHA-256 hash of `MASTRA_PROJECT_ROOT`, or the current working directory when unset. This identifier also keys the local model-usage cursor.
|
|
2018
|
+
- `project_id2`: An optional identifier for correlation across machines and deployments. If the trimmed `MASTRA_PROJECT_ID` value has UUID format, the value is sent **unhashed**, prefixed with `mp_`. Search for `mp_<platform-project-id>` to find that project's telemetry. Names, slugs, and other non-UUID values aren't sent as Platform identifiers.
|
|
2019
|
+
|
|
2020
|
+
When no UUID-shaped Platform ID is available, `project_id2` uses the first 16 hexadecimal characters of the SHA-256 hash of the normalized Git `origin` remote. Normalization keeps the lowercase host and repository path, excluding the scheme, credentials, port, query, fragment, trailing slashes, and `.git` suffix. Equivalent SSH and HTTPS remotes produce the same identifier. Remotes with the same host and path share an identifier even if different ports or SSH users refer to different repositories. Local filesystem remotes aren't used. Git discovery runs asynchronously and is cached for the process, including when unavailable. If neither source is available, `project_id2` is omitted.
|
|
2021
|
+
|
|
2022
|
+
These server events aren't anonymous: a Platform ID links them to that project, and a known repository URL can be normalized and hashed to match Git-derived events. Hashing the Git identity avoids sending the raw repository URL or credentials, but doesn't prevent correlation with public or otherwise known repositories.
|
|
2014
2023
|
|
|
2015
2024
|
The Studio UI also collects anonymous browser-side usage analytics, such as page views and UI interactions. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/playground/src/lib/analytics.tsx) to check what's collected. Setting `MASTRA_TELEMETRY_DISABLED` disables this too: the value is injected into the served page, so it applies to `mastra dev` and self-hosted builds alike.
|
|
2016
2025
|
|
|
2017
|
-
You can opt out of
|
|
2026
|
+
You can opt out of CLI, server, and Studio usage analytics by setting this environment variable before starting Mastra. When disabled, server telemetry doesn't look up the Git remote or send either project identifier:
|
|
2018
2027
|
|
|
2019
2028
|
```bash
|
|
2020
2029
|
MASTRA_TELEMETRY_DISABLED=1
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./apl-CORt7UWP.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./json-Cp-IABpG.js","./astro-HNnZUWAn.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-2xfisSek.js","./html-derivative-DlHx6ybY.js","./sql-CRqJ_cUM.js","./bsl-DlhNcFeZ.js","./sdbl-DVxCFoDh.js","./cairo-KRGpt6FW.js","./python-B6aJPvgy.js","./chapel-DTp_pixX.js","./c-BIGW1oBm.js","./cobol-nBiQ_Alo.js","./coffee-Ch7k5sss.js","./cpp-BMRokrvK.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./crystal-DGywbUpC.js","./shellscript-Yzrsuije.js","./edge-FbVlp4U3.js","./elixir-CkH2-t6x.js","./elm-DbKCFpqz.js","./erb-DXfck5VN.js","./ruby-C0TQ7zu5.js","./haml-D5jkg6IW.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./lua-BaeVxFsk.js","./yaml-Buea-lGh.js","./erlang-DsQrWhSR.js","./markdown-Cvjx9yec.js","./fortran-fixed-form-CkoXwp7k.js","./fortran-free-form-BxgE0vQu.js","./fsharp-CXgrBDvD.js","./gdresource-TyuKm33G.js","./gdshader-DkwncUOv.js","./gdscript-DqcFQ5yU.js","./git-commit-F4YmCXRG.js","./diff-D97Zzqfu.js","./git-rebase-r7XF79zn.js","./glimmer-js-ByusRIyA.js","./glimmer-ts-BfAWNZQY.js","./hack-BWmVpMyf.js","./handlebars-BpdQsYii.js","./http-jrhK8wxY.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./hxml-2-FPmUDs.js","./haxe-CfZj7gIn.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-5Bft2YPA.js","./r-Cf5RLm7j.js","./just-Cwhn7H3k.js","./perl-B9cMNwum.js","./latex-D5pSuvFb.js","./tex-D96PA37w.js","./liquid-C0sCDyMI.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-D1_yUvq7.js","./nextflow-C-mBbutL.js","./nextflow-groovy-vE_lwT2v.js","./nginx-BpAMiNFr.js","./nim-BIad80T-.js","./org-DM6o9KBp.js","./ini-BEwlwnbL.js","./make-CHLpvVh8.js","./php-Csjmro_R.js","./vb-Cu-pLBUe.js","./clojure-P80f7IUj.js","./objective-c-DXmwc3jG.js","./docker-BcOcwvcX.js","./go-C27-OAKa.js","./groovy-gcz8RCvz.js","./raku-DXvB9xmW.js","./rust-B1yitclQ.js","./scala-CqE71os6.js","./csharp-DSvCPggb.js","./dart-bE4Kk8sk.js","./ocaml-C0hk2d4L.js","./zig-VOosw3JB.js","./xsl-CtQFsRM5.js","./pug-DKIMFp6K.js","./qml-3beO22l8.js","./razor-BjBPvh-w.js","./rst-bs7f0vWN.js","./cmake-D1j8_8rp.js","./sas-DEy46yEz.js","./shaderlab-Dg9Lc6iA.js","./hlsl-D3lLCCz7.js","./shellsession-BADoaaVG.js","./soy-8wufbnw4.js","./sparql-rVzFXLq3.js","./turtle-BsS91CYL.js","./stata-DI20mbqo.js","./surrealql-Cjom0U5J.js","./svelte-Cy7k_4gC.js","./templ-DhtptRzy.js","./ts-tags-D351s5mN.js","./twig-27uCiNez.js","./typst-BUadGCkm.js","./bat-CickPsom.js","./bibtex-CHM0blh-.js","./jsonc-Des-eS-w.js","./log-2UxHyX5q.js","./powershell-BmBUJMz7.js","./swift-C2oV4EkX.js","./verilog-nZwndyjY.js","./system-verilog-0hqHdDBg.js","./vue-BqiEGhQt.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as q,j as U,u as Xs,d as Js}from"./main-CTnNchwc.js";import{_ as p}from"./preload-helper-PPVm8Dsz.js";import{I as Yi,E as ki,R as Qs,T as Zs,t as Re,F as ee}from"./index-DyxTvlz7.js";import{r as co,C as Ue,h as Dt,g as Ys,f as fo}from"./index-2BQyy0xI.js";function Pt(e){const t=q.useRef(e);return q.useInsertionEffect(()=>{t.current=e}),q.useCallback((...i)=>t.current(...i),[])}const ea=q.createContext(void 0);function ta(){return q.useContext(ea)}const ia={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},na={display:"contents"};function Bn(){return null}const Tn="diffs-container";(()=>{try{return!1}catch{return!1}})();const ra=/(?=^From [a-f0-9]+ .+$)/m,ho=/(?=^diff --git)/gm,oa=new RegExp("(?<=\\n)"),sa=/^(---|\+\+\+)\s+([^\t\r\n]+)/,aa=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,po="header-prefix",mo="header-filename-suffix",go="header-metadata",In="header-custom",_e={dark:"pierre-dark",light:"pierre-light"},la="data-theme-css",da="data-unsafe-css",ua="data-diffs-scrollbar-measure",vo="--diffs-scrollbar-gutter-measured",ca=1e5,fa={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},ha=Object.freeze({fromStart:0,fromEnd:0}),Gn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},pa={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function Je(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ma({hunkIndex:e,lineIndex:t,conflictIndex:i}){return`merge-conflict-action-${e}-${t}-${i}`}function ae(e,t){return e-(t===0?0:1)}function ne(e,t){return ae(e,t)+t}function ga(e,t){const i=t.hunks[e.hunkIndex];if(i!=null)return{hunkIndex:e.hunkIndex,lineIndex:va(i,e.startContentIndex)}}function va(e,t){let i=e.unifiedLineStart;for(let n=0;n<t;n++){const r=e.hunkContent[n];i+=r.type==="context"?r.lines:r.deletions+r.additions}return i}function _o({fileDiff:e,actions:t,renderCustomHeader:i,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:o,renderAnnotation:s,renderGutterUtility:l,renderMergeConflictUtility:a,lineAnnotations:d,getHoveredLine:u,getInstance:c,getAnnotationSlotName:f=Je}){const h=i?.(e),m=n?.(e),g=r?.(e),y=o?.(e);return U.jsxs(U.Fragment,{children:[h!=null?U.jsx("div",{slot:In,children:h}):U.jsxs(U.Fragment,{children:[m!=null&&U.jsx("div",{slot:"header-prefix",children:m}),g!=null&&U.jsx("div",{slot:"header-filename-suffix",children:g}),y!=null&&U.jsx("div",{slot:"header-metadata",children:y})]}),s!=null&&d?.map((v,_)=>U.jsx("div",{slot:f(v),children:s(v)},_)),t!=null&&a!=null&&c!=null&&t.map(v=>{if(v==null)return;const _=_a(v,e);return U.jsx("div",{slot:_,style:na,children:a(v,c)},_)}),l!=null&&U.jsx("div",{slot:"gutter-utility-slot",style:ia,children:l(u)})]})}function _a(e,t){const i=ga(e,t);return i!=null?ma({hunkIndex:i.hunkIndex,lineIndex:i.lineIndex,conflictIndex:e.conflictIndex}):void 0}const wt=new Map,xi=new Map,ba=new Map,en=new Set;function tn(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!en.has(t))return!1;return!0}function Dn(e=_e){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const nn=new Set;function kt(e){const t=[],i=new Set;for(const c of ya(e.themes)){const f=bo(c)?c.getThemes():[c];for(const h of f){if(i.has(h.name))throw new Error(`Theme collection already contains theme "${h.name}"`);i.add(h.name),t.push(h)}}const n=Object.freeze([...t]),r=Object.freeze(n.filter(c=>c.colorScheme==="light")),o=Object.freeze(n.filter(c=>c.colorScheme==="dark")),s=new Map(n.map(c=>[c.name,c])),l=Object.freeze(n.map(c=>c.name)),a=Object.freeze(r.map(c=>c.name)),d=Object.freeze(o.map(c=>c.name));function u(c){if(c==null)return n;const{colorScheme:f,collection:h}=c;return h==null?f==="light"?r:f==="dark"?o:n:n.filter(m=>m.collection!==h?!1:f==null||m.colorScheme===f)}return{getTheme(c){return s.get(c)},getThemes(c){return u(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?a:c?.colorScheme==="dark"?d:l:u(c).map(f=>f.name)},hasTheme(c){return s.has(c)},orderBy(c){return kt({themes:n.map((f,h)=>({descriptor:f,index:h})).sort((f,h)=>{const m=c(f.descriptor,h.descriptor);return m!==0?m:f.index-h.index}).map(f=>f.descriptor)})},pick(c){const f=[],h=new Set;for(const m of c){if(h.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);h.add(m);const g=s.get(m);if(g==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(g)}return kt({themes:f})},registerInto(c){for(const f of n)c.registerThemeIfAbsent(f.name,f.load)}}}function ya(e){return Ea(e)?[e]:e}function Ea(e){return bo(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function bo(e){return typeof e.getThemes=="function"}function yo(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var La=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},wa=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function ka(){const e=new Map,t=new Map,i=new Map;let n=0;function r(v,_){if(e.has(v))throw new La(v);e.set(v,_)}function o(v,_){return e.has(v)?!1:(e.set(v,_),!0)}function s(v){return e.has(v)}function l(v){const _=t.get(v);if(_!==void 0)return Promise.resolve(_);const b=i.get(v);if(b!==void 0)return b;const L=e.get(v);if(L===void 0)return Promise.reject(new Ca(v));const E=n,S=L().then(C=>{const x=yo(C);return E===n&&t.set(v,x),i.get(v)===S&&i.delete(v),x}).catch(C=>{throw i.get(v)===S&&i.delete(v),C});return i.set(v,S),S}function a(v){return Promise.all(v.map(_=>l(_)))}function d(v,_){t.set(v,_)}function u(v){for(const[_,b]of v)d(_,b)}function c(v){return t.get(v)}function f(v){const _=[];for(const b of v){const L=t.get(b);if(L===void 0)throw new wa(b);_.push(L)}return _}function h(v){return t.has(v)}function m(v){for(const _ of v)if(!t.has(_))return!1;return!0}function g(v){const _=t.get(v);return _!==void 0?_:l(v)}function y(){n++,t.clear(),i.clear()}return{clearResolvedThemes:y,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:f,hasRegisteredTheme:s,hasResolvedTheme:h,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:u}}const ze=ka();function jn(e,t){e=Array.isArray(e)?e:[e];for(let i of e){let n;if(typeof i=="string"){if(n=ze.getResolvedTheme(i),n==null)throw new Error(`loadResolvedThemes: ${i} is not resolved, you must resolve it before calling loadResolvedThemes`)}else n=i,i=i.name,ze.getResolvedTheme(i)==null&&ze.seedResolvedTheme(i,n);nn.has(i)||(nn.add(i),t.loadThemeSync(n))}}function Wn(e,t){e=Array.isArray(e)?e:[e];for(const i of e){if(en.has(i.name))continue;let n=wt.get(i.name);n==null&&(n=i,wt.set(i.name,n));const r=n.data.find(o=>o.name===n.name||o.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);t.loadLanguageSync(n.data);try{t.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}en.add(n.name)}}function Eo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var rn=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Aa=Object.getOwnPropertyNames,Ra=Object.prototype.hasOwnProperty,Ta=(e,t)=>{let i={};for(var n in e)rn(i,n,{get:e[n],enumerable:!0});return rn(i,Symbol.toStringTag,{value:"Module"}),i},Ia=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Aa(t),o=0,s=r.length,l;o<s;o++)l=r[o],!Ra.call(e,l)&&l!==i&&rn(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(n=xa(t,l))||n.enumerable});return e},Da=(e,t,i)=>(Ia(e,t,"default"),i);const So=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./actionscript-3-B3316cI-.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./ahk-CsyLZFj1.js"),[],import.meta.url))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./ahk2-8Zs4aa1G.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./apex-DhZFqWV2.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>p(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./asciidoc-CSVQ5wI8.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./bat-CickPsom.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./bird2-Bx8U0n9b.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>p(()=>import("./c3-Dp5svz6Z.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./clarity-Dn5IMItf.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./coq-C7JzOVbR.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./css-CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>p(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./dart-bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./emacs-lisp-C_m_b--Z.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>p(()=>import("./erb-DXfck5VN.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>p(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>p(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./gdscript-DqcFQ5yU.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22]),import.meta.url))},{id:"gn",name:"GN",import:(()=>p(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>p(()=>import("./go-C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./haxe-CfZj7gIn.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]),import.meta.url))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>import("./just-Cwhn7H3k.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>p(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./kusto-wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./llvm-BZoOZj88.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>p(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./luau-BnpPk5vE.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./mermaid-CQcHuHx7.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./mojo-DJz3ZmWd.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./moonbit-CHtswR0a.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>p(()=>import("./move-el3G9tDJ.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./nextflow-groovy-vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./nsis-BlV79W_Q.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./nushell-D3jzshHO.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./odin-BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"org",name:"Org Markup",import:(()=>p(()=>import("./org-DM6o9KBp.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]),import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>p(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./powershell-BmBUJMz7.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./prisma-Vru482bI.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>p(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./r-Cf5RLm7j.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89]),import.meta.url))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./rbs-CpoqiR4B.js"),[],import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>p(()=>import("./ron-D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>import("./rst-bs7f0vWN.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>p(()=>import("./ruby-C0TQ7zu5.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>p(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./scala-CqE71os6.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29]),import.meta.url))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./smalltalk-BOQMe2GC.js"),[],import.meta.url))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./smithy-cds9vsN8.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./solidity-DijEV5ha.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./system-verilog-0hqHdDBg.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>p(()=>import("./twig-27uCiNez.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./typespec-CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>import("./typst-BUadGCkm.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]),import.meta.url))},{id:"v",name:"V",import:(()=>p(()=>import("./v-BGw2Nkan.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./vb-Cu-pLBUe.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./verilog-nZwndyjY.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Pa=Object.fromEntries(So.map(e=>[e.id,e.import])),Oa=Object.fromEntries(So.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),on={...Pa,...Oa},Ma=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./andromeeda-C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./ayu-dark-DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./ayu-light-BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./ayu-mirage-32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./github-dark-vbPMK5nw.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./github-light-CBO01_j6.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./horizon-BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./horizon-bright-CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./houston-DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./kanagawa-lotus-C3DzagqV.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./kanagawa-wave-DFGoQZhC.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./monokai-BRVnQi9A.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./night-owl-light-CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./one-light-C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./red-hvxz__6c.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./rose-pine-5qJOZa0Y.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./rose-pine-moon-C9pEdX9L.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./solarized-dark-CpvCGNkr.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./solarized-light-Dlz6yCKv.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./vesper-DRje8inN.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url))}],Ha=Object.fromEntries(Ma.map(e=>[e.id,e.import]));var Pn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Na(){return 2147483648}function Fa(){return typeof performance<"u"?performance.now():Date.now()}const Va=(e,t)=>e+(t-e%t)%t;async function $a(e){let t,i;const n={};function r(h){i=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function o(h,m,g){n.HEAPU8.copyWithin(h,m,m+g)}function s(h){try{return t.grow(h-i.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(h){const m=n.HEAPU8.length;h=h>>>0;const g=Na();if(h>g)return!1;for(let y=1;y<=4;y*=2){let v=m*(1+.2/y);v=Math.min(v,h+100663296);const _=Math.min(g,Va(Math.max(h,v),65536));if(s(_))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(h,m,g=1024){const y=m+g;let v=m;for(;h[v]&&!(v>=y);)++v;if(v-m>16&&h.buffer&&a)return a.decode(h.subarray(m,v));let _="";for(;m<v;){let b=h[m++];if(!(b&128)){_+=String.fromCharCode(b);continue}const L=h[m++]&63;if((b&224)===192){_+=String.fromCharCode((b&31)<<6|L);continue}const E=h[m++]&63;if((b&240)===224?b=(b&15)<<12|L<<6|E:b=(b&7)<<18|L<<12|E<<6|h[m++]&63,b<65536)_+=String.fromCharCode(b);else{const S=b-65536;_+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return _}function u(h,m){return h?d(n.HEAPU8,h,m):""}const c={emscripten_get_now:Fa,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const m=await e({env:c,wasi_snapshot_preview1:c});t=m.memory,r(t.buffer),Object.assign(n,m),n.UTF8ToString=u}return await f(),n}var Ua=Object.defineProperty,za=(e,t,i)=>t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,X=(e,t,i)=>za(e,typeof t!="symbol"?t+"":t,i);let Q=null;function Ba(e){throw new Pn(e.UTF8ToString(e.getLastOnigError()))}class ci{constructor(t){X(this,"utf16Length"),X(this,"utf8Length"),X(this,"utf16Value"),X(this,"utf8Value"),X(this,"utf16OffsetToUtf8"),X(this,"utf8OffsetToUtf16");const i=t.length,n=ci._utf8ByteLength(t),r=n!==i,o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const l=new Uint8Array(n);let a=0;for(let d=0;d<i;d++){const u=t.charCodeAt(d);let c=u,f=!1;if(u>=55296&&u<=56319&&d+1<i){const h=t.charCodeAt(d+1);h>=56320&&h<=57343&&(c=(u-55296<<10)+65536|h-56320,f=!0)}r&&(o[d]=a,f&&(o[d+1]=a),c<=127?s[a+0]=d:c<=2047?(s[a+0]=d,s[a+1]=d):c<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),c<=127?l[a++]=c:c<=2047?(l[a++]=192|(c&1984)>>>6,l[a++]=128|(c&63)>>>0):c<=65535?(l[a++]=224|(c&61440)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0):(l[a++]=240|(c&1835008)>>>18,l[a++]=128|(c&258048)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0),f&&d++}this.utf16Length=i,this.utf8Length=n,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let i=0;for(let n=0,r=t.length;n<r;n++){const o=t.charCodeAt(n);let s=o,l=!1;if(o>=55296&&o<=56319&&n+1<r){const a=t.charCodeAt(n+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?i+=1:s<=2047?i+=2:s<=65535?i+=3:i+=4,l&&n++}return i}createString(t){const i=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,i),i}}const fi=class ge{constructor(t){if(X(this,"id",++ge.LAST_ID),X(this,"_onigBinding"),X(this,"content"),X(this,"utf16Length"),X(this,"utf8Length"),X(this,"utf16OffsetToUtf8"),X(this,"utf8OffsetToUtf16"),X(this,"ptr"),!Q)throw new Pn("Must invoke loadWasm first.");this._onigBinding=Q,this.content=t;const i=new ci(t);this.utf16Length=i.utf16Length,this.utf8Length=i.utf8Length,this.utf16OffsetToUtf8=i.utf16OffsetToUtf8,this.utf8OffsetToUtf16=i.utf8OffsetToUtf16,this.utf8Length<1e4&&!ge._sharedPtrInUse?(ge._sharedPtr||(ge._sharedPtr=Q.omalloc(1e4)),ge._sharedPtrInUse=!0,Q.HEAPU8.set(i.utf8Value,ge._sharedPtr),this.ptr=ge._sharedPtr):this.ptr=i.createString(Q)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ge._sharedPtr?ge._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};X(fi,"LAST_ID",0);X(fi,"_sharedPtr",0);X(fi,"_sharedPtrInUse",!1);let Lo=fi;class Ga{constructor(t){if(X(this,"_onigBinding"),X(this,"_ptr"),!Q)throw new Pn("Must invoke loadWasm first.");const i=[],n=[];for(let l=0,a=t.length;l<a;l++){const d=new ci(t[l]);i[l]=d.createString(Q),n[l]=d.utf8Length}const r=Q.omalloc(4*t.length);Q.HEAPU32.set(i,r/4);const o=Q.omalloc(4*t.length);Q.HEAPU32.set(n,o/4);const s=Q.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)Q.ofree(i[l]);Q.ofree(o),Q.ofree(r),s===0&&Ba(Q),this._onigBinding=Q,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,i,n){let r=0;if(typeof n=="number"&&(r=n),typeof t=="string"){t=new Lo(t);const o=this._findNextMatchSync(t,i,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,i,!1,r)}_findNextMatchSync(t,i,n,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(i),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],u=l[a++],c=[];for(let f=0;f<u;f++){const h=t.convertUtf8OffsetToUtf16(l[a++]),m=t.convertUtf8OffsetToUtf16(l[a++]);c[f]={start:h,end:m,length:m-h}}return{index:d,captureIndices:c}}}function ja(e){return typeof e.instantiator=="function"}function Wa(e){return typeof e.default=="function"}function qa(e){return typeof e.data<"u"}function Ka(e){return typeof Response<"u"&&e instanceof Response}function Xa(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ot;function Co(e){if(Ot)return Ot;async function t(){Q=await $a(async i=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(i)),typeof n=="function"&&(n=await n(i)),ja(n)?n=await n.instantiator(i):Wa(n)?n=await n.default(i):(qa(n)&&(n=n.data),Ka(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Ja(n)(i):n=await Qa(n)(i):Xa(n)?n=await Ai(n)(i):n instanceof WebAssembly.Module?n=await Ai(n)(i):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Ai(n.default)(i))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Ot=t(),Ot}function Ai(e){return t=>WebAssembly.instantiate(e,t)}function Ja(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Qa(e){return async t=>{const i=await e.arrayBuffer();return WebAssembly.instantiate(i,t)}}let wo;function Za(e){wo=e}function Ya(){return wo}async function ko(e){return e&&await Co(e),{createScanner(t){return new Ga(t.map(i=>typeof i=="string"?i:i.source))},createString(t){return new Lo(t)}}}const el=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:ko,getDefaultWasmLoader:Ya,loadWasm:Co,setDefaultWasmLoader:Za},Symbol.toStringTag,{value:"Module"}));var xo=Ta({});Da(xo,el);var z=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ei(e,t){const i=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[r,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?i[r]=o:r===n&&Object.assign(i,o);return i}function Be(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function tl(e){return Array.isArray(e)?e:[e]}async function Ao(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function hi(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Ro(e){return e==="ansi"||hi(e)}function pi(e){return e==="none"}function To(e){return pi(e)}const il=/(\r?\n)/g;function mi(e,t=!1){if(e.length===0)return[["",0]];const i=e.split(il);let n=0;const r=[];for(let o=0;o<i.length;o+=2){const s=t?i[o]+(i[o+1]||""):i[o];r.push([s,n]),n+=i[o].length,n+=i[o+1]?.length||0}return r}const qn={light:"#333333",dark:"#bbbbbb"},Kn={light:"#fffffe",dark:"#1e1e1e"},Xn="__shiki_resolved";function gi(e){if(e?.[Xn])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:i,fg:n}=t;if(!i||!n){const l=t.settings?t.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(n=l.settings.foreground),l?.settings?.background&&(i=l.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!i&&t?.colors?.["editor.background"]&&(i=t.colors["editor.background"]),n||(n=t.type==="light"?qn.light:qn.dark),i||(i=t.type==="light"?Kn.light:Kn.dark),t.fg=n,t.bg=i}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);r+=1;const a=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}t.settings=t.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!d)return l;const u={...l,settings:{...l.settings}};if(a){const c=s(l.settings.foreground);t.colorReplacements[c]=l.settings.foreground,u.settings.foreground=c}if(d){const c=s(l.settings.background);t.colorReplacements[c]=l.settings.background,u.settings.background=c}return u});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const a=s(t.colors[l]);t.colorReplacements[a]=t.colors[l],t.colors[l]=a}return Object.defineProperty(t,Xn,{enumerable:!1,writable:!1,value:!0}),t}async function Io(e){return[...new Set((await Promise.all(e.filter(t=>!Ro(t)).map(async t=>await Ao(t).then(i=>Array.isArray(i)?i:[i])))).flat())]}async function Do(e){return(await Promise.all(e.map(async t=>To(t)?null:gi(await Ao(t))))).filter(t=>!!t)}function Po(e,t){if(!t)return e;if(t[e]){const i=new Set([e]);for(;t[e];){if(e=t[e],i.has(e))throw new z(`Circular alias \`${[...i].join(" -> ")} -> ${e}\``);i.add(e)}}return e}var nl=class extends Qs{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,i,n={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=n,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=gi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Zs.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Po(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=[...this._langGraph.entries()],i=t.filter(([n,r])=>!r);if(i.length){const n=t.filter(([r,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(s=>i.map(([l])=>l).includes(s)):!1).filter(r=>!i.includes(r));throw new z(`Missing languages ${i.map(([r])=>`\`${r}\``).join(", ")}, required by ${n.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[n,r]of t)this._resolver.addLanguage(r);for(const[n,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const i of t)this._langGraph.set(i,this._langMap.get(i))}},rl=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let n=1;n<=t.length;n++){const r=t.slice(0,n).join(".");i=[...i,...this._injections.get(r)||[]]}return i}};let gt=0;function ol(e){gt+=1,e.warnings!==!1&>>=10&>%10===0&&console.warn(`[Shiki] ${gt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new z("`engine` option is required for synchronous mode");const i=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(gi),r=new nl(new rl(e.engine,i),n,i,e.langAlias);let o;function s(_){return Po(_,e.langAlias)}function l(_){y();const b=r.getGrammar(typeof _=="string"?_:_.name);if(!b)throw new z(`Language \`${_}\` not found, you may need to load it first`);return b}function a(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const b=r.getTheme(_);if(!b)throw new z(`Theme \`${_}\` not found, you may need to load it first`);return b}function d(_){y();const b=a(_);return o!==_&&(r.setTheme(b),o=_),{theme:b,colorMap:r.getColorMap()}}function u(){return y(),r.getLoadedThemes()}function c(){return y(),r.getLoadedLanguages()}function f(..._){y(),r.loadLanguages(_.flat(1))}async function h(..._){return f(await Io(_))}function m(..._){y();for(const b of _.flat(1))r.loadTheme(b)}async function g(..._){return y(),m(await Do(_))}function y(){if(t)throw new z("Shiki instance has been disposed")}function v(){t||(t=!0,r.dispose(),gt-=1)}return{setTheme:d,getTheme:a,getLanguage:l,getLoadedThemes:u,getLoadedLanguages:c,resolveLangAlias:s,loadLanguage:h,loadLanguageSync:f,loadTheme:g,loadThemeSync:m,dispose:v,[Symbol.dispose]:v}}async function sl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,i,n]=await Promise.all([Do(e.themes||[]),Io(e.langs||[]),e.engine]);return ol({...e,themes:t,langs:i,engine:n})}const Oo=new WeakMap;function vi(e,t){Oo.set(e,t)}function xt(e){return Oo.get(e)}var _i=class Mo{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,i){return new Mo(Object.fromEntries(tl(i).map(n=>[n,Yi])),t)}constructor(...t){if(t.length===2){const[i,n]=t;this.lang=n,this._stacks=i}else{const[i,n,r]=t;this.lang=n,this._stacks={[r]:i}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return al(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function al(e){const t=[],i=new Set;function n(r){if(i.has(r))return;i.add(r);const o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&n(r.parent)}return n(e),t}function ll(e,t){if(!(e instanceof _i))throw new z("Invalid grammar state");return e.getInternalStack(t)}const dl=/,/,ul=/ /;function Ho(e,t,i={}){const{theme:n=e.getLoadedThemes()[0]}=i;if(hi(e.resolveLangAlias(i.lang||"text"))||pi(n))return mi(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=e.setTheme(n),s=e.getLanguage(i.lang||"text");if(i.grammarState){if(i.grammarState.lang!==s.name)throw new z(`Grammar state language "${i.grammarState.lang}" does not match highlight language "${s.name}"`);if(!i.grammarState.themes.includes(r.name))throw new z(`Grammar state themes "${i.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return fl(t,s,r,o,i)}function cl(...e){if(e.length===2)return xt(e[1]);const[t,i,n={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=n;if(hi(r)||pi(o))throw new z("Plain language does not have grammar state");if(r==="ansi")throw new z("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(o),a=t.getLanguage(r);return new _i(On(i,a,s,l,n).stateStack,a.name,s.name)}function fl(e,t,i,n,r){const o=On(e,t,i,n,r),s=new _i(o.stateStack,t.name,i.name);return vi(o.tokens,s),o.tokens}function On(e,t,i,n,r){const o=ei(i,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500,includeExplanation:a=!1}=r,d=mi(e);let u=r.grammarState?ll(r.grammarState,i.name)??Yi:r.grammarContextCode!=null?On(r.grammarContextCode,t,i,n,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Yi,c=[];const f=[];for(let h=0,m=d.length;h<m;h++){const[g,y]=d[h];if(g===""){c=[],f.push([]);continue}if(s>0&&g.length>=s){c=[],f.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,_,b;a&&a!=="tokenType"&&(v=t.tokenizeLine(g,u,l),_=v.tokens,b=0);const L=t.tokenizeLine2(g,u,l),E=L.tokens.length/2;for(let S=0;S<E;S++){const C=L.tokens[2*S],x=S+1<E?L.tokens[2*S+2]:g.length;if(C===x)continue;const w=L.tokens[2*S+1],A=Be(n[ki.getForeground(w)],o),I=ki.getFontStyle(w),k={content:g.substring(C,x),offset:y+C,color:A,fontStyle:I};if(a==="tokenType")k.type=ki.getTokenType(w);else if(a){const R=[];if(a!=="scopeName")for(const F of i.settings){let T;switch(typeof F.scope){case"string":T=F.scope.split(dl).map(M=>M.trim());break;case"object":T=F.scope;break;default:continue}R.push({settings:F,selectors:T.map(M=>M.split(ul))})}k.explanation=[];let D=0;for(;C+D<x;){const F=_[b],T=g.substring(F.startIndex,F.endIndex);D+=T.length,k.explanation.push({content:T,scopes:a==="scopeName"?hl(F.scopes):pl(R,F.scopes)}),b+=1}}c.push(k)}f.push(c),c=[],u=L.ruleStack}return{tokens:f,stateStack:u}}function hl(e){return e.map(t=>({scopeName:t}))}function pl(e,t){const i=[];for(let n=0,r=t.length;n<r;n++){const o=t[n];i[n]={scopeName:o,themeMatches:gl(e,o,t.slice(0,n))}}return i}function Jn(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ml(e,t,i){if(!Jn(e.at(-1),t))return!1;let n=e.length-2,r=i.length-1;for(;n>=0&&r>=0;)Jn(e[n],i[r])&&(n-=1),r-=1;return n===-1}function gl(e,t,i){const n=[];for(const{selectors:r,settings:o}of e)for(const s of r)if(ml(s,t,i)){n.push(o);break}return n}function No(e,t,i,n=Ho){const r=Object.entries(i.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const u=n(e,t,{...i,theme:d.theme});return{tokens:u,state:xt(u),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),s=vl(...o.map(d=>d.tokens)),l=s[0].map((d,u)=>d.map((c,f)=>{const h={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in i&&i.includeExplanation&&(h.explanation=c.explanation),s.forEach((m,g)=>{const{content:y,explanation:v,offset:_,...b}=m[u][f];h.variants[r[g].color]=b}),h})),a=o[0].state?new _i(Object.fromEntries(o.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),o[0].state.lang):void 0;return a&&vi(l,a),l}function vl(...e){const t=e.map(()=>[]),i=e.length;for(let n=0;n<e[0].length;n++){const r=e.map(a=>a[n]),o=t.map(()=>[]);t.forEach((a,d)=>a.push(o[d]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(d=>d.content.length));for(let d=0;d<i;d++){const u=l[d];u.content.length===a?(o[d].push(u),s[d]+=1,l[d]=r[d][s[d]]):(o[d].push({...u,content:u.content.slice(0,a)}),l[d]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return t}const Qn=/\s+/g;function Fo(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(Qn)),Array.isArray(e.properties.class)||(e.properties.class=[]);const i=Array.isArray(t)?t:t.split(Qn);for(const n of i)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function _l(e){const t=mi(e,!0).map(([r])=>r);function i(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let o=r,s=0;for(const l of t){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function n(r,o){let s=0;for(let l=0;l<r;l++)s+=t[l].length;return s+=o,s}return{lines:t,indexToPos:i,posToIndex:n}}const bl=["color","background-color"];function yl(e,t){let i=0;const n=[];for(const r of t)r>i&&n.push({...e,content:e.content.slice(i,r),offset:e.offset+i}),i=r;return i<e.content.length&&n.push({...e,content:e.content.slice(i),offset:e.offset+i}),n}function El(e,t){let i=0,n=e.length;for(;i<n;){const r=i+(n-i>>1);e[r]<=t?i=r+1:n=r}return i}function Sl(e,t){const i=[...t instanceof Set?t:new Set(t)].sort((n,r)=>n-r);return i.length?e.map(n=>n.flatMap(r=>{const o=r.offset+r.content.length,s=El(i,r.offset);let l=s;for(;l<i.length&&i[l]<o;)l++;if(s===l)return r;const a=i.slice(s,l);for(let d=0;d<a.length;d++)a[d]-=r.offset;return yl(r,a)})):e}function Ll(e,t,i,n,r="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(u=>ti(e.variants[u])),l=new Set(s.flatMap(u=>Object.keys(u))),a={},d=(u,c)=>{const f=c==="color"?"":c==="background-color"?"-bg":`-${c}`;return i+t[u]+(c==="color"?"":f)};return s.forEach((u,c)=>{for(const f of l){const h=u[f]||"inherit";if(c===0&&n&&bl.includes(f))if(n==="light-dark()"&&s.length>1){const m=t.findIndex(_=>_==="light"),g=t.findIndex(_=>_==="dark");if(m===-1||g===-1)throw new z('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=s[m][f]||"inherit",v=s[g][f]||"inherit";a[f]=`light-dark(${y}, ${v})`,r==="css-vars"&&(a[d(c,f)]=h)}else a[f]=h;else r==="css-vars"&&(a[d(c,f)]=h)}}),o.htmlStyle=a,o}function ti(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ee.Italic&&(t["font-style"]="italic"),e.fontStyle&ee.Bold&&(t["font-weight"]="bold");const i=[];e.fontStyle&ee.Underline&&i.push("underline"),e.fontStyle&ee.Strikethrough&&i.push("line-through"),i.length&&(t["text-decoration"]=i.join(" "))}return t}function sn(e){return typeof e=="string"?e:Object.entries(e).map(([t,i])=>`${t}:${i}`).join(";")}function Cl(){const e=new WeakMap;function t(i){if(!e.has(i.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>i.source.length)throw new z(`Invalid decoration offset: ${s}. Code length: ${i.source.length}`);return{...r.indexToPos(s),offset:s}}else{const l=r.lines[s.line];if(l===void 0)throw new z(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${r.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new z(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:r.posToIndex(s.line,a)}}};const r=_l(i.source),o=(i.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));wl(o),e.set(i.meta,{decorations:o,converter:r,source:i.source})}return e.get(i.meta)}return{name:"shiki:decorations",tokens(i){if(this.options.decorations?.length)return Sl(i,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(i){if(!this.options.decorations?.length)return;const n=t(this),r=[...i.children].filter(u=>u.type==="element"&&u.tagName==="span");if(r.length!==n.converter.lines.length)throw new z(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(u,c,f,h){const m=r[u];let g="",y=-1,v=-1;if(c===0&&(y=0),f===0&&(v=0),f===Number.POSITIVE_INFINITY&&(v=m.children.length),y===-1||v===-1)for(let b=0;b<m.children.length;b++)g+=Vo(m.children[b]),y===-1&&g.length===c&&(y=b+1),v===-1&&g.length===f&&(v=b+1);if(y===-1)throw new z(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(v===-1)throw new z(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const _=m.children.slice(y,v);if(!h.alwaysWrap&&_.length===m.children.length)l(m,h,"line");else if(!h.alwaysWrap&&_.length===1&&_[0].type==="element")l(_[0],h,"token");else{const b={type:"element",tagName:"span",properties:{},children:_};l(b,h,"wrapper"),m.children.splice(y,_.length,b)}}function s(u,c){r[u]=l(r[u],c,"line")}function l(u,c,f){const h=c.properties||{},m=c.transform||(g=>g);return u.tagName=c.tagName||"span",u.properties={...u.properties,...h,class:u.properties.class},c.properties?.class&&Fo(u,c.properties.class),u=m(u,f)||u,u}const a=[],d=n.decorations.sort((u,c)=>c.start.offset-u.start.offset||u.end.offset-c.end.offset);for(const u of d){const{start:c,end:f}=u;if(c.line===f.line)o(c.line,c.character,f.character,u);else if(c.line<f.line){o(c.line,c.character,Number.POSITIVE_INFINITY,u);for(let h=c.line+1;h<f.line;h++)a.unshift(()=>s(h,u));o(f.line,0,f.character,u)}}a.forEach(u=>u())}}}function wl(e){for(let t=0;t<e.length;t++){const i=e[t];if(i.start.offset>i.end.offset)throw new z(`Invalid decoration range: ${JSON.stringify(i.start)} - ${JSON.stringify(i.end)}`);for(let n=t+1;n<e.length;n++){const r=e[n],o=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,s=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset,l=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&i.start.offset===i.end.offset||s&&r.start.offset===r.end.offset)continue;throw new z(`Decorations ${JSON.stringify(i.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function Vo(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Vo).join(""):""}const kl=[Cl()];function ii(e){const t=xl(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...kl]}function xl(e){const t=[],i=[],n=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":i.push(r);break;default:n.push(r)}return{pre:t,post:i,normal:n}}var Qe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ri={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Al(e,t){const i=e.indexOf("\x1B",t);if(i!==-1&&e[i+1]==="["){const n=e.indexOf("m",i);if(n!==-1)return{sequence:e.substring(i+2,n).split(";"),startPosition:i,position:n+1}}return{position:e.length}}function Zn(e){const t=e.shift();if(t==="2"){const i=e.splice(0,3).map(n=>Number.parseInt(n));return i.length!==3||i.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:i}}else if(t==="5"){const i=e.shift();if(i)return{type:"table",index:Number(i)}}}function Rl(e){const t=[];for(;e.length>0;){const i=e.shift();if(!i)continue;const n=Number.parseInt(i);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Ri[n]&&t.push({type:"setDecoration",value:Ri[n]});else if(n<=29){const r=Ri[n-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Qe[n-30]}});else if(n===38){const r=Zn(e);r&&t.push({type:"setForegroundColor",value:r})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Qe[n-40]}});else if(n===48){const r=Zn(e);r&&t.push({type:"setBackgroundColor",value:r})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Qe[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Qe[n-100+8]}})}return t}function Tl(){let e=null,t=null,i=new Set;return{parse(n){const r=[];let o=0;do{const s=Al(n,o),l=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(l.length>0&&r.push({value:l,foreground:e,background:t,decorations:new Set(i)}),s.sequence){const a=Rl(s.sequence);for(const d of a)d.type==="resetAll"?(e=null,t=null,i.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&i.delete(d.value);for(const d of a)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&i.add(d.value)}o=s.position}while(o<n.length);return r}}}var Il={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 Dl(e=Il){function t(l){return e[l]}function i(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let n;function r(){if(n)return n;n=[];for(let d=0;d<Qe.length;d++)n.push(t(Qe[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let u=0;u<6;u++)for(let c=0;c<6;c++)n.push(i([l[d],l[u],l[c]]));let a=8;for(let d=0;d<24;d++,a+=10)n.push(i([a,a,a]));return n}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return i(l.rgb);case"table":return o(l.index)}}return{value:s}}const Pl=/#([0-9a-f]{3,8})/i,Ol=/var\((--[\w-]+-ansi-[\w-]+)\)/,Ml={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Hl(e,t,i){const n=ei(e,i),r=mi(t),o=Dl(Object.fromEntries(Qe.map(l=>{const a=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,e.colors?.[a]||Ml[l]]}))),s=Tl();return r.map(l=>s.parse(l[0]).map(a=>{let d,u;a.decorations.has("reverse")?(d=a.background?o.value(a.background):e.bg,u=a.foreground?o.value(a.foreground):e.fg):(d=a.foreground?o.value(a.foreground):e.fg,u=a.background?o.value(a.background):void 0),d=Be(d,n),u=Be(u,n),a.decorations.has("dim")&&(d=Nl(d));let c=ee.None;return a.decorations.has("bold")&&(c|=ee.Bold),a.decorations.has("italic")&&(c|=ee.Italic),a.decorations.has("underline")&&(c|=ee.Underline),a.decorations.has("strikethrough")&&(c|=ee.Strikethrough),{content:a.value,offset:l[1],color:d,bgColor:u,fontStyle:c}}))}function Nl(e){const t=e.match(Pl);if(t){const n=t[1];if(n.length===8){const r=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${r}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const r=n[0],o=n[1],s=n[2],l=n[3];return`#${r}${r}${o}${o}${s}${s}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const r=n[0],o=n[1],s=n[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const i=e.match(Ol);return i?`var(${i[1]}-dim)`:e}function an(e,t,i={}){const n=e.resolveLangAlias(i.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=i;if(!hi(n)&&!pi(r)&&n==="ansi"){const{theme:o}=e.setTheme(r);return Hl(o,t,i)}return Ho(e,t,i)}function ni(e,t,i){let n,r,o,s,l,a;if("themes"in i){const{defaultColor:d="light",cssVariablePrefix:u="--shiki-",colorsRendering:c="css-vars"}=i,f=Object.entries(i.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,_)=>v.color===d?-1:_.color===d?1:0);if(f.length===0)throw new z("`themes` option must not be empty");const h=No(e,t,i,an);if(a=xt(h),d&&d!=="light-dark()"&&!f.some(v=>v.color===d))throw new z(`\`themes\` option must contain the defaultColor key \`${d}\``);const m=f.map(v=>e.getTheme(v.theme)),g=f.map(v=>v.color);o=h.map(v=>v.map(_=>Ll(_,g,u,d,c))),a&&vi(o,a);const y=f.map(v=>ei(v.theme,i));r=Yn(f,m,y,u,d,"fg",c),n=Yn(f,m,y,u,d,"bg",c),s=`shiki-themes ${m.map(v=>v.name).join(" ")}`,l=d?void 0:[r,n].join(";")}else if("theme"in i){const d=ei(i.theme,i);o=an(e,t,i);const u=e.getTheme(i.theme);n=Be(u.bg,d),r=Be(u.fg,d),s=u.name,a=xt(o)}else throw new z("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:n,themeName:s,rootStyle:l,grammarState:a}}function Yn(e,t,i,n,r,o,s){return e.map((l,a)=>{const d=Be(t[a][o],i[a])||"inherit",u=`${n+l.color}${o==="bg"?"-bg":""}:${d}`;if(a===0&&r){if(r==="light-dark()"&&e.length>1){const c=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(c===-1||f===-1)throw new z('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Be(t[c][o],i[c])||"inherit"}, ${Be(t[f][o],i[f])||"inherit"});${u}`}return d}return s==="css-vars"?u:null}).filter(l=>!!l).join(";")}const $o=/^\s+$/,Fl=/^(\s*)(.*?)(\s*)$/;function ri(e,t,i,n={meta:{},options:i,codeToHast:(r,o)=>ri(e,r,o),codeToTokens:(r,o)=>ni(e,r,o)}){let r=t;for(const m of ii(i))r=m.preprocess?.call(n,r,i)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:d,grammarState:u}=ni(e,r,i);const{mergeWhitespaces:c=!0,mergeSameStyleTokens:f=!1}=i;c===!0?o=$l(o):c==="never"&&(o=Ul(o)),f&&(o=zl(o));const h={...n,get source(){return r}};for(const m of ii(i))o=m.tokens?.call(h,o)||o;return Vl(o,{...i,fg:s,bg:l,themeName:a,rootStyle:i.rootStyle===!1?!1:i.rootStyle??d},h,u)}function Vl(e,t,i,n=xt(e)){const r=ii(t),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(d.tabindex=a.toString());for(const[g,y]of Object.entries(t.meta||{}))g.startsWith("_")||(d[g]=y);let u={type:"element",tagName:"pre",properties:d,children:[],data:t.data},c={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...i,structure:l,addClassToHast:Fo,get source(){return i.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return c},get lines(){return f}};if(e.forEach((g,y)=>{y&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
2
|
+
import{r as q,j as U,u as Xs,d as Js}from"./main-CS8gBi_K.js";import{_ as p}from"./preload-helper-PPVm8Dsz.js";import{I as Yi,E as ki,R as Qs,T as Zs,t as Re,F as ee}from"./index-C7U0QkuV.js";import{r as co,C as Ue,h as Dt,g as Ys,f as fo}from"./index-2BQyy0xI.js";function Pt(e){const t=q.useRef(e);return q.useInsertionEffect(()=>{t.current=e}),q.useCallback((...i)=>t.current(...i),[])}const ea=q.createContext(void 0);function ta(){return q.useContext(ea)}const ia={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},na={display:"contents"};function Bn(){return null}const Tn="diffs-container";(()=>{try{return!1}catch{return!1}})();const ra=/(?=^From [a-f0-9]+ .+$)/m,ho=/(?=^diff --git)/gm,oa=new RegExp("(?<=\\n)"),sa=/^(---|\+\+\+)\s+([^\t\r\n]+)/,aa=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,po="header-prefix",mo="header-filename-suffix",go="header-metadata",In="header-custom",_e={dark:"pierre-dark",light:"pierre-light"},la="data-theme-css",da="data-unsafe-css",ua="data-diffs-scrollbar-measure",vo="--diffs-scrollbar-gutter-measured",ca=1e5,fa={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},ha=Object.freeze({fromStart:0,fromEnd:0}),Gn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},pa={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function Je(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ma({hunkIndex:e,lineIndex:t,conflictIndex:i}){return`merge-conflict-action-${e}-${t}-${i}`}function ae(e,t){return e-(t===0?0:1)}function ne(e,t){return ae(e,t)+t}function ga(e,t){const i=t.hunks[e.hunkIndex];if(i!=null)return{hunkIndex:e.hunkIndex,lineIndex:va(i,e.startContentIndex)}}function va(e,t){let i=e.unifiedLineStart;for(let n=0;n<t;n++){const r=e.hunkContent[n];i+=r.type==="context"?r.lines:r.deletions+r.additions}return i}function _o({fileDiff:e,actions:t,renderCustomHeader:i,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:o,renderAnnotation:s,renderGutterUtility:l,renderMergeConflictUtility:a,lineAnnotations:d,getHoveredLine:u,getInstance:c,getAnnotationSlotName:f=Je}){const h=i?.(e),m=n?.(e),g=r?.(e),y=o?.(e);return U.jsxs(U.Fragment,{children:[h!=null?U.jsx("div",{slot:In,children:h}):U.jsxs(U.Fragment,{children:[m!=null&&U.jsx("div",{slot:"header-prefix",children:m}),g!=null&&U.jsx("div",{slot:"header-filename-suffix",children:g}),y!=null&&U.jsx("div",{slot:"header-metadata",children:y})]}),s!=null&&d?.map((v,_)=>U.jsx("div",{slot:f(v),children:s(v)},_)),t!=null&&a!=null&&c!=null&&t.map(v=>{if(v==null)return;const _=_a(v,e);return U.jsx("div",{slot:_,style:na,children:a(v,c)},_)}),l!=null&&U.jsx("div",{slot:"gutter-utility-slot",style:ia,children:l(u)})]})}function _a(e,t){const i=ga(e,t);return i!=null?ma({hunkIndex:i.hunkIndex,lineIndex:i.lineIndex,conflictIndex:e.conflictIndex}):void 0}const wt=new Map,xi=new Map,ba=new Map,en=new Set;function tn(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!en.has(t))return!1;return!0}function Dn(e=_e){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const nn=new Set;function kt(e){const t=[],i=new Set;for(const c of ya(e.themes)){const f=bo(c)?c.getThemes():[c];for(const h of f){if(i.has(h.name))throw new Error(`Theme collection already contains theme "${h.name}"`);i.add(h.name),t.push(h)}}const n=Object.freeze([...t]),r=Object.freeze(n.filter(c=>c.colorScheme==="light")),o=Object.freeze(n.filter(c=>c.colorScheme==="dark")),s=new Map(n.map(c=>[c.name,c])),l=Object.freeze(n.map(c=>c.name)),a=Object.freeze(r.map(c=>c.name)),d=Object.freeze(o.map(c=>c.name));function u(c){if(c==null)return n;const{colorScheme:f,collection:h}=c;return h==null?f==="light"?r:f==="dark"?o:n:n.filter(m=>m.collection!==h?!1:f==null||m.colorScheme===f)}return{getTheme(c){return s.get(c)},getThemes(c){return u(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?a:c?.colorScheme==="dark"?d:l:u(c).map(f=>f.name)},hasTheme(c){return s.has(c)},orderBy(c){return kt({themes:n.map((f,h)=>({descriptor:f,index:h})).sort((f,h)=>{const m=c(f.descriptor,h.descriptor);return m!==0?m:f.index-h.index}).map(f=>f.descriptor)})},pick(c){const f=[],h=new Set;for(const m of c){if(h.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);h.add(m);const g=s.get(m);if(g==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(g)}return kt({themes:f})},registerInto(c){for(const f of n)c.registerThemeIfAbsent(f.name,f.load)}}}function ya(e){return Ea(e)?[e]:e}function Ea(e){return bo(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function bo(e){return typeof e.getThemes=="function"}function yo(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var La=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},wa=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function ka(){const e=new Map,t=new Map,i=new Map;let n=0;function r(v,_){if(e.has(v))throw new La(v);e.set(v,_)}function o(v,_){return e.has(v)?!1:(e.set(v,_),!0)}function s(v){return e.has(v)}function l(v){const _=t.get(v);if(_!==void 0)return Promise.resolve(_);const b=i.get(v);if(b!==void 0)return b;const L=e.get(v);if(L===void 0)return Promise.reject(new Ca(v));const E=n,S=L().then(C=>{const x=yo(C);return E===n&&t.set(v,x),i.get(v)===S&&i.delete(v),x}).catch(C=>{throw i.get(v)===S&&i.delete(v),C});return i.set(v,S),S}function a(v){return Promise.all(v.map(_=>l(_)))}function d(v,_){t.set(v,_)}function u(v){for(const[_,b]of v)d(_,b)}function c(v){return t.get(v)}function f(v){const _=[];for(const b of v){const L=t.get(b);if(L===void 0)throw new wa(b);_.push(L)}return _}function h(v){return t.has(v)}function m(v){for(const _ of v)if(!t.has(_))return!1;return!0}function g(v){const _=t.get(v);return _!==void 0?_:l(v)}function y(){n++,t.clear(),i.clear()}return{clearResolvedThemes:y,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:f,hasRegisteredTheme:s,hasResolvedTheme:h,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:u}}const ze=ka();function jn(e,t){e=Array.isArray(e)?e:[e];for(let i of e){let n;if(typeof i=="string"){if(n=ze.getResolvedTheme(i),n==null)throw new Error(`loadResolvedThemes: ${i} is not resolved, you must resolve it before calling loadResolvedThemes`)}else n=i,i=i.name,ze.getResolvedTheme(i)==null&&ze.seedResolvedTheme(i,n);nn.has(i)||(nn.add(i),t.loadThemeSync(n))}}function Wn(e,t){e=Array.isArray(e)?e:[e];for(const i of e){if(en.has(i.name))continue;let n=wt.get(i.name);n==null&&(n=i,wt.set(i.name,n));const r=n.data.find(o=>o.name===n.name||o.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);t.loadLanguageSync(n.data);try{t.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}en.add(n.name)}}function Eo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var rn=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Aa=Object.getOwnPropertyNames,Ra=Object.prototype.hasOwnProperty,Ta=(e,t)=>{let i={};for(var n in e)rn(i,n,{get:e[n],enumerable:!0});return rn(i,Symbol.toStringTag,{value:"Module"}),i},Ia=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Aa(t),o=0,s=r.length,l;o<s;o++)l=r[o],!Ra.call(e,l)&&l!==i&&rn(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(n=xa(t,l))||n.enumerable});return e},Da=(e,t,i)=>(Ia(e,t,"default"),i);const So=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./actionscript-3-B3316cI-.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./ahk-CsyLZFj1.js"),[],import.meta.url))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./ahk2-8Zs4aa1G.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./apex-DhZFqWV2.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>p(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./asciidoc-CSVQ5wI8.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./bat-CickPsom.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./bird2-Bx8U0n9b.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>p(()=>import("./c3-Dp5svz6Z.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./clarity-Dn5IMItf.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./coq-C7JzOVbR.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./css-CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>p(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./dart-bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./emacs-lisp-C_m_b--Z.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>p(()=>import("./erb-DXfck5VN.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>p(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>p(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./gdscript-DqcFQ5yU.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22]),import.meta.url))},{id:"gn",name:"GN",import:(()=>p(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>p(()=>import("./go-C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./haxe-CfZj7gIn.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]),import.meta.url))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>import("./just-Cwhn7H3k.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>p(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./kusto-wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./llvm-BZoOZj88.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>p(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./luau-BnpPk5vE.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./mermaid-CQcHuHx7.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./mojo-DJz3ZmWd.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./moonbit-CHtswR0a.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>p(()=>import("./move-el3G9tDJ.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./nextflow-groovy-vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./nsis-BlV79W_Q.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./nushell-D3jzshHO.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./odin-BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"org",name:"Org Markup",import:(()=>p(()=>import("./org-DM6o9KBp.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]),import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>p(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./powershell-BmBUJMz7.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./prisma-Vru482bI.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>p(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./r-Cf5RLm7j.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89]),import.meta.url))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./rbs-CpoqiR4B.js"),[],import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>p(()=>import("./ron-D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>import("./rst-bs7f0vWN.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>p(()=>import("./ruby-C0TQ7zu5.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>p(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./scala-CqE71os6.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29]),import.meta.url))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./smalltalk-BOQMe2GC.js"),[],import.meta.url))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./smithy-cds9vsN8.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./solidity-DijEV5ha.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./system-verilog-0hqHdDBg.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>p(()=>import("./twig-27uCiNez.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./typespec-CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>import("./typst-BUadGCkm.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]),import.meta.url))},{id:"v",name:"V",import:(()=>p(()=>import("./v-BGw2Nkan.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./vb-Cu-pLBUe.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./verilog-nZwndyjY.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Pa=Object.fromEntries(So.map(e=>[e.id,e.import])),Oa=Object.fromEntries(So.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),on={...Pa,...Oa},Ma=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./andromeeda-C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./ayu-dark-DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./ayu-light-BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./ayu-mirage-32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./github-dark-vbPMK5nw.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./github-light-CBO01_j6.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./horizon-BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./horizon-bright-CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./houston-DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./kanagawa-lotus-C3DzagqV.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./kanagawa-wave-DFGoQZhC.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./monokai-BRVnQi9A.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./night-owl-light-CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./one-light-C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./red-hvxz__6c.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./rose-pine-5qJOZa0Y.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./rose-pine-moon-C9pEdX9L.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./solarized-dark-CpvCGNkr.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./solarized-light-Dlz6yCKv.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./vesper-DRje8inN.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url))}],Ha=Object.fromEntries(Ma.map(e=>[e.id,e.import]));var Pn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Na(){return 2147483648}function Fa(){return typeof performance<"u"?performance.now():Date.now()}const Va=(e,t)=>e+(t-e%t)%t;async function $a(e){let t,i;const n={};function r(h){i=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function o(h,m,g){n.HEAPU8.copyWithin(h,m,m+g)}function s(h){try{return t.grow(h-i.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(h){const m=n.HEAPU8.length;h=h>>>0;const g=Na();if(h>g)return!1;for(let y=1;y<=4;y*=2){let v=m*(1+.2/y);v=Math.min(v,h+100663296);const _=Math.min(g,Va(Math.max(h,v),65536));if(s(_))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(h,m,g=1024){const y=m+g;let v=m;for(;h[v]&&!(v>=y);)++v;if(v-m>16&&h.buffer&&a)return a.decode(h.subarray(m,v));let _="";for(;m<v;){let b=h[m++];if(!(b&128)){_+=String.fromCharCode(b);continue}const L=h[m++]&63;if((b&224)===192){_+=String.fromCharCode((b&31)<<6|L);continue}const E=h[m++]&63;if((b&240)===224?b=(b&15)<<12|L<<6|E:b=(b&7)<<18|L<<12|E<<6|h[m++]&63,b<65536)_+=String.fromCharCode(b);else{const S=b-65536;_+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return _}function u(h,m){return h?d(n.HEAPU8,h,m):""}const c={emscripten_get_now:Fa,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const m=await e({env:c,wasi_snapshot_preview1:c});t=m.memory,r(t.buffer),Object.assign(n,m),n.UTF8ToString=u}return await f(),n}var Ua=Object.defineProperty,za=(e,t,i)=>t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,X=(e,t,i)=>za(e,typeof t!="symbol"?t+"":t,i);let Q=null;function Ba(e){throw new Pn(e.UTF8ToString(e.getLastOnigError()))}class ci{constructor(t){X(this,"utf16Length"),X(this,"utf8Length"),X(this,"utf16Value"),X(this,"utf8Value"),X(this,"utf16OffsetToUtf8"),X(this,"utf8OffsetToUtf16");const i=t.length,n=ci._utf8ByteLength(t),r=n!==i,o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const l=new Uint8Array(n);let a=0;for(let d=0;d<i;d++){const u=t.charCodeAt(d);let c=u,f=!1;if(u>=55296&&u<=56319&&d+1<i){const h=t.charCodeAt(d+1);h>=56320&&h<=57343&&(c=(u-55296<<10)+65536|h-56320,f=!0)}r&&(o[d]=a,f&&(o[d+1]=a),c<=127?s[a+0]=d:c<=2047?(s[a+0]=d,s[a+1]=d):c<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),c<=127?l[a++]=c:c<=2047?(l[a++]=192|(c&1984)>>>6,l[a++]=128|(c&63)>>>0):c<=65535?(l[a++]=224|(c&61440)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0):(l[a++]=240|(c&1835008)>>>18,l[a++]=128|(c&258048)>>>12,l[a++]=128|(c&4032)>>>6,l[a++]=128|(c&63)>>>0),f&&d++}this.utf16Length=i,this.utf8Length=n,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let i=0;for(let n=0,r=t.length;n<r;n++){const o=t.charCodeAt(n);let s=o,l=!1;if(o>=55296&&o<=56319&&n+1<r){const a=t.charCodeAt(n+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?i+=1:s<=2047?i+=2:s<=65535?i+=3:i+=4,l&&n++}return i}createString(t){const i=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,i),i}}const fi=class ge{constructor(t){if(X(this,"id",++ge.LAST_ID),X(this,"_onigBinding"),X(this,"content"),X(this,"utf16Length"),X(this,"utf8Length"),X(this,"utf16OffsetToUtf8"),X(this,"utf8OffsetToUtf16"),X(this,"ptr"),!Q)throw new Pn("Must invoke loadWasm first.");this._onigBinding=Q,this.content=t;const i=new ci(t);this.utf16Length=i.utf16Length,this.utf8Length=i.utf8Length,this.utf16OffsetToUtf8=i.utf16OffsetToUtf8,this.utf8OffsetToUtf16=i.utf8OffsetToUtf16,this.utf8Length<1e4&&!ge._sharedPtrInUse?(ge._sharedPtr||(ge._sharedPtr=Q.omalloc(1e4)),ge._sharedPtrInUse=!0,Q.HEAPU8.set(i.utf8Value,ge._sharedPtr),this.ptr=ge._sharedPtr):this.ptr=i.createString(Q)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ge._sharedPtr?ge._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};X(fi,"LAST_ID",0);X(fi,"_sharedPtr",0);X(fi,"_sharedPtrInUse",!1);let Lo=fi;class Ga{constructor(t){if(X(this,"_onigBinding"),X(this,"_ptr"),!Q)throw new Pn("Must invoke loadWasm first.");const i=[],n=[];for(let l=0,a=t.length;l<a;l++){const d=new ci(t[l]);i[l]=d.createString(Q),n[l]=d.utf8Length}const r=Q.omalloc(4*t.length);Q.HEAPU32.set(i,r/4);const o=Q.omalloc(4*t.length);Q.HEAPU32.set(n,o/4);const s=Q.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)Q.ofree(i[l]);Q.ofree(o),Q.ofree(r),s===0&&Ba(Q),this._onigBinding=Q,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,i,n){let r=0;if(typeof n=="number"&&(r=n),typeof t=="string"){t=new Lo(t);const o=this._findNextMatchSync(t,i,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,i,!1,r)}_findNextMatchSync(t,i,n,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(i),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],u=l[a++],c=[];for(let f=0;f<u;f++){const h=t.convertUtf8OffsetToUtf16(l[a++]),m=t.convertUtf8OffsetToUtf16(l[a++]);c[f]={start:h,end:m,length:m-h}}return{index:d,captureIndices:c}}}function ja(e){return typeof e.instantiator=="function"}function Wa(e){return typeof e.default=="function"}function qa(e){return typeof e.data<"u"}function Ka(e){return typeof Response<"u"&&e instanceof Response}function Xa(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ot;function Co(e){if(Ot)return Ot;async function t(){Q=await $a(async i=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(i)),typeof n=="function"&&(n=await n(i)),ja(n)?n=await n.instantiator(i):Wa(n)?n=await n.default(i):(qa(n)&&(n=n.data),Ka(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Ja(n)(i):n=await Qa(n)(i):Xa(n)?n=await Ai(n)(i):n instanceof WebAssembly.Module?n=await Ai(n)(i):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Ai(n.default)(i))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Ot=t(),Ot}function Ai(e){return t=>WebAssembly.instantiate(e,t)}function Ja(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Qa(e){return async t=>{const i=await e.arrayBuffer();return WebAssembly.instantiate(i,t)}}let wo;function Za(e){wo=e}function Ya(){return wo}async function ko(e){return e&&await Co(e),{createScanner(t){return new Ga(t.map(i=>typeof i=="string"?i:i.source))},createString(t){return new Lo(t)}}}const el=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:ko,getDefaultWasmLoader:Ya,loadWasm:Co,setDefaultWasmLoader:Za},Symbol.toStringTag,{value:"Module"}));var xo=Ta({});Da(xo,el);var z=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ei(e,t){const i=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[r,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?i[r]=o:r===n&&Object.assign(i,o);return i}function Be(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function tl(e){return Array.isArray(e)?e:[e]}async function Ao(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function hi(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Ro(e){return e==="ansi"||hi(e)}function pi(e){return e==="none"}function To(e){return pi(e)}const il=/(\r?\n)/g;function mi(e,t=!1){if(e.length===0)return[["",0]];const i=e.split(il);let n=0;const r=[];for(let o=0;o<i.length;o+=2){const s=t?i[o]+(i[o+1]||""):i[o];r.push([s,n]),n+=i[o].length,n+=i[o+1]?.length||0}return r}const qn={light:"#333333",dark:"#bbbbbb"},Kn={light:"#fffffe",dark:"#1e1e1e"},Xn="__shiki_resolved";function gi(e){if(e?.[Xn])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:i,fg:n}=t;if(!i||!n){const l=t.settings?t.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(n=l.settings.foreground),l?.settings?.background&&(i=l.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!i&&t?.colors?.["editor.background"]&&(i=t.colors["editor.background"]),n||(n=t.type==="light"?qn.light:qn.dark),i||(i=t.type==="light"?Kn.light:Kn.dark),t.fg=n,t.bg=i}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);r+=1;const a=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}t.settings=t.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!d)return l;const u={...l,settings:{...l.settings}};if(a){const c=s(l.settings.foreground);t.colorReplacements[c]=l.settings.foreground,u.settings.foreground=c}if(d){const c=s(l.settings.background);t.colorReplacements[c]=l.settings.background,u.settings.background=c}return u});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const a=s(t.colors[l]);t.colorReplacements[a]=t.colors[l],t.colors[l]=a}return Object.defineProperty(t,Xn,{enumerable:!1,writable:!1,value:!0}),t}async function Io(e){return[...new Set((await Promise.all(e.filter(t=>!Ro(t)).map(async t=>await Ao(t).then(i=>Array.isArray(i)?i:[i])))).flat())]}async function Do(e){return(await Promise.all(e.map(async t=>To(t)?null:gi(await Ao(t))))).filter(t=>!!t)}function Po(e,t){if(!t)return e;if(t[e]){const i=new Set([e]);for(;t[e];){if(e=t[e],i.has(e))throw new z(`Circular alias \`${[...i].join(" -> ")} -> ${e}\``);i.add(e)}}return e}var nl=class extends Qs{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,i,n={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=n,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=gi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Zs.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Po(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=[...this._langGraph.entries()],i=t.filter(([n,r])=>!r);if(i.length){const n=t.filter(([r,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(s=>i.map(([l])=>l).includes(s)):!1).filter(r=>!i.includes(r));throw new z(`Missing languages ${i.map(([r])=>`\`${r}\``).join(", ")}, required by ${n.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[n,r]of t)this._resolver.addLanguage(r);for(const[n,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const i of t)this._langGraph.set(i,this._langMap.get(i))}},rl=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let n=1;n<=t.length;n++){const r=t.slice(0,n).join(".");i=[...i,...this._injections.get(r)||[]]}return i}};let gt=0;function ol(e){gt+=1,e.warnings!==!1&>>=10&>%10===0&&console.warn(`[Shiki] ${gt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new z("`engine` option is required for synchronous mode");const i=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(gi),r=new nl(new rl(e.engine,i),n,i,e.langAlias);let o;function s(_){return Po(_,e.langAlias)}function l(_){y();const b=r.getGrammar(typeof _=="string"?_:_.name);if(!b)throw new z(`Language \`${_}\` not found, you may need to load it first`);return b}function a(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const b=r.getTheme(_);if(!b)throw new z(`Theme \`${_}\` not found, you may need to load it first`);return b}function d(_){y();const b=a(_);return o!==_&&(r.setTheme(b),o=_),{theme:b,colorMap:r.getColorMap()}}function u(){return y(),r.getLoadedThemes()}function c(){return y(),r.getLoadedLanguages()}function f(..._){y(),r.loadLanguages(_.flat(1))}async function h(..._){return f(await Io(_))}function m(..._){y();for(const b of _.flat(1))r.loadTheme(b)}async function g(..._){return y(),m(await Do(_))}function y(){if(t)throw new z("Shiki instance has been disposed")}function v(){t||(t=!0,r.dispose(),gt-=1)}return{setTheme:d,getTheme:a,getLanguage:l,getLoadedThemes:u,getLoadedLanguages:c,resolveLangAlias:s,loadLanguage:h,loadLanguageSync:f,loadTheme:g,loadThemeSync:m,dispose:v,[Symbol.dispose]:v}}async function sl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,i,n]=await Promise.all([Do(e.themes||[]),Io(e.langs||[]),e.engine]);return ol({...e,themes:t,langs:i,engine:n})}const Oo=new WeakMap;function vi(e,t){Oo.set(e,t)}function xt(e){return Oo.get(e)}var _i=class Mo{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,i){return new Mo(Object.fromEntries(tl(i).map(n=>[n,Yi])),t)}constructor(...t){if(t.length===2){const[i,n]=t;this.lang=n,this._stacks=i}else{const[i,n,r]=t;this.lang=n,this._stacks={[r]:i}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return al(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function al(e){const t=[],i=new Set;function n(r){if(i.has(r))return;i.add(r);const o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&n(r.parent)}return n(e),t}function ll(e,t){if(!(e instanceof _i))throw new z("Invalid grammar state");return e.getInternalStack(t)}const dl=/,/,ul=/ /;function Ho(e,t,i={}){const{theme:n=e.getLoadedThemes()[0]}=i;if(hi(e.resolveLangAlias(i.lang||"text"))||pi(n))return mi(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=e.setTheme(n),s=e.getLanguage(i.lang||"text");if(i.grammarState){if(i.grammarState.lang!==s.name)throw new z(`Grammar state language "${i.grammarState.lang}" does not match highlight language "${s.name}"`);if(!i.grammarState.themes.includes(r.name))throw new z(`Grammar state themes "${i.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return fl(t,s,r,o,i)}function cl(...e){if(e.length===2)return xt(e[1]);const[t,i,n={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=n;if(hi(r)||pi(o))throw new z("Plain language does not have grammar state");if(r==="ansi")throw new z("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(o),a=t.getLanguage(r);return new _i(On(i,a,s,l,n).stateStack,a.name,s.name)}function fl(e,t,i,n,r){const o=On(e,t,i,n,r),s=new _i(o.stateStack,t.name,i.name);return vi(o.tokens,s),o.tokens}function On(e,t,i,n,r){const o=ei(i,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500,includeExplanation:a=!1}=r,d=mi(e);let u=r.grammarState?ll(r.grammarState,i.name)??Yi:r.grammarContextCode!=null?On(r.grammarContextCode,t,i,n,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Yi,c=[];const f=[];for(let h=0,m=d.length;h<m;h++){const[g,y]=d[h];if(g===""){c=[],f.push([]);continue}if(s>0&&g.length>=s){c=[],f.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,_,b;a&&a!=="tokenType"&&(v=t.tokenizeLine(g,u,l),_=v.tokens,b=0);const L=t.tokenizeLine2(g,u,l),E=L.tokens.length/2;for(let S=0;S<E;S++){const C=L.tokens[2*S],x=S+1<E?L.tokens[2*S+2]:g.length;if(C===x)continue;const w=L.tokens[2*S+1],A=Be(n[ki.getForeground(w)],o),I=ki.getFontStyle(w),k={content:g.substring(C,x),offset:y+C,color:A,fontStyle:I};if(a==="tokenType")k.type=ki.getTokenType(w);else if(a){const R=[];if(a!=="scopeName")for(const F of i.settings){let T;switch(typeof F.scope){case"string":T=F.scope.split(dl).map(M=>M.trim());break;case"object":T=F.scope;break;default:continue}R.push({settings:F,selectors:T.map(M=>M.split(ul))})}k.explanation=[];let D=0;for(;C+D<x;){const F=_[b],T=g.substring(F.startIndex,F.endIndex);D+=T.length,k.explanation.push({content:T,scopes:a==="scopeName"?hl(F.scopes):pl(R,F.scopes)}),b+=1}}c.push(k)}f.push(c),c=[],u=L.ruleStack}return{tokens:f,stateStack:u}}function hl(e){return e.map(t=>({scopeName:t}))}function pl(e,t){const i=[];for(let n=0,r=t.length;n<r;n++){const o=t[n];i[n]={scopeName:o,themeMatches:gl(e,o,t.slice(0,n))}}return i}function Jn(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ml(e,t,i){if(!Jn(e.at(-1),t))return!1;let n=e.length-2,r=i.length-1;for(;n>=0&&r>=0;)Jn(e[n],i[r])&&(n-=1),r-=1;return n===-1}function gl(e,t,i){const n=[];for(const{selectors:r,settings:o}of e)for(const s of r)if(ml(s,t,i)){n.push(o);break}return n}function No(e,t,i,n=Ho){const r=Object.entries(i.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const u=n(e,t,{...i,theme:d.theme});return{tokens:u,state:xt(u),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),s=vl(...o.map(d=>d.tokens)),l=s[0].map((d,u)=>d.map((c,f)=>{const h={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in i&&i.includeExplanation&&(h.explanation=c.explanation),s.forEach((m,g)=>{const{content:y,explanation:v,offset:_,...b}=m[u][f];h.variants[r[g].color]=b}),h})),a=o[0].state?new _i(Object.fromEntries(o.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),o[0].state.lang):void 0;return a&&vi(l,a),l}function vl(...e){const t=e.map(()=>[]),i=e.length;for(let n=0;n<e[0].length;n++){const r=e.map(a=>a[n]),o=t.map(()=>[]);t.forEach((a,d)=>a.push(o[d]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(d=>d.content.length));for(let d=0;d<i;d++){const u=l[d];u.content.length===a?(o[d].push(u),s[d]+=1,l[d]=r[d][s[d]]):(o[d].push({...u,content:u.content.slice(0,a)}),l[d]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return t}const Qn=/\s+/g;function Fo(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(Qn)),Array.isArray(e.properties.class)||(e.properties.class=[]);const i=Array.isArray(t)?t:t.split(Qn);for(const n of i)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function _l(e){const t=mi(e,!0).map(([r])=>r);function i(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let o=r,s=0;for(const l of t){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function n(r,o){let s=0;for(let l=0;l<r;l++)s+=t[l].length;return s+=o,s}return{lines:t,indexToPos:i,posToIndex:n}}const bl=["color","background-color"];function yl(e,t){let i=0;const n=[];for(const r of t)r>i&&n.push({...e,content:e.content.slice(i,r),offset:e.offset+i}),i=r;return i<e.content.length&&n.push({...e,content:e.content.slice(i),offset:e.offset+i}),n}function El(e,t){let i=0,n=e.length;for(;i<n;){const r=i+(n-i>>1);e[r]<=t?i=r+1:n=r}return i}function Sl(e,t){const i=[...t instanceof Set?t:new Set(t)].sort((n,r)=>n-r);return i.length?e.map(n=>n.flatMap(r=>{const o=r.offset+r.content.length,s=El(i,r.offset);let l=s;for(;l<i.length&&i[l]<o;)l++;if(s===l)return r;const a=i.slice(s,l);for(let d=0;d<a.length;d++)a[d]-=r.offset;return yl(r,a)})):e}function Ll(e,t,i,n,r="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(u=>ti(e.variants[u])),l=new Set(s.flatMap(u=>Object.keys(u))),a={},d=(u,c)=>{const f=c==="color"?"":c==="background-color"?"-bg":`-${c}`;return i+t[u]+(c==="color"?"":f)};return s.forEach((u,c)=>{for(const f of l){const h=u[f]||"inherit";if(c===0&&n&&bl.includes(f))if(n==="light-dark()"&&s.length>1){const m=t.findIndex(_=>_==="light"),g=t.findIndex(_=>_==="dark");if(m===-1||g===-1)throw new z('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=s[m][f]||"inherit",v=s[g][f]||"inherit";a[f]=`light-dark(${y}, ${v})`,r==="css-vars"&&(a[d(c,f)]=h)}else a[f]=h;else r==="css-vars"&&(a[d(c,f)]=h)}}),o.htmlStyle=a,o}function ti(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ee.Italic&&(t["font-style"]="italic"),e.fontStyle&ee.Bold&&(t["font-weight"]="bold");const i=[];e.fontStyle&ee.Underline&&i.push("underline"),e.fontStyle&ee.Strikethrough&&i.push("line-through"),i.length&&(t["text-decoration"]=i.join(" "))}return t}function sn(e){return typeof e=="string"?e:Object.entries(e).map(([t,i])=>`${t}:${i}`).join(";")}function Cl(){const e=new WeakMap;function t(i){if(!e.has(i.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>i.source.length)throw new z(`Invalid decoration offset: ${s}. Code length: ${i.source.length}`);return{...r.indexToPos(s),offset:s}}else{const l=r.lines[s.line];if(l===void 0)throw new z(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${r.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new z(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:r.posToIndex(s.line,a)}}};const r=_l(i.source),o=(i.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));wl(o),e.set(i.meta,{decorations:o,converter:r,source:i.source})}return e.get(i.meta)}return{name:"shiki:decorations",tokens(i){if(this.options.decorations?.length)return Sl(i,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(i){if(!this.options.decorations?.length)return;const n=t(this),r=[...i.children].filter(u=>u.type==="element"&&u.tagName==="span");if(r.length!==n.converter.lines.length)throw new z(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(u,c,f,h){const m=r[u];let g="",y=-1,v=-1;if(c===0&&(y=0),f===0&&(v=0),f===Number.POSITIVE_INFINITY&&(v=m.children.length),y===-1||v===-1)for(let b=0;b<m.children.length;b++)g+=Vo(m.children[b]),y===-1&&g.length===c&&(y=b+1),v===-1&&g.length===f&&(v=b+1);if(y===-1)throw new z(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(v===-1)throw new z(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const _=m.children.slice(y,v);if(!h.alwaysWrap&&_.length===m.children.length)l(m,h,"line");else if(!h.alwaysWrap&&_.length===1&&_[0].type==="element")l(_[0],h,"token");else{const b={type:"element",tagName:"span",properties:{},children:_};l(b,h,"wrapper"),m.children.splice(y,_.length,b)}}function s(u,c){r[u]=l(r[u],c,"line")}function l(u,c,f){const h=c.properties||{},m=c.transform||(g=>g);return u.tagName=c.tagName||"span",u.properties={...u.properties,...h,class:u.properties.class},c.properties?.class&&Fo(u,c.properties.class),u=m(u,f)||u,u}const a=[],d=n.decorations.sort((u,c)=>c.start.offset-u.start.offset||u.end.offset-c.end.offset);for(const u of d){const{start:c,end:f}=u;if(c.line===f.line)o(c.line,c.character,f.character,u);else if(c.line<f.line){o(c.line,c.character,Number.POSITIVE_INFINITY,u);for(let h=c.line+1;h<f.line;h++)a.unshift(()=>s(h,u));o(f.line,0,f.character,u)}}a.forEach(u=>u())}}}function wl(e){for(let t=0;t<e.length;t++){const i=e[t];if(i.start.offset>i.end.offset)throw new z(`Invalid decoration range: ${JSON.stringify(i.start)} - ${JSON.stringify(i.end)}`);for(let n=t+1;n<e.length;n++){const r=e[n],o=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,s=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset,l=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&i.start.offset===i.end.offset||s&&r.start.offset===r.end.offset)continue;throw new z(`Decorations ${JSON.stringify(i.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function Vo(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Vo).join(""):""}const kl=[Cl()];function ii(e){const t=xl(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...kl]}function xl(e){const t=[],i=[],n=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":i.push(r);break;default:n.push(r)}return{pre:t,post:i,normal:n}}var Qe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ri={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Al(e,t){const i=e.indexOf("\x1B",t);if(i!==-1&&e[i+1]==="["){const n=e.indexOf("m",i);if(n!==-1)return{sequence:e.substring(i+2,n).split(";"),startPosition:i,position:n+1}}return{position:e.length}}function Zn(e){const t=e.shift();if(t==="2"){const i=e.splice(0,3).map(n=>Number.parseInt(n));return i.length!==3||i.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:i}}else if(t==="5"){const i=e.shift();if(i)return{type:"table",index:Number(i)}}}function Rl(e){const t=[];for(;e.length>0;){const i=e.shift();if(!i)continue;const n=Number.parseInt(i);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Ri[n]&&t.push({type:"setDecoration",value:Ri[n]});else if(n<=29){const r=Ri[n-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Qe[n-30]}});else if(n===38){const r=Zn(e);r&&t.push({type:"setForegroundColor",value:r})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Qe[n-40]}});else if(n===48){const r=Zn(e);r&&t.push({type:"setBackgroundColor",value:r})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Qe[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Qe[n-100+8]}})}return t}function Tl(){let e=null,t=null,i=new Set;return{parse(n){const r=[];let o=0;do{const s=Al(n,o),l=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(l.length>0&&r.push({value:l,foreground:e,background:t,decorations:new Set(i)}),s.sequence){const a=Rl(s.sequence);for(const d of a)d.type==="resetAll"?(e=null,t=null,i.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&i.delete(d.value);for(const d of a)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&i.add(d.value)}o=s.position}while(o<n.length);return r}}}var Il={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 Dl(e=Il){function t(l){return e[l]}function i(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let n;function r(){if(n)return n;n=[];for(let d=0;d<Qe.length;d++)n.push(t(Qe[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let u=0;u<6;u++)for(let c=0;c<6;c++)n.push(i([l[d],l[u],l[c]]));let a=8;for(let d=0;d<24;d++,a+=10)n.push(i([a,a,a]));return n}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return i(l.rgb);case"table":return o(l.index)}}return{value:s}}const Pl=/#([0-9a-f]{3,8})/i,Ol=/var\((--[\w-]+-ansi-[\w-]+)\)/,Ml={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Hl(e,t,i){const n=ei(e,i),r=mi(t),o=Dl(Object.fromEntries(Qe.map(l=>{const a=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,e.colors?.[a]||Ml[l]]}))),s=Tl();return r.map(l=>s.parse(l[0]).map(a=>{let d,u;a.decorations.has("reverse")?(d=a.background?o.value(a.background):e.bg,u=a.foreground?o.value(a.foreground):e.fg):(d=a.foreground?o.value(a.foreground):e.fg,u=a.background?o.value(a.background):void 0),d=Be(d,n),u=Be(u,n),a.decorations.has("dim")&&(d=Nl(d));let c=ee.None;return a.decorations.has("bold")&&(c|=ee.Bold),a.decorations.has("italic")&&(c|=ee.Italic),a.decorations.has("underline")&&(c|=ee.Underline),a.decorations.has("strikethrough")&&(c|=ee.Strikethrough),{content:a.value,offset:l[1],color:d,bgColor:u,fontStyle:c}}))}function Nl(e){const t=e.match(Pl);if(t){const n=t[1];if(n.length===8){const r=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${r}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const r=n[0],o=n[1],s=n[2],l=n[3];return`#${r}${r}${o}${o}${s}${s}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const r=n[0],o=n[1],s=n[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const i=e.match(Ol);return i?`var(${i[1]}-dim)`:e}function an(e,t,i={}){const n=e.resolveLangAlias(i.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=i;if(!hi(n)&&!pi(r)&&n==="ansi"){const{theme:o}=e.setTheme(r);return Hl(o,t,i)}return Ho(e,t,i)}function ni(e,t,i){let n,r,o,s,l,a;if("themes"in i){const{defaultColor:d="light",cssVariablePrefix:u="--shiki-",colorsRendering:c="css-vars"}=i,f=Object.entries(i.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,_)=>v.color===d?-1:_.color===d?1:0);if(f.length===0)throw new z("`themes` option must not be empty");const h=No(e,t,i,an);if(a=xt(h),d&&d!=="light-dark()"&&!f.some(v=>v.color===d))throw new z(`\`themes\` option must contain the defaultColor key \`${d}\``);const m=f.map(v=>e.getTheme(v.theme)),g=f.map(v=>v.color);o=h.map(v=>v.map(_=>Ll(_,g,u,d,c))),a&&vi(o,a);const y=f.map(v=>ei(v.theme,i));r=Yn(f,m,y,u,d,"fg",c),n=Yn(f,m,y,u,d,"bg",c),s=`shiki-themes ${m.map(v=>v.name).join(" ")}`,l=d?void 0:[r,n].join(";")}else if("theme"in i){const d=ei(i.theme,i);o=an(e,t,i);const u=e.getTheme(i.theme);n=Be(u.bg,d),r=Be(u.fg,d),s=u.name,a=xt(o)}else throw new z("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:n,themeName:s,rootStyle:l,grammarState:a}}function Yn(e,t,i,n,r,o,s){return e.map((l,a)=>{const d=Be(t[a][o],i[a])||"inherit",u=`${n+l.color}${o==="bg"?"-bg":""}:${d}`;if(a===0&&r){if(r==="light-dark()"&&e.length>1){const c=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(c===-1||f===-1)throw new z('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Be(t[c][o],i[c])||"inherit"}, ${Be(t[f][o],i[f])||"inherit"});${u}`}return d}return s==="css-vars"?u:null}).filter(l=>!!l).join(";")}const $o=/^\s+$/,Fl=/^(\s*)(.*?)(\s*)$/;function ri(e,t,i,n={meta:{},options:i,codeToHast:(r,o)=>ri(e,r,o),codeToTokens:(r,o)=>ni(e,r,o)}){let r=t;for(const m of ii(i))r=m.preprocess?.call(n,r,i)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:d,grammarState:u}=ni(e,r,i);const{mergeWhitespaces:c=!0,mergeSameStyleTokens:f=!1}=i;c===!0?o=$l(o):c==="never"&&(o=Ul(o)),f&&(o=zl(o));const h={...n,get source(){return r}};for(const m of ii(i))o=m.tokens?.call(h,o)||o;return Vl(o,{...i,fg:s,bg:l,themeName:a,rootStyle:i.rootStyle===!1?!1:i.rootStyle??d},h,u)}function Vl(e,t,i,n=xt(e)){const r=ii(t),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(d.tabindex=a.toString());for(const[g,y]of Object.entries(t.meta||{}))g.startsWith("_")||(d[g]=y);let u={type:"element",tagName:"pre",properties:d,children:[],data:t.data},c={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...i,structure:l,addClassToHast:Fo,get source(){return i.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return c},get lines(){return f}};if(e.forEach((g,y)=>{y&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
3
3
|
`}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const b of g){let L={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]};const E=sn(b.htmlStyle||ti(b));E&&(L.properties.style=E);for(const S of r)L=S?.span?.call(h,L,y+1,_,v,b)||L;l==="inline"?s.children.push(L):l==="classic"&&v.children.push(L),_+=b.content.length}if(l==="classic"){for(const b of r)v=b?.line?.call(h,v,y+1)||v;f.push(v),o.push(v)}else l==="inline"&&f.push(v)}),l==="classic"){for(const g of r)c=g?.code?.call(h,c)||c;u.children.push(c);for(const g of r)u=g?.pre?.call(h,u)||u;s.children.push(u)}else if(l==="inline"){const g=[];let y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const _ of s.children)_.type==="element"&&_.tagName==="br"?(g.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&y.children.push(_);g.push(y);let v={type:"element",tagName:"code",properties:{},children:g};for(const _ of r)v=_?.code?.call(h,v)||v;s.children=[];for(let _=0;_<v.children.length;_++){_>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const b=v.children[_];b.type==="element"&&s.children.push(...b.children)}}let m=s;for(const g of r)m=g?.root?.call(h,m)||m;return n&&vi(m,n),m}function $l(e){return e.map(t=>{const i=[];let n="",r;return t.forEach((o,s)=>{const l=!(o.fontStyle&&(o.fontStyle&ee.Underline||o.fontStyle&ee.Strikethrough));l&&$o.test(o.content)&&t[s+1]?(r===void 0&&(r=o.offset),n+=o.content):n?(l?i.push({...o,offset:r,content:n+o.content}):i.push({content:n,offset:r},o),r=void 0,n=""):i.push(o)}),i})}function Ul(e){return e.map(t=>t.flatMap(i=>{if($o.test(i.content))return i;const n=i.content.match(Fl);if(!n)return i;const[,r,o,s]=n;if(!r&&!s)return i;const l=[{...i,offset:i.offset+r.length,content:o}];return r&&l.unshift({content:r,offset:i.offset}),s&&l.push({content:s,offset:i.offset+r.length+o.length}),l}))}function zl(e){return e.map(t=>{const i=[];for(const n of t){if(i.length===0){i.push({...n});continue}const r=i.at(-1),o=sn(r.htmlStyle||ti(r)),s=sn(n.htmlStyle||ti(n)),l=r.fontStyle&&(r.fontStyle&ee.Underline||r.fontStyle&ee.Strikethrough),a=n.fontStyle&&(n.fontStyle&ee.Underline||n.fontStyle&ee.Strikethrough);!l&&!a&&o===s?r.content+=n.content:i.push({...n})}return i})}const Bl=Re;function Gl(e,t,i){const n={meta:{},options:i,codeToHast:(o,s)=>ri(e,o,s),codeToTokens:(o,s)=>ni(e,o,s)};let r=Bl(ri(e,t,i,n));for(const o of ii(i))r=o.postprocess?.call(n,r,i)||r;return r}async function jl(e){const t=await sl(e);return{getLastGrammarState:(...i)=>cl(t,...i),codeToTokensBase:(i,n)=>an(t,i,n),codeToTokensWithThemes:(i,n)=>No(t,i,n),codeToTokens:(i,n)=>ni(t,i,n),codeToHast:(i,n)=>ri(t,i,n),codeToHtml:(i,n)=>Gl(t,i,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Wl(e){const t=e.langs,i=e.themes,n=e.engine;async function r(o){function s(c){if(typeof c=="string"){if(c=o.langAlias?.[c]||c,Ro(c))return[];const f=t[c];if(!f)throw new z(`Language \`${c}\` is not included in this bundle. You may want to load it from external source.`);return f}return c}function l(c){if(To(c))return"none";if(typeof c=="string"){const f=i[c];if(!f)throw new z(`Theme \`${c}\` is not included in this bundle. You may want to load it from external source.`);return f}return c}const a=(o.themes??[]).map(c=>l(c)),d=(o.langs??[]).map(c=>s(c)),u=await jl({engine:o.engine??n(),...o,themes:a,langs:d});return{...u,loadLanguage(...c){return u.loadLanguage(...c.map(s))},loadTheme(...c){return u.loadTheme(...c.map(l))},getBundledLanguages(){return t},getBundledThemes(){return i}}}return r}const ql=Wl({langs:on,themes:Ha,engine:()=>(0,xo.createOnigurumaEngine)(p(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),er=4294967295;var Kl=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:i=!1,cache:n,regexConstructor:r}=t;if(!r)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const s=n?.get(o);if(s){if(s instanceof RegExp)return s;if(i)return null;throw s}try{const l=r(o);return n?.set(o,l),l}catch(l){if(n?.set(o,l),i)return null;throw l}})}findNextMatchSync(e,t,i){const n=typeof e=="string"?e:e.content,r=[];function o(s,l,a=0){return{index:s,captureIndices:l.indices.map(d=>d==null?{start:er,end:er,length:0}:{start:d[0]+a,end:d[1]+a,length:d[1]-d[0]})}}for(let s=0;s<this.regexps.length;s++){const l=this.regexps[s];if(l)try{l.lastIndex=t;const a=l.exec(n);if(!a)continue;if(a.index===t)return o(s,a,0);r.push([s,a,0])}catch(a){if(this.options.forgiving)continue;throw a}}if(r.length){const s=Math.min(...r.map(l=>l[1].index));for(const[l,a,d]of r)if(a.index===s)return o(l,a,d)}return null}};function ht(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Xl(e,t,i){return e.has(t)||e.set(t,i),e.get(t)}const Mn=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Z=String.raw;function pt(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Uo=Z`\[\^?`,zo=`c.? | C(?:-.?)?|${Z`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Z`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Z`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Z`o\{[^\}]*\}?`}|${Z`\d{1,3}`}`,Hn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Mt=new RegExp(Z`
|
|
4
4
|
\\ (?:
|
|
5
5
|
${zo}
|