@rohansguliani/mux-chat-ui 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -55
- package/dist/testing.d.ts +17 -13
- package/dist/testing.js +72 -58
- package/kit/THIRD_PARTY_NOTICES.txt +3696 -0
- package/kit/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/kit/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/kit/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/kit/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/kit/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/kit/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/kit/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/kit/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/kit/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/kit/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/kit/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/kit/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/kit/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/kit/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/kit/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/kit/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/kit/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/kit/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/kit/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/kit/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/kit/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/kit/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/kit/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/kit/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/kit/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/kit/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/kit/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/kit/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/kit/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/kit/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/kit/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/kit/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/kit/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/kit/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/kit/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/kit/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/kit/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/kit/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/kit/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/kit/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/kit/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/kit/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/kit/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/kit/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/kit/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/kit/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/kit/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/kit/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/kit/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/kit/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/kit/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/kit/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/kit/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/kit/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/kit/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/kit/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/kit/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/kit/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/kit/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/kit/assets/abap-Dg923wIy.js +1 -0
- package/kit/assets/actionscript-3-CqOcUQ0w.js +1 -0
- package/kit/assets/ada-CTi7YQtL.js +1 -0
- package/kit/assets/ahk-BJYYIeOs.js +1 -0
- package/kit/assets/ahk2-BLfzmBxo.js +1 -0
- package/kit/assets/andromeeda-CT0vplkN.js +1 -0
- package/kit/assets/angular-html-DX9ZP5JV.js +1 -0
- package/kit/assets/angular-ts-1O2hJJmY.js +1 -0
- package/kit/assets/apache-PcO-DBxQ.js +1 -0
- package/kit/assets/apex-B4ts4Pdn.js +1 -0
- package/kit/assets/apl-Dz5ncP8G.js +1 -0
- package/kit/assets/applescript-Ds_W2jPS.js +1 -0
- package/kit/assets/ara-C1--7J61.js +1 -0
- package/kit/assets/asciidoc-DaaWi4fn.js +1 -0
- package/kit/assets/asm-CTFRnVOM.js +1 -0
- package/kit/assets/astro-BWgTGUF8.js +1 -0
- package/kit/assets/aurora-x-C0VKFdlO.js +1 -0
- package/kit/assets/awk-CrWgQKhV.js +1 -0
- package/kit/assets/ayu-dark-wZ6ORhBL.js +1 -0
- package/kit/assets/ayu-light-xXLJ_Ch1.js +1 -0
- package/kit/assets/ayu-mirage-CQckA_sP.js +1 -0
- package/kit/assets/ballerina-a0yOSyc5.js +1 -0
- package/kit/assets/bat-C1qk1Jq1.js +1 -0
- package/kit/assets/beancount-dPJi_gci.js +1 -0
- package/kit/assets/berry-CVKoklHx.js +1 -0
- package/kit/assets/bibtex-DRcCXNgM.js +1 -0
- package/kit/assets/bicep-jWz-hQ8I.js +1 -0
- package/kit/assets/bird2-wc5D5_X9.js +1 -0
- package/kit/assets/blade-DFktsHST.js +1 -0
- package/kit/assets/bsl-BtUDvyR4.js +1 -0
- package/kit/assets/c-BG-tZi7o.js +1 -0
- package/kit/assets/c3-R-USHpyF.js +1 -0
- package/kit/assets/cadence-BuaeHeSu.js +1 -0
- package/kit/assets/cairo-BYiDgOF2.js +1 -0
- package/kit/assets/catppuccin-frappe-CquLvoVK.js +1 -0
- package/kit/assets/catppuccin-latte-G5tdnGFo.js +1 -0
- package/kit/assets/catppuccin-macchiato-BZRq1pKO.js +1 -0
- package/kit/assets/catppuccin-mocha-Bbf5uIw6.js +1 -0
- package/kit/assets/chapel-D6IdCptL.js +1 -0
- package/kit/assets/clarity-BJ-KISir.js +1 -0
- package/kit/assets/clojure-KnfDkB_V.js +1 -0
- package/kit/assets/cmake-bh2MLnkv.js +1 -0
- package/kit/assets/cobol-DbURsbuN.js +1 -0
- package/kit/assets/codeowners-CtwIM3TN.js +1 -0
- package/kit/assets/codeql-D164juXQ.js +1 -0
- package/kit/assets/coffee-Bk-z6oI_.js +1 -0
- package/kit/assets/common-lisp-DXc9XcIM.js +1 -0
- package/kit/assets/coq-BIZj6HM_.js +1 -0
- package/kit/assets/cpp-C-tF_bWl.js +1 -0
- package/kit/assets/crystal-Dvqzbpz8.js +1 -0
- package/kit/assets/csharp-CFxe5pRo.js +1 -0
- package/kit/assets/css-Br67jR8j.js +1 -0
- package/kit/assets/csv-D5aBhKLr.js +1 -0
- package/kit/assets/cue-WCin6O4e.js +1 -0
- package/kit/assets/cypher-DYQk2G82.js +1 -0
- package/kit/assets/d-DVc-yF-l.js +1 -0
- package/kit/assets/dark-plus-DLU5INA3.js +1 -0
- package/kit/assets/dart-ByalkS20.js +1 -0
- package/kit/assets/dax-oldcCaJg.js +1 -0
- package/kit/assets/desktop-DZfyBMgF.js +1 -0
- package/kit/assets/diff-jW5kmiru.js +1 -0
- package/kit/assets/docker-DG9neUKd.js +1 -0
- package/kit/assets/dotenv-Bea-FkXq.js +1 -0
- package/kit/assets/dracula-XcYHBZy6.js +1 -0
- package/kit/assets/dracula-soft-BPeX9gxW.js +1 -0
- package/kit/assets/dream-maker-DAHQwpwp.js +1 -0
- package/kit/assets/edge-DTiORMU5.js +1 -0
- package/kit/assets/elixir-DnIH90qd.js +1 -0
- package/kit/assets/elm-BjIDgKzz.js +1 -0
- package/kit/assets/emacs-lisp-Ckw2FTkV.js +1 -0
- package/kit/assets/erb-CazEJMPD.js +1 -0
- package/kit/assets/erlang-DNeY46SW.js +1 -0
- package/kit/assets/everforest-dark-WOub3wle.js +1 -0
- package/kit/assets/everforest-light-DCUg8VH8.js +1 -0
- package/kit/assets/fennel-DBMsxtrh.js +1 -0
- package/kit/assets/fish-BxskpYPN.js +1 -0
- package/kit/assets/fluent-Bwo2XpEt.js +1 -0
- package/kit/assets/fortran-fixed-form-DFFnVrrY.js +1 -0
- package/kit/assets/fortran-free-form-DB5N_DgY.js +1 -0
- package/kit/assets/fsharp-DRAF1jsN.js +1 -0
- package/kit/assets/gdresource-B0Kp4-ms.js +1 -0
- package/kit/assets/gdscript-DKyjuXKv.js +1 -0
- package/kit/assets/gdshader-G7X6ysY3.js +1 -0
- package/kit/assets/genie-DSsjfZMX.js +1 -0
- package/kit/assets/gherkin-Cl2Fw-_0.js +1 -0
- package/kit/assets/git-commit-CJPsQObV.js +1 -0
- package/kit/assets/git-rebase-DeZqv4fp.js +1 -0
- package/kit/assets/github-dark-BQV5ugrc.js +1 -0
- package/kit/assets/github-dark-default-DLWDM7FH.js +1 -0
- package/kit/assets/github-dark-dimmed-D1FmiR_p.js +1 -0
- package/kit/assets/github-dark-high-contrast-BilLoi0o.js +1 -0
- package/kit/assets/github-light-Rcb2q3L5.js +1 -0
- package/kit/assets/github-light-default-CQ75esMw.js +1 -0
- package/kit/assets/github-light-high-contrast-CRF1wyLy.js +1 -0
- package/kit/assets/gleam-BeBqoPwE.js +1 -0
- package/kit/assets/glimmer-js-F_qk9EQT.js +1 -0
- package/kit/assets/glimmer-ts-Dhzi-GJU.js +1 -0
- package/kit/assets/glsl-BOG9l2nV.js +1 -0
- package/kit/assets/gn-Dxr0sSUf.js +1 -0
- package/kit/assets/gnuplot-CtW3R_Hz.js +1 -0
- package/kit/assets/go-B7VTfpnm.js +1 -0
- package/kit/assets/graphql-B6XHM4uj.js +1 -0
- package/kit/assets/groovy-DFxE31Qs.js +1 -0
- package/kit/assets/gruvbox-dark-hard-C37G1gbc.js +1 -0
- package/kit/assets/gruvbox-dark-medium-C3G9m3TV.js +1 -0
- package/kit/assets/gruvbox-dark-soft-eZmcmZ9I.js +1 -0
- package/kit/assets/gruvbox-light-hard-BYj-vz_3.js +1 -0
- package/kit/assets/gruvbox-light-medium-BdQlDiiF.js +1 -0
- package/kit/assets/gruvbox-light-soft-BGNwjiRh.js +1 -0
- package/kit/assets/hack-jRhjsWHJ.js +1 -0
- package/kit/assets/haml-C4vGXCDX.js +1 -0
- package/kit/assets/handlebars-BsldGL5W.js +1 -0
- package/kit/assets/haskell-BfdhR_WN.js +1 -0
- package/kit/assets/haxe-wmAaY_mP.js +1 -0
- package/kit/assets/hcl-B6OePqme.js +1 -0
- package/kit/assets/hjson-D2jn7IRw.js +1 -0
- package/kit/assets/hlsl-MKeth5V9.js +1 -0
- package/kit/assets/horizon-bright-BVMyA0so.js +1 -0
- package/kit/assets/horizon-cslQss18.js +1 -0
- package/kit/assets/houston-RHIKkNfR.js +1 -0
- package/kit/assets/html-BW_6VhB7.js +1 -0
- package/kit/assets/html-derivative-BxANmYVz.js +1 -0
- package/kit/assets/http-CG3jvXcS.js +1 -0
- package/kit/assets/hurl-CxQrh4RI.js +1 -0
- package/kit/assets/hxml-In6F2XHE.js +1 -0
- package/kit/assets/hy-DI6mCUnw.js +1 -0
- package/kit/assets/imba-D-Pk5S0X.js +1 -0
- package/kit/assets/index-CN35FGBT.js +2 -0
- package/kit/assets/index-CvcU6KJI.js +2 -0
- package/kit/assets/index-DKDjvsnq.js +12 -0
- package/kit/assets/ini-Dix3pTmg.js +1 -0
- package/kit/assets/java-BTDmaRNO.js +1 -0
- package/kit/assets/javascript-WyGyM1wV.js +1 -0
- package/kit/assets/jinja-CGKoJZuT.js +1 -0
- package/kit/assets/jison-B9XHrcYJ.js +1 -0
- package/kit/assets/json-B8JryHcM.js +1 -0
- package/kit/assets/json5-Cdatmj9n.js +1 -0
- package/kit/assets/jsonc-CvUCa1o5.js +1 -0
- package/kit/assets/jsonl-9I_GBd5L.js +1 -0
- package/kit/assets/jsonnet-XoenQ2oc.js +1 -0
- package/kit/assets/jssm-CWE2S0Z5.js +1 -0
- package/kit/assets/jsx-8cLv2Six.js +1 -0
- package/kit/assets/julia-CHsXSRRi.js +1 -0
- package/kit/assets/just-BhMjiL1x.js +1 -0
- package/kit/assets/kanagawa-dragon-elpLL9d7.js +1 -0
- package/kit/assets/kanagawa-lotus-qwxsXd6N.js +1 -0
- package/kit/assets/kanagawa-wave-CmHwPSUq.js +1 -0
- package/kit/assets/katex-HP8lGamR.js +257 -0
- package/kit/assets/kdl-CMbyIXjQ.js +1 -0
- package/kit/assets/kotlin-BQy537ds.js +1 -0
- package/kit/assets/kusto-Bh6esMjd.js +1 -0
- package/kit/assets/laserwave-si7wuSrt.js +1 -0
- package/kit/assets/latex-l4EWm08Q.js +1 -0
- package/kit/assets/lean-C4RHkN41.js +1 -0
- package/kit/assets/less-XNfgnZC7.js +1 -0
- package/kit/assets/light-plus-g_Fi9vkG.js +1 -0
- package/kit/assets/liquid-VEiCTF4k.js +1 -0
- package/kit/assets/llvm-CQZjIlnZ.js +1 -0
- package/kit/assets/log-CcaF_xNv.js +1 -0
- package/kit/assets/logo-D9WQLoKQ.js +1 -0
- package/kit/assets/lua-8Av-h-ns.js +1 -0
- package/kit/assets/luau-CmQFRJk_.js +1 -0
- package/kit/assets/make-DXVx14cr.js +1 -0
- package/kit/assets/markdown-DX-TNHnc.js +1 -0
- package/kit/assets/markdown-parse.worker-D0WrtDJ7.js +59 -0
- package/kit/assets/markdown.worker-DQJC0QHv.js +83 -0
- package/kit/assets/marko-6XzqJfhW.js +1 -0
- package/kit/assets/material-theme-CIJ3cGaW.js +1 -0
- package/kit/assets/material-theme-darker-BWg3m1GB.js +1 -0
- package/kit/assets/material-theme-lighter-DR8HWMN7.js +1 -0
- package/kit/assets/material-theme-ocean-CZf9pk28.js +1 -0
- package/kit/assets/material-theme-palenight-BF01YeZy.js +1 -0
- package/kit/assets/matlab-DzreyMvm.js +1 -0
- package/kit/assets/mdc-DRPSCe6f.js +1 -0
- package/kit/assets/mdx-C2fqO2XY.js +1 -0
- package/kit/assets/mermaid-B3PwCbv_.js +1 -0
- package/kit/assets/min-dark-DhfaepVE.js +1 -0
- package/kit/assets/min-light-6xx0uMgm.js +1 -0
- package/kit/assets/mipsasm-yE_Aqo9y.js +1 -0
- package/kit/assets/mojo-DoyaMtMQ.js +1 -0
- package/kit/assets/monokai-CfflZzqd.js +1 -0
- package/kit/assets/moonbit-GUn1DCOq.js +1 -0
- package/kit/assets/move-DgW29s8x.js +1 -0
- package/kit/assets/narrat-DXUZ_ZkW.js +1 -0
- package/kit/assets/nextflow-D9i3Mg89.js +1 -0
- package/kit/assets/nextflow-groovy-BtKenbWl.js +1 -0
- package/kit/assets/nginx-DSXkacNc.js +1 -0
- package/kit/assets/night-owl-EdP2Hztp.js +1 -0
- package/kit/assets/night-owl-light-Bk-lYVyk.js +1 -0
- package/kit/assets/nim-D9lokC5T.js +1 -0
- package/kit/assets/nix-Ckjrpg0r.js +1 -0
- package/kit/assets/nord-BAu0wM6c.js +1 -0
- package/kit/assets/nsis-C1FUr9r5.js +1 -0
- package/kit/assets/nushell-D7aJuCS6.js +1 -0
- package/kit/assets/objective-c-BoaBTdtz.js +1 -0
- package/kit/assets/objective-cpp-DstR8hNy.js +1 -0
- package/kit/assets/ocaml-DTbn2Hv7.js +1 -0
- package/kit/assets/odin-Bxc4S6Xn.js +1 -0
- package/kit/assets/one-dark-pro-utPxbBbJ.js +1 -0
- package/kit/assets/one-light-BuCQ22aO.js +1 -0
- package/kit/assets/openscad-CXHpNBsb.js +1 -0
- package/kit/assets/org-DcqggXXW.js +1 -0
- package/kit/assets/pascal-Sr-XLSE6.js +1 -0
- package/kit/assets/perl-CP_GSK0L.js +1 -0
- package/kit/assets/php-CNeTOyEV.js +1 -0
- package/kit/assets/pkl-CRusufhw.js +1 -0
- package/kit/assets/plastic-CXnNNlFZ.js +1 -0
- package/kit/assets/plsql-Dbm3tV2N.js +1 -0
- package/kit/assets/po-LG0lFwH4.js +1 -0
- package/kit/assets/poimandres-BrOVMvuE.js +1 -0
- package/kit/assets/polar-DjOs3GWb.js +1 -0
- package/kit/assets/postcss-GRRkWn2F.js +1 -0
- package/kit/assets/powerquery-DHf-dtTS.js +1 -0
- package/kit/assets/powershell-CUnxWBRw.js +1 -0
- package/kit/assets/prisma-HKDfktb8.js +1 -0
- package/kit/assets/prolog-9JcfiY6I.js +1 -0
- package/kit/assets/proto-dqx_Sj2i.js +1 -0
- package/kit/assets/pug-kUpeg2wB.js +1 -0
- package/kit/assets/puppet-Di57VbSS.js +1 -0
- package/kit/assets/purescript-BgpM7rDH.js +1 -0
- package/kit/assets/python-B6Ihcp-E.js +1 -0
- package/kit/assets/qml-DmGQGbca.js +1 -0
- package/kit/assets/qmldir-DXd9s5XC.js +1 -0
- package/kit/assets/qss-B7NnhfIi.js +1 -0
- package/kit/assets/r-C2sK8mqY.js +1 -0
- package/kit/assets/racket-CeDx7KO2.js +1 -0
- package/kit/assets/raku-BMJwmrCS.js +1 -0
- package/kit/assets/razor-C2a5o_rD.js +1 -0
- package/kit/assets/rbs-BNdQsBCU.js +1 -0
- package/kit/assets/red-D0qvOrrt.js +1 -0
- package/kit/assets/reg-Cvyu2Gnx.js +1 -0
- package/kit/assets/regexp-DK-WlHNu.js +1 -0
- package/kit/assets/rel-BlqNHz8k.js +1 -0
- package/kit/assets/riscv-C5dpdlr7.js +1 -0
- package/kit/assets/ron-j5NfrB3z.js +1 -0
- package/kit/assets/rose-pine-B13eftVv.js +1 -0
- package/kit/assets/rose-pine-dawn-BcSoidev.js +1 -0
- package/kit/assets/rose-pine-moon-QhZovmiB.js +1 -0
- package/kit/assets/rosmsg-ZkSIzPhc.js +1 -0
- package/kit/assets/rst-CgFL6KOR.js +1 -0
- package/kit/assets/ruby-CoSFdlpl.js +1 -0
- package/kit/assets/rust-CxuBE0J8.js +1 -0
- package/kit/assets/sas-DPMpzP9X.js +1 -0
- package/kit/assets/sass-bfEVHPJ8.js +1 -0
- package/kit/assets/scala-DT3kbCHL.js +1 -0
- package/kit/assets/scheme-OJppFQF3.js +1 -0
- package/kit/assets/scss-n48HZsmL.js +1 -0
- package/kit/assets/sdbl-CvZs3G9c.js +1 -0
- package/kit/assets/shaderlab-CEJedz68.js +1 -0
- package/kit/assets/shellscript-DgJyDXW6.js +1 -0
- package/kit/assets/shellsession-DSlzxnCM.js +1 -0
- package/kit/assets/slack-dark-CWRQmTmo.js +1 -0
- package/kit/assets/slack-ochin-DO_ok7XK.js +1 -0
- package/kit/assets/smalltalk-De6KzMWc.js +1 -0
- package/kit/assets/smithy-BVTkKWO9.js +1 -0
- package/kit/assets/snazzy-light-B5llO_gK.js +1 -0
- package/kit/assets/solarized-dark-BWFpDpV1.js +1 -0
- package/kit/assets/solarized-light-eZCMDrWD.js +1 -0
- package/kit/assets/solidity-SYSxO-p1.js +1 -0
- package/kit/assets/soy-DEV4yxgM.js +1 -0
- package/kit/assets/sparql-BJh4JEw-.js +1 -0
- package/kit/assets/splunk-h-bNAnbk.js +1 -0
- package/kit/assets/sprite-Fb-TFjRY.svg +11707 -0
- package/kit/assets/sql-Dq2MiB0T.js +1 -0
- package/kit/assets/ssh-config-CywOjoXH.js +1 -0
- package/kit/assets/stata-BcICKvEt.js +1 -0
- package/kit/assets/stylus-CIg617SB.js +1 -0
- package/kit/assets/surrealql-CWlK9SzL.js +1 -0
- package/kit/assets/svelte-B-Z8GLL9.js +1 -0
- package/kit/assets/swift-CGD9CJBj.js +1 -0
- package/kit/assets/synthwave-84-DRVv-_m_.js +1 -0
- package/kit/assets/system-verilog-CG_VWOG3.js +1 -0
- package/kit/assets/systemd-DKMPPZjB.js +1 -0
- package/kit/assets/talonscript-eRuyeYHl.js +1 -0
- package/kit/assets/tasl-B9CVvjfG.js +1 -0
- package/kit/assets/tcl-Bq9dbVAF.js +1 -0
- package/kit/assets/templ-W185oS4p.js +1 -0
- package/kit/assets/terraform-CAp711iT.js +1 -0
- package/kit/assets/tex-DNkCctwf.js +1 -0
- package/kit/assets/tokyo-night-BvwC8l2v.js +1 -0
- package/kit/assets/toml-Ms459DBw.js +1 -0
- package/kit/assets/ts-tags-xUT7JH_c.js +1 -0
- package/kit/assets/tsv-BFtm7NXx.js +1 -0
- package/kit/assets/tsx-D6116Ycy.js +1 -0
- package/kit/assets/turtle-DpRhbQZY.js +1 -0
- package/kit/assets/twig-k5g5DPXm.js +1 -0
- package/kit/assets/typescript-BqvgUolh.js +1 -0
- package/kit/assets/typespec-B09nCZui.js +1 -0
- package/kit/assets/typst-Dfd71gQj.js +1 -0
- package/kit/assets/v-DUsAht2M.js +1 -0
- package/kit/assets/vala-z59IxkFd.js +1 -0
- package/kit/assets/vb-A7jYO8Gn.js +1 -0
- package/kit/assets/verilog-jqltjd44.js +1 -0
- package/kit/assets/vesper-DxfWgk_t.js +1 -0
- package/kit/assets/vhdl-DJCsFYgn.js +1 -0
- package/kit/assets/viml-pbKHW3Ia.js +1 -0
- package/kit/assets/vitesse-black-B_BYPdvp.js +1 -0
- package/kit/assets/vitesse-dark-DOSOf2Sz.js +1 -0
- package/kit/assets/vitesse-light-gUX51GpB.js +1 -0
- package/kit/assets/vue-D2T8AFdP.js +1 -0
- package/kit/assets/vue-html-zEfNEgpj.js +1 -0
- package/kit/assets/vue-vine-DQRWX4iy.js +1 -0
- package/kit/assets/vyper-DpazWNpx.js +1 -0
- package/kit/assets/wasm-CFi-k9--.js +1 -0
- package/kit/assets/wasm-CG6Dc4jp.js +1 -0
- package/kit/assets/wenyan-CYFFG9DK.js +1 -0
- package/kit/assets/wgsl-CxjTZs-b.js +1 -0
- package/kit/assets/wikitext-Bx2qct8O.js +1 -0
- package/kit/assets/wit-DDW3hD69.js +1 -0
- package/kit/assets/wolfram-pu21K997.js +1 -0
- package/kit/assets/worker-DPHDIlCt.js +156 -0
- package/kit/assets/xml-BkAJuBCc.js +1 -0
- package/kit/assets/xsl-C6UUWSil.js +1 -0
- package/kit/assets/yaml-Bopit2L3.js +1 -0
- package/kit/assets/zenscript-BIAKq-aR.js +1 -0
- package/kit/assets/zig-bSFrHQ7n.js +1 -0
- package/kit/build.json +3 -0
- package/kit/chunks/abap-BdImnpbu.js +1 -0
- package/kit/chunks/abnfDiagram-VCTEODGH-Ekbmv6AY.js +1 -0
- package/kit/chunks/actionscript-3-B3316cI-.js +1 -0
- package/kit/chunks/ada-bCR0ucgS.js +1 -0
- package/kit/chunks/ahk-CsyLZFj1.js +1 -0
- package/kit/chunks/ahk2-8Zs4aa1G.js +1 -0
- package/kit/chunks/andromeeda-C4gqWexZ.js +1 -0
- package/kit/chunks/angular-html-DA-rfuFy.js +1 -0
- package/kit/chunks/angular-ts-BrjP3tb8.js +1 -0
- package/kit/chunks/apache-Pmp26Uib.js +1 -0
- package/kit/chunks/apex-DhZFqWV2.js +1 -0
- package/kit/chunks/apl-CORt7UWP.js +1 -0
- package/kit/chunks/app-chat-kit-CmncbKE7.js +885 -0
- package/kit/chunks/applescript-Co6uUVPk.js +1 -0
- package/kit/chunks/ara-BRHolxvo.js +1 -0
- package/kit/chunks/arc-CTvemvxA.js +1 -0
- package/kit/chunks/architecture-7GRP2DOG-Ek37_97Z.js +1 -0
- package/kit/chunks/architectureDiagram-5GKGNRK7-Dfo6x88c.js +36 -0
- package/kit/chunks/asciidoc-CSVQ5wI8.js +1 -0
- package/kit/chunks/asm-D_Q5rh1f.js +1 -0
- package/kit/chunks/astro-HNnZUWAn.js +1 -0
- package/kit/chunks/aurora-x-D-2ljcwZ.js +1 -0
- package/kit/chunks/awk-DMzUqQB5.js +1 -0
- package/kit/chunks/ayu-dark-DYE7WIF3.js +1 -0
- package/kit/chunks/ayu-light-BA47KaF1.js +1 -0
- package/kit/chunks/ayu-mirage-32ctXXKs.js +1 -0
- package/kit/chunks/ballerina-BFfxhgS-.js +1 -0
- package/kit/chunks/bat-CickPsom.js +1 -0
- package/kit/chunks/beancount-k_qm7-4y.js +1 -0
- package/kit/chunks/berry-uYugtg8r.js +1 -0
- package/kit/chunks/bibtex-CHM0blh-.js +1 -0
- package/kit/chunks/bicep-Bmn6On1c.js +1 -0
- package/kit/chunks/bird2-Bx8U0n9b.js +1 -0
- package/kit/chunks/blade-2xfisSek.js +1 -0
- package/kit/chunks/blockDiagram-NRAW4CY4-BREhUg_n.js +129 -0
- package/kit/chunks/bsl-DlhNcFeZ.js +1 -0
- package/kit/chunks/c-BIGW1oBm.js +1 -0
- package/kit/chunks/c3-Dp5svz6Z.js +1 -0
- package/kit/chunks/c4Diagram-UCG6FXSJ-CAoiRqwq.js +38 -0
- package/kit/chunks/cadence-Bv_4Rxtq.js +1 -0
- package/kit/chunks/cairo-KRGpt6FW.js +1 -0
- package/kit/chunks/catppuccin-frappe-CZL1YF0i.js +1 -0
- package/kit/chunks/catppuccin-latte-DH-8KZSZ.js +1 -0
- package/kit/chunks/catppuccin-macchiato-B7yYVSCf.js +1 -0
- package/kit/chunks/catppuccin-mocha-Ct7hS0mc.js +1 -0
- package/kit/chunks/channel-BCuymVz7.js +1 -0
- package/kit/chunks/chapel-DTp_pixX.js +1 -0
- package/kit/chunks/chunk-2Q5K7J3B-Dfj9NWMK.js +1 -0
- package/kit/chunks/chunk-5VM5RSS4-DDPHEz3o.js +15 -0
- package/kit/chunks/chunk-F27PBJKO-DjjkcfXV.js +1 -0
- package/kit/chunks/chunk-G27WJ6UU-BbKnleUj.js +231 -0
- package/kit/chunks/chunk-JWPE2WC7-CTyE03Ky.js +1 -0
- package/kit/chunks/chunk-LCL6LL3I-DLCIPv63.js +206 -0
- package/kit/chunks/chunk-POPQ4Y6H-vHDe0Ab2.js +1 -0
- package/kit/chunks/chunk-RHFEMEQ7-MYjE_XE-.js +168 -0
- package/kit/chunks/chunk-SVP7TREG-B-Z53M0l.js +88 -0
- package/kit/chunks/chunk-XXDRQBXY-Byur0hqD.js +1 -0
- package/kit/chunks/clarity-Dn5IMItf.js +1 -0
- package/kit/chunks/classDiagram-DTDB5LWJ-RWAJ513G.js +1 -0
- package/kit/chunks/classDiagram-v2-JRS7N3AN-RWAJ513G.js +1 -0
- package/kit/chunks/clojure-P80f7IUj.js +1 -0
- package/kit/chunks/cmake-D1j8_8rp.js +1 -0
- package/kit/chunks/cobol-nBiQ_Alo.js +1 -0
- package/kit/chunks/codeowners-Bp6g37R7.js +1 -0
- package/kit/chunks/codeql-DsOJ9woJ.js +1 -0
- package/kit/chunks/coffee-Ch7k5sss.js +1 -0
- package/kit/chunks/common-lisp-Cg-RD9OK.js +1 -0
- package/kit/chunks/coq-C7JzOVbR.js +1 -0
- package/kit/chunks/cose-bilkent-JH36ORCC-BJBTUpzs.js +1 -0
- package/kit/chunks/cpp-BMRokrvK.js +1 -0
- package/kit/chunks/crystal-DGywbUpC.js +1 -0
- package/kit/chunks/csharp-DSvCPggb.js +1 -0
- package/kit/chunks/css-CLj8gQPS.js +1 -0
- package/kit/chunks/csv-fuZLfV_i.js +1 -0
- package/kit/chunks/cue-D82EKSYY.js +1 -0
- package/kit/chunks/cynefin-OW5HDTMX-DximYq9_.js +1 -0
- package/kit/chunks/cynefinDiagram-5FMLGOSQ-C_H0NP3V.js +62 -0
- package/kit/chunks/cypher-COkxafJQ.js +1 -0
- package/kit/chunks/cytoscape.esm-CNiYdHpY.js +331 -0
- package/kit/chunks/d-85-TOEBH.js +1 -0
- package/kit/chunks/dagre-3AP2YEHR-B40iBpXe.js +4 -0
- package/kit/chunks/dark-plus-C3mMm8J8.js +1 -0
- package/kit/chunks/dart-bE4Kk8sk.js +1 -0
- package/kit/chunks/dax-CEL-wOlO.js +1 -0
- package/kit/chunks/defaultLocale-DX6XiGOO.js +1 -0
- package/kit/chunks/desktop-BmXAJ9_W.js +1 -0
- package/kit/chunks/diagram-S7CK7UJ4-B2xIXmUw.js +30 -0
- package/kit/chunks/diagram-UQ7AKVKN-DLWlOhvf.js +41 -0
- package/kit/chunks/diagram-VSXAHHWV-CtxWAwpJ.js +3 -0
- package/kit/chunks/diagram-VX7I27RA-C0oOsr2R.js +24 -0
- package/kit/chunks/diagram-Z3DM3KII-DguGhB-N.js +24 -0
- package/kit/chunks/diff-D97Zzqfu.js +1 -0
- package/kit/chunks/docker-BcOcwvcX.js +1 -0
- package/kit/chunks/dotenv-Da5cRb03.js +1 -0
- package/kit/chunks/dracula-BzJJZx-M.js +1 -0
- package/kit/chunks/dracula-soft-BXkSAIEj.js +1 -0
- package/kit/chunks/dream-maker-BtqSS_iP.js +1 -0
- package/kit/chunks/ebnfDiagram-PWID7BFC-CM2jytSc.js +1 -0
- package/kit/chunks/edge-FbVlp4U3.js +1 -0
- package/kit/chunks/elixir-CkH2-t6x.js +1 -0
- package/kit/chunks/elm-DbKCFpqz.js +1 -0
- package/kit/chunks/emacs-lisp-C_m_b--Z.js +1 -0
- package/kit/chunks/engine-compile-BrcillB_.js +152 -0
- package/kit/chunks/erDiagram-SSCWMZ5O-6AVzexk8.js +99 -0
- package/kit/chunks/erb-DXfck5VN.js +1 -0
- package/kit/chunks/erlang-DsQrWhSR.js +1 -0
- package/kit/chunks/eventmodeling-NTZA5JFV-i5VApXqj.js +1 -0
- package/kit/chunks/everforest-dark-BgDCqdQA.js +1 -0
- package/kit/chunks/everforest-light-C8M2exoo.js +1 -0
- package/kit/chunks/fennel-BYunw83y.js +1 -0
- package/kit/chunks/file-p1zS5m55.js +1524 -0
- package/kit/chunks/fish-BvzEVeQv.js +1 -0
- package/kit/chunks/flowDiagram-A5DVABFB-BXMY48By.js +1 -0
- package/kit/chunks/fluent-C4IJs8-o.js +1 -0
- package/kit/chunks/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/kit/chunks/fortran-free-form-BxgE0vQu.js +1 -0
- package/kit/chunks/fsharp-CXgrBDvD.js +1 -0
- package/kit/chunks/ganttDiagram-EL5Y4UJY-CV7SNBW7.js +292 -0
- package/kit/chunks/gdresource-TyuKm33G.js +1 -0
- package/kit/chunks/gdscript-DqcFQ5yU.js +1 -0
- package/kit/chunks/gdshader-DkwncUOv.js +1 -0
- package/kit/chunks/genie-D0YGMca9.js +1 -0
- package/kit/chunks/gherkin-DyxjwDmM.js +1 -0
- package/kit/chunks/git-commit-F4YmCXRG.js +1 -0
- package/kit/chunks/git-rebase-r7XF79zn.js +1 -0
- package/kit/chunks/gitGraph-4MIJSDKK-J1V9VTkA.js +1 -0
- package/kit/chunks/gitGraphDiagram-WWUBYQGX-BCHc9w_M.js +106 -0
- package/kit/chunks/github-dark-DHJKELXO.js +1 -0
- package/kit/chunks/github-dark-default-Cuk6v7N8.js +1 -0
- package/kit/chunks/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/kit/chunks/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/kit/chunks/github-light-DAi9KRSo.js +1 -0
- package/kit/chunks/github-light-default-D7oLnXFd.js +1 -0
- package/kit/chunks/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/kit/chunks/gleam-BspZqrRM.js +1 -0
- package/kit/chunks/glimmer-js-ByusRIyA.js +1 -0
- package/kit/chunks/glimmer-ts-BfAWNZQY.js +1 -0
- package/kit/chunks/glsl-DplSGwfg.js +1 -0
- package/kit/chunks/gn-n2N0HUVH.js +1 -0
- package/kit/chunks/gnuplot-DdkO51Og.js +1 -0
- package/kit/chunks/go-C27-OAKa.js +1 -0
- package/kit/chunks/graphql-ChdNCCLP.js +1 -0
- package/kit/chunks/groovy-gcz8RCvz.js +1 -0
- package/kit/chunks/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/kit/chunks/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/kit/chunks/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/kit/chunks/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/kit/chunks/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/kit/chunks/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/kit/chunks/hack-BWmVpMyf.js +1 -0
- package/kit/chunks/haml-D5jkg6IW.js +1 -0
- package/kit/chunks/handlebars-BpdQsYii.js +1 -0
- package/kit/chunks/haskell-Df6bDoY_.js +1 -0
- package/kit/chunks/haxe-CfZj7gIn.js +1 -0
- package/kit/chunks/hcl-BWvSN4gD.js +1 -0
- package/kit/chunks/hjson-D5-asLiD.js +1 -0
- package/kit/chunks/hlsl-D3lLCCz7.js +1 -0
- package/kit/chunks/horizon-BUw7H-hv.js +1 -0
- package/kit/chunks/horizon-bright-CUuTKBJd.js +1 -0
- package/kit/chunks/houston-DnULxvSX.js +1 -0
- package/kit/chunks/html-derivative-DlHx6ybY.js +1 -0
- package/kit/chunks/html-pp8916En.js +1 -0
- package/kit/chunks/http-jrhK8wxY.js +1 -0
- package/kit/chunks/hurl-irOxFIW8.js +1 -0
- package/kit/chunks/hxml-2-FPmUDs.js +1 -0
- package/kit/chunks/hy-DFXneXwc.js +1 -0
- package/kit/chunks/imba-DGztddWO.js +1 -0
- package/kit/chunks/index-CN35FGBT.js +2 -0
- package/kit/chunks/index-CvcU6KJI.js +2 -0
- package/kit/chunks/index-CzdAxbXm.js +1 -0
- package/kit/chunks/index-D-Q6ihx1.js +518 -0
- package/kit/chunks/info-A6RAGUB7-Df1RDY9x.js +1 -0
- package/kit/chunks/infoDiagram-RXCK75RN-DkViDaAy.js +2 -0
- package/kit/chunks/ini-BEwlwnbL.js +1 -0
- package/kit/chunks/init-Gi6I4Gst.js +1 -0
- package/kit/chunks/ishikawaDiagram-5VMMS53U-DxEqVVmG.js +70 -0
- package/kit/chunks/java-CylS5w8V.js +1 -0
- package/kit/chunks/javascript-wDzz0qaB.js +1 -0
- package/kit/chunks/jinja-f2NsQr07.js +1 -0
- package/kit/chunks/jison-wvAkD_A8.js +1 -0
- package/kit/chunks/journeyDiagram-EYS64GPL-C6PuEAZM.js +139 -0
- package/kit/chunks/json-Cp-IABpG.js +1 -0
- package/kit/chunks/json5-C9tS-k6U.js +1 -0
- package/kit/chunks/jsonc-Des-eS-w.js +1 -0
- package/kit/chunks/jsonl-DcaNXYhu.js +1 -0
- package/kit/chunks/jsonnet-DFQXde-d.js +1 -0
- package/kit/chunks/jssm-C2t-YnRu.js +1 -0
- package/kit/chunks/jsx-g9-lgVsj.js +1 -0
- package/kit/chunks/julia-5Bft2YPA.js +1 -0
- package/kit/chunks/just-Cwhn7H3k.js +1 -0
- package/kit/chunks/kanagawa-dragon-BuwD2xS4.js +1 -0
- package/kit/chunks/kanagawa-lotus-C3DzagqV.js +1 -0
- package/kit/chunks/kanagawa-wave-DFGoQZhC.js +1 -0
- package/kit/chunks/kanban-definition-3QL26DDD-DOTf6YFB.js +89 -0
- package/kit/chunks/katex-HP8lGamR.js +257 -0
- package/kit/chunks/kdl-DV7GczEv.js +1 -0
- package/kit/chunks/kotlin-BdnUsdx6.js +1 -0
- package/kit/chunks/kusto-wEQ09or8.js +1 -0
- package/kit/chunks/laserwave-DUszq2jm.js +1 -0
- package/kit/chunks/latex-D5pSuvFb.js +1 -0
- package/kit/chunks/layout-CdSidOqg.js +1 -0
- package/kit/chunks/lean-BZvkOJ9d.js +1 -0
- package/kit/chunks/less-B1dDrJ26.js +1 -0
- package/kit/chunks/light-plus-B7mTdjB0.js +1 -0
- package/kit/chunks/linear-2B_RRiLc.js +1 -0
- package/kit/chunks/liquid-C0sCDyMI.js +1 -0
- package/kit/chunks/llvm-BZoOZj88.js +1 -0
- package/kit/chunks/log-2UxHyX5q.js +1 -0
- package/kit/chunks/logo-BtOb2qkB.js +1 -0
- package/kit/chunks/lua-BaeVxFsk.js +1 -0
- package/kit/chunks/luau-BnpPk5vE.js +1 -0
- package/kit/chunks/make-CHLpvVh8.js +1 -0
- package/kit/chunks/markdown-Cvjx9yec.js +1 -0
- package/kit/chunks/markdown-PrvsCtkO.js +7 -0
- package/kit/chunks/markdown-code-BP4ED3mK.js +1 -0
- package/kit/chunks/markdown-mermaid-C7inlIvD.js +2 -0
- package/kit/chunks/marked-parser-ucXGUtxA.js +1 -0
- package/kit/chunks/marko-DjSrsDqO.js +1 -0
- package/kit/chunks/material-theme-D5KoaKCx.js +1 -0
- package/kit/chunks/material-theme-darker-BfHTSMKl.js +1 -0
- package/kit/chunks/material-theme-lighter-B0m2ddpp.js +1 -0
- package/kit/chunks/material-theme-ocean-CyktbL80.js +1 -0
- package/kit/chunks/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/kit/chunks/matlab-D7o27uSR.js +1 -0
- package/kit/chunks/mdc-D1_yUvq7.js +1 -0
- package/kit/chunks/mdx-Cmh6b_Ma.js +1 -0
- package/kit/chunks/mermaid-CQcHuHx7.js +1 -0
- package/kit/chunks/mermaid-parser.core-mF5sU-Xg.js +178 -0
- package/kit/chunks/mermaid.core-xKeJvOaV.js +309 -0
- package/kit/chunks/min-dark-CafNBF8u.js +1 -0
- package/kit/chunks/min-light-CTRr51gU.js +1 -0
- package/kit/chunks/mindmap-definition-FBJOCRG2-YJlqhJDe.js +96 -0
- package/kit/chunks/mipsasm-CKIfxQSi.js +1 -0
- package/kit/chunks/mojo-Blby8dQK.js +1 -0
- package/kit/chunks/monokai-BRVnQi9A.js +1 -0
- package/kit/chunks/moonbit-CHtswR0a.js +1 -0
- package/kit/chunks/move-el3G9tDJ.js +1 -0
- package/kit/chunks/narrat-DRg8JJMk.js +1 -0
- package/kit/chunks/nextflow-C-mBbutL.js +1 -0
- package/kit/chunks/nextflow-groovy-vE_lwT2v.js +1 -0
- package/kit/chunks/nginx-BpAMiNFr.js +1 -0
- package/kit/chunks/night-owl-C39BiMTA.js +1 -0
- package/kit/chunks/night-owl-light-CMTm3GFP.js +1 -0
- package/kit/chunks/nim-BIad80T-.js +1 -0
- package/kit/chunks/nix-CwoSXNpI.js +1 -0
- package/kit/chunks/nord-Ddv68eIx.js +1 -0
- package/kit/chunks/nsis-BlV79W_Q.js +1 -0
- package/kit/chunks/nushell-D3jzshHO.js +1 -0
- package/kit/chunks/objective-c-DXmwc3jG.js +1 -0
- package/kit/chunks/objective-cpp-CLxacb5B.js +1 -0
- package/kit/chunks/ocaml-C0hk2d4L.js +1 -0
- package/kit/chunks/odin-BBf5iR-q.js +1 -0
- package/kit/chunks/one-dark-pro-DVMEJ2y_.js +1 -0
- package/kit/chunks/one-light-C3Wv6jpd.js +1 -0
- package/kit/chunks/openscad-C4EeE6gA.js +1 -0
- package/kit/chunks/ordinal-Cboi1Yqb.js +1 -0
- package/kit/chunks/org-DM6o9KBp.js +1 -0
- package/kit/chunks/packet-AYTQ26CC-BVWhELL0.js +1 -0
- package/kit/chunks/pascal-D93ZcfNL.js +1 -0
- package/kit/chunks/pegDiagram-XKGWAZYB-C4MT3RNK.js +1 -0
- package/kit/chunks/perl-B9cMNwum.js +1 -0
- package/kit/chunks/php-Csjmro_R.js +1 -0
- package/kit/chunks/pie-WAS4IAKB-DOImHQUJ.js +1 -0
- package/kit/chunks/pieDiagram-E7YTZNPT-Hm0WPgzn.js +39 -0
- package/kit/chunks/pierre-dark-CyvmCCZW.js +1 -0
- package/kit/chunks/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
- package/kit/chunks/pierre-dark-soft-BHGpRqa4.js +1 -0
- package/kit/chunks/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
- package/kit/chunks/pierre-dark-vibrant-BWBVywrn.js +1 -0
- package/kit/chunks/pierre-light-480U9XYS.js +1 -0
- package/kit/chunks/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
- package/kit/chunks/pierre-light-soft-CVdyfjmI.js +1 -0
- package/kit/chunks/pierre-light-tritanopia-B4_gpKOM.js +1 -0
- package/kit/chunks/pierre-light-vibrant-DdTDNdfJ.js +1 -0
- package/kit/chunks/pkl-u5AG7uiY.js +1 -0
- package/kit/chunks/plastic-3e1v2bzS.js +1 -0
- package/kit/chunks/plsql-ChMvpjG-.js +1 -0
- package/kit/chunks/po-BTJTHyun.js +1 -0
- package/kit/chunks/poimandres-CS3Unz2-.js +1 -0
- package/kit/chunks/polar-C0HS_06l.js +1 -0
- package/kit/chunks/postcss-CXtECtnM.js +1 -0
- package/kit/chunks/powerquery-CEu0bR-o.js +1 -0
- package/kit/chunks/powershell-BmBUJMz7.js +1 -0
- package/kit/chunks/prisma-Vru482bI.js +1 -0
- package/kit/chunks/prolog-CbFg5uaA.js +1 -0
- package/kit/chunks/proto-C7zT0LnQ.js +1 -0
- package/kit/chunks/pug-DKIMFp6K.js +1 -0
- package/kit/chunks/puppet-BMWR74SV.js +1 -0
- package/kit/chunks/purescript-CklMAg4u.js +1 -0
- package/kit/chunks/python-B6aJPvgy.js +1 -0
- package/kit/chunks/qml-3beO22l8.js +1 -0
- package/kit/chunks/qmldir-C8lEn-DE.js +1 -0
- package/kit/chunks/qss-IeuSbFQv.js +1 -0
- package/kit/chunks/quadrantDiagram-AXDQQJYC-BZTp7tGN.js +7 -0
- package/kit/chunks/r-Cf5RLm7j.js +1 -0
- package/kit/chunks/racket-BqYA7rlc.js +1 -0
- package/kit/chunks/radar-RG4KPBEZ-KbpEH3G6.js +1 -0
- package/kit/chunks/railroad-74A4TZTK-Cy0CCThT.js +1 -0
- package/kit/chunks/railroad-abnf-HS5TGJTU-CvknKf9w.js +1 -0
- package/kit/chunks/railroad-ebnf-LZEXJU2U-DPsJAhot.js +1 -0
- package/kit/chunks/railroad-peg-WCYAUIDC-CAZC7-ro.js +1 -0
- package/kit/chunks/railroadDiagram-O6MQD6OU-Cslq_ZZh.js +1 -0
- package/kit/chunks/raku-DXvB9xmW.js +1 -0
- package/kit/chunks/razor-BjBPvh-w.js +1 -0
- package/kit/chunks/rbs-CpoqiR4B.js +1 -0
- package/kit/chunks/red-hvxz__6c.js +1 -0
- package/kit/chunks/reg-C-SQnVFl.js +1 -0
- package/kit/chunks/regexp-CDVJQ6XC.js +1 -0
- package/kit/chunks/rel-C3B-1QV4.js +1 -0
- package/kit/chunks/requirementDiagram-EFPCY7ZU-CvFiO4QY.js +84 -0
- package/kit/chunks/riscv-BM1_JUlF.js +1 -0
- package/kit/chunks/ron-D8l8udqQ.js +1 -0
- package/kit/chunks/rose-pine-5qJOZa0Y.js +1 -0
- package/kit/chunks/rose-pine-dawn-zx0QlTCp.js +1 -0
- package/kit/chunks/rose-pine-moon-C9pEdX9L.js +1 -0
- package/kit/chunks/rosmsg-BJDFO7_C.js +1 -0
- package/kit/chunks/rst-bs7f0vWN.js +1 -0
- package/kit/chunks/ruby-C0TQ7zu5.js +1 -0
- package/kit/chunks/rust-B1yitclQ.js +1 -0
- package/kit/chunks/sankeyDiagram-P5KCCOFB-Da1DpNmD.js +40 -0
- package/kit/chunks/sas-DEy46yEz.js +1 -0
- package/kit/chunks/sass-Cj5Yp3dK.js +1 -0
- package/kit/chunks/scala-CqE71os6.js +1 -0
- package/kit/chunks/scheme-C98Dy4si.js +1 -0
- package/kit/chunks/scss-D5BDwBP9.js +1 -0
- package/kit/chunks/sdbl-DVxCFoDh.js +1 -0
- package/kit/chunks/sequenceDiagram-WJ2MYXX4-DxoNyZwj.js +162 -0
- package/kit/chunks/shaderlab-Dg9Lc6iA.js +1 -0
- package/kit/chunks/shellscript-Yzrsuije.js +1 -0
- package/kit/chunks/shellsession-BADoaaVG.js +1 -0
- package/kit/chunks/sizeCapture-X5ZJPWSS-BYc4ks_u.js +1 -0
- package/kit/chunks/slack-dark-BthQWCQV.js +1 -0
- package/kit/chunks/slack-ochin-DqwNpetd.js +1 -0
- package/kit/chunks/smalltalk-BOQMe2GC.js +1 -0
- package/kit/chunks/smithy-cds9vsN8.js +1 -0
- package/kit/chunks/snazzy-light-Bw305WKR.js +1 -0
- package/kit/chunks/solarized-dark-CpvCGNkr.js +1 -0
- package/kit/chunks/solarized-light-Dlz6yCKv.js +1 -0
- package/kit/chunks/solidity-DijEV5ha.js +1 -0
- package/kit/chunks/soy-8wufbnw4.js +1 -0
- package/kit/chunks/sparql-rVzFXLq3.js +1 -0
- package/kit/chunks/splunk-BtCnVYZw.js +1 -0
- package/kit/chunks/sql-CRqJ_cUM.js +1 -0
- package/kit/chunks/ssh-config-_ykCGR6B.js +1 -0
- package/kit/chunks/stata-DI20mbqo.js +1 -0
- package/kit/chunks/stateDiagram-HBIQ2CUA-pcNSv_wf.js +1 -0
- package/kit/chunks/stateDiagram-v2-4QOOHH4V-BdB1HxLL.js +1 -0
- package/kit/chunks/stylus-BEDo0Tqx.js +1 -0
- package/kit/chunks/surrealql-Cjom0U5J.js +1 -0
- package/kit/chunks/svelte-Cy7k_4gC.js +1 -0
- package/kit/chunks/swift-C2oV4EkX.js +1 -0
- package/kit/chunks/swimlanes-XN3QIQJK-D7wXTch1.js +1 -0
- package/kit/chunks/swimlanesDiagram-VK2B7HYN-BmYbYnek.js +8 -0
- package/kit/chunks/synthwave-84-CbfX1IO0.js +1 -0
- package/kit/chunks/system-verilog-0hqHdDBg.js +1 -0
- package/kit/chunks/systemd-4A_iFExJ.js +1 -0
- package/kit/chunks/talonscript-CkByrt1z.js +1 -0
- package/kit/chunks/tasl-QIJgUcNo.js +1 -0
- package/kit/chunks/tcl-dwOrl1Do.js +1 -0
- package/kit/chunks/templ-DhtptRzy.js +1 -0
- package/kit/chunks/terraform-BETggiCN.js +1 -0
- package/kit/chunks/tex-D96PA37w.js +1 -0
- package/kit/chunks/timeline-definition-24CTP7MA-BrPc1tMu.js +120 -0
- package/kit/chunks/tokyo-night-hegEt444.js +1 -0
- package/kit/chunks/toml-vGWfd6FD.js +1 -0
- package/kit/chunks/treeView-Q6P3EWNA-hcKZ8Aqa.js +1 -0
- package/kit/chunks/treemap-WGGIJYW6-VledEerh.js +1 -0
- package/kit/chunks/ts-tags-D351s5mN.js +1 -0
- package/kit/chunks/tsv-B_m7g4N7.js +1 -0
- package/kit/chunks/tsx-COt5Ahok.js +1 -0
- package/kit/chunks/turtle-BsS91CYL.js +1 -0
- package/kit/chunks/twig-27uCiNez.js +1 -0
- package/kit/chunks/typescript-BPQ3VLAy.js +1 -0
- package/kit/chunks/typespec-CAFt9gP4.js +1 -0
- package/kit/chunks/typst-DHCkPAjA.js +1 -0
- package/kit/chunks/v-BGw2Nkan.js +1 -0
- package/kit/chunks/vala-CsfeWuGM.js +1 -0
- package/kit/chunks/vb-Cu-pLBUe.js +1 -0
- package/kit/chunks/vennDiagram-4TSXK5OY-CMfntOoF.js +34 -0
- package/kit/chunks/verilog-nZwndyjY.js +1 -0
- package/kit/chunks/vesper-DRje8inN.js +1 -0
- package/kit/chunks/vhdl-CeAyd5Ju.js +1 -0
- package/kit/chunks/viml-CJc9bBzg.js +1 -0
- package/kit/chunks/vitesse-black-Bkuqu6BP.js +1 -0
- package/kit/chunks/vitesse-dark-D0r3Knsf.js +1 -0
- package/kit/chunks/vitesse-light-CVO1_9PV.js +1 -0
- package/kit/chunks/vue-BqiEGhQt.js +1 -0
- package/kit/chunks/vue-html-AaS7Mt5G.js +1 -0
- package/kit/chunks/vue-vine-BoDAl6tE.js +1 -0
- package/kit/chunks/vyper-CDx5xZoG.js +1 -0
- package/kit/chunks/wardley-WFR3VGLG-Bx5FYIM5.js +1 -0
- package/kit/chunks/wardleyDiagram-VM6X3IG4-C9foyd_h.js +78 -0
- package/kit/chunks/wasm-CG6Dc4jp.js +1 -0
- package/kit/chunks/wasm-MzD3tlZU.js +1 -0
- package/kit/chunks/wenyan-BV7otONQ.js +1 -0
- package/kit/chunks/wgsl-Dx-B1_4e.js +1 -0
- package/kit/chunks/wikitext-BhOHFoWU.js +1 -0
- package/kit/chunks/wit-5i3qLPDT.js +1 -0
- package/kit/chunks/wolfram-lXgVvXCa.js +1 -0
- package/kit/chunks/xml-sdJ4AIDG.js +1 -0
- package/kit/chunks/xsl-CtQFsRM5.js +1 -0
- package/kit/chunks/xychartDiagram-S5SC5T6Z-Bp0MWYj-.js +7 -0
- package/kit/chunks/yaml-Buea-lGh.js +1 -0
- package/kit/chunks/zenscript-DVFEvuxE.js +1 -0
- package/kit/chunks/zig-VOosw3JB.js +1 -0
- package/kit/index.d.ts +95 -0
- package/kit/index.js +1 -0
- package/kit/mux-build.json +1 -0
- package/kit/style.css +1 -0
- package/package.json +9 -15
- package/dist/controller.d.ts +0 -66
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1237
- package/dist/index.js.map +0 -1
- package/dist/markdown.d.ts +0 -2
- package/dist/model.d.ts +0 -33
- package/dist/mount.d.ts +0 -56
- package/dist/styles.d.ts +0 -2
- package/dist/testing.js.map +0 -1
- package/dist/view/Chat.d.ts +0 -26
- package/dist/view/parts.d.ts +0 -19
- package/dist/view/primitives.d.ts +0 -10
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import{_ as c}from"./app-chat-kit-CmncbKE7.js";const gi=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Te{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Te.prototype.normal={};Te.prototype.property={};Te.prototype.space=void 0;function Yr(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Te(r,n,t)}function Pt(e){return e.toLowerCase()}class G{constructor(t,r){this.attribute=r,this.property=t}}G.prototype.attribute="";G.prototype.booleanish=!1;G.prototype.boolean=!1;G.prototype.commaOrSpaceSeparated=!1;G.prototype.commaSeparated=!1;G.prototype.defined=!1;G.prototype.mustUseProperty=!1;G.prototype.number=!1;G.prototype.overloadedBoolean=!1;G.prototype.property="";G.prototype.spaceSeparated=!1;G.prototype.space=void 0;let _i=0;const C=ce(),P=ce(),Tt=ce(),y=ce(),I=ce(),_e=ce(),B=ce();function ce(){return 2**++_i}const Ot=Object.freeze(Object.defineProperty({__proto__:null,boolean:C,booleanish:P,commaOrSpaceSeparated:B,commaSeparated:_e,number:y,overloadedBoolean:Tt,spaceSeparated:I},Symbol.toStringTag,{value:"Module"})),ft=Object.keys(Ot);class Qt extends G{constructor(t,r,n,i){let o=-1;if(super(t,r),cr(this,"space",i),typeof n=="number")for(;++o<ft.length;){const a=ft[o];cr(this,ft[o],(n&Ot[a])===Ot[a])}}}Qt.prototype.defined=!0;function cr(e,t,r){r&&(e[t]=r)}function Ee(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new Qt(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Pt(n)]=n,r[Pt(o.attribute)]=n}return new Te(t,r,e.space)}const en=Ee({properties:{ariaActiveDescendant:null,ariaAtomic:P,ariaAutoComplete:null,ariaBusy:P,ariaChecked:P,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:P,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:P,ariaFlowTo:I,ariaGrabbed:P,ariaHasPopup:null,ariaHidden:P,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:y,ariaLive:null,ariaModal:P,ariaMultiLine:P,ariaMultiSelectable:P,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:P,ariaReadOnly:P,ariaRelevant:null,ariaRequired:P,ariaRoleDescription:I,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:P,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function tn(e,t){return t in e?e[t]:t}function rn(e,t){return tn(e,t.toLowerCase())}const yi=Ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_e,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:I,autoFocus:C,autoPlay:C,blocking:I,capture:null,charSet:null,checked:C,cite:null,className:I,cols:y,colSpan:null,content:null,contentEditable:P,controls:C,controlsList:I,coords:y|_e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:Tt,draggable:P,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:I,height:y,hidden:Tt,high:y,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:C,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:I,itemRef:I,itemScope:C,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:C,optimum:y,pattern:null,ping:I,placeholder:null,playsInline:C,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:I,required:C,reversed:C,rows:y,rowSpan:y,sandbox:I,scope:null,scoped:C,seamless:C,selected:C,shadowRootClonable:C,shadowRootDelegatesFocus:C,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:P,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:P,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:P,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:rn}),Ei=Ee({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:B,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:I,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:C,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_e,g2:_e,glyphName:_e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tn}),nn=Ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),on=Ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rn}),an=Ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bi=/[A-Z]/g,pr=/-[a-z]/g,wi=/^data[-\w.:]+$/i;function vi(e,t){const r=Pt(t);let n=t,i=G;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(pr,Ai);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!pr.test(o)){let a=o.replace(bi,Ci);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Qt}return new i(n,t)}function Ci(e){return"-"+e.toLowerCase()}function Ai(e){return e.charAt(1).toUpperCase()}const Si=Yr([en,yi,nn,on,an],"html"),sn=Yr([en,Ei,nn,on,an],"svg"),mr={}.hasOwnProperty;function Ii(e,t){const r=t||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&mr.call(i,e)){const l=String(i[e]);a=mr.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const Ri=/["&'<>`]/g,Li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ki=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pi=/[|\\{}()[\]^$+*?.]/g,dr=new WeakMap;function Ti(e,t){if(e=e.replace(t.subset?Oi(t.subset):Ri,n),t.subset||t.escapeOnly)return e;return e.replace(Li,r).replace(ki,n);function r(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function n(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function Oi(e){let t=dr.get(e);return t||(t=xi(e),dr.set(e,t)),t}function xi(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(Pi,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Di=/[\dA-Fa-f]/;function Ni(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!Di.test(String.fromCharCode(t))?n:n+";"}const Vi=/\d/;function Mi(e,t,r){const n="&#"+String(e);return r&&t&&!Vi.test(String.fromCharCode(t))?n:n+";"}const $i=["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"],gt={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:"€"},Gi=["cent","copy","divide","gt","lt","not","para","times"],ln={}.hasOwnProperty,xt={};let De;for(De in gt)ln.call(gt,De)&&(xt[gt[De]]=De);const Bi=/[^\dA-Za-z]/;function Ui(e,t,r,n){const i=String.fromCharCode(e);if(ln.call(xt,i)){const o=xt[i],a="&"+o;return r&&$i.includes(o)&&!Gi.includes(o)&&(!n||t&&t!==61&&Bi.test(String.fromCharCode(t)))?a:a+";"}return""}function Fi(e,t,r){let n=Ni(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Ui(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=Mi(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ye(e,t){return Ti(e,Object.assign({format:Fi},t))}const ji=/^>|^->|<!--|-->|--!>|<!-$/g,Wi=[">"],Hi=["<",">"];function zi(e,t,r,n){return n.settings.bogusComments?"<?"+ye(e.value,Object.assign({},n.settings.characterReferences,{subset:Wi}))+">":"<!--"+e.value.replace(ji,i)+"-->";function i(o){return ye(o,Object.assign({},n.settings.characterReferences,{subset:Hi}))}}function qi(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function hr(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Xi(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Ki(e){return e.join(" ").trim()}const Qi=/[ \t\n\f\r]/g;function Jt(e){return typeof e=="object"?e.type==="text"?fr(e.value):!1:fr(e)}function fr(e){return e.replace(Qi,"")===""}const x=cn(1),un=cn(-1),Ji=[];function cn(e){return t;function t(r,n,i){const o=r?r.children:Ji;let a=(n||0)+e,s=o[a];if(!i)for(;s&&Jt(s);)a+=e,s=o[a];return s}}const Zi={}.hasOwnProperty;function pn(e){return t;function t(r,n,i){return Zi.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const Zt=pn({body:eo,caption:_t,colgroup:_t,dd:io,dt:no,head:_t,html:Yi,li:ro,optgroup:oo,option:ao,p:to,rp:gr,rt:gr,tbody:lo,td:_r,tfoot:uo,th:_r,thead:so,tr:co});function _t(e,t,r){const n=x(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Jt(n.value.charAt(0)))}function Yi(e,t,r){const n=x(r,t);return!n||n.type!=="comment"}function eo(e,t,r){const n=x(r,t);return!n||n.type!=="comment"}function to(e,t,r){const n=x(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function ro(e,t,r){const n=x(r,t);return!n||n.type==="element"&&n.tagName==="li"}function no(e,t,r){const n=x(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function io(e,t,r){const n=x(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function gr(e,t,r){const n=x(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function oo(e,t,r){const n=x(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function ao(e,t,r){const n=x(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function so(e,t,r){const n=x(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function lo(e,t,r){const n=x(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function uo(e,t,r){return!x(r,t)}function co(e,t,r){const n=x(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function _r(e,t,r){const n=x(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const po=pn({body:fo,colgroup:go,head:ho,html:mo,tbody:_o});function mo(e){const t=x(e,-1);return!t||t.type!=="comment"}function ho(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function fo(e){const t=x(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Jt(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function go(e,t,r){const n=un(r,t),i=x(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Zt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function _o(e,t,r){const n=un(r,t),i=x(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Zt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ne={name:[[`
|
|
2
|
+
\f\r &/=>`.split(""),`
|
|
3
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
4
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
5
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
6
|
+
\f\r &>`.split(""),`\0
|
|
7
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
8
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
9
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function yo(e,t,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=sn);const u=Eo(n,e.properties),m=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,m&&(a=!1),(u||!o||!po(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(m),!a&&(!o||!Zt(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function Eo(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=bo(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){const o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function bo(e,t,r){const n=vi(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=ye(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Ne.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Xi:Ki)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=ye(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ne.unquoted[i][o]}))),s!==r&&(e.settings.quoteSmart&&hr(r,a)>hr(r,e.alternative)&&(a=e.alternative),s=a+ye(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Ne.single:Ne.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const wo=["<","&"];function mn(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ye(e.value,Object.assign({},n.settings.characterReferences,{subset:wo}))}function vo(e,t,r,n){return n.settings.allowDangerousHtml?e.value:mn(e,t,r,n)}function Co(e,t,r,n){return n.all(e)}const Ao=Ii("type",{invalid:So,unknown:Io,handlers:{comment:zi,doctype:qi,element:yo,raw:vo,root:Co,text:mn}});function So(e){throw new Error("Expected node, not `"+e+"`")}function Io(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Ro={},Lo={},ko=[];function Po(e,t){const r=t||Ro,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:To,all:Oo,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||gi,characterReferences:r.characterReferences||Lo,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?sn:Si,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function To(e,t,r){return Ao(e,t,r,this)}function Oo(e){const t=[],r=e&&e.children||ko;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var Dt=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,Do=Object.getOwnPropertyNames,No=Object.prototype.hasOwnProperty,Vo=(e,t)=>{let r={};for(var n in e)Dt(r,n,{get:e[n],enumerable:!0});return Dt(r,Symbol.toStringTag,{value:"Module"}),r},Mo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Do(t),o=0,a=i.length,s;o<a;o++)s=i[o],!No.call(e,s)&&s!==r&&Dt(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=xo(t,s))||n.enumerable});return e},$o=(e,t,r)=>(Mo(e,t,"default"),r);const dn=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>c(()=>import("./actionscript-3-B3316cI-.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>c(()=>import("./ahk-CsyLZFj1.js"),[],import.meta.url))},{id:"ahk2",name:"AutoHotkey2",import:(()=>c(()=>import("./ahk2-8Zs4aa1G.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),[],import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./angular-ts-BrjP3tb8.js"),[],import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./apex-DhZFqWV2.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./apl-CORt7UWP.js"),[],import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./asciidoc-CSVQ5wI8.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./astro-HNnZUWAn.js"),[],import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>c(()=>import("./bat-CickPsom.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>c(()=>import("./bird2-Bx8U0n9b.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./blade-2xfisSek.js"),[],import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./bsl-DlhNcFeZ.js"),[],import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>c(()=>import("./c3-Dp5svz6Z.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./cairo-KRGpt6FW.js"),[],import.meta.url))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>c(()=>import("./chapel-DTp_pixX.js"),[],import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./clarity-Dn5IMItf.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./cobol-nBiQ_Alo.js"),[],import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./coffee-Ch7k5sss.js"),[],import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Rocq",import:(()=>c(()=>import("./coq-C7JzOVbR.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./cpp-BMRokrvK.js"),[],import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./crystal-DGywbUpC.js"),[],import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./css-CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./dart-bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./edge-FbVlp4U3.js"),[],import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./elixir-CkH2-t6x.js"),[],import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./elm-DbKCFpqz.js"),[],import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./emacs-lisp-C_m_b--Z.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./erb-DXfck5VN.js"),[],import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./erlang-DsQrWhSR.js"),[],import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),[],import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./fsharp-CXgrBDvD.js"),[],import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./gdresource-TyuKm33G.js"),[],import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./gdscript-DqcFQ5yU.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./git-commit-F4YmCXRG.js"),[],import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./git-rebase-r7XF79zn.js"),[],import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./glimmer-js-ByusRIyA.js"),[],import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./glimmer-ts-BfAWNZQY.js"),[],import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./glsl-DplSGwfg.js"),[],import.meta.url))},{id:"gn",name:"GN",import:(()=>c(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./go-C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./graphql-ChdNCCLP.js"),[],import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./hack-BWmVpMyf.js"),[],import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./haml-D5jkg6IW.js"),[],import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./handlebars-BpdQsYii.js"),[],import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./haxe-CfZj7gIn.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./html-pp8916En.js"),[],import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./html-derivative-DlHx6ybY.js"),[],import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./http-jrhK8wxY.js"),[],import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./hurl-irOxFIW8.js"),[],import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./hxml-2-FPmUDs.js"),[],import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./jinja-f2NsQr07.js"),[],import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./jison-wvAkD_A8.js"),[],import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./julia-5Bft2YPA.js"),[],import.meta.url))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>c(()=>import("./just-Cwhn7H3k.js"),[],import.meta.url))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./kusto-wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./latex-D5pSuvFb.js"),[],import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./liquid-C0sCDyMI.js"),[],import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./llvm-BZoOZj88.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./lua-BaeVxFsk.js"),[],import.meta.url))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./luau-BnpPk5vE.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./marko-DjSrsDqO.js"),[],import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./mdc-D1_yUvq7.js"),[],import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mermaid-CQcHuHx7.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./mojo-Blby8dQK.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./moonbit-CHtswR0a.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./move-el3G9tDJ.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./nextflow-C-mBbutL.js"),[],import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>c(()=>import("./nextflow-groovy-vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./nginx-BpAMiNFr.js"),[],import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./nim-BIad80T-.js"),[],import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nsis",name:"NSIS",import:(()=>c(()=>import("./nsis-BlV79W_Q.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./nushell-D3jzshHO.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./odin-BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"org",name:"Org Markup",import:(()=>c(()=>import("./org-DM6o9KBp.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./perl-B9cMNwum.js"),[],import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./php-Csjmro_R.js"),[],import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>c(()=>import("./powershell-BmBUJMz7.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./prisma-Vru482bI.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./pug-DKIMFp6K.js"),[],import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./qml-3beO22l8.js"),[],import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./r-Cf5RLm7j.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./razor-BjBPvh-w.js"),[],import.meta.url))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>c(()=>import("./rbs-CpoqiR4B.js"),[],import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>c(()=>import("./ron-D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./rst-bs7f0vWN.js"),[],import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./ruby-C0TQ7zu5.js"),[],import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./sas-DEy46yEz.js"),[],import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./scala-CqE71os6.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./scss-D5BDwBP9.js"),[],import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),[],import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./shellsession-BADoaaVG.js"),[],import.meta.url))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>c(()=>import("./smalltalk-BOQMe2GC.js"),[],import.meta.url))},{id:"smithy",name:"Smithy",import:(()=>c(()=>import("./smithy-cds9vsN8.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./solidity-DijEV5ha.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./soy-8wufbnw4.js"),[],import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./sparql-rVzFXLq3.js"),[],import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./stata-DI20mbqo.js"),[],import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./surrealql-Cjom0U5J.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./svelte-Cy7k_4gC.js"),[],import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./system-verilog-0hqHdDBg.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./templ-DhtptRzy.js"),[],import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./tex-D96PA37w.js"),[],import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./ts-tags-D351s5mN.js"),[],import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./twig-27uCiNez.js"),[],import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./typespec-CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./typst-DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>c(()=>import("./v-BGw2Nkan.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",import:(()=>c(()=>import("./vb-Cu-pLBUe.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./verilog-nZwndyjY.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./vue-BqiEGhQt.js"),[],import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./vue-html-AaS7Mt5G.js"),[],import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./vue-vine-BoDAl6tE.js"),[],import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>c(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./xml-sdJ4AIDG.js"),[],import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./xsl-CtQFsRM5.js"),[],import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Go=Object.fromEntries(dn.map(e=>[e.id,e.import])),Bo=Object.fromEntries(dn.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Uo={...Go,...Bo},Fo=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./andromeeda-C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./ayu-dark-DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./ayu-light-BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./ayu-mirage-32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>import("./horizon-BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>c(()=>import("./horizon-bright-CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./kanagawa-lotus-C3DzagqV.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./kanagawa-wave-DFGoQZhC.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./monokai-BRVnQi9A.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./night-owl-light-CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./one-light-C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./red-hvxz__6c.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./rose-pine-5qJOZa0Y.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./rose-pine-moon-C9pEdX9L.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./solarized-dark-CpvCGNkr.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./solarized-light-Dlz6yCKv.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./vesper-DRje8inN.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url))}],jo=Object.fromEntries(Fo.map(e=>[e.id,e.import]));var Yt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Wo(){return 2147483648}function Ho(){return typeof performance<"u"?performance.now():Date.now()}const zo=(e,t)=>e+(t-e%t)%t;async function qo(e){let t,r;const n={};function i(d){r=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,E){n.HEAPU8.copyWithin(d,f,f+E)}function a(d){try{return t.grow(d-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const E=Wo();if(d>E)return!1;for(let b=1;b<=4;b*=2){let g=f*(1+.2/b);g=Math.min(g,d+100663296);const _=Math.min(E,zo(Math.max(d,g),65536));if(a(_))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,f,E=1024){const b=f+E;let g=f;for(;d[g]&&!(g>=b);)++g;if(g-f>16&&d.buffer&&l)return l.decode(d.subarray(f,g));let _="";for(;f<g;){let w=d[f++];if(!(w&128)){_+=String.fromCharCode(w);continue}const A=d[f++]&63;if((w&224)===192){_+=String.fromCharCode((w&31)<<6|A);continue}const S=d[f++]&63;if((w&240)===224?w=(w&15)<<12|A<<6|S:w=(w&7)<<18|A<<12|S<<6|d[f++]&63,w<65536)_+=String.fromCharCode(w);else{const k=w-65536;_+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return _}function m(d,f){return d?u(n.HEAPU8,d,f):""}const p={emscripten_get_now:Ho,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await e({env:p,wasi_snapshot_preview1:p});t=f.memory,i(t.buffer),Object.assign(n,f),n.UTF8ToString=m}return await h(),n}var Xo=Object.defineProperty,Ko=(e,t,r)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Ko(e,typeof t!="symbol"?t+"":t,r);let D=null;function Qo(e){throw new Yt(e.UTF8ToString(e.getLastOnigError()))}class tt{constructor(t){T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16Value"),T(this,"utf8Value"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16");const r=t.length,n=tt._utf8ByteLength(t),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const s=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const m=t.charCodeAt(u);let p=m,h=!1;if(m>=55296&&m<=56319&&u+1<r){const d=t.charCodeAt(u+1);d>=56320&&d<=57343&&(p=(m-55296<<10)+65536|d-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),p<=127?a[l+0]=u:p<=2047?(a[l+0]=u,a[l+1]=u):p<=65535?(a[l+0]=u,a[l+1]=u,a[l+2]=u):(a[l+0]=u,a[l+1]=u,a[l+2]=u,a[l+3]=u)),p<=127?s[l++]=p:p<=2047?(s[l++]=192|(p&1984)>>>6,s[l++]=128|(p&63)>>>0):p<=65535?(s[l++]=224|(p&61440)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0):(s[l++]=240|(p&1835008)>>>18,s[l++]=128|(p&258048)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0),h&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const o=t.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<i){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,s&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const rt=class X{constructor(t){if(T(this,"id",++X.LAST_ID),T(this,"_onigBinding"),T(this,"content"),T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16"),T(this,"ptr"),!D)throw new Yt("Must invoke loadWasm first.");this._onigBinding=D,this.content=t;const r=new tt(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!X._sharedPtrInUse?(X._sharedPtr||(X._sharedPtr=D.omalloc(1e4)),X._sharedPtrInUse=!0,D.HEAPU8.set(r.utf8Value,X._sharedPtr),this.ptr=X._sharedPtr):this.ptr=r.createString(D)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===X._sharedPtr?X._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(rt,"LAST_ID",0);T(rt,"_sharedPtr",0);T(rt,"_sharedPtrInUse",!1);let hn=rt;class Jo{constructor(t){if(T(this,"_onigBinding"),T(this,"_ptr"),!D)throw new Yt("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=t.length;s<l;s++){const u=new tt(t[s]);r[s]=u.createString(D),n[s]=u.utf8Length}const i=D.omalloc(4*t.length);D.HEAPU32.set(r,i/4);const o=D.omalloc(4*t.length);D.HEAPU32.set(n,o/4);const a=D.createOnigScanner(i,o,t.length);for(let s=0,l=t.length;s<l;s++)D.ofree(r[s]);D.ofree(o),D.ofree(i),a===0&&Qo(D),this._onigBinding=D,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new hn(t);const o=this._findNextMatchSync(t,r,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const u=s[l++],m=s[l++],p=[];for(let h=0;h<m;h++){const d=t.convertUtf8OffsetToUtf16(s[l++]),f=t.convertUtf8OffsetToUtf16(s[l++]);p[h]={start:d,end:f,length:f-d}}return{index:u,captureIndices:p}}}function Zo(e){return typeof e.instantiator=="function"}function Yo(e){return typeof e.default=="function"}function ea(e){return typeof e.data<"u"}function ta(e){return typeof Response<"u"&&e instanceof Response}function ra(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ve;function fn(e){if(Ve)return Ve;async function t(){D=await qo(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Zo(n)?n=await n.instantiator(r):Yo(n)?n=await n.default(r):(ea(n)&&(n=n.data),ta(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await na(n)(r):n=await ia(n)(r):ra(n)?n=await yt(n)(r):n instanceof WebAssembly.Module?n=await yt(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await yt(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Ve=t(),Ve}function yt(e){return t=>WebAssembly.instantiate(e,t)}function na(e){return t=>WebAssembly.instantiateStreaming(e,t)}function ia(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let gn;function oa(e){gn=e}function aa(){return gn}async function sa(e){return e&&await fn(e),{createScanner(t){return new Jo(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new hn(t)}}}const la=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:sa,getDefaultWasmLoader:aa,loadWasm:fn,setDefaultWasmLoader:oa},Symbol.toStringTag,{value:"Module"}));var _n=Vo({});$o(_n,la);var R=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ua(e){return er(e)}function er(e){return Array.isArray(e)?ca(e):e instanceof RegExp?e:typeof e=="object"?pa(e):e}function ca(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=er(e[r]);return t}function pa(e){let t={};for(let r in e)t[r]=er(e[r]);return t}function yn(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function En(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?En(e.substring(0,e.length-1)):e.substr(~t+1)}var Et=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Me=class{static hasCaptures(e){return e===null?!1:(Et.lastIndex=0,Et.test(e))}static replaceCaptures(e,t,r){return e.replace(Et,(n,i,o,a)=>{let s=r[parseInt(i||o,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function bn(e,t){return e<t?-1:e>t?1:0}function wn(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let o=bn(e[i],t[i]);if(o!==0)return o}return 0}return r-n}function yr(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vn(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Cn=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},We=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(ha(e),t)}static createFromParsedTheme(e,t){return ga(e,t)}_cachedMatchRoot=new Cn(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>ma(e.parent,i.parentScopes));return n?new An(n.fontStyle,n.foreground,n.background):null}},bt=class Ue{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new Ue(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new Ue(r,t[n]);return r}push(t){return new Ue(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function ma(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!da(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function da(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var An=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function ha(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,o=t.length;i<o;i++){let a=t[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let p=a.settings.fontStyle.split(" ");for(let h=0,d=p.length;h<d;h++)switch(p[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof a.settings.foreground=="string"&&yr(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&yr(a.settings.background)&&(m=a.settings.background);for(let p=0,h=s.length;p<h;p++){let f=s[p].trim().split(" "),E=f[f.length-1],b=null;f.length>1&&(b=f.slice(0,f.length-1),b.reverse()),r[n++]=new fa(E,b,i,l,u,m)}}return r}var fa=class{constructor(e,t,r,n,i,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},M=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(M||{});function ga(e,t){e.sort((l,u)=>{let m=bn(l.scope,u.scope);return m!==0||(m=wn(l.parentScopes,u.parentScopes),m!==0)?m:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new _a(t),a=new An(r,o.getId(n),o.getId(i)),s=new Ea(new Nt(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let m=e[l];s.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new We(o,a,s)}var _a=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ya=Object.freeze([]),Nt=class Sn{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,n,i,o){this.scopeDepth=t,this.parentScopes=r||ya,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Sn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Ea=class Vt{constructor(t,r=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-t.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,o;if(n===-1?(i=t,o=""):(i=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Vt._cmpBySpecificity),r}insert(t,r,n,i,o,a){if(r===""){this._doInsertHere(t,n,i,o,a);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let m;this._children.hasOwnProperty(l)?m=this._children[l]:(m=new Vt(this._mainRule.clone(),Nt.cloneArr(this._rulesWithParentScopes)),this._children[l]=m),m.insert(t+1,u,n,i,o,a)}_doInsertHere(t,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(t,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(wn(l.parentScopes,r)===0){l.acceptOverwrite(t,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Nt(t,r,n,i,o))}},le=class U{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=U.getLanguageId(t),n=U.getTokenType(t),i=U.getFontStyle(t),o=U.getForeground(t),a=U.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,o,a,s){let l=U.getLanguageId(t),u=U.getTokenType(t),m=U.containsBalancedBrackets(t)?1:0,p=U.getFontStyle(t),h=U.getForeground(t),d=U.getBackground(t);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(m=i?1:0),o!==-1&&(p=o),a!==0&&(h=a),s!==0&&(d=s),(l<<0|u<<8|m<<10|p<<11|h<<15|d<<24)>>>0}};function He(e,t){const r=[],n=ba(e);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(Er(i)){const l=[];do l.push(i),i=n.next();while(Er(i));return u=>t(l,u)}return null}function a(){const l=[];let u=o();for(;u;)l.push(u),u=o();return m=>l.every(p=>p(m))}function s(){const l=[];let u=a();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return m=>l.some(p=>p(m))}}function Er(e){return!!e&&!!e.match(/[\w\.:]+/)}function ba(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function In(e){typeof e.dispose=="function"&&e.dispose()}var Ie=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},wa=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},va=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Ca=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ie(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new va;for(const r of e)Aa(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Ie){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Aa(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=r.lookup(t);e instanceof Ie?Fe({baseGrammar:o,selfGrammar:i},n):Mt(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=r.injections(e.scopeName);if(a)for(const s of a)n.add(new Ie(s))}function Mt(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];ze([n],t,r)}}function Fe(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ze(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ze(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ze(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?yn({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&ze(n.patterns,{...t,repository:i},r);const o=n.include;if(!o)continue;const a=Rn(o);switch(a.kind){case 0:Fe({...t,selfGrammar:t.baseGrammar},r);break;case 1:Fe(t,r);break;case 2:Mt(a.ruleName,{...t,repository:i},r);break;case 3:case 4:const s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:i};a.kind===4?Mt(a.ruleName,l,r):Fe(l,r)}else a.kind===4?r.add(new wa(a.scopeName,a.ruleName)):r.add(new Ie(a.scopeName));break}}}var Sa=class{kind=0},Ia=class{kind=1},Ra=class{constructor(e){this.ruleName=e}kind=2},La=class{constructor(e){this.scopeName=e}kind=3},ka=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Rn(e){if(e==="$base")return new Sa;if(e==="$self")return new Ia;const t=e.indexOf("#");if(t===-1)return new La(e);if(t===0)return new Ra(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new ka(r,n)}}var Pa=/\\(\d+)/,br=/\\(\d+)/g,Ta=-1,Ln=-2;var Oe=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Me.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Me.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${En(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Me.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Me.replaceCaptures(this._contentName,e,t)}},Oa=class extends Oe{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}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!")}},xa=class extends Oe{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new Re(n,this.id),this.captures=i,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 Le,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},wr=class extends Oe{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.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 Le,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},$t=class extends Oe{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,o,a,s,l,u){super(e,t,r,n),this._begin=new Re(i,this.id),this.beginCaptures=o,this._end=new Re(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(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 Le;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}},qe=class extends Oe{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,o,a,s,l){super(e,t,r,n),this._begin=new Re(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new Re(a,Ln),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(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 Le;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 Le,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},kn=class V{static createCaptureRule(t,r,n,i,o){return t.registerRule(a=>new Oa(r,a,n,i,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new xa(t.$vscodeTextmateLocation,t.id,t.name,t.match,V._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=yn({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new wr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,V._compilePatterns(o,r,n))}return t.while?new qe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,V._compileCaptures(t.whileCaptures||t.captures,r,n),V._compilePatterns(t.patterns,r,n)):new $t(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,V._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,V._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let o=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;t[a].patterns&&(l=V.getCompiledRuleId(t[a],r,n)),i[s]=V.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let o=0,a=t.length;o<a;o++){const s=t[o];let l=-1;if(s.include){const u=Rn(s.include);switch(u.kind){case 0:case 1:l=V.getCompiledRuleId(n[s.include],r,n);break;case 2:let m=n[u.ruleName];m&&(l=V.getCompiledRuleId(m,r,n));break;case 3:case 4:const p=u.scopeName,h=u.kind===4?u.ruleName:null,d=r.getExternalGrammar(p,n);if(d)if(h){let f=d.repository[h];f&&(l=V.getCompiledRuleId(f,r,d.repository))}else l=V.getCompiledRuleId(d.repository.$self,r,d.repository);break}}else l=V.getCompiledRuleId(s,r,n);if(l!==-1){const u=r.getRule(l);let m=!1;if((u instanceof wr||u instanceof $t||u instanceof qe)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Re=class Pn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){const n=t.length;let i=0,o=[],a=!1;for(let s=0;s<n;s++)if(t.charAt(s)==="\\"&&s+1<n){const u=t.charAt(s+1);u==="z"?(o.push(t.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=t:(o.push(t.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=Pa.test(this.source):this.hasBackReferences=!1}clone(){return new Pn(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return br.lastIndex=0,this.source.replace(br,(i,o)=>vn(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),t[o]=s,r[o]=s,n[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(t[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Le=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new vr(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new vr(e,n,this._items.map(i=>i.ruleId))}},vr=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
10
|
+
`)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},wt=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Da=class Gt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new wt(t,8),this._embeddedLanguagesMatcher=new Na(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Gt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new wt(0,0);_getBasicScopeAttributes=new Cn(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new wt(r,n)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(Gt.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Na=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>vn(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Cr=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Tn(e,t,r,n,i,o,a,s){const l=t.content.length;let u=!1,m=-1;if(a){const d=Va(e,t,r,n,i,o);i=d.stack,n=d.linePos,r=d.isFirstLine,m=d.anchorPosition}const p=Date.now();for(;!u;){if(s!==0&&Date.now()-p>s)return new Cr(i,!0);h()}return new Cr(i,!1);function h(){const d=Ma(e,t,r,n,i,m);if(!d){o.produce(i,l),u=!0;return}const f=d.captureIndices,E=d.matchedRuleId,b=f&&f.length>0?f[0].end>n:!1;if(E===Ta){const g=i.getRule(e);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ce(e,t,r,i,o,g.endCaptures,f),o.produce(i,f[0].end);const _=i;if(i=i.parent,m=_.getAnchorPos(),!b&&_.getEnterPos()===n){i=_,o.produce(i,l),u=!0;return}}else{const g=e.getRule(E);o.produce(i,f[0].start);const _=i,w=g.getName(t.content,f),A=i.contentNameScopesList.pushAttributed(w,e);if(i=i.push(E,n,m,f[0].end===l,null,A,A),g instanceof $t){const S=g;Ce(e,t,r,i,o,S.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const k=S.getContentName(t.content,f),$=A.pushAttributed(k,e);if(i=i.withContentNameScopesList($),S.endHasBackReferences&&(i=i.withEndRule(S.getEndWithResolvedBackReferences(t.content,f))),!b&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(g instanceof qe){const S=g;Ce(e,t,r,i,o,S.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const k=S.getContentName(t.content,f),$=A.pushAttributed(k,e);if(i=i.withContentNameScopesList($),S.whileHasBackReferences&&(i=i.withEndRule(S.getWhileWithResolvedBackReferences(t.content,f))),!b&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Ce(e,t,r,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!b){i=i.safePop(),o.produce(i,l),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function Va(e,t,r,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof qe&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:u,findOptions:m}=Ba(l.rule,e,l.stack.endRule,r,n===a),p=u.findNextMatchSync(t,n,m);if(p){if(p.ruleId!==Ln){i=l.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(l.stack,p.captureIndices[0].start),Ce(e,t,r,l.stack,o,l.rule.whileCaptures,p.captureIndices),o.produce(l.stack,p.captureIndices[0].end),a=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function Ma(e,t,r,n,i,o){const a=$a(e,t,r,n,i,o),s=e.getInjections();if(s.length===0)return a;const l=Ga(s,e,t,r,n,i,o);if(!l)return a;if(!a)return l;const u=a.captureIndices[0].start,m=l.captureIndices[0].start;return m<u||l.priorityMatch&&m===u?l:a}function $a(e,t,r,n,i,o){const a=i.getRule(e),{ruleScanner:s,findOptions:l}=On(a,e,i.endRule,r,n===o),u=s.findNextMatchSync(t,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Ga(e,t,r,n,i,o,a){let s=Number.MAX_VALUE,l=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const f=e[h];if(!f.matcher(p))continue;const E=t.getRule(f.ruleId),{ruleScanner:b,findOptions:g}=On(E,t,null,n,i===a),_=b.findNextMatchSync(r,i,g);if(!_)continue;const w=_.captureIndices[0].start;if(!(w>=s)&&(s=w,l=_.captureIndices,u=_.ruleId,m=f.priority,s===i))break}return l?{priorityMatch:m===-1,captureIndices:l,matchedRuleId:u}:null}function On(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function Ba(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function Ce(e,t,r,n,i,o,a){if(o.length===0)return;const s=t.content,l=Math.min(o.length,a.length),u=[],m=a[0].end;for(let p=0;p<l;p++){const h=o[p];if(h===null)continue;const d=a[p];if(d.length===0)continue;if(d.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(n,d.start),h.retokenizeCapturedWithRuleId){const E=h.getName(s,a),b=n.contentNameScopesList.pushAttributed(E,e),g=h.getContentName(s,a),_=b.pushAttributed(g,e),w=n.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,b,_),A=e.createOnigString(s.substring(0,d.end));Tn(e,A,r&&d.start===0,d.start,w,i,!1,0),In(A);continue}const f=h.getName(s,a);if(f!==null){const b=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,e);u.push(new Ua(b,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Ua=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Fa(e,t,r,n,i,o,a,s){return new Wa(e,t,r,n,i,o,a,s)}function Ar(e,t,r,n,i){const o=He(t,Xe),a=kn.getCompiledRuleId(r,n,i.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Xe(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let i=r;i<t.length;i++)if(ja(t[i],n))return r=i+1,!0;return!1})}function ja(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var Wa=class{constructor(e,t,r,n,i,o,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new Da(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Sr(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=He(l,Xe);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)Ar(t,a,i[a],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&Ar(t,l,s,this,s)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Sr(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=kn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Bt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=le.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=Ae.createRootAndLookUpScopeName(h,p,this):d=Ae.createRoot("unknown",p),t=new Bt(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,t.reset();e=e+`
|
|
11
|
+
`;const o=this.createOnigString(e),a=o.content.length,s=new za(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Tn(this,o,i,0,t,s,!0,n);return In(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Sr(e,t){return e=ua(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ae=class K{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(const o of r)i=bt.push(i,o.scopeNames),n=new K(n,i,o.encodedTokenAttributes);return n}static createRoot(t,r){return new K(null,new bt(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const i=n.getMetadataForScope(t),o=new bt(null,t),a=n.themeProvider.themeMatch(o),s=K.mergeAttributes(r,i,a);return new K(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return K.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),le.set(t,r.languageId,r.tokenType,null,i,o,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return K._pushAttributed(this,t,r);const n=t.split(/ /g);let i=this;for(const o of n)i=K._pushAttributed(i,o,r);return i}static _pushAttributed(t,r,n){const i=n.getMetadataForScope(r),o=t.scopePath.push(r),a=n.themeProvider.themeMatch(o),s=K.mergeAttributes(t.tokenAttributes,i,a);return new K(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},Bt=class ie{constructor(t,r,n,i,o,a,s,l){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new ie(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ie._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Ae.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ie._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,o,a,s){return new ie(this,t,r,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ie(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){const n=Ae.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new ie(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Ae.fromExtension(n,r.contentNameScopesList))}},Ha=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):He(r,Xe).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>He(r,Xe).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},za=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(n=le.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=le.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},qa=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Fa(e,o,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},Xa=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new qa(We.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(We.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new Ha(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,i,o){const a=new Ca(this._syncRegistry,t);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(t,r,n,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,i=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,r,n,i,o)}},Ut=Bt.NULL;function Ke(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function re(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ka(e){return Array.isArray(e)?e:[e]}async function xn(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function nt(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Dn(e){return e==="ansi"||nt(e)}function it(e){return e==="none"}function Nn(e){return it(e)}const Qa=/(\r?\n)/g;function ot(e,t=!1){if(e.length===0)return[["",0]];const r=e.split(Qa);let n=0;const i=[];for(let o=0;o<r.length;o+=2){const a=t?r[o]+(r[o+1]||""):r[o];i.push([a,n]),n+=r[o].length,n+=r[o+1]?.length||0}return i}const Ir={light:"#333333",dark:"#bbbbbb"},Rr={light:"#fffffe",dark:"#1e1e1e"},Lr="__shiki_resolved";function tr(e){if(e?.[Lr])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Ir.light:Ir.dark),r||(r=t.type==="light"?Rr.light:Rr.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!u)return s;const m={...s,settings:{...s.settings}};if(l){const p=a(s.settings.foreground);t.colorReplacements[p]=s.settings.foreground,m.settings.foreground=p}if(u){const p=a(s.settings.background);t.colorReplacements[p]=s.settings.background,m.settings.background=p}return m});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=a(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,Lr,{enumerable:!1,writable:!1,value:!0}),t}async function Vn(e){return[...new Set((await Promise.all(e.filter(t=>!Dn(t)).map(async t=>await xn(t).then(r=>Array.isArray(r)?r:[r])))).flat())]}async function Mn(e){return(await Promise.all(e.map(async t=>Nn(t)?null:tr(await xn(t))))).filter(t=>!!t)}function $n(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new R(`Circular alias \`${[...r].join(" -> ")} -> ${e}\``);r.add(e)}}return e}var Ja=class extends Xa{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=tr(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=We.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=$n(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(i=>{this._alias[i]=e.name}),this._loadedLanguagesCache=null,t.size)for(const i of t)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=[...this._langGraph.entries()],r=t.filter(([n,i])=>!i);if(r.length){const n=t.filter(([i,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>r.map(([s])=>s).includes(a)):!1).filter(i=>!r.includes(i));throw new R(`Missing languages ${r.map(([i])=>`\`${i}\``).join(", ")}, required by ${n.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[n,i]of t)this._resolver.addLanguage(i);for(const[n,i]of t)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const r of t)this._langGraph.set(r,this._langMap.get(r))}},Za=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){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 i=t.slice(0,n).join(".");r=[...r,...this._injections.get(i)||[]]}return r}};let ve=0;function Ya(e){ve+=1,e.warnings!==!1&&ve>=10&&ve%10===0&&console.warn(`[Shiki] ${ve} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new R("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(tr),i=new Ja(new Za(e.engine,r),n,r,e.langAlias);let o;function a(_){return $n(_,e.langAlias)}function s(_){b();const w=i.getGrammar(typeof _=="string"?_:_.name);if(!w)throw new R(`Language \`${_}\` not found, you may need to load it first`);return w}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const w=i.getTheme(_);if(!w)throw new R(`Theme \`${_}\` not found, you may need to load it first`);return w}function u(_){b();const w=l(_);return o!==_&&(i.setTheme(w),o=_),{theme:w,colorMap:i.getColorMap()}}function m(){return b(),i.getLoadedThemes()}function p(){return b(),i.getLoadedLanguages()}function h(..._){b(),i.loadLanguages(_.flat(1))}async function d(..._){return h(await Vn(_))}function f(..._){b();for(const w of _.flat(1))i.loadTheme(w)}async function E(..._){return b(),f(await Mn(_))}function b(){if(t)throw new R("Shiki instance has been disposed")}function g(){t||(t=!0,i.dispose(),ve-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:m,getLoadedLanguages:p,resolveLangAlias:a,loadLanguage:d,loadLanguageSync:h,loadTheme:E,loadThemeSync:f,dispose:g,[Symbol.dispose]:g}}async function es(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([Mn(e.themes||[]),Vn(e.langs||[]),e.engine]);return Ya({...e,themes:t,langs:r,engine:n})}const Gn=new WeakMap;function at(e,t){Gn.set(e,t)}function ke(e){return Gn.get(e)}var st=class Bn{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Bn(Object.fromEntries(Ka(r).map(n=>[n,Ut])),t)}constructor(...t){if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,i]=t;this.lang=n,this._stacks={[i]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return ts(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function ts(e){const t=[],r=new Set;function n(i){if(r.has(i))return;r.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&n(i.parent)}return n(e),t}function rs(e,t){if(!(e instanceof st))throw new R("Invalid grammar state");return e.getInternalStack(t)}const ns=/,/,is=/ /;function Un(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(nt(e.resolveLangAlias(r.lang||"text"))||it(n))return ot(t).map(s=>[{content:s[0],offset:s[1]}]);const{theme:i,colorMap:o}=e.setTheme(n),a=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==a.name)throw new R(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(i.name))throw new R(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return as(t,a,i,o,r)}function os(...e){if(e.length===2)return ke(e[1]);const[t,r,n={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=n;if(nt(i)||it(o))throw new R("Plain language does not have grammar state");if(i==="ansi")throw new R("ANSI language does not have grammar state");const{theme:a,colorMap:s}=t.setTheme(o),l=t.getLanguage(i);return new st(rr(r,l,a,s,n).stateStack,l.name,a.name)}function as(e,t,r,n,i){const o=rr(e,t,r,n,i),a=new st(o.stateStack,t.name,r.name);return at(o.tokens,a),o.tokens}function rr(e,t,r,n,i){const o=Ke(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500,includeExplanation:l=!1}=i,u=ot(e);let m=i.grammarState?rs(i.grammarState,r.name)??Ut:i.grammarContextCode!=null?rr(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ut,p=[];const h=[];for(let d=0,f=u.length;d<f;d++){const[E,b]=u[d];if(E===""){p=[],h.push([]);continue}if(a>0&&E.length>=a){p=[],h.push([{content:E,offset:b,color:"",fontStyle:0}]);continue}let g,_,w;l&&l!=="tokenType"&&(g=t.tokenizeLine(E,m,s),_=g.tokens,w=0);const A=t.tokenizeLine2(E,m,s),S=A.tokens.length/2;for(let k=0;k<S;k++){const $=A.tokens[2*k],z=k+1<S?A.tokens[2*k+2]:E.length;if($===z)continue;const pe=A.tokens[2*k+1],mt=re(n[le.getForeground(pe)],o),dt=le.getFontStyle(pe),q={content:E.substring($,z),offset:b+$,color:mt,fontStyle:dt};if(l==="tokenType")q.type=le.getTokenType(pe);else if(l){const lr=[];if(l!=="scopeName")for(const Q of r.settings){let me;switch(typeof Q.scope){case"string":me=Q.scope.split(ns).map(ht=>ht.trim());break;case"object":me=Q.scope;break;default:continue}lr.push({settings:Q,selectors:me.map(ht=>ht.split(is))})}q.explanation=[];let ur=0;for(;$+ur<z;){const Q=_[w],me=E.substring(Q.startIndex,Q.endIndex);ur+=me.length,q.explanation.push({content:me,scopes:l==="scopeName"?ss(Q.scopes):ls(lr,Q.scopes)}),w+=1}}p.push(q)}h.push(p),p=[],m=A.ruleStack}return{tokens:h,stateStack:m}}function ss(e){return e.map(t=>({scopeName:t}))}function ls(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n];r[n]={scopeName:o,themeMatches:cs(e,o,t.slice(0,n))}}return r}function kr(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function us(e,t,r){if(!kr(e.at(-1),t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)kr(e[n],r[i])&&(n-=1),i-=1;return n===-1}function cs(e,t,r){const n=[];for(const{selectors:i,settings:o}of e)for(const a of i)if(us(a,t,r)){n.push(o);break}return n}function Fn(e,t,r,n=Un){const i=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=i.map(u=>{const m=n(e,t,{...r,theme:u.theme});return{tokens:m,state:ke(m),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),a=ps(...o.map(u=>u.tokens)),s=a[0].map((u,m)=>u.map((p,h)=>{const d={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(d.explanation=p.explanation),a.forEach((f,E)=>{const{content:b,explanation:g,offset:_,...w}=f[m][h];d.variants[i[E].color]=w}),d})),l=o[0].state?new st(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&at(s,l),s}function ps(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const i=e.map(l=>l[n]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){const m=s[u];m.content.length===l?(o[u].push(m),a[u]+=1,s[u]=i[u][a[u]]):(o[u].push({...m,content:m.content.slice(0,l)}),s[u]={...m,content:m.content.slice(l),offset:m.offset+l})}}}return t}const Pr=/\s+/g;function jn(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(Pr)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(Pr);for(const n of r)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function ms(e){const t=ot(e,!0).map(([i])=>i);function r(i){if(i===e.length)return{line:t.length-1,character:t.at(-1).length};let o=i,a=0;for(const s of t){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function n(i,o){let a=0;for(let s=0;s<i;s++)a+=t[s].length;return a+=o,a}return{lines:t,indexToPos:r,posToIndex:n}}const ds=["color","background-color"];function hs(e,t){let r=0;const n=[];for(const i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function fs(e,t){let r=0,n=e.length;for(;r<n;){const i=r+(n-r>>1);e[i]<=t?r=i+1:n=i}return r}function gs(e,t){const r=[...t instanceof Set?t:new Set(t)].sort((n,i)=>n-i);return r.length?e.map(n=>n.flatMap(i=>{const o=i.offset+i.content.length,a=fs(r,i.offset);let s=a;for(;s<r.length&&r[s]<o;)s++;if(a===s)return i;const l=r.slice(a,s);for(let u=0;u<l.length;u++)l[u]-=i.offset;return hs(i,l)})):e}function _s(e,t,r,n,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(m=>Qe(e.variants[m])),s=new Set(a.flatMap(m=>Object.keys(m))),l={},u=(m,p)=>{const h=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return r+t[m]+(p==="color"?"":h)};return a.forEach((m,p)=>{for(const h of s){const d=m[h]||"inherit";if(p===0&&n&&ds.includes(h))if(n==="light-dark()"&&a.length>1){const f=t.findIndex(_=>_==="light"),E=t.findIndex(_=>_==="dark");if(f===-1||E===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=a[f][h]||"inherit",g=a[E][h]||"inherit";l[h]=`light-dark(${b}, ${g})`,i==="css-vars"&&(l[u(p,h)]=d)}else l[h]=d;else i==="css-vars"&&(l[u(p,h)]=d)}}),o.htmlStyle=l,o}function Qe(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&M.Italic&&(t["font-style"]="italic"),e.fontStyle&M.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&M.Underline&&r.push("underline"),e.fontStyle&M.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Ft(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function ys(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new R(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...n.indexToPos(a),offset:a}}else{const s=n.lines[a.line];if(s===void 0)throw new R(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${n.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new R(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:n.posToIndex(a.line,l)}}};const n=ms(r.source),o=(r.options.decorations||[]).map(a=>({...a,start:i(a.start),end:i(a.end)}));Es(o),e.set(r.meta,{decorations:o,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return gs(r,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(r){if(!this.options.decorations?.length)return;const n=t(this),i=[...r.children].filter(m=>m.type==="element"&&m.tagName==="span");if(i.length!==n.converter.lines.length)throw new R(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(m,p,h,d){const f=i[m];let E="",b=-1,g=-1;if(p===0&&(b=0),h===0&&(g=0),h===Number.POSITIVE_INFINITY&&(g=f.children.length),b===-1||g===-1)for(let w=0;w<f.children.length;w++)E+=Wn(f.children[w]),b===-1&&E.length===p&&(b=w+1),g===-1&&E.length===h&&(g=w+1);if(b===-1)throw new R(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(g===-1)throw new R(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const _=f.children.slice(b,g);if(!d.alwaysWrap&&_.length===f.children.length)s(f,d,"line");else if(!d.alwaysWrap&&_.length===1&&_[0].type==="element")s(_[0],d,"token");else{const w={type:"element",tagName:"span",properties:{},children:_};s(w,d,"wrapper"),f.children.splice(b,_.length,w)}}function a(m,p){i[m]=s(i[m],p,"line")}function s(m,p,h){const d=p.properties||{},f=p.transform||(E=>E);return m.tagName=p.tagName||"span",m.properties={...m.properties,...d,class:m.properties.class},p.properties?.class&&jn(m,p.properties.class),m=f(m,h)||m,m}const l=[],u=n.decorations.sort((m,p)=>p.start.offset-m.start.offset||m.end.offset-p.end.offset);for(const m of u){const{start:p,end:h}=m;if(p.line===h.line)o(p.line,p.character,h.character,m);else if(p.line<h.line){o(p.line,p.character,Number.POSITIVE_INFINITY,m);for(let d=p.line+1;d<h.line;d++)l.unshift(()=>a(d,m));o(h.line,0,h.character,m)}}l.forEach(m=>m())}}}function Es(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new R(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const i=e[n],o=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,s=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,l=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&r.start.offset===r.end.offset||a&&i.start.offset===i.end.offset)continue;throw new R(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Wn(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Wn).join(""):""}const bs=[ys()];function Je(e){const t=ws(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...bs]}function ws(e){const t=[],r=[],n=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}var ae=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],vt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function vs(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Tr(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function Cs(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)vt[n]&&t.push({type:"setDecoration",value:vt[n]});else if(n<=29){const i=vt[n-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ae[n-30]}});else if(n===38){const i=Tr(e);i&&t.push({type:"setForegroundColor",value:i})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-40]}});else if(n===48){const i=Tr(e);i&&t.push({type:"setBackgroundColor",value:i})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ae[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-100+8]}})}return t}function As(){let e=null,t=null,r=new Set;return{parse(n){const i=[];let o=0;do{const a=vs(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(r)}),a.sequence){const l=Cs(a.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}o=a.position}while(o<n.length);return i}}}var Ss={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 Is(e=Ss){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<ae.length;u++)n.push(t(ae[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)n.push(r([s[u],s[m],s[p]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(r([l,l,l]));return n}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:a}}const Rs=/#([0-9a-f]{3,8})/i,Ls=/var\((--[\w-]+-ansi-[\w-]+)\)/,ks={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 Ps(e,t,r){const n=Ke(e,r),i=ot(t),o=Is(Object.fromEntries(ae.map(s=>{const l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||ks[s]]}))),a=As();return i.map(s=>a.parse(s[0]).map(l=>{let u,m;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,m=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,m=l.background?o.value(l.background):void 0),u=re(u,n),m=re(m,n),l.decorations.has("dim")&&(u=Ts(u));let p=M.None;return l.decorations.has("bold")&&(p|=M.Bold),l.decorations.has("italic")&&(p|=M.Italic),l.decorations.has("underline")&&(p|=M.Underline),l.decorations.has("strikethrough")&&(p|=M.Strikethrough),{content:l.value,offset:s[1],color:u,bgColor:m,fontStyle:p}}))}function Ts(e){const t=e.match(Rs);if(t){const n=t[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],o=n[1],a=n[2],s=n[3];return`#${i}${i}${o}${o}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const i=n[0],o=n[1],a=n[2];return`#${i}${i}${o}${o}${a}${a}80`}}}const r=e.match(Ls);return r?`var(${r[1]}-dim)`:e}function jt(e,t,r={}){const n=e.resolveLangAlias(r.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=r;if(!nt(n)&&!it(i)&&n==="ansi"){const{theme:o}=e.setTheme(i);return Ps(o,t,r)}return Un(e,t,r)}function Ze(e,t,r){let n,i,o,a,s,l;if("themes"in r){const{defaultColor:u="light",cssVariablePrefix:m="--shiki-",colorsRendering:p="css-vars"}=r,h=Object.entries(r.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,_)=>g.color===u?-1:_.color===u?1:0);if(h.length===0)throw new R("`themes` option must not be empty");const d=Fn(e,t,r,jt);if(l=ke(d),u&&u!=="light-dark()"&&!h.some(g=>g.color===u))throw new R(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=h.map(g=>e.getTheme(g.theme)),E=h.map(g=>g.color);o=d.map(g=>g.map(_=>_s(_,E,m,u,p))),l&&at(o,l);const b=h.map(g=>Ke(g.theme,r));i=Or(h,f,b,m,u,"fg",p),n=Or(h,f,b,m,u,"bg",p),a=`shiki-themes ${f.map(g=>g.name).join(" ")}`,s=u?void 0:[i,n].join(";")}else if("theme"in r){const u=Ke(r.theme,r);o=jt(e,t,r);const m=e.getTheme(r.theme);n=re(m.bg,u),i=re(m.fg,u),a=m.name,l=ke(o)}else throw new R("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function Or(e,t,r,n,i,o,a){return e.map((s,l)=>{const u=re(t[l][o],r[l])||"inherit",m=`${n+s.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i==="light-dark()"&&e.length>1){const p=e.findIndex(d=>d.color==="light"),h=e.findIndex(d=>d.color==="dark");if(p===-1||h===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${re(t[p][o],r[p])||"inherit"}, ${re(t[h][o],r[h])||"inherit"});${m}`}return u}return a==="css-vars"?m:null}).filter(s=>!!s).join(";")}const Hn=/^\s+$/,Os=/^(\s*)(.*?)(\s*)$/;function Ye(e,t,r,n={meta:{},options:r,codeToHast:(i,o)=>Ye(e,i,o),codeToTokens:(i,o)=>Ze(e,i,o)}){let i=t;for(const f of Je(r))i=f.preprocess?.call(n,i,r)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:u,grammarState:m}=Ze(e,i,r);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:h=!1}=r;p===!0?o=Ds(o):p==="never"&&(o=Ns(o)),h&&(o=Vs(o));const d={...n,get source(){return i}};for(const f of Je(r))o=f.tokens?.call(d,o)||o;return xs(o,{...r,fg:a,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},d,m)}function xs(e,t,r,n=ke(e)){const i=Je(t),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[E,b]of Object.entries(t.meta||{}))E.startsWith("_")||(u[E]=b);let m={type:"element",tagName:"pre",properties:u,children:[],data:t.data},p={type:"element",tagName:"code",properties:{},children:o};const h=[],d={...r,structure:s,addClassToHast:jn,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return m},get code(){return p},get lines(){return h}};if(e.forEach((E,b)=>{b&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
|
|
12
|
+
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const w of E){let A={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const S=Ft(w.htmlStyle||Qe(w));S&&(A.properties.style=S);for(const k of i)A=k?.span?.call(d,A,b+1,_,g,w)||A;s==="inline"?a.children.push(A):s==="classic"&&g.children.push(A),_+=w.content.length}if(s==="classic"){for(const w of i)g=w?.line?.call(d,g,b+1)||g;h.push(g),o.push(g)}else s==="inline"&&h.push(g)}),s==="classic"){for(const E of i)p=E?.code?.call(d,p)||p;m.children.push(p);for(const E of i)m=E?.pre?.call(d,m)||m;a.children.push(m)}else if(s==="inline"){const E=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const _ of a.children)_.type==="element"&&_.tagName==="br"?(E.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&b.children.push(_);E.push(b);let g={type:"element",tagName:"code",properties:{},children:E};for(const _ of i)g=_?.code?.call(d,g)||g;a.children=[];for(let _=0;_<g.children.length;_++){_>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const w=g.children[_];w.type==="element"&&a.children.push(...w.children)}}let f=a;for(const E of i)f=E?.root?.call(d,f)||f;return n&&at(f,n),f}function Ds(e){return e.map(t=>{const r=[];let n="",i;return t.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&M.Underline||o.fontStyle&M.Strikethrough));s&&Hn.test(o.content)&&t[a+1]?(i===void 0&&(i=o.offset),n+=o.content):n?(s?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=void 0,n=""):r.push(o)}),r})}function Ns(e){return e.map(t=>t.flatMap(r=>{if(Hn.test(r.content))return r;const n=r.content.match(Os);if(!n)return r;const[,i,o,a]=n;if(!i&&!a)return r;const s=[{...r,offset:r.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:r.offset}),a&&s.push({content:a,offset:r.offset+i.length+o.length}),s}))}function Vs(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const i=r.at(-1),o=Ft(i.htmlStyle||Qe(i)),a=Ft(n.htmlStyle||Qe(n)),s=i.fontStyle&&(i.fontStyle&M.Underline||i.fontStyle&M.Strikethrough),l=n.fontStyle&&(n.fontStyle&M.Underline||n.fontStyle&M.Strikethrough);!s&&!l&&o===a?i.content+=n.content:r.push({...n})}return r})}const Ms=Po;function $s(e,t,r){const n={meta:{},options:r,codeToHast:(o,a)=>Ye(e,o,a),codeToTokens:(o,a)=>Ze(e,o,a)};let i=Ms(Ye(e,t,r,n));for(const o of Je(r))i=o.postprocess?.call(n,i,r)||i;return i}async function Gs(e){const t=await es(e);return{getLastGrammarState:(...r)=>os(t,...r),codeToTokensBase:(r,n)=>jt(t,r,n),codeToTokensWithThemes:(r,n)=>Fn(t,r,n),codeToTokens:(r,n)=>Ze(t,r,n),codeToHast:(r,n)=>Ye(t,r,n),codeToHtml:(r,n)=>$s(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Bs(e){const t=e.langs,r=e.themes,n=e.engine;async function i(o){function a(p){if(typeof p=="string"){if(p=o.langAlias?.[p]||p,Dn(p))return[];const h=t[p];if(!h)throw new R(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return h}return p}function s(p){if(Nn(p))return"none";if(typeof p=="string"){const h=r[p];if(!h)throw new R(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return h}return p}const l=(o.themes??[]).map(p=>s(p)),u=(o.langs??[]).map(p=>a(p)),m=await Gs({engine:o.engine??n(),...o,themes:l,langs:u});return{...m,loadLanguage(...p){return m.loadLanguage(...p.map(a))},loadTheme(...p){return m.loadTheme(...p.map(s))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return i}const ku=Bs({langs:Uo,themes:jo,engine:()=>(0,_n.createOnigurumaEngine)(c(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),xr=4294967295;var Us=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=n?.get(o);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const s=i(o);return n?.set(o,s),s}catch(s){if(n?.set(o,s),r)return null;throw s}})}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(u=>u==null?{start:xr,end:xr,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const s=this.regexps[a];if(s)try{s.lastIndex=t;const l=s.exec(n);if(!l)continue;if(l.index===t)return o(a,l,0);i.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(i.length){const a=Math.min(...i.map(s=>s[1].index));for(const[s,l,u]of i)if(l.index===a)return o(s,l,u)}return null}};function be(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Fs(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const nr=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),N=String.raw;function we(e,t){if(e==null)throw new Error(t??"Value expected");return e}const zn=N`\[\^?`,qn=`c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${N`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${N`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${N`o\{[^\}]*\}?`}|${N`\d{1,3}`}`,ir=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,$e=new RegExp(N`
|
|
13
|
+
\\ (?:
|
|
14
|
+
${qn}
|
|
15
|
+
| [gk]<[^>]*>?
|
|
16
|
+
| [gk]'[^']*'?
|
|
17
|
+
| .
|
|
18
|
+
)
|
|
19
|
+
| \( (?:
|
|
20
|
+
\? (?:
|
|
21
|
+
[:=!>({]
|
|
22
|
+
| <[=!]
|
|
23
|
+
| <[^>]*>
|
|
24
|
+
| '[^']*'
|
|
25
|
+
| ~\|?
|
|
26
|
+
| #(?:[^)\\]|\\.?)*
|
|
27
|
+
| [^:)]*[:)]
|
|
28
|
+
)?
|
|
29
|
+
| \*[^\)]*\)?
|
|
30
|
+
)?
|
|
31
|
+
| (?:${ir.source})+
|
|
32
|
+
| ${zn}
|
|
33
|
+
| .
|
|
34
|
+
`.replace(/\s+/g,""),"gsu"),Ct=new RegExp(N`
|
|
35
|
+
\\ (?:
|
|
36
|
+
${qn}
|
|
37
|
+
| .
|
|
38
|
+
)
|
|
39
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
40
|
+
| ${zn}
|
|
41
|
+
| &&
|
|
42
|
+
| .
|
|
43
|
+
`.replace(/\s+/g,""),"gsu");function js(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=ll(r.flags),i=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(p){i.push(p)},replaceCurrentModX(p){i[i.length-1]=p},singleline:r.rules.singleline};let a=[],s;for($e.lastIndex=0;s=$e.exec(e);){const p=Ws(o,e,s[0],$e.lastIndex);p.tokens?a.push(...p.tokens):p.token&&a.push(p.token),p.lastIndex!==void 0&&($e.lastIndex=p.lastIndex)}const l=[];let u=0;a.filter(p=>p.type==="GroupOpen").forEach(p=>{p.kind==="capturing"?p.number=++u:p.raw==="("&&l.push(p)}),u||l.forEach((p,h)=>{p.kind="capturing",p.number=h+1});const m=u||l.length;return{tokens:a.map(p=>p.type==="EscapedNumber"?cl(p,m):p).flat(),flags:n}}function Ws(e,t,r,n){const[i,o]=r;if(r==="["||r==="[^"){const a=Hs(t,r,n);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Dr(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:tl(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Kn(r)}}if(o==="K")return{token:Qn("keep",r)};if(o==="N"||o==="R")return{token:se("newline",r,{negate:o==="N"})};if(o==="O")return{token:se("any",r)};if(o==="X")return{token:se("text_segment",r)};const a=Xn(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:ol(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:il(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:fe("group",r)};if(r==="(?>")return{token:fe("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:fe(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:fe("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:fe("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Zs(r)}}if(e.getCurrentModX()){if(r==="#"){const a=t.indexOf(`
|
|
44
|
+
`,n);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(r)){const a=/\s+/y;return a.lastIndex=n,{lastIndex:a.exec(t)?a.lastIndex:n}}}if(r===".")return{token:se("dot",r)};if(r==="^"||r==="$"){const a=e.singleline?{"^":N`\A`,$:N`\Z`}[r]:r;return{token:Dr(a,r)}}return r==="|"?{token:qs(r)}:ir.test(r)?{tokens:pl(r)}:{token:Y(be(r),r)}}function Hs(e,t,r){const n=[Nr(t[1]==="^",t)];let i=1,o;for(Ct.lastIndex=r;o=Ct.exec(e);){const a=o[0];if(a[0]==="["&&a[1]!==":")i++,n.push(Nr(a[1]==="^",a));else if(a==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(Y(93,a));else if(i--,n.push(Xs(a)),!i)break}else{const s=zs(a);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:Ct.lastIndex||e.length}}function zs(e){if(e[0]==="\\")return Xn(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!nr.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return se("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Ks(e):e==="&&"?Qs(e):Y(be(e),e)}function Xn(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return nl(e);if("dDhHsSwW".includes(r))return al(e);if(e.startsWith(N`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return sl(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{const n=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(a=>{const s=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return Y(be(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Y(ul(e),e);if(Vr.has(r))return Y(Vr.get(r),e);if(/\d/.test(r))return Js(t,e);if(e==="\\")throw new Error(N`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Y(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function qs(e){return{type:"Alternator",raw:e}}function Dr(e,t){return{type:"Assertion",kind:e,raw:t}}function Kn(e){return{type:"Backreference",raw:e}}function Y(e,t){return{type:"Character",value:e,raw:t}}function Xs(e){return{type:"CharacterClassClose",raw:e}}function Ks(e){return{type:"CharacterClassHyphen",raw:e}}function Qs(e){return{type:"CharacterClassIntersector",raw:e}}function Nr(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function se(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function Qn(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:we(r.flags),raw:t}}function Js(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Zs(e){return{type:"GroupClose",raw:e}}function fe(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Ys(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function el(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function tl(e){return{type:"Subroutine",raw:e}}const rl=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Vr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function nl(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Y(be(t.toUpperCase())-64,e)}function il(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";const i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=$r(r),a=$r(n),s={};if(o&&(s.enable=o),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(i),Qn("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,fe("group",e,{...(o||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function ol(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:i}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=i?i.split(",").filter(m=>m!=="").map(m=>/^[+-]?\d+$/.test(m)?+m:m):[],[a,s,l]=o,u=rl.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return Ys(u,n??null,i?.split(",")??null,e)}function Mr(e){let t=null,r,n;if(e[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=o===void 0?+i:o===""?1/0:+o,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return el(t,r,n,e)}function al(e){const t=e[1].toLowerCase();return se({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function sl(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return se("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function $r(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function ll(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function ul(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function cl(e,t){const{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[Kn(r)];const o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){const l=a[s];let u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(N`Octal encoded byte above 177 unsupported "${r}"`)}else u=be(l);o.push(Y(u,(s===0?"\\":"")+l))}return o}function pl(e){const t=[],r=new RegExp(ir,"gy");let n;for(;n=r.exec(e);){const i=n[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:a,max:s}=o.groups;if(+a>+s&&i.endsWith("?")){r.lastIndex--,t.push(Mr(i.slice(0,-1)));continue}}}t.push(Mr(i))}return t}function Jn(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function ml(e){return dl.has(e.type)}const dl=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Zn(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=js(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(h,d)=>{const f=n.tokens[o.nextIndex];switch(o.parent=h,o.nextIndex++,f.type){case"Alternator":return ue();case"Assertion":return hl(f);case"Backreference":return fl(f,o);case"Character":return lt(f.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return gl(f,o,d);case"CharacterClassOpen":return _l(f,o,d);case"CharacterSet":return yl(f,o);case"Directive":return Al(f.kind,{flags:f.flags});case"GroupOpen":return El(f,o,d);case"NamedCallout":return Il(f.kind,f.tag,f.arguments);case"Quantifier":return bl(f,o);case"Subroutine":return wl(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},a=Ll(Sl(n.flags));let s=a.body[0];for(;o.nextIndex<n.tokens.length;){const h=i(s,{});h.type==="Alternative"?(a.body.push(h),s=h):s.body.push(h)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:m,subroutines:p}=o;if(u&&m.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of p)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined");h&&(l[h-1].isSubroutined=!0)}else if(m.has(h)){if(m.get(h).length>1)throw new Error(N`Subroutine uses a duplicate group name "\g<${h}>"`);m.get(h)[0].isSubroutined=!0}else throw new Error(N`Subroutine uses a group name that's not defined "\g<${h}>"`);return a}function hl({kind:e}){return Wt(we({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===N`\B`||e===N`\Y`})}function fl({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(o,a=!1)=>{const s=t.capturingGroups.length;let l=!1;if(o>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Ht(a?s+1-o:o,{orphan:l})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Ht(n)}return i(+n)}function gl(e,t,r){const{tokens:n,walk:i}=t,o=t.parent,a=o.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){const l=i(o,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),Cl(a,l);throw new Error("Invalid character class range")}return lt(be("-"))}function _l({negate:e},t,r){const{tokens:n,walk:i}=t,o=[je()],a=n[t.nextIndex];let s=Ur(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")o.push(je()),t.nextIndex++;else{const u=o.at(-1);u.body.push(i(u,r))}s=Ur(n[t.nextIndex],a)}const l=je({negate:e});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function yl({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=n;if(e==="property"){const s=ut(r);if(nr.has(s)&&!a?.has(s))e="posix",r=s;else return ge(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return e==="posix"?Rl(r,{negate:t}):zt(e,{negate:t})}function El(e,t,r){const{tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:s}=t,l=kl(e),u=l.type==="AbsenceFunction",m=Br(l),p=m&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&Fs(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=Fr(n[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")l.body.push(ue()),t.nextIndex++;else{const d=l.body.at(-1),f=s(d,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||m,isInNegLookbehind:r.isInNegLookbehind||p});if(d.body.push(f),(m||r.isInLookbehind)&&!a){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(Gr(f)||f.type==="CapturingGroup")throw new Error(E)}else if(Gr(f)||Br(f)&&f.negate)throw new Error(E)}}h=Fr(n[t.nextIndex])}return t.nextIndex++,l}function bl({kind:e,min:t,max:r},n){const i=n.parent,o=i.body.at(-1);if(!o||!ml(o))throw new Error("Quantifier requires a repeatable token");const a=ei(e,t,r,o);return i.body.pop(),a}function wl({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let i=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const s=+o.groups.num,l=r.length;if(t.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=ti(i);return n.push(a),a}function vl(e,t){return{type:"AbsenceFunction",kind:e,body:xe(t?.body)}}function ue(e){return{type:"Alternative",body:ri(e?.body)}}function Wt(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function Ht(e,t){const r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Yn(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!Pl(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:xe(t?.body)}}function lt(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function je(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:ri(e?.body)}}function Cl(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function zt(e,t){const r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function Al(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:we(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Sl(e){return{type:"Flags",...e}}function W(e){const t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:xe(e?.body)}}function oe(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:xe(e?.body)}}function Il(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function Rl(e,t){const r=!!t?.negate;if(!nr.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function ei(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function Ll(e,t){return{type:"Regex",body:xe(t?.body),flags:e}}function ti(e){return{type:"Subroutine",ref:e}}function ge(e,t){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=r.unicodePropertyMap?.get(ut(e));if(!n){if(r.normalizeUnknownPropertyNames)n=Tl(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(N`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function kl({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":return vl("repeater");case"atomic":return W({atomic:!0});case"capturing":return Yn(i,{name:r});case"group":return W({flags:e});case"lookahead":case"lookbehind":return oe({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function xe(e){if(e===void 0)e=[ue()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function ri(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Gr(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Br(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Pl(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Tl(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function ut(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Ur(e,t){const r=t;return we(e,`Unclosed character class${r?.type==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}function Fr(e){return we(e,"Unclosed group")}function Se(e,t,r=null){function n(o,a){for(let s=0;s<o.length;s++){const l=i(o[s],a,s,o);s=Math.max(-1,s+l)}}function i(o,a=null,s=null,l=null){let u=0,m=!1;const p={node:o,parent:a,key:s,container:l,root:e,remove(){Ge(l).splice(Math.max(0,de(s)+u),1),u--,m=!0},removeAllNextSiblings(){return Ge(l).splice(de(s)+1)},removeAllPrevSiblings(){const g=de(s)+u;return u-=g,Ge(l).splice(0,Math.max(0,g))},replaceWith(g,_={}){const w=!!_.traverse;l?l[Math.max(0,de(s)+u)]=g:we(a,"Can't replace root node")[s]=g,w&&i(g,a,s,l),m=!0},replaceWithMultiple(g,_={}){const w=!!_.traverse;if(Ge(l).splice(Math.max(0,de(s)+u),1,...g),u+=g.length-1,w){let A=0;for(let S=0;S<g.length;S++)A+=i(g[S],a,de(s)+S+A,l)}m=!0},skip(){m=!0}},{type:h}=o,d=t["*"],f=t[h],E=typeof d=="function"?d:d?.enter,b=typeof f=="function"?f:f?.enter;if(E?.(p,r),b?.(p,r),!m)switch(h){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":n(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return f?.exit?.(p,r),d?.exit?.(p,r),u}return i(e),e}function Ge(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function de(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Ol=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function xl(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function Dl(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function or(e,t,r,n){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of e.matchAll(i)){const{0:u,groups:{$skip:m}}=l;if(!m&&(!n||n===j.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?j.CHAR_CLASS:j.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),s+=u}return s}function ni(e,t,r,n){or(e,t,r,n)}function Nl(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,a;for(;a=i.exec(e);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===j.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function Be(e,t,r){return!!Nl(e,t,0,r)}function Vl(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,i=0,o=1,a;for(;a=r.exec(e);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return e.slice(t,n)}const jr=new RegExp(String.raw`(?<noncapturingStart>${Ol})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Ml(e,t){const r=t?.hiddenCaptures??[];let n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const i="(?>",o="(?:(?=(",a=[0],s=[];let l=0,u=0,m=NaN,p;do{p=!1;let h=0,d=0,f=!1,E;for(jr.lastIndex=Number.isNaN(m)?0:m+o.length;E=jr.exec(e);){const{0:b,index:g,groups:{capturingStart:_,noncapturingStart:w}}=E;if(b==="[")h++;else if(h)b==="]"&&h--;else if(b===i&&!f)m=g,f=!0;else if(f&&w)d++;else if(_)f?d++:(l++,a.push(l+u));else if(b===")"&&f){if(!d){u++;const A=l+u;if(e=`${e.slice(0,m)}${o}${e.slice(m+i.length,g)}))<$$${A}>)${e.slice(g+1)}`,p=!0,s.push(A),xl(r,A),n.size){const S=new Map;n.forEach((k,$)=>{S.set($>=A?$+1:$,k.map(z=>z>=A?z+1:z))}),n=S}break}d--}}}while(p);return r.push(...s),e=or(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:f}})=>{if(d){const E=+d;if(E>a.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${a[E]}`}return`\\${f}`},j.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const ii=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,At=new RegExp(String.raw`
|
|
45
|
+
\\(?: \d+
|
|
46
|
+
| c[A-Za-z]
|
|
47
|
+
| [gk]<[^>]+>
|
|
48
|
+
| [pPu]\{[^\}]+\}
|
|
49
|
+
| u[A-Fa-f\d]{4}
|
|
50
|
+
| x[A-Fa-f\d]{2}
|
|
51
|
+
)
|
|
52
|
+
| \((?: \? (?: [:=!>]
|
|
53
|
+
| <(?:[=!]|[^>]+>)
|
|
54
|
+
| [A-Za-z\-]+:
|
|
55
|
+
| \(DEFINE\)
|
|
56
|
+
))?
|
|
57
|
+
| (?<qBase>${ii})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
58
|
+
| \\?.
|
|
59
|
+
`.replace(/\s+/g,""),"gsu");function $l(e){if(!new RegExp(`${ii}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,i="",o=0,a;for(At.lastIndex=0;a=At.exec(e);){const{0:s,index:l,groups:{qBase:u,qMod:m,invalidQ:p}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(m==="+"&&i&&!i.startsWith("(")){if(p)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(u))e=Dl(e,l+u.length,m,"");else{if(i===")"||i==="]"){const d=i===")"?r:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-i.length)}(?>${i}${u})${e.slice(l+s.length)}`;h+=4}At.lastIndex+=h}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);i=s}return{pattern:e}}const F=String.raw,Gl=F`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,qt=F`\(\?R=(?<rDepth>[^\)]+)\)|${Gl}`,ct=F`\(\?<(?![=!])(?<captureName>[^>]+)>`,oi=F`${ct}|(?<unnamed>\()(?!\?)`,ne=new RegExp(F`${ct}|${qt}|\(\?|\\?.`,"gsu"),St="Cannot use multiple overlapping recursions";function Bl(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let i=t?.captureTransfers??new Map;if(!new RegExp(qt,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&Be(e,F`\(\?\(DEFINE\)`,j.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=Be(e,F`\\[1-9]`,j.DEFAULT),s=new Map,l=[];let u=!1,m=0,p=0,h;for(ne.lastIndex=0;h=ne.exec(e);){const{0:d,groups:{captureName:f,rDepth:E,gRNameOrNum:b,gRDepth:g}}=h;if(d==="[")m++;else if(m)d==="]"&&m--;else if(E){if(Wr(E),u)throw new Error(St);if(a)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const _=e.slice(0,h.index),w=e.slice(ne.lastIndex);if(Be(w,qt,j.DEFAULT))throw new Error(St);const A=+E-1;e=Hr(_,w,A,!1,r,o,p),i=qr(i,_,A,o.length,0,p);break}else if(b){Wr(g);let _=!1;for(const q of l)if(q.name===b||q.num===+b){if(_=!0,q.hasRecursedWithin)throw new Error(St);break}if(!_)throw new Error(F`Recursive \g cannot be used outside the referenced group "${n==="external"?b:F`\g<${b}&R=${g}>`}"`);const w=s.get(b),A=Vl(e,w);if(a&&Be(A,F`${ct}|\((?!\?)`,j.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const S=e.slice(w,h.index),k=A.slice(S.length+d.length),$=o.length,z=+g-1,pe=Hr(S,k,z,!0,r,o,p);i=qr(i,S,z,o.length-$,$,p);const mt=e.slice(0,w),dt=e.slice(w+A.length);e=`${mt}${pe}${dt}`,ne.lastIndex+=pe.length-d.length-S.length-k.length,l.forEach(q=>q.hasRecursedWithin=!0),u=!0}else if(f)p++,s.set(String(p),ne.lastIndex),s.set(f,ne.lastIndex),l.push({num:p,name:f});else if(d[0]==="("){const _=d==="(";_&&(p++,s.set(String(p),ne.lastIndex)),l.push(_?{num:p}:{})}else d===")"&&l.pop()}return r.push(...o),{pattern:e,captureTransfers:i,hiddenCaptures:r}}function Wr(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Hr(e,t,r,n,i,o,a){const s=new Set;n&&ni(e+t,ct,({groups:{captureName:u}})=>{s.add(u)},j.DEFAULT);const l=[r,n?s:null,i,o,a];return`${e}${zr(`(?:${e}`,"forward",...l)}(?:)${zr(`${t})`,"backward",...l)}${t}`}function zr(e,t,r,n,i,o,a){const l=m=>t==="forward"?m+2:r-m+2-1;let u="";for(let m=0;m<r;m++){const p=l(m);u+=or(e,F`${oi}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:f,backref:E}})=>{if(E&&n&&!n.has(E))return h;const b=`_$${p}`;if(f||d){const g=a+o.length+1;return o.push(g),Ul(i,g),f?h:`(?<${d}${b}>`}return F`\k<${E}${b}>`},j.DEFAULT)}return u}function Ul(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function qr(e,t,r,n,i,o){if(e.size&&n){let a=0;ni(t,oi,()=>a++,j.DEFAULT);const s=o-a+i,l=new Map;return e.forEach((u,m)=>{const p=(n-a*r)/r,h=a*r,d=m>s+a?m+n:m,f=[];for(const E of u)if(E<=s)f.push(E);else if(E>s+a+p)f.push(E+n);else if(E<=s+a)for(let b=0;b<=r;b++)f.push(E+a*b);else for(let b=0;b<=r;b++)f.push(E+h+p*b);l.set(d,f)}),l}return e}var O=String.fromCodePoint,v=String.raw,H={},pt=globalThis.RegExp;H.flagGroups=(()=>{try{new pt("(?i:)")}catch{return!1}return!0})();H.unicodeSets=(()=>{try{new pt("[[]]","v")}catch{return!1}return!0})();H.bugFlagVLiteralHyphenIsRange=H.unicodeSets?(()=>{try{new pt(v`[\d\-a]`,"v")}catch{return!0}return!1})():!1;H.bugNestedClassIgnoresNegation=H.unicodeSets&&new pt("[[^a]]","v").test("a");function et(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Pe(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Xt(e,t){return Xr[e]>=Xr[t]}function Fl(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Xr={ES2025:2025,ES2024:2024,ES2018:2018},jl={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ai(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!jl[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=H.flagGroups?"ES2025":H.unicodeSets?"ES2024":"ES2018"),t}var Wl="[ -\r ]",Hl=new Set([O(304),O(305)]),J=v`[\p{L}\p{M}\p{N}\p{Pc}]`;function si(e){if(Hl.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=Xl.get(r),o=zl.get(r),a=ql.get(r);return[...n].length===1&&t.add(n),a&&t.add(a),i&&t.add(i),t.add(r),o&&t.add(o),[...t]}var ar=new Map(`C Other
|
|
60
|
+
Cc Control cntrl
|
|
61
|
+
Cf Format
|
|
62
|
+
Cn Unassigned
|
|
63
|
+
Co Private_Use
|
|
64
|
+
Cs Surrogate
|
|
65
|
+
L Letter
|
|
66
|
+
LC Cased_Letter
|
|
67
|
+
Ll Lowercase_Letter
|
|
68
|
+
Lm Modifier_Letter
|
|
69
|
+
Lo Other_Letter
|
|
70
|
+
Lt Titlecase_Letter
|
|
71
|
+
Lu Uppercase_Letter
|
|
72
|
+
M Mark Combining_Mark
|
|
73
|
+
Mc Spacing_Mark
|
|
74
|
+
Me Enclosing_Mark
|
|
75
|
+
Mn Nonspacing_Mark
|
|
76
|
+
N Number
|
|
77
|
+
Nd Decimal_Number digit
|
|
78
|
+
Nl Letter_Number
|
|
79
|
+
No Other_Number
|
|
80
|
+
P Punctuation punct
|
|
81
|
+
Pc Connector_Punctuation
|
|
82
|
+
Pd Dash_Punctuation
|
|
83
|
+
Pe Close_Punctuation
|
|
84
|
+
Pf Final_Punctuation
|
|
85
|
+
Pi Initial_Punctuation
|
|
86
|
+
Po Other_Punctuation
|
|
87
|
+
Ps Open_Punctuation
|
|
88
|
+
S Symbol
|
|
89
|
+
Sc Currency_Symbol
|
|
90
|
+
Sk Modifier_Symbol
|
|
91
|
+
Sm Math_Symbol
|
|
92
|
+
So Other_Symbol
|
|
93
|
+
Z Separator
|
|
94
|
+
Zl Line_Separator
|
|
95
|
+
Zp Paragraph_Separator
|
|
96
|
+
Zs Space_Separator
|
|
97
|
+
ASCII
|
|
98
|
+
ASCII_Hex_Digit AHex
|
|
99
|
+
Alphabetic Alpha
|
|
100
|
+
Any
|
|
101
|
+
Assigned
|
|
102
|
+
Bidi_Control Bidi_C
|
|
103
|
+
Bidi_Mirrored Bidi_M
|
|
104
|
+
Case_Ignorable CI
|
|
105
|
+
Cased
|
|
106
|
+
Changes_When_Casefolded CWCF
|
|
107
|
+
Changes_When_Casemapped CWCM
|
|
108
|
+
Changes_When_Lowercased CWL
|
|
109
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
110
|
+
Changes_When_Titlecased CWT
|
|
111
|
+
Changes_When_Uppercased CWU
|
|
112
|
+
Dash
|
|
113
|
+
Default_Ignorable_Code_Point DI
|
|
114
|
+
Deprecated Dep
|
|
115
|
+
Diacritic Dia
|
|
116
|
+
Emoji
|
|
117
|
+
Emoji_Component EComp
|
|
118
|
+
Emoji_Modifier EMod
|
|
119
|
+
Emoji_Modifier_Base EBase
|
|
120
|
+
Emoji_Presentation EPres
|
|
121
|
+
Extended_Pictographic ExtPict
|
|
122
|
+
Extender Ext
|
|
123
|
+
Grapheme_Base Gr_Base
|
|
124
|
+
Grapheme_Extend Gr_Ext
|
|
125
|
+
Hex_Digit Hex
|
|
126
|
+
IDS_Binary_Operator IDSB
|
|
127
|
+
IDS_Trinary_Operator IDST
|
|
128
|
+
ID_Continue IDC
|
|
129
|
+
ID_Start IDS
|
|
130
|
+
Ideographic Ideo
|
|
131
|
+
Join_Control Join_C
|
|
132
|
+
Logical_Order_Exception LOE
|
|
133
|
+
Lowercase Lower
|
|
134
|
+
Math
|
|
135
|
+
Noncharacter_Code_Point NChar
|
|
136
|
+
Pattern_Syntax Pat_Syn
|
|
137
|
+
Pattern_White_Space Pat_WS
|
|
138
|
+
Quotation_Mark QMark
|
|
139
|
+
Radical
|
|
140
|
+
Regional_Indicator RI
|
|
141
|
+
Sentence_Terminal STerm
|
|
142
|
+
Soft_Dotted SD
|
|
143
|
+
Terminal_Punctuation Term
|
|
144
|
+
Unified_Ideograph UIdeo
|
|
145
|
+
Uppercase Upper
|
|
146
|
+
Variation_Selector VS
|
|
147
|
+
White_Space space
|
|
148
|
+
XID_Continue XIDC
|
|
149
|
+
XID_Start XIDS`.split(/\s/).map(e=>[ut(e),e])),zl=new Map([["s",O(383)],[O(383),"s"]]),ql=new Map([[O(223),O(7838)],[O(107),O(8490)],[O(229),O(8491)],[O(969),O(8486)]]),Xl=new Map([ee(453),ee(456),ee(459),ee(498),...It(8072,8079),...It(8088,8095),...It(8104,8111),ee(8124),ee(8140),ee(8188)]),Kl=new Map([["alnum",v`[\p{Alpha}\p{Nd}]`],["alpha",v`\p{Alpha}`],["ascii",v`\p{ASCII}`],["blank",v`[\p{Zs}\t]`],["cntrl",v`\p{Cc}`],["digit",v`\p{Nd}`],["graph",v`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",v`\p{Lower}`],["print",v`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",v`[\p{P}\p{S}]`],["space",v`\p{space}`],["upper",v`\p{Upper}`],["word",v`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",v`\p{AHex}`]]);function Ql(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function ee(e){const t=O(e);return[t.toLowerCase(),t]}function It(e,t){return Ql(e,t).map(r=>ee(r))}var li=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Jl(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};ui(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Xt(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Se(e,Zl,n);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Se(e,Yl,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Se(e,eu,a),e._originMap=o.groupOriginByCopy,e._strategy=n.strategy,e}var Zl={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:i}=e;if(i==="repeater"){const o=W();o.body[0].body.push(oe({negate:!0,body:n}),ge("Any"));const a=W();a.body[0].body.push(ei("greedy",0,1/0,o)),r(L(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const i=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){const a=t.body[o];Pe(n,a,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const r=pi(t.get(e));if(r){const n=W({flags:r});n.body[0].body=e.body,e.body=[L(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:o,replaceWith:a},s){const{kind:l,negate:u}=e,{asciiWordBoundaries:m,avoidSubclass:p,supportedGNodes:h,wordIsAscii:d}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")a(L(oe({body:[ue({body:[Wt("string_end")]}),ue({body:[lt(10)]})]}),t));else if(l==="line_start")a(L(Z(v`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(h.has(e))i.flags.sticky=!0,o();else{const f=n[r-1];if(f&&au(f))a(L(oe({negate:!0}),t));else{if(p)throw new Error(v`Uses "\G" in a way that requires a subclass`);a(te(Wt("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(L(Z(v`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!d&&!m){const f=`(?:(?<=${J})(?!${J})|(?<!${J})(?=${J}))`,E=`(?:(?<=${J})(?=${J})|(?<!${J})(?!${J}))`;a(L(Z(u?E:f),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Lt(r)&&(r=Rt(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Lt(n)&&(n=Rt(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=je({body:[e]});r(L(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:s}){const{kind:l,negate:u,value:m}=e;if(o&&(l==="digit"||m==="digit")){r(te(zt("digit",{negate:u}),t));return}if(a&&(l==="space"||m==="space")){r(L(kt(Z(Wl),u),t));return}if(s&&(l==="word"||m==="word")){r(te(zt("word",{negate:u}),t));return}if(l==="any")r(te(ge("Any"),t));else if(l==="digit")r(te(ge("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(v`Use of "\X" requires non-strict accuracy`);const p="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=v`\p{RI}{2}|${p}(?:\u200D${p})*`;r(L(Z(v`(?>\r\n|${i?v`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(te(ge("AHex",{negate:u}),t));else if(l==="newline")r(L(Z(u?`[^
|
|
150
|
+
]`:`(?>\r
|
|
151
|
+
?|[
|
|
152
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!i&&(m==="graph"||m==="print")){if(n==="strict")throw new Error(`POSIX class "${m}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[m];u&&(p=`\0-${O(p.codePointAt(0)-1)}${O(p.codePointAt(2)+1)}-`),r(L(Z(`[${p}]`),t))}else r(L(kt(Z(Kl.get(m)),u),t));else if(l==="property")ar.has(ut(m))||(e.key="sc");else if(l==="space")r(te(ge("space",{negate:u}),t));else if(l==="word")r(L(kt(Z(J),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)n();else{const u=W({flags:l});u.body[0].body=a(),i(L(u,t),{traverse:!0})}else if(s==="keep"){const u=r.body[0],p=r.body.length===1&&Jn(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==p||p.body.length>1)throw new Error(v`Uses "\K" in a way that's unsupported`);const h=oe({behind:!0});h.body[0].body=o(),i(L(h,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(L(oe({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=W();t.body[0].body.push(e.body),e.body=L(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,i=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=di(o.body);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(v`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Lt(r)&&(r=Rt(r,t),e.ref=r)}},Yl={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){const u=i.get(e);if(u&&s.has(e.number)){const p=te(Kr(e.number),t);l.set(p,s.get(e.number)),r(p);return}s.set(e.number,e),a.set(e.number,[]),e.name&&Pe(a,e.name,[]);const m=a.get(e.name??e.number);for(let p=0;p<m.length;p++){const h=m[p];if(u===h.node||u&&u===h.origin||e===h.origin){m.splice(p,1);break}}if(a.get(e.number).push({node:e,origin:u}),e.name&&a.get(e.name).push({node:e,origin:u}),e.name){const p=Pe(o,e.name,new Map);let h=!1;if(u)h=!0;else for(const d of p.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=et(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:i,ref:o}=e;if(i){let m=t;for(;(m=m.parent)&&!(m.type==="CapturingGroup"&&(m.name===o||m.number===o)););n.reffedNodesByReferencer.set(e,m);return}const a=n.subroutineRefMap.get(o),s=o===0,l=s?Kr(0):ci(a,n.groupOriginByCopy,null);let u=l;if(!s){const m=pi(nu(a,h=>h.type==="Group"&&!!h.flags)),p=m?et(n.globalFlags,m):n.globalFlags;tu(p,n.currentFlags)||(u=W({flags:iu(p)}),u.body[0].body.push(l))}r(L(u,t),{traverse:!s})}},eu={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const o=n.reffedNodesByReferencer.get(e).filter(a=>ru(a,e));if(!o.length)r(L(oe({negate:!0}),t));else if(o.length>1){const a=W({atomic:!0,body:o.reverse().map(s=>ue({body:[Ht(s.number)]}))});r(L(a,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Yn();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ui(e){Se(e,{"*"({node:t,parent:r}){t.parent=r}})}function tu(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function ru(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=mi(r.parent);for(const i of n){if(i===r)break;if(i===e||hi(i,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function ci(e,t,r,n){const i=Array.isArray(e)?[]:{};for(const[o,a]of Object.entries(e))o==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[o]=ci(a,t,i,r):(o==="type"&&a==="CapturingGroup"&&t.set(i,t.get(e)??e),i[o]=a);return i}function Kr(e){const t=ti(e);return t.isRecursive=!0,t}function nu(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Rt(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function pi(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function iu({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function mi(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function di(e){const t=e.find(r=>r.kind==="search_start"||su(r,{negate:!1})||!ou(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const i=di(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function hi(e,t){const r=mi(e)??[];for(const n of r)if(n===t||hi(n,t))return!0;return!1}function ou({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function au(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function su(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Jn(e.body[0],{type:"Assertion",kind:"search_start"})}function Lt(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Z(e,t){const n=Zn(e,{...t,unicodePropertyMap:ar}).body;return n.length>1||n[0].body.length>1?W({body:n}):n[0].body[0]}function kt(e,t){return e.negate=t,e}function te(e,t){return e.parent=t,e}function L(e,t){return ui(e),e.parent=t,e}function lu(e,t){const r=ai(t),n=Xt(r.target,"ES2024"),i=Xt(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){const d=[e.flags.ignoreCase];Se(e,uu,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(f){d.push(f)},setHasCasedChar(){d.at(-1)?a=!0:s=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!s)};let u=e;const m={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(d){return m.lastNode=u,u=d,Fl(cu[d.type],`Unexpected node type "${d.type}"`)(d,m,p)}const h={pattern:e.body.map(p).join("|"),flags:p(e.flags),options:{...e.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],m.captureMap.forEach((d,f)=>{d.hidden&&h._hiddenCaptures.push(f),d.transferTo&&Pe(h._captureTransfers,d.transferTo,[]).push(f)}),h}var uu={"*":{enter({node:e},t){if(Jr(e)){const r=t.getCurrentModI();t.pushModI(e.flags?et({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){Jr(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){sr(O(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),fi(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&li.has(e.value)&&t.setHasCasedChar()}},cu={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?v`\B`:v`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:i,number:o}=e,a={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(a.hidden=!0,o>s.number&&(a.transferTo=s.number)),t.captureMap.set(o,a),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=O(e),n=he(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&sr(r)){const i=si(r);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:i,parent:o}=e;let{body:a}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");H.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(Zr)&&(a=[lt(45),...a.filter(u=>!Zr(u))]);const s=()=>`[${i?"^":""}${a.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||H.bugNestedClassIgnoresNegation)&&!i){const m=a.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(m.length){const p=W(),h=p.body[0];return p.parent=o,h.parent=p,a=a.filter(d=>!m.includes(d)),e.body=a,a.length?(e.parent=h,h.body.push(e)):p.body.pop(),m.forEach(d=>{const f=ue({body:[d]});d.parent=f,f.parent=p,p.body.push(f)}),r(p)}}t.inCharClass=!0;const u=s();return t.inCharClass=!1,u}const l=a[0];if(n==="union"&&!i&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(H.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(r).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=he(r,i),a=he(n,i),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=fi(e);fu(l).forEach(m=>{s.add(Array.isArray(m)?`${he(m[0],i)}-${he(m[1],i)}`:he(m,i))})}return`${o}-${a}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":v`[^\n]`;if(e==="digit")return t?v`\D`:v`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&li.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?v`\P`:v`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?v`\W`:v`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},i,o){const a=i.currentFlags;r&&(i.currentFlags=et(a,r));const s=t.map(o).join("|"),l=!i.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!i.useFlagMods||!r)?s:`(?${gu(e,r,i.useFlagMods)}${s})`;return i.currentFlags=a,l},LookaroundAssertion({body:e,kind:t,negate:r},n,i){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,r){return r(e.body)+_u(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:v`\g<${t}&R=${n}>`}},pu=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),mu=new Set(["-","\\","]","^","["]),du=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Qr=new Map([[9,v`\t`],[10,v`\n`],[11,v`\v`],[12,v`\f`],[13,v`\r`],[8232,v`\u2028`],[8233,v`\u2029`],[65279,v`\uFEFF`]]),hu=/^\p{Cased}$/u;function sr(e){return hu.test(e)}function fi(e,t){const r=!!t?.firstOnly,n=e.min.value,i=e.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let a=n;a<=i;a++){const s=O(a);if(!sr(s))continue;const l=si(s).filter(u=>{const m=u.codePointAt(0);return m<n||m>i});if(l.length&&(o.push(...l),r))break}return o}function he(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(Qr.has(e))return Qr.get(e);if(e<32||e>126&&e<160||e>262143||t&&yu(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?du:mu:pu,o=O(e);return(i.has(o)?"\\":"")+o}function fu(e){const t=e.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?n??=t[i]:n===null?r.push(t[i]):(r.push([n,t[i]]),n=null);return r}function gu(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:i,disable:o}=t;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${n}:`}function _u({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function Jr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function yu(e){return e>47&&e<58}function Zr({type:e,value:t}){return e==="Character"&&t===45}var Eu=class Kt extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){const i=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,r),this.#n=o.source,o instanceof Kt&&(this.#t=o.#t,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#n=t,this.#t=wu(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:i,...o}=this.rawOptions;this.#e=new Kt(this.#n,this.flags,o)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#o(t.slice(n));return i&&(bu(i,n,t,this.hasIndices),this.lastIndex+=n),i}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const o=[0];for(let a=1;a<n.length;a++){const{hidden:s,transferTo:l}=this.#t.get(a)??{};if(s?o.push(null):(o.push(r.length),r.push(n[a]),this.hasIndices&&r.indices.push(i[a])),l&&n[a]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=n[a],this.hasIndices&&(r.indices[u]=i[a]),r.groups){this.#r||(this.#r=vu(this.source));const m=this.#r.get(l);m&&(r.groups[m]=n[a],this.hasIndices&&(r.indices.groups[m]=i[a]))}}}return r}};function bu(e,t,r,n){if(e.index+=t,e.input=r,n){const i=e.indices;for(let a=0;a<i.length;a++){const s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])}const o=i.groups;o&&Object.keys(o).forEach(a=>{const s=o[a];s&&(o[a]=[s[0]+t,s[1]+t])})}}function wu(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,i]of t)for(const o of i)Pe(r,o,{}).transferTo=n;return r}function vu(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,o;for(;o=t.exec(e);){const{0:a,groups:{capture:s,name:l}}=o;a==="["?n++:n?a==="]"&&n--:s&&(i++,l&&r.set(i,l))}return r}function Cu(e,t){const r=Au(e,t);return r.options?new Eu(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Au(e,t){const r=ai(t),n=Zn(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:ar}),i=Jl(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=lu(i,r),a=Bl(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=$l(a.pattern),l=Ml(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const m=l.hiddenCaptures.sort((f,E)=>f-E),p=Array.from(l.captureTransfers),h=i._strategy,d=u.pattern.length>=r.lazyCompileLength;(m.length||p.length||h||d)&&(u.options={...m.length&&{hiddenCaptures:m},...p.length&&{transfers:p},...h&&{strategy:h},...d&&{lazyCompile:d}})}return u}function Su(e,t){return Cu(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Pu(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||=r=>Su(r,{target:t.target}),{createScanner(r){return new Us(r,t)},createString(r){return{content:r}}}}export{tr as A,Ke as B,ot as C,hs as D,gs as E,Ft as F,Ka as G,Ps as H,as as I,xs as J,ys as K,Ut as L,le as M,Po as N,R as S,jn as a,Uo as b,ku as c,re as d,Bo as e,Go as f,dn as g,jo as h,Fo as i,Bs as j,Gs as k,Pu as l,sa as m,ms as n,Ya as o,es as p,Su as q,_s as r,Qe as s,Ms as t,it as u,nt as v,Dn as w,Nn as x,fn as y,xn as z};
|