@oneworks/client 0.1.0-alpha.0 → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ActionSearchToolbar-BqRwfUQY.js +1 -0
- package/dist/assets/ActionSearchToolbar-CMBns0Zm.css +1 -0
- package/dist/assets/AgentRoomRoute-BYgM7vgg.js +1 -0
- package/dist/assets/AgentRoomSessionRoute-DdoZY7qL.js +3 -0
- package/dist/assets/ArchiveRoute-ydgLUN7p.js +1 -0
- package/dist/assets/{AuthenticatedApp-BTs4l2pB.js → AuthenticatedApp-CK9TT7Nk.js} +236 -224
- package/dist/assets/AuthenticatedApp-scWyvbOf.css +1 -0
- package/dist/assets/AutomationRoute-CpcRbNa8.js +1 -0
- package/dist/assets/BenchmarkRoute-CZRZVolT.js +21 -0
- package/dist/assets/ChatRoute-DdRVEkAb.js +2 -0
- package/dist/assets/Collapse-CxTS9FJh.js +10 -0
- package/dist/assets/{ComposerLanding-Cl6zfbOm.js → ComposerLanding-BChGuCjF.js} +4 -4
- package/dist/assets/ConfigEditors-BuDavOAj.css +1 -0
- package/dist/assets/ConfigRoute-D_EkHryB.js +28 -0
- package/dist/assets/ConfigRoute-TW2qRRNP.css +1 -0
- package/dist/assets/InteractionStructureRoute-Dpjr6hIq.js +1 -0
- package/dist/assets/KnowledgeRoute-Bp4Da65A.js +1 -0
- package/dist/assets/LauncherApp-ByUpDwod.js +2 -0
- package/dist/assets/LauncherRoute-B94P9m3I.js +2 -0
- package/dist/assets/LauncherRoute-NsK8KCzb.css +1 -0
- package/dist/assets/MobileAwareSelect-BySpAJpa.css +1 -0
- package/dist/assets/MobileAwareSelect-CCAQrsxL.js +37 -0
- package/dist/assets/{ModuleManagementRoute-DQACRan1.js → ModuleManagementRoute-DcrMX6P7.js} +3 -3
- package/dist/assets/NotFoundRoute-C1IfsiZY.js +1 -0
- package/dist/assets/PluginStoreRoute-7UBLkrWc.js +1 -0
- package/dist/assets/PluginStoreRoute-Cfalv335.css +1 -0
- package/dist/assets/RouteContainerPanelTabs-D8pC61tF.js +11 -0
- package/dist/assets/RouteContainerPanelTabs-DAjUmk7i.css +1 -0
- package/dist/assets/SchemaObjectEditor-DvwrURac.js +1 -0
- package/dist/assets/StandaloneMobileDebugRoute--yiQ5EdW.js +1 -0
- package/dist/assets/StandaloneMobileDebugRoute-DuOLjUb9.css +1 -0
- package/dist/assets/WorkspaceApp-l-h_IsMp.js +9 -0
- package/dist/assets/agent-room-session-paths-CYMSFD9m.css +32 -0
- package/dist/assets/agent-room-session-paths-DNpYqOr3.js +537 -0
- package/dist/assets/{arc-BXsvCKst.js → arc-Xh4h56Fv.js} +1 -1
- package/dist/assets/azure-C6wcxVWu.ico +0 -0
- package/dist/assets/{blockDiagram-c4efeb88-hc-xNCrG.js → blockDiagram-c4efeb88-CG3HxYeL.js} +2 -2
- package/dist/assets/{c4Diagram-c83219d4-DVHTOuVr.js → c4Diagram-c83219d4-DiEPAqCg.js} +2 -2
- package/dist/assets/channel-DH-F5Uqk.js +1 -0
- package/dist/assets/classDiagram-beda092f-Dwx44PuJ.js +2 -0
- package/dist/assets/classDiagram-v2-2358418a-COXM437u.js +2 -0
- package/dist/assets/client-build-info-6B4KoYHs.js +1 -0
- package/dist/assets/clone-DGri7oGq.js +1 -0
- package/dist/assets/{createText-1719965b-x3Mhf0Jh.js → createText-1719965b-DPLMqVqY.js} +1 -1
- package/dist/assets/cssMode-DfDq4hLs.js +1 -0
- package/dist/assets/customParseFormat-DwjB960X.js +1 -0
- package/dist/assets/dockPanelConstants-4XXOUD0A.css +1 -0
- package/dist/assets/dockPanelConstants-OzU6hJl5.js +8 -0
- package/dist/assets/{edges-96097737-COVuSxRY.js → edges-96097737-ry9ejc8v.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-WcgqCWce.js → erDiagram-0228fc6a-AcCPz3wc.js} +2 -2
- package/dist/assets/{flowDb-c6c81e3f-nYly38YN.js → flowDb-c6c81e3f-BGnBxhJf.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-DLYALlBY.js → flowDiagram-50d868cf-BnS6RFWo.js} +2 -2
- package/dist/assets/flowDiagram-v2-4f6560a1-C3klqpJG.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-Da8rP8k4.js → flowchart-elk-definition-6af322e1-8-ynORZL.js} +2 -2
- package/dist/assets/{freemarker2-OWISI6Bb.js → freemarker2-uFZBYLEW.js} +2 -2
- package/dist/assets/ganttDiagram-a2739b55-3MEPfmMB.js +257 -0
- package/dist/assets/gemini-B9inYaVW.png +0 -0
- package/dist/assets/{gitGraphDiagram-82fe8481-DCk8Jny9.js → gitGraphDiagram-82fe8481-BKYGV9pb.js} +2 -2
- package/dist/assets/{graph-DvFQr_wY.js → graph-BEwlNa_j.js} +1 -1
- package/dist/assets/handlebars-dg6IZCa7.js +1 -0
- package/dist/assets/html-KunL9NkW.js +1 -0
- package/dist/assets/htmlMode-CrFpTEpC.js +1 -0
- package/dist/assets/{index-5325376f-CRF6GGjL.js → index-5325376f-CCcP_Ahl.js} +1 -1
- package/dist/assets/index-BIs5hzci.js +13 -0
- package/dist/assets/index-BggFUwYR.js +1 -0
- package/dist/assets/index-DdUqPqXW.js +727 -0
- package/dist/assets/{index-BnZLa3J3.js → index-DhpAFZQZ.js} +2 -2
- package/dist/assets/index-YzfSzOLk.js +13 -0
- package/dist/assets/index-ZOsqqPVv.js +36 -0
- package/dist/assets/index-jfuA2A4w.css +1 -0
- package/dist/assets/index-nXq6jwfM.js +3 -0
- package/dist/assets/{infoDiagram-8eee0895-dVa2Kh9_.js → infoDiagram-8eee0895-BzZ34kgw.js} +2 -2
- package/dist/assets/interaction-panel-mobile-debug-pages-8AAd4Csf.css +1 -0
- package/dist/assets/interaction-panel-mobile-debug-pages-DXC3HSZU.js +113 -0
- package/dist/assets/javascript-DA3fh3oR.js +1 -0
- package/dist/assets/{journeyDiagram-c64418c1-BJCT1TJ7.js → journeyDiagram-c64418c1-B_kSGErn.js} +2 -2
- package/dist/assets/{jsonMode-RsjNGxUQ.js → jsonMode-BDucSIBv.js} +4 -4
- package/dist/assets/{layout-BMZRkCUf.js → layout-CRLM1T9z.js} +1 -1
- package/dist/assets/{line-C99msl9T.js → line-Cdyr_7ve.js} +1 -1
- package/dist/assets/{linear-CJHB38BG.js → linear-y86GycLK.js} +1 -1
- package/dist/assets/liquid-mJp997il.js +1 -0
- package/dist/assets/{lspLanguageFeatures-D8zjArb3.js → lspLanguageFeatures-DiGGmudW.js} +1 -1
- package/dist/assets/mdx-Co6h2mZ2.js +1 -0
- package/dist/assets/{mermaid.core-DWzpZH_g.js → mermaid.core-VYJIZL_J.js} +4 -4
- package/dist/assets/micu-dUcmmgZZ.png +0 -0
- package/dist/assets/{mindmap-definition-8da855dc-DulNL_Ks.js → mindmap-definition-8da855dc-DKNG2gyr.js} +2 -2
- package/dist/assets/minimax-B5WRVrUt.png +0 -0
- package/dist/assets/openai-ABb0YGGa.svg +71 -0
- package/dist/assets/openrouter-CsJ_bD5Q.ico +0 -0
- package/dist/assets/{pieDiagram-a8764435-CHfubQBm.js → pieDiagram-a8764435-Cu3up9mc.js} +3 -3
- package/dist/assets/project-file-tree-icons-CfonMx-1.js +2 -0
- package/dist/assets/project-file-tree-icons-DXkdVC0r.css +1 -0
- package/dist/assets/python-BUUKzwmG.js +1 -0
- package/dist/assets/{quadrantDiagram-1e28029f-CFHca9nu.js → quadrantDiagram-1e28029f-DHW8R4el.js} +2 -2
- package/dist/assets/qwen-Cla2cGrM.svg +107 -0
- package/dist/assets/razor-ZPlQfY47.js +1 -0
- package/dist/assets/requesty-DAzbbw8F.ico +0 -0
- package/dist/assets/{requirementDiagram-08caed73-ClrFG92W.js → requirementDiagram-08caed73-CXWNC-_B.js} +2 -2
- package/dist/assets/route-plugin-chrome-bV1HEaju.js +1 -0
- package/dist/assets/sankeyDiagram-a04cb91d-DhKL8pMH.js +8 -0
- package/dist/assets/{sequenceDiagram-c5b8d532-ZoeuLa-n.js → sequenceDiagram-c5b8d532-D3fAcQeI.js} +2 -2
- package/dist/assets/shortcutUtils-B8h6g_7o.js +27 -0
- package/dist/assets/stateDiagram-1ecb1508-wKQS4LMF.js +1 -0
- package/dist/assets/stateDiagram-v2-c2b004d7-D5qOKtOa.js +1 -0
- package/dist/assets/{styles-b4e223ce-0VFG2Z9W.js → styles-b4e223ce-CpBwPex_.js} +1 -1
- package/dist/assets/{styles-ca3715f6-DaJIsB-N.js → styles-ca3715f6-4bqpN1KH.js} +1 -1
- package/dist/assets/{styles-d45a18b0-DT8DH24o.js → styles-d45a18b0-B0RCBD5D.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-DxTZXiLW.js → svgDrawCommon-b86b1483-C9KXk4gS.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-lu3ppiNq.js → timeline-definition-faaaa080-B1Bfjd0m.js} +2 -2
- package/dist/assets/{tsMode-B6pOKC1l.js → tsMode-Bd8BwKXc.js} +2 -2
- package/dist/assets/typescript-CLd6MPK0.js +1 -0
- package/dist/assets/use-app-preferences-DGCafwsP.js +1 -0
- package/dist/assets/use-chat-session-actions-wF_HiVzj.js +2 -0
- package/dist/assets/{vendor-react-BNJ5yonH.js → vendor-react-CnooHTJc.js} +1 -1
- package/dist/assets/vendor-state-zjcHRN98.js +1 -0
- package/dist/assets/worker-BZxxbL_z.js +1 -0
- package/dist/assets/workspace-file-openers-Dj_Cfk1S.js +1 -0
- package/dist/assets/workspace-file-openers-fM4AQXug.css +1 -0
- package/dist/assets/xml-BeC1cWk3.js +1 -0
- package/dist/assets/{xychartDiagram-f5964ef8-DvmrNK0s.js → xychartDiagram-f5964ef8-DbJVUSHy.js} +2 -2
- package/dist/assets/yaml-gQrw9AcN.js +1 -0
- package/dist/assets/yunwu-C0h7koCA.png +0 -0
- package/dist/assets/zhipu-CWmkm5qz.png +0 -0
- package/dist/index.html +4 -4
- package/dist/sw.js +5 -3
- package/package.json +20 -15
- package/dist/assets/AgentRoomRoute-rNmmPMvh.js +0 -1
- package/dist/assets/AgentRoomSessionRoute-Dg8yQRY_.js +0 -1
- package/dist/assets/ArchiveRoute-BWE_JVjl.js +0 -1
- package/dist/assets/AuthenticatedApp-Bop-GglJ.css +0 -1
- package/dist/assets/AutomationRoute-CoJ8YGK2.js +0 -1
- package/dist/assets/BenchmarkRoute-BcRZ1AFC.js +0 -21
- package/dist/assets/ChatRoute-DBN4uo7j.js +0 -1
- package/dist/assets/Collapse-DDrFhfKr.js +0 -8
- package/dist/assets/ConfigEditors-jcXiTWRg.css +0 -1
- package/dist/assets/ConfigRoute-D5zxs-kv.css +0 -1
- package/dist/assets/ConfigRoute-z5Dj1ihn.js +0 -2
- package/dist/assets/ConfigSectionPanel-DHIwutHm.js +0 -13
- package/dist/assets/DockPanel-DuxVeJzf.js +0 -11
- package/dist/assets/DockPanel-HEMeJ1MR.css +0 -1
- package/dist/assets/InteractionStructureRoute-B8yJdycA.js +0 -1
- package/dist/assets/KnowledgeRoute-BPYnBocT.js +0 -1
- package/dist/assets/LauncherApp-BqKOigOK.js +0 -2
- package/dist/assets/LauncherRoute-C1g-gjbs.js +0 -2
- package/dist/assets/LauncherRoute-DtjtKtXc.css +0 -1
- package/dist/assets/PluginStoreRoute-Bny2x-oC.css +0 -1
- package/dist/assets/PluginStoreRoute-CGIBez_4.js +0 -3
- package/dist/assets/SchemaObjectEditor-BdzgIkYh.js +0 -1
- package/dist/assets/WorkspaceApp-DGL3CHCp.js +0 -46
- package/dist/assets/agent-room-session-paths-Bl0JdX79.js +0 -153
- package/dist/assets/agent-room-session-paths-CCE5rS0K.css +0 -32
- package/dist/assets/channel-X7k9544o.js +0 -1
- package/dist/assets/classDiagram-beda092f-C--_J0De.js +0 -2
- package/dist/assets/classDiagram-v2-2358418a-VLoB_o-4.js +0 -2
- package/dist/assets/client-build-info-CUyezPn4.js +0 -37
- package/dist/assets/client-build-info-CgBKDSmG.css +0 -1
- package/dist/assets/clone-BsR4Dtrm.js +0 -1
- package/dist/assets/copy-OJ_6Pvs2.js +0 -28
- package/dist/assets/cssMode-Dg95dCSS.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-DZXqc8d3.js +0 -1
- package/dist/assets/ganttDiagram-a2739b55-SFoaaNUl.js +0 -257
- package/dist/assets/handlebars-DvhbIeVz.js +0 -1
- package/dist/assets/html-B6ANaoGC.js +0 -1
- package/dist/assets/htmlMode-CA_KA1J8.js +0 -1
- package/dist/assets/index-BfLbHhFR.js +0 -13
- package/dist/assets/index-C9FQLbWu.js +0 -1
- package/dist/assets/index-DA1kZA8X.css +0 -1
- package/dist/assets/index-Dn-Bbs_z.js +0 -705
- package/dist/assets/javascript-qaeO24NX.js +0 -1
- package/dist/assets/liquid-yYJuHMAu.js +0 -1
- package/dist/assets/mdx-CrAkCLhE.js +0 -1
- package/dist/assets/python-h0Aqhxqi.js +0 -1
- package/dist/assets/razor-DalkOWO-.js +0 -1
- package/dist/assets/sankeyDiagram-a04cb91d-C9DgEVjM.js +0 -8
- package/dist/assets/stateDiagram-1ecb1508-DDRxhJDf.js +0 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-CIob4OCF.js +0 -1
- package/dist/assets/typescript-Bn-lx_lA.js +0 -1
- package/dist/assets/use-app-preferences-B4K999VJ.js +0 -1
- package/dist/assets/use-chat-session-actions-5N-NQ9my.js +0 -2
- package/dist/assets/use-project-theme-preview-sources-5CPt1X2N.js +0 -1
- package/dist/assets/vendor-state-CBVXPiKY.js +0 -1
- package/dist/assets/workspace-file-openers-DAuX65xw.js +0 -1
- package/dist/assets/workspace-file-openers-erSFu-UO.css +0 -1
- package/dist/assets/xml-C1SO5DSd.js +0 -1
- package/dist/assets/yaml-DihjE03_.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/latex-B4uzh10-.js","assets/tex-CvyZ59Mk.js","assets/liquid-DYVedYrR.js","assets/marko-DZsq8hO1.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-C1TweQQi.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-zxCyuUbr.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-Dn-Bbs_z.js";import{c8 as je,c9 as ft,ca as Yt,cb as Xt,cc as Zt,cd as Ye,ce as er}from"./AuthenticatedApp-BTs4l2pB.js";import"./vendor-react-BNJ5yonH.js";import"./vendor-state-CBVXPiKY.js";import"./client-build-info-CUyezPn4.js";import"./use-app-preferences-B4K999VJ.js";import"./copy-OJ_6Pvs2.js";import"./WorkspaceApp-DGL3CHCp.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
2
|
+
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-DdUqPqXW.js";import{cb as je,cc as ft,cd as Yt,ce as Xt,cf as Zt,cg as Ye,ch as er}from"./AuthenticatedApp-CK9TT7Nk.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-zjcHRN98.js";import"./MobileAwareSelect-CCAQrsxL.js";import"./use-app-preferences-DGCafwsP.js";import"./route-plugin-chrome-bV1HEaju.js";import"./shortcutUtils-B8h6g_7o.js";import"./project-file-tree-icons-CfonMx-1.js";import"./WorkspaceApp-l-h_IsMp.js";import"./index-ZOsqqPVv.js";import"./client-build-info-6B4KoYHs.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
3
3
|
`)}findNextMatchSync(i,e,t){const r=this.scanner.findNextMatchSync(i,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ie=class{constructor(i,e){this.languageId=i,this.tokenType=e}},M,Ir=(M=class{constructor(e,t){_(this,"_defaultAttributes");_(this,"_embeddedLanguagesMatcher");_(this,"_getBasicScopeAttributes",new At(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Ie(t,r)}));this._defaultAttributes=new Ie(e,8),this._embeddedLanguagesMatcher=new Sr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?M._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(M.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},_(M,"_NULL_SCOPE_METADATA",new Ie(0,0)),_(M,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),M),Sr=class{constructor(i){_(this,"values");_(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const e=i.map(([t,r])=>Rt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const e=i.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nt=class{constructor(i,e){this.stack=i,this.stoppedEarly=e}};function wt(i,e,t,r,n,s,o,l){const a=e.content.length;let u=!1,d=-1;if(o){const p=Or(i,e,t,r,n,s);n=p.stack,r=p.linePos,t=p.isFirstLine,d=p.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new nt(n,!0);h()}return new nt(n,!1);function h(){const p=wr(i,e,t,r,n,d);if(!p){s.produce(n,a),u=!0;return}const f=p.captureIndices,v=p.matchedRuleId,R=f&&f.length>0?f[0].end>r:!1;if(v===Lr){const E=n.getRule(i);s.produce(n,f[0].start),n=n.withContentNameScopesList(n.nameScopesList),Y(i,e,t,n,s,E.endCaptures,f),s.produce(n,f[0].end);const y=n;if(n=n.parent,d=y.getAnchorPos(),!R&&y.getEnterPos()===r){n=y,s.produce(n,a),u=!0;return}}else{const E=i.getRule(v);s.produce(n,f[0].start);const y=n,g=E.getName(e.content,f),A=n.contentNameScopesList.pushAttributed(g,i);if(n=n.push(v,r,d,f[0].end===a,null,A,A),E instanceof Ve){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(E instanceof he){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(Y(i,e,t,n,s,E.captures,f),s.produce(n,f[0].end),n=n.pop(),!R){n=n.safePop(),s.produce(n,a),u=!0;return}}f[0].end>r&&(r=f[0].end,t=!1)}}function Or(i,e,t,r,n,s){let o=n.beginRuleCapturedEOL?0:-1;const l=[];for(let a=n;a;a=a.pop()){const u=a.getRule(i);u instanceof he&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:d}=Dr(a.rule,i,a.stack.endRule,t,r===o),m=u.findNextMatchSync(e,r,d);if(m){if(m.ruleId!==It){n=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(a.stack,m.captureIndices[0].start),Y(i,e,t,a.stack,s,a.rule.whileCaptures,m.captureIndices),s.produce(a.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:o,isFirstLine:t}}function wr(i,e,t,r,n,s){const o=Cr(i,e,t,r,n,s),l=i.getInjections();if(l.length===0)return o;const a=kr(l,i,e,t,r,n,s);if(!a)return o;if(!o)return a;const u=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<u||a.priorityMatch&&d===u?a:o}function Cr(i,e,t,r,n,s){const o=n.getRule(i),{ruleScanner:l,findOptions:a}=Ct(o,i,n.endRule,t,r===s),u=l.findNextMatchSync(e,r,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function kr(i,e,t,r,n,s,o){let l=Number.MAX_VALUE,a=null,u,d=0;const m=s.contentNameScopesList.getScopeNames();for(let h=0,p=i.length;h<p;h++){const f=i[h];if(!f.matcher(m))continue;const v=e.getRule(f.ruleId),{ruleScanner:R,findOptions:E}=Ct(v,e,null,r,n===o),y=R.findNextMatchSync(t,n,E);if(!y)continue;const g=y.captureIndices[0].start;if(!(g>=l)&&(l=g,a=y.captureIndices,u=y.ruleId,d=f.priority,l===n))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:u}:null}function Ct(i,e,t,r,n){return{ruleScanner:i.compileAG(e,t,r,n),findOptions:0}}function Dr(i,e,t,r,n){return{ruleScanner:i.compileWhileAG(e,t,r,n),findOptions:0}}function Y(i,e,t,r,n,s,o){if(s.length===0)return;const l=e.content,a=Math.min(s.length,o.length),u=[],d=o[0].end;for(let m=0;m<a;m++){const h=s[m];if(h===null)continue;const p=o[m];if(p.length===0)continue;if(p.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,p.start):n.produce(r,p.start),h.retokenizeCapturedWithRuleId){const v=h.getName(l,o),R=r.contentNameScopesList.pushAttributed(v,i),E=h.getContentName(l,o),y=R.pushAttributed(E,i),g=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,R,y),A=i.createOnigString(l.substring(0,p.end));wt(i,A,t&&p.start===0,p.start,g,n,!1,0),bt(A);continue}const f=h.getName(l,o);if(f!==null){const R=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(f,i);u.push(new Nr(R,p.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Nr=class{constructor(i,e){_(this,"scopes");_(this,"endPos");this.scopes=i,this.endPos=e}};function Vr(i,e,t,r,n,s,o,l){return new Gr(i,e,t,r,n,s,o,l)}function st(i,e,t,r,n){const s=me(e,pe),o=St.getCompiledRuleId(t,r,n.repository);for(const l of s)i.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:n,priority:l.priority})}function pe(i,e){if(e.length<i.length)return!1;let t=0;return i.every(r=>{for(let n=t;n<e.length;n++)if(xr(e[n],r))return t=n+1,!0;return!1})}function xr(i,e){if(!i)return!1;if(i===e)return!0;const t=e.length;return i.length>t&&i.substr(0,t)===e&&i[t]==="."}var Gr=class{constructor(i,e,t,r,n,s,o,l){_(this,"_rootId");_(this,"_lastRuleId");_(this,"_ruleId2desc");_(this,"_includedGrammars");_(this,"_grammarRepository");_(this,"_grammar");_(this,"_injections");_(this,"_basicScopeAttributesProvider");_(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new Ir(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ot(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=me(a,pe);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,r=i.lookup(t);if(r){const n=r.injections;if(n)for(let o in n)st(e,o,n[o],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const a=l.injectionSelector;a&&st(e,a,l,this,l)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const e=++this._lastRuleId,t=i(e);return this._ruleId2desc[e]=t,t}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,e){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const t=this._grammarRepository.lookup(i);if(t)return this._includedGrammars[i]=ot(t,e&&e.$base),this._includedGrammars[i]}}tokenizeLine(i,e,t=0){const r=this._tokenize(i,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(i,e,t=0){const r=this._tokenize(i,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(i,e,t,r){this._rootId===-1&&(this._rootId=St.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===xe.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=K.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let p;h?p=X.createRootAndLookUpScopeName(h,m,this):p=X.createRoot("unknown",m),e=new xe(null,this._rootId,-1,-1,!1,null,p,p)}else n=!1,e.reset();i=i+`
|
|
4
4
|
`;const s=this.createOnigString(i),o=s.content.length,l=new Br(t,i,this._tokenTypeMatchers,this.balancedBracketSelectors),a=wt(this,s,n,0,e,l,!0,r);return bt(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ot(i,e){return i=rr(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=e||i.repository.$self,i}var X=class V{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,n=(e==null?void 0:e.scopePath)??null;for(const s of t)n=Pe.push(n,s.scopeNames),r=new V(r,n,s.encodedTokenAttributes);return r}static createRoot(e,t){return new V(null,new Pe(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const n=r.getMetadataForScope(e),s=new Pe(null,e),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(t,n,o);return new V(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let n=-1,s=0,o=0;return r!==null&&(n=r.fontStyle,s=r.foregroundId,o=r.backgroundId),K.set(e,t.languageId,t.tokenType,null,n,s,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const r=e.split(/ /g);let n=this;for(const s of r)n=V._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,r){const n=r.getMetadataForScope(t),s=e.scopePath.push(t),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(e.tokenAttributes,n,o);return new V(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},N,xe=(N=class{constructor(e,t,r,n,s,o,l,a){_(this,"_stackElementBrand");_(this,"_enterPos");_(this,"_anchorPos");_(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return e===null?!1:N._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?X.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){N._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,s,o,l){return new N(this,e,t,r,n,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new N(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=X.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new N(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,X.fromExtension(r,t.contentNameScopesList))}},_(N,"NULL",new N(null,0,0,0,!1,null,null,null)),N),Mr=class{constructor(i,e){_(this,"balancedBracketScopes");_(this,"unbalancedBracketScopes");_(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(t=>t==="*"?(this.allowAny=!0,[]):me(t,pe).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>me(t,pe).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const e of this.unbalancedBracketScopes)if(e(i))return!1;for(const e of this.balancedBracketScopes)if(e(i))return!0;return this.allowAny}},Br=class{constructor(i,e,t,r){_(this,"_emitBinaryTokens");_(this,"_lineText");_(this,"_tokens");_(this,"_binaryTokens");_(this,"_lastTokenEndIndex");_(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=i,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,e){this.produceFromScopes(i.contentNameScopesList,e)}produceFromScopes(i,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(i==null?void 0:i.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(i==null?void 0:i.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(n=K.set(n,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(n=K.set(n,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(i,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)t[r]=this._binaryTokens[r];return t}},jr=class{constructor(i,e){_(this,"_grammars",new Map);_(this,"_rawGrammars",new Map);_(this,"_injectionGrammars",new Map);_(this,"_theme");this._onigLib=e,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,e){this._rawGrammars.set(i.scopeName,i),e&&this._injectionGrammars.set(i.scopeName,e)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,e,t,r,n){if(!this._grammars.has(i)){let s=this._rawGrammars.get(i);if(!s)return null;this._grammars.set(i,Vr(i,s,e,t,r,n,this,this._onigLib))}return this._grammars.get(i)}},$r=class{constructor(e){_(this,"_options");_(this,"_syncRegistry");_(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new jr(ue.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ue.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new Mr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,s){const o=new fr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,s)}},Ge=xe.NULL;const Wr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ur=/["&'<>`]/g,Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qr=/[|\\{}()[\]^$+*?.]/g,at=new WeakMap;function zr(i,e){if(i=i.replace(e.subset?Kr(e.subset):Ur,r),e.subset||e.escapeOnly)return i;return i.replace(Hr,t).replace(Fr,r);function t(n,s,o){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(n,s,o){return e.format(n.charCodeAt(0),o.charCodeAt(s+1),e)}}function Kr(i){let e=at.get(i);return e||(e=Jr(i),at.set(i,e)),e}function Jr(i){const e=[];let t=-1;for(;++t<i.length;)e.push(i[t].replace(qr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Qr=/[\dA-Fa-f]/;function Yr(i,e,t){const r="&#x"+i.toString(16).toUpperCase();return t&&e&&!Qr.test(String.fromCharCode(e))?r:r+";"}const Xr=/\d/;function Zr(i,e,t){const r="&#"+String(i);return t&&e&&!Xr.test(String.fromCharCode(e))?r:r+";"}const ei=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Se={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ti=["cent","copy","divide","gt","lt","not","para","times"],kt={}.hasOwnProperty,Me={};let se;for(se in Se)kt.call(Se,se)&&(Me[Se[se]]=se);const ri=/[^\dA-Za-z]/;function ii(i,e,t,r){const n=String.fromCharCode(i);if(kt.call(Me,n)){const s=Me[n],o="&"+s;return t&&ei.includes(s)&&!ti.includes(s)&&(!r||e&&e!==61&&ri.test(String.fromCharCode(e)))?o:o+";"}return""}function ni(i,e,t){let r=Yr(i,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=ii(i,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=Zr(i,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return n&&(!t.useShortestReferences||n.length<r.length)?n:r}function z(i,e){return zr(i,Object.assign({format:ni},e))}const si=/^>|^->|<!--|-->|--!>|<!-$/g,oi=[">"],ai=["<",">"];function ci(i,e,t,r){return r.settings.bogusComments?"<?"+z(i.value,Object.assign({},r.settings.characterReferences,{subset:oi}))+">":"<!--"+i.value.replace(si,n)+"-->";function n(s){return z(s,Object.assign({},r.settings.characterReferences,{subset:ai}))}}function li(i,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const S=Nt(1),Dt=Nt(-1),ui=[];function Nt(i){return e;function e(t,r,n){const s=t?t.children:ui;let o=(r||0)+i,l=s[o];if(!n)for(;l&&je(l);)o+=i,l=s[o];return l}}const mi={}.hasOwnProperty;function Vt(i){return e;function e(t,r,n){return mi.call(i,t.tagName)&&i[t.tagName](t,r,n)}}const We=Vt({body:hi,caption:Oe,colgroup:Oe,dd:gi,dt:fi,head:Oe,html:di,li:_i,optgroup:Ei,option:yi,p:pi,rp:ct,rt:ct,tbody:Ri,td:lt,tfoot:Ai,th:lt,thead:vi,tr:Ti});function Oe(i,e,t){const r=S(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&je(r.value.charAt(0)))}function di(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function hi(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function pi(i,e,t){const r=S(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function _i(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="li"}function fi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function gi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ct(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ei(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function yi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ri(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ai(i,e,t){return!S(t,e)}function Ti(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function lt(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Li=Vt({body:Ii,colgroup:Si,head:Pi,html:bi,tbody:Oi});function bi(i){const e=S(i,-1);return!e||e.type!=="comment"}function Pi(i){const e=new Set;for(const r of i.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=i.children[0];return!t||t.type==="element"}function Ii(i){const e=S(i,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&je(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Si(i,e,t){const r=Dt(t,e),n=S(i,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Oi(i,e,t){const r=Dt(t,e),n=S(i,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const oe={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -10,4 +10,4 @@ var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,config
|
|
|
10
10
|
\f\r "&'<=>\``.split("")],[`\0
|
|
11
11
|
\f\r "&'<=>\``.split(""),`\0
|
|
12
12
|
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function wi(i,e,t,r){const n=r.schema,s=n.space==="svg"?!1:r.settings.omitOptionalTags;let o=n.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(i.tagName.toLowerCase());const l=[];let a;n.space==="html"&&i.tagName==="svg"&&(r.schema=ft);const u=Ci(r,i.properties),d=r.all(n.space==="html"&&i.tagName==="template"?i.content:i);return r.schema=n,d&&(o=!1),(u||!s||!Li(i,e,t))&&(l.push("<",i.tagName,u?" "+u:""),o&&(n.space==="svg"||r.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!o&&(!s||!We(i,e,t))&&l.push("</"+i.tagName+">"),l.join("")}function Ci(i,e){const t=[];let r=-1,n;if(e){for(n in e)if(e[n]!==null&&e[n]!==void 0){const s=ki(i,n,e[n]);s&&t.push(s)}}for(;++r<t.length;){const s=i.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&s!=='"'&&s!=="'"&&(t[r]+=" ")}return t.join("")}function ki(i,e,t){const r=Yt(i.schema,e),n=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,s=i.settings.allowDangerousCharacters?0:1;let o=i.quote,l;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=z(r.attribute,Object.assign({},i.settings.characterReferences,{subset:oe.name[n][s]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?Xt:Zt)(t,{padLeft:!i.settings.tightCommaSeparatedLists}):String(t),i.settings.collapseEmptyAttributes&&!t)?a:(i.settings.preferUnquoted&&(l=z(t,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:oe.unquoted[n][s]}))),l!==t&&(i.settings.quoteSmart&&Ye(t,o)>Ye(t,i.alternative)&&(o=i.alternative),l=o+z(t,Object.assign({},i.settings.characterReferences,{subset:(o==="'"?oe.single:oe.double)[n][s],attribute:!0}))+o),a+(l&&"="+l))}const Di=["<","&"];function xt(i,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?i.value:z(i.value,Object.assign({},r.settings.characterReferences,{subset:Di}))}function Ni(i,e,t,r){return r.settings.allowDangerousHtml?i.value:xt(i,e,t,r)}function Vi(i,e,t,r){return r.all(i)}const xi=tr("type",{invalid:Gi,unknown:Mi,handlers:{comment:ci,doctype:li,element:wi,raw:Ni,root:Vi,text:xt}});function Gi(i){throw new Error("Expected node, not `"+i+"`")}function Mi(i){const e=i;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Bi={},ji={},$i=[];function Wi(i,e){const t=e||Bi,r=t.quote||'"',n=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ui,all:Hi,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Wr,characterReferences:t.characterReferences||ji,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?ft:er,quote:r,alternative:n}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function Ui(i,e,t){return xi(i,e,t,this)}function Hi(i){const e=[],t=i&&i.children||$i;let r=-1;for(;++r<t.length;)e[r]=this.one(t[r],r,i);return e.join("")}function _e(i,e){const t=typeof i=="string"?{}:{...i.colorReplacements},r=typeof i=="string"?i:i.name;for(const[n,s]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof s=="string"?t[n]=s:n===r&&Object.assign(t,s);return t}function $(i,e){return i&&((e==null?void 0:e[i==null?void 0:i.toLowerCase()])||i)}function Fi(i){return Array.isArray(i)?i:[i]}async function Gt(i){return Promise.resolve(typeof i=="function"?i():i).then(e=>e.default||e)}function Ue(i){return!i||["plaintext","txt","text","plain"].includes(i)}function Mt(i){return i==="ansi"||Ue(i)}function He(i){return i==="none"}function Bt(i){return He(i)}function jt(i,e){var r;if(!e)return i;i.properties||(i.properties={}),(r=i.properties).class||(r.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const n of t)n&&!i.properties.class.includes(n)&&i.properties.class.push(n);return i}function ve(i,e=!1){var s;if(i.length===0)return[["",0]];const t=i.split(/(\r?\n)/g);let r=0;const n=[];for(let o=0;o<t.length;o+=2){const l=e?t[o]+(t[o+1]||""):t[o];n.push([l,r]),r+=t[o].length,r+=((s=t[o+1])==null?void 0:s.length)||0}return n}function qi(i){const e=ve(i,!0).map(([n])=>n);function t(n){if(n===i.length)return{line:e.length-1,character:e[e.length-1].length};let s=n,o=0;for(const l of e){if(s<l.length)break;s-=l.length,o++}return{line:o,character:s}}function r(n,s){let o=0;for(let l=0;l<n;l++)o+=e[l].length;return o+=s,o}return{lines:e,indexToPos:t,posToIndex:r}}function zi(i,e,t){const r=new Set;for(const s of i.matchAll(/:?lang=["']([^"']+)["']/g)){const o=s[1].toLowerCase().trim();o&&r.add(o)}for(const s of i.matchAll(/(?:```|~~~)([\w-]+)/g)){const o=s[1].toLowerCase().trim();o&&r.add(o)}for(const s of i.matchAll(/\\begin\{([\w-]+)\}/g)){const o=s[1].toLowerCase().trim();o&&r.add(o)}for(const s of i.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const o=s[1].toLowerCase().trim(),l=o.includes("/")?o.split("/").pop():o;l&&r.add(l)}if(!t)return Array.from(r);const n=t.getBundledLanguages();return Array.from(r).filter(s=>s&&n[s])}const Fe="light-dark()",Ki=["color","background-color"];function Ji(i,e){let t=0;const r=[];for(const n of e)n>t&&r.push({...i,content:i.content.slice(t,n),offset:i.offset+t}),t=n;return t<i.content.length&&r.push({...i,content:i.content.slice(t),offset:i.offset+t}),r}function Qi(i,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((r,n)=>r-n);return t.length?i.map(r=>r.flatMap(n=>{const s=t.filter(o=>n.offset<o&&o<n.offset+n.content.length).map(o=>o-n.offset).sort((o,l)=>o-l);return s.length?Ji(n,s):n})):i}function Yi(i,e,t,r,n="css-vars"){const s={content:i.content,explanation:i.explanation,offset:i.offset},o=e.map(d=>fe(i.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),a={},u=(d,m)=>{const h=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return t+e[d]+(m==="color"?"":h)};return o.forEach((d,m)=>{for(const h of l){const p=d[h]||"inherit";if(m===0&&r&&Ki.includes(h))if(r===Fe&&o.length>1){const f=e.findIndex(y=>y==="light"),v=e.findIndex(y=>y==="dark");if(f===-1||v===-1)throw new P('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const R=o[f][h]||"inherit",E=o[v][h]||"inherit";a[h]=`light-dark(${R}, ${E})`,n==="css-vars"&&(a[u(m,h)]=p)}else a[h]=p;else n==="css-vars"&&(a[u(m,h)]=p)}}),s.htmlStyle=a,s}function fe(i){const e={};if(i.color&&(e.color=i.color),i.bgColor&&(e["background-color"]=i.bgColor),i.fontStyle){i.fontStyle&C.Italic&&(e["font-style"]="italic"),i.fontStyle&C.Bold&&(e["font-weight"]="bold");const t=[];i.fontStyle&C.Underline&&t.push("underline"),i.fontStyle&C.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function Be(i){return typeof i=="string"?i:Object.entries(i).map(([e,t])=>`${e}:${t}`).join(";")}const $t=new WeakMap;function Re(i,e){$t.set(i,e)}function re(i){return $t.get(i)}class J{constructor(...e){_(this,"_stacks",{});_(this,"lang");if(e.length===2){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new J(Object.fromEntries(Fi(t).map(r=>[r,Ge])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Xi(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Xi(i){const e=[],t=new Set;function r(n){var o;if(t.has(n))return;t.add(n);const s=(o=n==null?void 0:n.nameScopesList)==null?void 0:o.scopeName;s&&e.push(s),n.parent&&r(n.parent)}return r(i),e}function Zi(i,e){if(!(i instanceof J))throw new P("Invalid grammar state");return i.getInternalStack(e)}function en(){const i=new WeakMap;function e(t){if(!i.has(t.meta)){let r=function(o){if(typeof o=="number"){if(o<0||o>t.source.length)throw new P(`Invalid decoration offset: ${o}. Code length: ${t.source.length}`);return{...n.indexToPos(o),offset:o}}else{const l=n.lines[o.line];if(l===void 0)throw new P(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${n.lines.length}`);let a=o.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new P(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${l.length}`);return{...o,character:a,offset:n.posToIndex(o.line,a)}}};const n=qi(t.source),s=(t.options.decorations||[]).map(o=>({...o,start:r(o.start),end:r(o.end)}));tn(s),i.set(t.meta,{decorations:s,converter:n,source:t.source})}return i.get(t.meta)}return{name:"shiki:decorations",tokens(t){var o;if(!((o=this.options.decorations)!=null&&o.length))return;const n=e(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return Qi(t,n)},code(t){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const r=e(this),n=Array.from(t.children).filter(m=>m.type==="element"&&m.tagName==="span");if(n.length!==r.converter.lines.length)throw new P(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(m,h,p,f){const v=n[m];let R="",E=-1,y=-1;if(h===0&&(E=0),p===0&&(y=0),p===Number.POSITIVE_INFINITY&&(y=v.children.length),E===-1||y===-1)for(let A=0;A<v.children.length;A++)R+=Wt(v.children[A]),E===-1&&R.length===h&&(E=A+1),y===-1&&R.length===p&&(y=A+1);if(E===-1)throw new P(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(y===-1)throw new P(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const g=v.children.slice(E,y);if(!f.alwaysWrap&&g.length===v.children.length)l(v,f,"line");else if(!f.alwaysWrap&&g.length===1&&g[0].type==="element")l(g[0],f,"token");else{const A={type:"element",tagName:"span",properties:{},children:g};l(A,f,"wrapper"),v.children.splice(E,g.length,A)}}function o(m,h){n[m]=l(n[m],h,"line")}function l(m,h,p){var R;const f=h.properties||{},v=h.transform||(E=>E);return m.tagName=h.tagName||"span",m.properties={...m.properties,...f,class:m.properties.class},(R=h.properties)!=null&&R.class&&jt(m,h.properties.class),m=v(m,p)||m,m}const a=[],u=r.decorations.sort((m,h)=>h.start.offset-m.start.offset||m.end.offset-h.end.offset);for(const m of u){const{start:h,end:p}=m;if(h.line===p.line)s(h.line,h.character,p.character,m);else if(h.line<p.line){s(h.line,h.character,Number.POSITIVE_INFINITY,m);for(let f=h.line+1;f<p.line;f++)a.unshift(()=>o(f,m));s(p.line,0,p.character,m)}}a.forEach(m=>m())}}}function tn(i){for(let e=0;e<i.length;e++){const t=i[e];if(t.start.offset>t.end.offset)throw new P(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;r<i.length;r++){const n=i[r],s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset,l=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset;if(s||o||l||a){if(s&&o||l&&a||l&&t.start.offset===t.end.offset||o&&n.start.offset===n.end.offset)continue;throw new P(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function Wt(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(Wt).join(""):""}const rn=[en()];function ge(i){const e=nn(i.transformers||[]);return[...e.pre,...e.normal,...e.post,...rn]}function nn(i){const e=[],t=[],r=[];for(const n of i)switch(n.enforce){case"pre":e.push(n);break;case"post":t.push(n);break;default:r.push(n)}return{pre:e,post:t,normal:r}}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],we={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function sn(i,e){const t=i.indexOf("\x1B",e);if(t!==-1&&i[t+1]==="["){const r=i.indexOf("m",t);if(r!==-1)return{sequence:i.substring(t+2,r).split(";"),startPosition:t,position:r+1}}return{position:i.length}}function ut(i){const e=i.shift();if(e==="2"){const t=i.splice(0,3).map(r=>Number.parseInt(r));return t.length!==3||t.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=i.shift();if(t)return{type:"table",index:Number(t)}}}function on(i){const e=[];for(;i.length>0;){const t=i.shift();if(!t)continue;const r=Number.parseInt(t);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)we[r]&&e.push({type:"setDecoration",value:we[r]});else if(r<=29){const n=we[r-20];n&&(e.push({type:"resetDecoration",value:n}),n==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:W[r-30]}});else if(r===38){const n=ut(i);n&&e.push({type:"setForegroundColor",value:n})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:W[r-40]}});else if(r===48){const n=ut(i);n&&e.push({type:"setBackgroundColor",value:n})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:W[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:W[r-100+8]}})}return e}function an(){let i=null,e=null,t=new Set;return{parse(r){const n=[];let s=0;do{const o=sn(r,s),l=o.sequence?r.substring(s,o.startPosition):r.substring(s);if(l.length>0&&n.push({value:l,foreground:i,background:e,decorations:new Set(t)}),o.sequence){const a=on(o.sequence);for(const u of a)u.type==="resetAll"?(i=null,e=null,t.clear()):u.type==="resetForegroundColor"?i=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of a)u.type==="setForegroundColor"?i=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}s=o.position}while(s<r.length);return n}}}var cn={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 ln(i=cn){function e(l){return i[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function n(){if(r)return r;r=[];for(let u=0;u<W.length;u++)r.push(e(W[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let d=0;d<6;d++)for(let m=0;m<6;m++)r.push(t([l[u],l[d],l[m]]));let a=8;for(let u=0;u<24;u++,a+=10)r.push(t([a,a,a]));return r}function s(l){return n()[l]}function o(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return s(l.index)}}return{value:o}}const un={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 mn(i,e,t){const r=_e(i,t),n=ve(e),s=Object.fromEntries(W.map(a=>{var m;const u=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,d=(m=i.colors)==null?void 0:m[u];return[a,d||un[a]]})),o=ln(s),l=an();return n.map(a=>l.parse(a[0]).map(u=>{let d,m;u.decorations.has("reverse")?(d=u.background?o.value(u.background):i.bg,m=u.foreground?o.value(u.foreground):i.fg):(d=u.foreground?o.value(u.foreground):i.fg,m=u.background?o.value(u.background):void 0),d=$(d,r),m=$(m,r),u.decorations.has("dim")&&(d=dn(d));let h=C.None;return u.decorations.has("bold")&&(h|=C.Bold),u.decorations.has("italic")&&(h|=C.Italic),u.decorations.has("underline")&&(h|=C.Underline),u.decorations.has("strikethrough")&&(h|=C.Strikethrough),{content:u.value,offset:a[1],color:d,bgColor:m,fontStyle:h}}))}function dn(i){const e=i.match(/#([0-9a-f]{3,8})/i);if(e){const r=e[1];if(r.length===8){const n=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${n}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const n=r[0],s=r[1],o=r[2],l=r[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${n}${n}${s}${s}${o}${o}${a}`}else if(r.length===3){const n=r[0],s=r[1],o=r[2];return`#${n}${n}${s}${s}${o}${o}80`}}}const t=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:i}function qe(i,e,t={}){const{theme:r=i.getLoadedThemes()[0]}=t,n=i.resolveLangAlias(t.lang||"text");if(Ue(n)||He(r))return ve(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:s,colorMap:o}=i.setTheme(r);if(n==="ansi")return mn(s,e,t);const l=i.getLanguage(t.lang||"text");if(t.grammarState){if(t.grammarState.lang!==l.name)throw new P(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${l.name}"`);if(!t.grammarState.themes.includes(s.name))throw new P(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return pn(e,l,s,o,t)}function hn(...i){if(i.length===2)return re(i[1]);const[e,t,r={}]=i,{lang:n="text",theme:s=e.getLoadedThemes()[0]}=r;if(Ue(n)||He(s))throw new P("Plain language does not have grammar state");if(n==="ansi")throw new P("ANSI language does not have grammar state");const{theme:o,colorMap:l}=e.setTheme(s),a=e.getLanguage(n);return new J(ze(t,a,o,l,r).stateStack,a.name,o.name)}function pn(i,e,t,r,n){const s=ze(i,e,t,r,n),o=new J(s.stateStack,e.name,t.name);return Re(s.tokens,o),s.tokens}function ze(i,e,t,r,n){const s=_e(t,n),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=n,a=ve(i);let u=n.grammarState?Zi(n.grammarState,t.name)??Ge:n.grammarContextCode!=null?ze(n.grammarContextCode,e,t,r,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ge,d=[];const m=[];for(let h=0,p=a.length;h<p;h++){const[f,v]=a[h];if(f===""){d=[],m.push([]);continue}if(o>0&&f.length>=o){d=[],m.push([{content:f,offset:v,color:"",fontStyle:0}]);continue}let R,E,y;n.includeExplanation&&(R=e.tokenizeLine(f,u,l),E=R.tokens,y=0);const g=e.tokenizeLine2(f,u,l),A=g.tokens.length/2;for(let T=0;T<A;T++){const b=g.tokens[2*T],L=T+1<A?g.tokens[2*T+2]:f.length;if(b===L)continue;const B=g.tokens[2*T+1],k=$(r[K.getForeground(B)],s),j=K.getFontStyle(B),U={content:f.substring(b,L),offset:v+b,color:k,fontStyle:j};if(n.includeExplanation){const H=[];if(n.includeExplanation!=="scopeName")for(const G of t.settings){let F;switch(typeof G.scope){case"string":F=G.scope.split(/,/).map(Le=>Le.trim());break;case"object":F=G.scope;break;default:continue}H.push({settings:G,selectors:F.map(Le=>Le.split(/ /))})}U.explanation=[];let Qe=0;for(;b+Qe<L;){const G=E[y],F=f.substring(G.startIndex,G.endIndex);Qe+=F.length,U.explanation.push({content:F,scopes:n.includeExplanation==="scopeName"?_n(G.scopes):fn(H,G.scopes)}),y+=1}}d.push(U)}m.push(d),d=[],u=g.ruleStack}return{tokens:m,stateStack:u}}function _n(i){return i.map(e=>({scopeName:e}))}function fn(i,e){const t=[];for(let r=0,n=e.length;r<n;r++){const s=e[r];t[r]={scopeName:s,themeMatches:En(i,s,e.slice(0,r))}}return t}function mt(i,e){return i===e||e.substring(0,i.length)===i&&e[i.length]==="."}function gn(i,e,t){if(!mt(i[i.length-1],e))return!1;let r=i.length-2,n=t.length-1;for(;r>=0&&n>=0;)mt(i[r],t[n])&&(r-=1),n-=1;return r===-1}function En(i,e,t){const r=[];for(const{selectors:n,settings:s}of i)for(const o of n)if(gn(o,e,t)){r.push(s);break}return r}function Ut(i,e,t){const r=Object.entries(t.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),n=r.map(a=>{const u=qe(i,e,{...t,theme:a.theme}),d=re(u),m=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:u,state:d,theme:m}}),s=yn(...n.map(a=>a.tokens)),o=s[0].map((a,u)=>a.map((d,m)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in t&&t.includeExplanation&&(h.explanation=d.explanation),s.forEach((p,f)=>{const{content:v,explanation:R,offset:E,...y}=p[u][m];h.variants[r[f].color]=y}),h})),l=n[0].state?new J(Object.fromEntries(n.map(a=>{var u;return[a.theme,(u=a.state)==null?void 0:u.getInternalStack(a.theme)]})),n[0].state.lang):void 0;return l&&Re(o,l),o}function yn(...i){const e=i.map(()=>[]),t=i.length;for(let r=0;r<i[0].length;r++){const n=i.map(a=>a[r]),s=e.map(()=>[]);e.forEach((a,u)=>a.push(s[u]));const o=n.map(()=>0),l=n.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(u=>u.content.length));for(let u=0;u<t;u++){const d=l[u];d.content.length===a?(s[u].push(d),o[u]+=1,l[u]=n[u][o[u]]):(s[u].push({...d,content:d.content.slice(0,a)}),l[u]={...d,content:d.content.slice(a),offset:d.offset+a})}}}return e}function Ee(i,e,t){let r,n,s,o,l,a;if("themes"in t){const{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:m="css-vars"}=t,h=Object.entries(t.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,y)=>E.color===u?-1:y.color===u?1:0);if(h.length===0)throw new P("`themes` option must not be empty");const p=Ut(i,e,t);if(a=re(p),u&&Fe!==u&&!h.find(E=>E.color===u))throw new P(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=h.map(E=>i.getTheme(E.theme)),v=h.map(E=>E.color);s=p.map(E=>E.map(y=>Yi(y,v,d,u,m))),a&&Re(s,a);const R=h.map(E=>_e(E.theme,t));n=dt(h,f,R,d,u,"fg",m),r=dt(h,f,R,d,u,"bg",m),o=`shiki-themes ${f.map(E=>E.name).join(" ")}`,l=u?void 0:[n,r].join(";")}else if("theme"in t){const u=_e(t.theme,t);s=qe(i,e,t);const d=i.getTheme(t.theme);r=$(d.bg,u),n=$(d.fg,u),o=d.name,a=re(s)}else throw new P("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:n,bg:r,themeName:o,rootStyle:l,grammarState:a}}function dt(i,e,t,r,n,s,o){return i.map((l,a)=>{const u=$(e[a][s],t[a])||"inherit",d=`${r+l.color}${s==="bg"?"-bg":""}:${u}`;if(a===0&&n){if(n===Fe&&i.length>1){const m=i.findIndex(v=>v.color==="light"),h=i.findIndex(v=>v.color==="dark");if(m===-1||h===-1)throw new P('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=$(e[m][s],t[m])||"inherit",f=$(e[h][s],t[h])||"inherit";return`light-dark(${p}, ${f});${d}`}return u}return o==="css-vars"?d:null}).filter(l=>!!l).join(";")}function ye(i,e,t,r={meta:{},options:t,codeToHast:(n,s)=>ye(i,n,s),codeToTokens:(n,s)=>Ee(i,n,s)}){var f,v;let n=e;for(const R of ge(t))n=((f=R.preprocess)==null?void 0:f.call(r,n,t))||n;let{tokens:s,fg:o,bg:l,themeName:a,rootStyle:u,grammarState:d}=Ee(i,n,t);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:h=!1}=t;m===!0?s=Rn(s):m==="never"&&(s=An(s)),h&&(s=Tn(s));const p={...r,get source(){return n}};for(const R of ge(t))s=((v=R.tokens)==null?void 0:v.call(p,s))||s;return vn(s,{...t,fg:o,bg:l,themeName:a,rootStyle:t.rootStyle===!1?!1:t.rootStyle??u},p,d)}function vn(i,e,t,r=re(i)){var v,R,E,y;const n=ge(e),s=[],o={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e,u={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?u.style=e.rootStyle:u.style=`background-color:${e.bg};color:${e.fg}`),a!==!1&&a!=null&&(u.tabindex=a.toString());for(const[g,A]of Object.entries(e.meta||{}))g.startsWith("_")||(u[g]=A);let d={type:"element",tagName:"pre",properties:u,children:[],data:e.data},m={type:"element",tagName:"code",properties:{},children:s};const h=[],p={...t,structure:l,addClassToHast:jt,get source(){return t.source},get tokens(){return i},get options(){return e},get root(){return o},get pre(){return d},get code(){return m},get lines(){return h}};if(i.forEach((g,A)=>{var L,B;A&&(l==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&s.push({type:"text",value:`
|
|
13
|
-
`}));let T={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const k of g){let j={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const U=Be(k.htmlStyle||fe(k));U&&(j.properties.style=U);for(const H of n)j=((L=H==null?void 0:H.span)==null?void 0:L.call(p,j,A+1,b,T,k))||j;l==="inline"?o.children.push(j):l==="classic"&&T.children.push(j),b+=k.content.length}if(l==="classic"){for(const k of n)T=((B=k==null?void 0:k.line)==null?void 0:B.call(p,T,A+1))||T;h.push(T),s.push(T)}else l==="inline"&&h.push(T)}),l==="classic"){for(const g of n)m=((v=g==null?void 0:g.code)==null?void 0:v.call(p,m))||m;d.children.push(m);for(const g of n)d=((R=g==null?void 0:g.pre)==null?void 0:R.call(p,d))||d;o.children.push(d)}else if(l==="inline"){const g=[];let A={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of o.children)L.type==="element"&&L.tagName==="br"?(g.push(A),A={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&A.children.push(L);g.push(A);let b={type:"element",tagName:"code",properties:{},children:g};for(const L of n)b=((E=L==null?void 0:L.code)==null?void 0:E.call(p,b))||b;o.children=[];for(let L=0;L<b.children.length;L++){L>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const B=b.children[L];B.type==="element"&&o.children.push(...B.children)}}let f=o;for(const g of n)f=((y=g==null?void 0:g.root)==null?void 0:y.call(p,f))||f;return r&&Re(f,r),f}function Rn(i){return i.map(e=>{const t=[];let r="",n;return e.forEach((s,o)=>{const a=!(s.fontStyle&&(s.fontStyle&C.Underline||s.fontStyle&C.Strikethrough));a&&s.content.match(/^\s+$/)&&e[o+1]?(n===void 0&&(n=s.offset),r+=s.content):r?(a?t.push({...s,offset:n,content:r+s.content}):t.push({content:r,offset:n},s),n=void 0,r=""):t.push(s)}),t})}function An(i){return i.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,n,s,o]=r;if(!n&&!o)return t;const l=[{...t,offset:t.offset+n.length,content:s}];return n&&l.unshift({content:n,offset:t.offset}),o&&l.push({content:o,offset:t.offset+n.length+s.length}),l}))}function Tn(i){return i.map(e=>{const t=[];for(const r of e){if(t.length===0){t.push({...r});continue}const n=t[t.length-1],s=Be(n.htmlStyle||fe(n)),o=Be(r.htmlStyle||fe(r)),l=n.fontStyle&&(n.fontStyle&C.Underline||n.fontStyle&C.Strikethrough),a=r.fontStyle&&(r.fontStyle&C.Underline||r.fontStyle&C.Strikethrough);!l&&!a&&s===o?n.content+=r.content:t.push({...r})}return t})}const Ln=Wi;function bn(i,e,t){var s;const r={meta:{},options:t,codeToHast:(o,l)=>ye(i,o,l),codeToTokens:(o,l)=>Ee(i,o,l)};let n=Ln(ye(i,e,t,r));for(const o of ge(t))n=((s=o.postprocess)==null?void 0:s.call(r,n,t))||n;return n}const ht={light:"#333333",dark:"#bbbbbb"},pt={light:"#fffffe",dark:"#1e1e1e"},_t="__shiki_resolved";function Ke(i){var l,a,u,d,m;if(i!=null&&i[_t])return i;const e={...i};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:r}=e;if(!t||!r){const h=e.settings?e.settings.find(p=>!p.name&&!p.scope):void 0;(l=h==null?void 0:h.settings)!=null&&l.foreground&&(r=h.settings.foreground),(a=h==null?void 0:h.settings)!=null&&a.background&&(t=h.settings.background),!r&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(r=e.colors["editor.foreground"]),!t&&((d=e==null?void 0:e.colors)!=null&&d["editor.background"])&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?ht.light:ht.dark),t||(t=e.type==="light"?pt.light:pt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let n=0;const s=new Map;function o(h){var f;if(s.has(h))return s.get(h);n+=1;const p=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(f=e.colorReplacements)!=null&&f[`#${p}`]?o(h):(s.set(h,p),p)}e.settings=e.settings.map(h=>{var R,E;const p=((R=h.settings)==null?void 0:R.foreground)&&!h.settings.foreground.startsWith("#"),f=((E=h.settings)==null?void 0:E.background)&&!h.settings.background.startsWith("#");if(!p&&!f)return h;const v={...h,settings:{...h.settings}};if(p){const y=o(h.settings.foreground);e.colorReplacements[y]=h.settings.foreground,v.settings.foreground=y}if(f){const y=o(h.settings.background);e.colorReplacements[y]=h.settings.background,v.settings.background=y}return v});for(const h of Object.keys(e.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((m=e.colors[h])!=null&&m.startsWith("#"))){const p=o(e.colors[h]);e.colorReplacements[p]=e.colors[h],e.colors[h]=p}return Object.defineProperty(e,_t,{enumerable:!1,writable:!1,value:!0}),e}async function Ht(i){return Array.from(new Set((await Promise.all(i.filter(e=>!Mt(e)).map(async e=>await Gt(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function Ft(i){return(await Promise.all(i.map(async t=>Bt(t)?null:Ke(await Gt(t))))).filter(t=>!!t)}let Pn=3;function In(i,e=3){e>Pn||console.trace(`[SHIKI DEPRECATE]: ${i}`)}let q=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function qt(i,e){if(!e)return i;if(e[i]){const t=new Set([i]);for(;e[i];){if(i=e[i],t.has(i))throw new q(`Circular alias \`${Array.from(t).join(" -> ")} -> ${i}\``);t.add(i)}}return i}class Sn extends $r{constructor(t,r,n,s={}){super(t);_(this,"_resolvedThemes",new Map);_(this,"_resolvedGrammars",new Map);_(this,"_langMap",new Map);_(this,"_langGraph",new Map);_(this,"_textmateThemeCache",new WeakMap);_(this,"_loadedThemesCache",null);_(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=Ke(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=ue.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=qt(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var o,l,a,u;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(d=>{var m;return(m=d.embeddedLangsLazy)==null?void 0:m.includes(t.name)}));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,r.size)for(const d of r)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(l=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||l.delete(d.scopeName),(u=(a=this._syncRegistry)==null?void 0:a._grammars)==null||u.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const r=Array.from(this._langGraph.entries()),n=r.filter(([s,o])=>!o);if(n.length){const s=r.filter(([o,l])=>{if(!l)return!1;const a=l.embeddedLanguages||l.embeddedLangs;return a==null?void 0:a.some(u=>n.map(([d])=>d).includes(u))}).filter(o=>!n.includes(o));throw new q(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of r)this._resolver.addLanguage(o);for(const[s,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class On{constructor(e,t){_(this,"_langs",new Map);_(this,"_scopeToLang",new Map);_(this,"_injections",new Map);_(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}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 r=[];for(let n=1;n<=t.length;n++){const s=t.slice(0,n).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Q=0;function wn(i){Q+=1,i.warnings!==!1&&Q>=10&&Q%10===0&&console.warn(`[Shiki] ${Q} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!i.engine)throw new q("`engine` option is required for synchronous mode");const t=(i.langs||[]).flat(1),r=(i.themes||[]).flat(1).map(Ke),n=new On(i.engine,t),s=new Sn(n,r,t,i.langAlias);let o;function l(g){return qt(g,i.langAlias)}function a(g){E();const A=s.getGrammar(typeof g=="string"?g:g.name);if(!A)throw new q(`Language \`${g}\` not found, you may need to load it first`);return A}function u(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const A=s.getTheme(g);if(!A)throw new q(`Theme \`${g}\` not found, you may need to load it first`);return A}function d(g){E();const A=u(g);o!==g&&(s.setTheme(A),o=g);const T=s.getColorMap();return{theme:A,colorMap:T}}function m(){return E(),s.getLoadedThemes()}function h(){return E(),s.getLoadedLanguages()}function p(...g){E(),s.loadLanguages(g.flat(1))}async function f(...g){return p(await Ht(g))}function v(...g){E();for(const A of g.flat(1))s.loadTheme(A)}async function R(...g){return E(),v(await Ft(g))}function E(){if(e)throw new q("Shiki instance has been disposed")}function y(){e||(e=!0,s.dispose(),Q-=1)}return{setTheme:d,getTheme:u,getLanguage:a,getLoadedThemes:m,getLoadedLanguages:h,resolveLangAlias:l,loadLanguage:f,loadLanguageSync:p,loadTheme:R,loadThemeSync:v,dispose:y,[Symbol.dispose]:y}}async function Cn(i){i.engine||In("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([Ft(i.themes||[]),Ht(i.langs||[]),i.engine]);return wn({...i,themes:e,langs:t,engine:r})}async function kn(i){const e=await Cn(i);return{getLastGrammarState:(...t)=>hn(e,...t),codeToTokensBase:(t,r)=>qe(e,t,r),codeToTokensWithThemes:(t,r)=>Ut(e,t,r),codeToTokens:(t,r)=>Ee(e,t,r),codeToHast:(t,r)=>ye(e,t,r),codeToHtml:(t,r)=>bn(e,t,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Dn(i){const e=i.langs,t=i.themes,r=i.engine;async function n(s){function o(m){var h;if(typeof m=="string"){if(m=((h=s.langAlias)==null?void 0:h[m])||m,Mt(m))return[];const p=e[m];if(!p)throw new P(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return p}return m}function l(m){if(Bt(m))return"none";if(typeof m=="string"){const h=t[m];if(!h)throw new P(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return h}return m}const a=(s.themes??[]).map(m=>l(m)),u=(s.langs??[]).map(m=>o(m)),d=await kn({engine:s.engine??r(),...s,themes:a,langs:u});return{...d,loadLanguage(...m){return d.loadLanguage(...m.map(o))},loadTheme(...m){return d.loadTheme(...m.map(l))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return n}function Nn(i){let e;async function t(r={}){if(e){const n=await e;return await Promise.all([n.loadTheme(...r.themes||[]),n.loadLanguage(...r.langs||[])]),n}else{e=i({...r,themes:[],langs:[]});const n=await e;return await Promise.all([n.loadTheme(...r.themes||[]),n.loadLanguage(...r.langs||[])]),n}}return t}function Vn(i,e){const t=Nn(i);async function r(n,s){var a;const o=await t({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),l=await((a=e==null?void 0:e.guessEmbeddedLanguages)==null?void 0:a.call(e,n,s.lang,o));return l&&await o.loadLanguage(...l),o}return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,s){return(await r(n,s)).codeToHtml(n,s)},async codeToHast(n,s){return(await r(n,s)).codeToHast(n,s)},async codeToTokens(n,s){return(await r(n,s)).codeToTokens(n,s)},async codeToTokensBase(n,s){return(await r(n,s)).codeToTokensBase(n,s)},async codeToTokensWithThemes(n,s){return(await r(n,s)).codeToTokensWithThemes(n,s)},async getLastGrammarState(n,s){return(await t({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(n,s)}}}const zt=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>c(()=>import("./actionscript-3-CfeIJUat.js"),[])},{id:"ada",name:"Ada",import:()=>c(()=>import("./ada-bCR0ucgS.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./angular-html-CU67Zn6k.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>c(()=>import("./apex-D8_7TLub.js"),[])},{id:"apl",name:"APL",import:()=>c(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>c(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./asciidoc-Dv7Oe6Be.js"),[])},{id:"asm",name:"Assembly",import:()=>c(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>c(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>c(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c(()=>import("./bat-BkioyH1T.js"),[])},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./beancount-k_qm7-4y.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./berry-uYugtg8r.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./bicep-Bmn6On1c.js"),[])},{id:"blade",name:"Blade",import:()=>c(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>c(()=>import("./c-BIGW1oBm.js"),[])},{id:"c3",name:"C3",import:()=>c(()=>import("./c3-VCDPK7BO.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[])},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]))},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./clarity-D53aC0YG.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>c(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Coq",import:()=>c(()=>import("./coq-DkFqJrB1.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]))},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./csharp-K5feNrxe.js"),[])},{id:"css",name:"CSS",import:()=>c(()=>import("./css-DPfMkruS.js"),[])},{id:"csv",name:"CSV",import:()=>c(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>c(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>c(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>c(()=>import("./dart-CF10PKvl.js"),[])},{id:"dax",name:"DAX",import:()=>c(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>c(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>c(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3]))},{id:"elm",name:"Elm",import:()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./emacs-lisp-C9XAeP06.js"),[])},{id:"erb",name:"ERB",import:()=>c(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]))},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>c(()=>import("./fish-BvzEVeQv.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]))},{id:"gdresource",name:"GDResource",import:()=>c(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46]))},{id:"gdscript",name:"GDScript",import:()=>c(()=>import("./gdscript-DTMYz4Jt.js"),[])},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>c(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]))},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]))},{id:"gn",name:"GN",import:()=>c(()=>import("./gn-n2N0HUVH.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>c(()=>import("./go-Dn2_MT6a.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]))},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>c(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./haxe-CzTSHFRz.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>c(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>c(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]))},{id:"hurl",name:"Hurl",import:()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]))},{id:"hxml",name:"HXML",import:()=>c(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>c(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>c(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>c(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>c(()=>import("./javascript-wDzz0qaB.js"),[])},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3]))},{id:"jison",name:"Jison",import:()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]))},{id:"json",name:"JSON",import:()=>c(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>c(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>c(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]))},{id:"kdl",name:"KDL",import:()=>c(()=>import("./kdl-DV7GczEv.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./kusto-DZf3V79B.js"),[])},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./latex-B4uzh10-.js"),__vite__mapDeps([63,64,62]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./lean-BZvkOJ9d.js"),[])},{id:"less",name:"Less",import:()=>c(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>c(()=>import("./llvm-BtvRca6l.js"),[])},{id:"log",name:"Log file",import:()=>c(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>c(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>c(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26]))},{id:"luau",name:"Luau",import:()=>c(()=>import("./luau-C-HG3fhB.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./markdown-Cvjx9yec.js"),[])},{id:"marko",name:"Marko",import:()=>c(()=>import("./marko-DZsq8hO1.js"),__vite__mapDeps([66,3,67,5,11]))},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>c(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./mermaid-mWjccvbQ.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./mojo-B93PlW-d.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>c(()=>import("./moonbit-Ba13S78F.js"),[])},{id:"move",name:"Move",import:()=>c(()=>import("./move-Bu9oaDYs.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./nextflow-BrzmwbiE.js"),[])},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26]))},{id:"nim",name:"Nim",import:()=>c(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]))},{id:"nix",name:"Nix",import:()=>c(()=>import("./nix-CwoSXNpI.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./nushell-C-sUppwS.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>c(()=>import("./openscad-C4EeE6gA.js"),[])},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>c(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>c(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>c(()=>import("./pkl-u5AG7uiY.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>c(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c(()=>import("./powershell-Dpen1YoG.js"),[])},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./prisma-Dd19v3D-.js"),[])},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>import("./proto-C7zT0LnQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./purescript-CklMAg4u.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2]))},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>c(()=>import("./r-Dspwwk_N.js"),[])},{id:"racket",name:"Racket",import:()=>c(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./razor-C1TweQQi.js"),__vite__mapDeps([75,1,2,3,76]))},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>c(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[])},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>c(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16]))},{id:"sass",name:"Sass",import:()=>c(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>c(()=>import("./scala-C151Ov-r.js"),[])},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>c(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28]))},{id:"smalltalk",name:"Smalltalk",import:()=>c(()=>import("./smalltalk-BERRCDM3.js"),[])},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./solidity-rGO070M0.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>c(()=>import("./sql-BLtJtn59.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>c(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./svelte-zxCyuUbr.js"),__vite__mapDeps([87,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>c(()=>import("./swift-Dg5xB15N.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./system-verilog-CnnmHF94.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>c(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>c(()=>import("./tex-CvyZ59Mk.js"),__vite__mapDeps([64,62]))},{id:"toml",name:"TOML",import:()=>c(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>c(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>c(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>c(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>c(()=>import("./typescript-BPQ3VLAy.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./typespec-BGHnOYBU.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./typst-DHCkPAjA.js"),[])},{id:"v",name:"V",import:()=>c(()=>import("./v-BcVCzyr7.js"),[])},{id:"vala",name:"Vala",import:()=>c(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c(()=>import("./vb-D17OF-Vu.js"),[])},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./verilog-BQ8w6xss.js"),[])},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>c(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([92,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([93,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>c(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([94,3,5,67,95,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>c(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>c(()=>import("./zig-VOosw3JB.js"),[])}],xn=Object.fromEntries(zt.map(i=>[i.id,i.import])),Gn=Object.fromEntries(zt.flatMap(i=>{var e;return((e=i.aliases)==null?void 0:e.map(t=>[t,i.import]))||[]})),Mn={...xn,...Gn},Bn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C-Jbm3Hp.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-CmMr59Fi.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-DFWUc33u.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-qdsjHGoJ.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-D4_iv3hh.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],jn=Object.fromEntries(Bn.map(i=>[i.id,i.import]));class Je extends Error{constructor(e){super(e),this.name="ShikiError"}}function $n(){return 2147483648}function Wn(){return typeof performance<"u"?performance.now():Date.now()}const Un=(i,e)=>i+(e-i%e)%e;async function Hn(i){let e,t;const r={};function n(p){t=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function s(p,f,v){r.HEAPU8.copyWithin(p,f,f+v)}function o(p){try{return e.grow(p-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(p){const f=r.HEAPU8.length;p=p>>>0;const v=$n();if(p>v)return!1;for(let R=1;R<=4;R*=2){let E=f*(1+.2/R);E=Math.min(E,p+100663296);const y=Math.min(v,Un(Math.max(p,E),65536));if(o(y))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(p,f,v=1024){const R=f+v;let E=f;for(;p[E]&&!(E>=R);)++E;if(E-f>16&&p.buffer&&a)return a.decode(p.subarray(f,E));let y="";for(;f<E;){let g=p[f++];if(!(g&128)){y+=String.fromCharCode(g);continue}const A=p[f++]&63;if((g&224)===192){y+=String.fromCharCode((g&31)<<6|A);continue}const T=p[f++]&63;if((g&240)===224?g=(g&15)<<12|A<<6|T:g=(g&7)<<18|A<<12|T<<6|p[f++]&63,g<65536)y+=String.fromCharCode(g);else{const b=g-65536;y+=String.fromCharCode(55296|b>>10,56320|b&1023)}}return y}function d(p,f){return p?u(r.HEAPU8,p,f):""}const m={emscripten_get_now:Wn,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const f=await i({env:m,wasi_snapshot_preview1:m});e=f.memory,n(e.buffer),Object.assign(r,f),r.UTF8ToString=d}return await h(),r}var Fn=Object.defineProperty,qn=(i,e,t)=>e in i?Fn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,I=(i,e,t)=>qn(i,typeof e!="symbol"?e+"":e,t);let O=null;function zn(i){throw new Je(i.UTF8ToString(i.getLastOnigError()))}class Ae{constructor(e){I(this,"utf16Length"),I(this,"utf8Length"),I(this,"utf16Value"),I(this,"utf8Value"),I(this,"utf16OffsetToUtf8"),I(this,"utf8OffsetToUtf16");const t=e.length,r=Ae._utf8ByteLength(e),n=r!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=r);const o=n?new Uint32Array(r+1):null;n&&(o[r]=t);const l=new Uint8Array(r);let a=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,h=!1;if(d>=55296&&d<=56319&&u+1<t){const p=e.charCodeAt(u+1);p>=56320&&p<=57343&&(m=(d-55296<<10)+65536|p-56320,h=!0)}n&&(s[u]=a,h&&(s[u+1]=a),m<=127?o[a+0]=u:m<=2047?(o[a+0]=u,o[a+1]=u):m<=65535?(o[a+0]=u,o[a+1]=u,o[a+2]=u):(o[a+0]=u,o[a+1]=u,o[a+2]=u,o[a+3]=u)),m<=127?l[a++]=m:m<=2047?(l[a++]=192|(m&1984)>>>6,l[a++]=128|(m&63)>>>0):m<=65535?(l[a++]=224|(m&61440)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0):(l[a++]=240|(m&1835008)>>>18,l[a++]=128|(m&258048)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0),h&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){const s=e.charCodeAt(r);let o=s,l=!1;if(s>=55296&&s<=56319&&r+1<n){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(o=(s-55296<<10)+65536|a-56320,l=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,l&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const Te=class x{constructor(e){if(I(this,"id",++x.LAST_ID),I(this,"_onigBinding"),I(this,"content"),I(this,"utf16Length"),I(this,"utf8Length"),I(this,"utf16OffsetToUtf8"),I(this,"utf8OffsetToUtf16"),I(this,"ptr"),!O)throw new Je("Must invoke loadWasm first.");this._onigBinding=O,this.content=e;const t=new Ae(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!x._sharedPtrInUse?(x._sharedPtr||(x._sharedPtr=O.omalloc(1e4)),x._sharedPtrInUse=!0,O.HEAPU8.set(t.utf8Value,x._sharedPtr),this.ptr=x._sharedPtr):this.ptr=t.createString(O)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===x._sharedPtr?x._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};I(Te,"LAST_ID",0);I(Te,"_sharedPtr",0);I(Te,"_sharedPtrInUse",!1);let Kt=Te;class Kn{constructor(e){if(I(this,"_onigBinding"),I(this,"_ptr"),!O)throw new Je("Must invoke loadWasm first.");const t=[],r=[];for(let l=0,a=e.length;l<a;l++){const u=new Ae(e[l]);t[l]=u.createString(O),r[l]=u.utf8Length}const n=O.omalloc(4*e.length);O.HEAPU32.set(t,n/4);const s=O.omalloc(4*e.length);O.HEAPU32.set(r,s/4);const o=O.createOnigScanner(n,s,e.length);for(let l=0,a=e.length;l<a;l++)O.ofree(t[l]);O.ofree(s),O.ofree(n),o===0&&zn(O),this._onigBinding=O,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if(typeof r=="number"&&(n=r),typeof e=="string"){e=new Kt(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(o===0)return null;const l=s.HEAPU32;let a=o/4;const u=l[a++],d=l[a++],m=[];for(let h=0;h<d;h++){const p=e.convertUtf8OffsetToUtf16(l[a++]),f=e.convertUtf8OffsetToUtf16(l[a++]);m[h]={start:p,end:f,length:f-p}}return{index:u,captureIndices:m}}}function Jn(i){return typeof i.instantiator=="function"}function Qn(i){return typeof i.default=="function"}function Yn(i){return typeof i.data<"u"}function Xn(i){return typeof Response<"u"&&i instanceof Response}function Zn(i){var e;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let ae;function es(i){if(ae)return ae;async function e(){O=await Hn(async t=>{let r=i;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),Jn(r)?r=await r.instantiator(t):Qn(r)?r=await r.default(t):(Yn(r)&&(r=r.data),Xn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await ts(r)(t):r=await rs(r)(t):Zn(r)?r=await Ce(r)(t):r instanceof WebAssembly.Module?r=await Ce(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ce(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ae=e(),ae}function Ce(i){return e=>WebAssembly.instantiate(i,e)}function ts(i){return e=>WebAssembly.instantiateStreaming(i,e)}function rs(i){return async e=>{const t=await i.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function is(i){return i&&await es(i),{createScanner(e){return new Kn(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Kt(e)}}}const ns=Dn({langs:Mn,themes:jn,engine:()=>is(c(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:gs}=Vn(ns,{guessEmbeddedLanguages:zi});export{P as ShikiError,jt as addClassToHast,$ as applyColorReplacements,Mn as bundledLanguages,Gn as bundledLanguagesAlias,xn as bundledLanguagesBase,zt as bundledLanguagesInfo,jn as bundledThemes,Bn as bundledThemesInfo,gs as codeToHtml,Dn as createBundledHighlighter,ns as createHighlighter,kn as createHighlighterCore,is as createOnigurumaEngine,qi as createPositionConverter,Cn as createShikiInternal,wn as createShikiInternalSync,Vn as createSingletonShorthands,Yi as flatTokenVariants,fe as getTokenStyleObject,zi as guessEmbeddedLanguages,Ln as hastToHtml,He as isNoneTheme,Ue as isPlainLang,Mt as isSpecialLang,Bt as isSpecialTheme,es as loadWasm,Nn as makeSingletonHighlighter,Gt as normalizeGetter,Ke as normalizeTheme,_e as resolveColorReplacements,ve as splitLines,Ji as splitToken,Qi as splitTokens,Be as stringifyTokenStyle,Fi as toArray,mn as tokenizeAnsiWithTheme,pn as tokenizeWithTheme,vn as tokensToHast,en as transformerDecorations,In as warnDeprecated};
|
|
13
|
+
`}));let T={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const k of g){let j={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const U=Be(k.htmlStyle||fe(k));U&&(j.properties.style=U);for(const H of n)j=((L=H==null?void 0:H.span)==null?void 0:L.call(p,j,A+1,b,T,k))||j;l==="inline"?o.children.push(j):l==="classic"&&T.children.push(j),b+=k.content.length}if(l==="classic"){for(const k of n)T=((B=k==null?void 0:k.line)==null?void 0:B.call(p,T,A+1))||T;h.push(T),s.push(T)}else l==="inline"&&h.push(T)}),l==="classic"){for(const g of n)m=((v=g==null?void 0:g.code)==null?void 0:v.call(p,m))||m;d.children.push(m);for(const g of n)d=((R=g==null?void 0:g.pre)==null?void 0:R.call(p,d))||d;o.children.push(d)}else if(l==="inline"){const g=[];let A={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of o.children)L.type==="element"&&L.tagName==="br"?(g.push(A),A={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&A.children.push(L);g.push(A);let b={type:"element",tagName:"code",properties:{},children:g};for(const L of n)b=((E=L==null?void 0:L.code)==null?void 0:E.call(p,b))||b;o.children=[];for(let L=0;L<b.children.length;L++){L>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const B=b.children[L];B.type==="element"&&o.children.push(...B.children)}}let f=o;for(const g of n)f=((y=g==null?void 0:g.root)==null?void 0:y.call(p,f))||f;return r&&Re(f,r),f}function Rn(i){return i.map(e=>{const t=[];let r="",n;return e.forEach((s,o)=>{const a=!(s.fontStyle&&(s.fontStyle&C.Underline||s.fontStyle&C.Strikethrough));a&&s.content.match(/^\s+$/)&&e[o+1]?(n===void 0&&(n=s.offset),r+=s.content):r?(a?t.push({...s,offset:n,content:r+s.content}):t.push({content:r,offset:n},s),n=void 0,r=""):t.push(s)}),t})}function An(i){return i.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,n,s,o]=r;if(!n&&!o)return t;const l=[{...t,offset:t.offset+n.length,content:s}];return n&&l.unshift({content:n,offset:t.offset}),o&&l.push({content:o,offset:t.offset+n.length+s.length}),l}))}function Tn(i){return i.map(e=>{const t=[];for(const r of e){if(t.length===0){t.push({...r});continue}const n=t[t.length-1],s=Be(n.htmlStyle||fe(n)),o=Be(r.htmlStyle||fe(r)),l=n.fontStyle&&(n.fontStyle&C.Underline||n.fontStyle&C.Strikethrough),a=r.fontStyle&&(r.fontStyle&C.Underline||r.fontStyle&C.Strikethrough);!l&&!a&&s===o?n.content+=r.content:t.push({...r})}return t})}const Ln=Wi;function bn(i,e,t){var s;const r={meta:{},options:t,codeToHast:(o,l)=>ye(i,o,l),codeToTokens:(o,l)=>Ee(i,o,l)};let n=Ln(ye(i,e,t,r));for(const o of ge(t))n=((s=o.postprocess)==null?void 0:s.call(r,n,t))||n;return n}const ht={light:"#333333",dark:"#bbbbbb"},pt={light:"#fffffe",dark:"#1e1e1e"},_t="__shiki_resolved";function Ke(i){var l,a,u,d,m;if(i!=null&&i[_t])return i;const e={...i};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:r}=e;if(!t||!r){const h=e.settings?e.settings.find(p=>!p.name&&!p.scope):void 0;(l=h==null?void 0:h.settings)!=null&&l.foreground&&(r=h.settings.foreground),(a=h==null?void 0:h.settings)!=null&&a.background&&(t=h.settings.background),!r&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(r=e.colors["editor.foreground"]),!t&&((d=e==null?void 0:e.colors)!=null&&d["editor.background"])&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?ht.light:ht.dark),t||(t=e.type==="light"?pt.light:pt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let n=0;const s=new Map;function o(h){var f;if(s.has(h))return s.get(h);n+=1;const p=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(f=e.colorReplacements)!=null&&f[`#${p}`]?o(h):(s.set(h,p),p)}e.settings=e.settings.map(h=>{var R,E;const p=((R=h.settings)==null?void 0:R.foreground)&&!h.settings.foreground.startsWith("#"),f=((E=h.settings)==null?void 0:E.background)&&!h.settings.background.startsWith("#");if(!p&&!f)return h;const v={...h,settings:{...h.settings}};if(p){const y=o(h.settings.foreground);e.colorReplacements[y]=h.settings.foreground,v.settings.foreground=y}if(f){const y=o(h.settings.background);e.colorReplacements[y]=h.settings.background,v.settings.background=y}return v});for(const h of Object.keys(e.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((m=e.colors[h])!=null&&m.startsWith("#"))){const p=o(e.colors[h]);e.colorReplacements[p]=e.colors[h],e.colors[h]=p}return Object.defineProperty(e,_t,{enumerable:!1,writable:!1,value:!0}),e}async function Ht(i){return Array.from(new Set((await Promise.all(i.filter(e=>!Mt(e)).map(async e=>await Gt(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function Ft(i){return(await Promise.all(i.map(async t=>Bt(t)?null:Ke(await Gt(t))))).filter(t=>!!t)}let Pn=3;function In(i,e=3){e>Pn||console.trace(`[SHIKI DEPRECATE]: ${i}`)}let q=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function qt(i,e){if(!e)return i;if(e[i]){const t=new Set([i]);for(;e[i];){if(i=e[i],t.has(i))throw new q(`Circular alias \`${Array.from(t).join(" -> ")} -> ${i}\``);t.add(i)}}return i}class Sn extends $r{constructor(t,r,n,s={}){super(t);_(this,"_resolvedThemes",new Map);_(this,"_resolvedGrammars",new Map);_(this,"_langMap",new Map);_(this,"_langGraph",new Map);_(this,"_textmateThemeCache",new WeakMap);_(this,"_loadedThemesCache",null);_(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=Ke(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=ue.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=qt(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var o,l,a,u;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(d=>{var m;return(m=d.embeddedLangsLazy)==null?void 0:m.includes(t.name)}));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,r.size)for(const d of r)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(l=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||l.delete(d.scopeName),(u=(a=this._syncRegistry)==null?void 0:a._grammars)==null||u.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const r=Array.from(this._langGraph.entries()),n=r.filter(([s,o])=>!o);if(n.length){const s=r.filter(([o,l])=>{if(!l)return!1;const a=l.embeddedLanguages||l.embeddedLangs;return a==null?void 0:a.some(u=>n.map(([d])=>d).includes(u))}).filter(o=>!n.includes(o));throw new q(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of r)this._resolver.addLanguage(o);for(const[s,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class On{constructor(e,t){_(this,"_langs",new Map);_(this,"_scopeToLang",new Map);_(this,"_injections",new Map);_(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}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 r=[];for(let n=1;n<=t.length;n++){const s=t.slice(0,n).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Q=0;function wn(i){Q+=1,i.warnings!==!1&&Q>=10&&Q%10===0&&console.warn(`[Shiki] ${Q} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!i.engine)throw new q("`engine` option is required for synchronous mode");const t=(i.langs||[]).flat(1),r=(i.themes||[]).flat(1).map(Ke),n=new On(i.engine,t),s=new Sn(n,r,t,i.langAlias);let o;function l(g){return qt(g,i.langAlias)}function a(g){E();const A=s.getGrammar(typeof g=="string"?g:g.name);if(!A)throw new q(`Language \`${g}\` not found, you may need to load it first`);return A}function u(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const A=s.getTheme(g);if(!A)throw new q(`Theme \`${g}\` not found, you may need to load it first`);return A}function d(g){E();const A=u(g);o!==g&&(s.setTheme(A),o=g);const T=s.getColorMap();return{theme:A,colorMap:T}}function m(){return E(),s.getLoadedThemes()}function h(){return E(),s.getLoadedLanguages()}function p(...g){E(),s.loadLanguages(g.flat(1))}async function f(...g){return p(await Ht(g))}function v(...g){E();for(const A of g.flat(1))s.loadTheme(A)}async function R(...g){return E(),v(await Ft(g))}function E(){if(e)throw new q("Shiki instance has been disposed")}function y(){e||(e=!0,s.dispose(),Q-=1)}return{setTheme:d,getTheme:u,getLanguage:a,getLoadedThemes:m,getLoadedLanguages:h,resolveLangAlias:l,loadLanguage:f,loadLanguageSync:p,loadTheme:R,loadThemeSync:v,dispose:y,[Symbol.dispose]:y}}async function Cn(i){i.engine||In("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([Ft(i.themes||[]),Ht(i.langs||[]),i.engine]);return wn({...i,themes:e,langs:t,engine:r})}async function kn(i){const e=await Cn(i);return{getLastGrammarState:(...t)=>hn(e,...t),codeToTokensBase:(t,r)=>qe(e,t,r),codeToTokensWithThemes:(t,r)=>Ut(e,t,r),codeToTokens:(t,r)=>Ee(e,t,r),codeToHast:(t,r)=>ye(e,t,r),codeToHtml:(t,r)=>bn(e,t,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Dn(i){const e=i.langs,t=i.themes,r=i.engine;async function n(s){function o(m){var h;if(typeof m=="string"){if(m=((h=s.langAlias)==null?void 0:h[m])||m,Mt(m))return[];const p=e[m];if(!p)throw new P(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return p}return m}function l(m){if(Bt(m))return"none";if(typeof m=="string"){const h=t[m];if(!h)throw new P(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return h}return m}const a=(s.themes??[]).map(m=>l(m)),u=(s.langs??[]).map(m=>o(m)),d=await kn({engine:s.engine??r(),...s,themes:a,langs:u});return{...d,loadLanguage(...m){return d.loadLanguage(...m.map(o))},loadTheme(...m){return d.loadTheme(...m.map(l))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return n}function Nn(i){let e;async function t(r={}){if(e){const n=await e;return await Promise.all([n.loadTheme(...r.themes||[]),n.loadLanguage(...r.langs||[])]),n}else{e=i({...r,themes:[],langs:[]});const n=await e;return await Promise.all([n.loadTheme(...r.themes||[]),n.loadLanguage(...r.langs||[])]),n}}return t}function Vn(i,e){const t=Nn(i);async function r(n,s){var a;const o=await t({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),l=await((a=e==null?void 0:e.guessEmbeddedLanguages)==null?void 0:a.call(e,n,s.lang,o));return l&&await o.loadLanguage(...l),o}return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,s){return(await r(n,s)).codeToHtml(n,s)},async codeToHast(n,s){return(await r(n,s)).codeToHast(n,s)},async codeToTokens(n,s){return(await r(n,s)).codeToTokens(n,s)},async codeToTokensBase(n,s){return(await r(n,s)).codeToTokensBase(n,s)},async codeToTokensWithThemes(n,s){return(await r(n,s)).codeToTokensWithThemes(n,s)},async getLastGrammarState(n,s){return(await t({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(n,s)}}}const zt=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>c(()=>import("./actionscript-3-CfeIJUat.js"),[])},{id:"ada",name:"Ada",import:()=>c(()=>import("./ada-bCR0ucgS.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./angular-html-CU67Zn6k.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>c(()=>import("./apex-D8_7TLub.js"),[])},{id:"apl",name:"APL",import:()=>c(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>c(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./asciidoc-Dv7Oe6Be.js"),[])},{id:"asm",name:"Assembly",import:()=>c(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>c(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>c(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c(()=>import("./bat-BkioyH1T.js"),[])},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./beancount-k_qm7-4y.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./berry-uYugtg8r.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./bicep-Bmn6On1c.js"),[])},{id:"blade",name:"Blade",import:()=>c(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>c(()=>import("./c-BIGW1oBm.js"),[])},{id:"c3",name:"C3",import:()=>c(()=>import("./c3-VCDPK7BO.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[])},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]))},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./clarity-D53aC0YG.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>c(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Coq",import:()=>c(()=>import("./coq-DkFqJrB1.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]))},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./csharp-K5feNrxe.js"),[])},{id:"css",name:"CSS",import:()=>c(()=>import("./css-DPfMkruS.js"),[])},{id:"csv",name:"CSV",import:()=>c(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>c(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>c(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>c(()=>import("./dart-CF10PKvl.js"),[])},{id:"dax",name:"DAX",import:()=>c(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>c(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>c(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3]))},{id:"elm",name:"Elm",import:()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./emacs-lisp-C9XAeP06.js"),[])},{id:"erb",name:"ERB",import:()=>c(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]))},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>c(()=>import("./fish-BvzEVeQv.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]))},{id:"gdresource",name:"GDResource",import:()=>c(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46]))},{id:"gdscript",name:"GDScript",import:()=>c(()=>import("./gdscript-DTMYz4Jt.js"),[])},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>c(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]))},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]))},{id:"gn",name:"GN",import:()=>c(()=>import("./gn-n2N0HUVH.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>c(()=>import("./go-Dn2_MT6a.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]))},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>c(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./haxe-CzTSHFRz.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>c(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>c(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]))},{id:"hurl",name:"Hurl",import:()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]))},{id:"hxml",name:"HXML",import:()=>c(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>c(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>c(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>c(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>c(()=>import("./javascript-wDzz0qaB.js"),[])},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3]))},{id:"jison",name:"Jison",import:()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]))},{id:"json",name:"JSON",import:()=>c(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>c(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>c(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]))},{id:"kdl",name:"KDL",import:()=>c(()=>import("./kdl-DV7GczEv.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./kusto-DZf3V79B.js"),[])},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./latex-B4uzh10-.js"),__vite__mapDeps([63,64,62]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./lean-BZvkOJ9d.js"),[])},{id:"less",name:"Less",import:()=>c(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>c(()=>import("./llvm-BtvRca6l.js"),[])},{id:"log",name:"Log file",import:()=>c(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>c(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>c(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26]))},{id:"luau",name:"Luau",import:()=>c(()=>import("./luau-C-HG3fhB.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./markdown-Cvjx9yec.js"),[])},{id:"marko",name:"Marko",import:()=>c(()=>import("./marko-DZsq8hO1.js"),__vite__mapDeps([66,3,67,5,11]))},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>c(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./mermaid-mWjccvbQ.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./mojo-B93PlW-d.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>c(()=>import("./moonbit-Ba13S78F.js"),[])},{id:"move",name:"Move",import:()=>c(()=>import("./move-Bu9oaDYs.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./nextflow-BrzmwbiE.js"),[])},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26]))},{id:"nim",name:"Nim",import:()=>c(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]))},{id:"nix",name:"Nix",import:()=>c(()=>import("./nix-CwoSXNpI.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./nushell-C-sUppwS.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>c(()=>import("./openscad-C4EeE6gA.js"),[])},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>c(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>c(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>c(()=>import("./pkl-u5AG7uiY.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>c(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c(()=>import("./powershell-Dpen1YoG.js"),[])},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./prisma-Dd19v3D-.js"),[])},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>import("./proto-C7zT0LnQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./purescript-CklMAg4u.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2]))},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>c(()=>import("./r-Dspwwk_N.js"),[])},{id:"racket",name:"Racket",import:()=>c(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./razor-C1TweQQi.js"),__vite__mapDeps([75,1,2,3,76]))},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>c(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[])},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>c(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16]))},{id:"sass",name:"Sass",import:()=>c(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>c(()=>import("./scala-C151Ov-r.js"),[])},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>c(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28]))},{id:"smalltalk",name:"Smalltalk",import:()=>c(()=>import("./smalltalk-BERRCDM3.js"),[])},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./solidity-rGO070M0.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>c(()=>import("./sql-BLtJtn59.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>c(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./svelte-zxCyuUbr.js"),__vite__mapDeps([87,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>c(()=>import("./swift-Dg5xB15N.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./system-verilog-CnnmHF94.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>c(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>c(()=>import("./tex-CvyZ59Mk.js"),__vite__mapDeps([64,62]))},{id:"toml",name:"TOML",import:()=>c(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>c(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>c(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>c(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>c(()=>import("./typescript-BPQ3VLAy.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./typespec-BGHnOYBU.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./typst-DHCkPAjA.js"),[])},{id:"v",name:"V",import:()=>c(()=>import("./v-BcVCzyr7.js"),[])},{id:"vala",name:"Vala",import:()=>c(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c(()=>import("./vb-D17OF-Vu.js"),[])},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./verilog-BQ8w6xss.js"),[])},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>c(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([92,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([93,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>c(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([94,3,5,67,95,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>c(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>c(()=>import("./zig-VOosw3JB.js"),[])}],xn=Object.fromEntries(zt.map(i=>[i.id,i.import])),Gn=Object.fromEntries(zt.flatMap(i=>{var e;return((e=i.aliases)==null?void 0:e.map(t=>[t,i.import]))||[]})),Mn={...xn,...Gn},Bn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C-Jbm3Hp.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-CmMr59Fi.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-DFWUc33u.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-qdsjHGoJ.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-D4_iv3hh.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],jn=Object.fromEntries(Bn.map(i=>[i.id,i.import]));class Je extends Error{constructor(e){super(e),this.name="ShikiError"}}function $n(){return 2147483648}function Wn(){return typeof performance<"u"?performance.now():Date.now()}const Un=(i,e)=>i+(e-i%e)%e;async function Hn(i){let e,t;const r={};function n(p){t=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function s(p,f,v){r.HEAPU8.copyWithin(p,f,f+v)}function o(p){try{return e.grow(p-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(p){const f=r.HEAPU8.length;p=p>>>0;const v=$n();if(p>v)return!1;for(let R=1;R<=4;R*=2){let E=f*(1+.2/R);E=Math.min(E,p+100663296);const y=Math.min(v,Un(Math.max(p,E),65536));if(o(y))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(p,f,v=1024){const R=f+v;let E=f;for(;p[E]&&!(E>=R);)++E;if(E-f>16&&p.buffer&&a)return a.decode(p.subarray(f,E));let y="";for(;f<E;){let g=p[f++];if(!(g&128)){y+=String.fromCharCode(g);continue}const A=p[f++]&63;if((g&224)===192){y+=String.fromCharCode((g&31)<<6|A);continue}const T=p[f++]&63;if((g&240)===224?g=(g&15)<<12|A<<6|T:g=(g&7)<<18|A<<12|T<<6|p[f++]&63,g<65536)y+=String.fromCharCode(g);else{const b=g-65536;y+=String.fromCharCode(55296|b>>10,56320|b&1023)}}return y}function d(p,f){return p?u(r.HEAPU8,p,f):""}const m={emscripten_get_now:Wn,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function h(){const f=await i({env:m,wasi_snapshot_preview1:m});e=f.memory,n(e.buffer),Object.assign(r,f),r.UTF8ToString=d}return await h(),r}var Fn=Object.defineProperty,qn=(i,e,t)=>e in i?Fn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,I=(i,e,t)=>qn(i,typeof e!="symbol"?e+"":e,t);let O=null;function zn(i){throw new Je(i.UTF8ToString(i.getLastOnigError()))}class Ae{constructor(e){I(this,"utf16Length"),I(this,"utf8Length"),I(this,"utf16Value"),I(this,"utf8Value"),I(this,"utf16OffsetToUtf8"),I(this,"utf8OffsetToUtf16");const t=e.length,r=Ae._utf8ByteLength(e),n=r!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=r);const o=n?new Uint32Array(r+1):null;n&&(o[r]=t);const l=new Uint8Array(r);let a=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,h=!1;if(d>=55296&&d<=56319&&u+1<t){const p=e.charCodeAt(u+1);p>=56320&&p<=57343&&(m=(d-55296<<10)+65536|p-56320,h=!0)}n&&(s[u]=a,h&&(s[u+1]=a),m<=127?o[a+0]=u:m<=2047?(o[a+0]=u,o[a+1]=u):m<=65535?(o[a+0]=u,o[a+1]=u,o[a+2]=u):(o[a+0]=u,o[a+1]=u,o[a+2]=u,o[a+3]=u)),m<=127?l[a++]=m:m<=2047?(l[a++]=192|(m&1984)>>>6,l[a++]=128|(m&63)>>>0):m<=65535?(l[a++]=224|(m&61440)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0):(l[a++]=240|(m&1835008)>>>18,l[a++]=128|(m&258048)>>>12,l[a++]=128|(m&4032)>>>6,l[a++]=128|(m&63)>>>0),h&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){const s=e.charCodeAt(r);let o=s,l=!1;if(s>=55296&&s<=56319&&r+1<n){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(o=(s-55296<<10)+65536|a-56320,l=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,l&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const Te=class x{constructor(e){if(I(this,"id",++x.LAST_ID),I(this,"_onigBinding"),I(this,"content"),I(this,"utf16Length"),I(this,"utf8Length"),I(this,"utf16OffsetToUtf8"),I(this,"utf8OffsetToUtf16"),I(this,"ptr"),!O)throw new Je("Must invoke loadWasm first.");this._onigBinding=O,this.content=e;const t=new Ae(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!x._sharedPtrInUse?(x._sharedPtr||(x._sharedPtr=O.omalloc(1e4)),x._sharedPtrInUse=!0,O.HEAPU8.set(t.utf8Value,x._sharedPtr),this.ptr=x._sharedPtr):this.ptr=t.createString(O)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===x._sharedPtr?x._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};I(Te,"LAST_ID",0);I(Te,"_sharedPtr",0);I(Te,"_sharedPtrInUse",!1);let Kt=Te;class Kn{constructor(e){if(I(this,"_onigBinding"),I(this,"_ptr"),!O)throw new Je("Must invoke loadWasm first.");const t=[],r=[];for(let l=0,a=e.length;l<a;l++){const u=new Ae(e[l]);t[l]=u.createString(O),r[l]=u.utf8Length}const n=O.omalloc(4*e.length);O.HEAPU32.set(t,n/4);const s=O.omalloc(4*e.length);O.HEAPU32.set(r,s/4);const o=O.createOnigScanner(n,s,e.length);for(let l=0,a=e.length;l<a;l++)O.ofree(t[l]);O.ofree(s),O.ofree(n),o===0&&zn(O),this._onigBinding=O,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if(typeof r=="number"&&(n=r),typeof e=="string"){e=new Kt(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(o===0)return null;const l=s.HEAPU32;let a=o/4;const u=l[a++],d=l[a++],m=[];for(let h=0;h<d;h++){const p=e.convertUtf8OffsetToUtf16(l[a++]),f=e.convertUtf8OffsetToUtf16(l[a++]);m[h]={start:p,end:f,length:f-p}}return{index:u,captureIndices:m}}}function Jn(i){return typeof i.instantiator=="function"}function Qn(i){return typeof i.default=="function"}function Yn(i){return typeof i.data<"u"}function Xn(i){return typeof Response<"u"&&i instanceof Response}function Zn(i){var e;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let ae;function es(i){if(ae)return ae;async function e(){O=await Hn(async t=>{let r=i;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),Jn(r)?r=await r.instantiator(t):Qn(r)?r=await r.default(t):(Yn(r)&&(r=r.data),Xn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await ts(r)(t):r=await rs(r)(t):Zn(r)?r=await Ce(r)(t):r instanceof WebAssembly.Module?r=await Ce(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ce(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ae=e(),ae}function Ce(i){return e=>WebAssembly.instantiate(i,e)}function ts(i){return e=>WebAssembly.instantiateStreaming(i,e)}function rs(i){return async e=>{const t=await i.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function is(i){return i&&await es(i),{createScanner(e){return new Kn(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Kt(e)}}}const ns=Dn({langs:Mn,themes:jn,engine:()=>is(c(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Rs}=Vn(ns,{guessEmbeddedLanguages:zi});export{P as ShikiError,jt as addClassToHast,$ as applyColorReplacements,Mn as bundledLanguages,Gn as bundledLanguagesAlias,xn as bundledLanguagesBase,zt as bundledLanguagesInfo,jn as bundledThemes,Bn as bundledThemesInfo,Rs as codeToHtml,Dn as createBundledHighlighter,ns as createHighlighter,kn as createHighlighterCore,is as createOnigurumaEngine,qi as createPositionConverter,Cn as createShikiInternal,wn as createShikiInternalSync,Vn as createSingletonShorthands,Yi as flatTokenVariants,fe as getTokenStyleObject,zi as guessEmbeddedLanguages,Ln as hastToHtml,He as isNoneTheme,Ue as isPlainLang,Mt as isSpecialLang,Bt as isSpecialTheme,es as loadWasm,Nn as makeSingletonHighlighter,Gt as normalizeGetter,Ke as normalizeTheme,_e as resolveColorReplacements,ve as splitLines,Ji as splitToken,Qi as splitTokens,Be as stringifyTokenStyle,Fi as toArray,mn as tokenizeAnsiWithTheme,pn as tokenizeWithTheme,vn as tokensToHast,en as transformerDecorations,In as warnDeprecated};
|