netstar-ai-chat 1.0.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 +112 -0
- package/dist/ChatPanel/AgentPicker.vue.d.ts +94 -0
- package/dist/ChatPanel/SubAgentNode.vue.d.ts +23 -0
- package/dist/ChatPanel/ToolCallNode.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/SaveModuleDocsRenderer.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/defaultToolRenderers.d.ts +4 -0
- package/dist/ChatPanel/WriteTodosTopPanel.vue.d.ts +20 -0
- package/dist/ChatPanel/index.vue.d.ts +117 -0
- package/dist/CodeBlockNode-CTasgSPs.cjs +1 -0
- package/dist/CodeBlockNode-DuMNoiwD.js +1245 -0
- package/dist/Serializer-CXJ0fE5z.js +249 -0
- package/dist/Serializer-fgUokho9.cjs +1 -0
- package/dist/StreamMarkdown/StreamMarkdown.vue.d.ts +29 -0
- package/dist/StreamMarkdown/components/CodeBlockNode.vue.d.ts +13 -0
- package/dist/StreamMarkdown/components/ThinkNode.vue.d.ts +20 -0
- package/dist/StreamMarkdown/components/copyToClipboard.d.ts +5 -0
- package/dist/StreamMarkdown/type.d.ts +9 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-ConVUPun.cjs +1 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-yxSn8jeO.js +5 -0
- package/dist/_baseClone-D3YkUt7B.cjs +1 -0
- package/dist/_baseClone-M9Eo-ngy.js +228 -0
- package/dist/abap-pyAsOErv.cjs +1 -0
- package/dist/abap-w3onj0rB.js +3 -0
- package/dist/abnfDiagram-VRR7QNED-BZIwESBc.js +89 -0
- package/dist/abnfDiagram-VRR7QNED-CbMhyWtU.cjs +1 -0
- package/dist/actionscript-3-BOqnK-sH.js +3 -0
- package/dist/actionscript-3-CzNUYu3T.cjs +1 -0
- package/dist/ada-BLw2DNCr.cjs +1 -0
- package/dist/ada-ZOYhNhP6.js +3 -0
- package/dist/andromeeda-BK7KK1TI.cjs +1 -0
- package/dist/andromeeda-D6zxFn77.js +4 -0
- package/dist/angular-html-CM15CIR-.js +16 -0
- package/dist/angular-html-CtqN3w77.cjs +1 -0
- package/dist/angular-ts-BZbyXOyX.cjs +1 -0
- package/dist/angular-ts-D_WjBMhi.js +18 -0
- package/dist/apache-DdGV2gIX.cjs +1 -0
- package/dist/apache-rcSYX-LI.js +3 -0
- package/dist/apex-BQsSAFNB.cjs +1 -0
- package/dist/apex-C-w0vHe4.js +3 -0
- package/dist/apl-CFUDRIMH.cjs +1 -0
- package/dist/apl-DEY32kA8.js +16 -0
- package/dist/applescript-BAJgLR5K.cjs +1 -0
- package/dist/applescript-BCUU8TOE.js +3 -0
- package/dist/ara-B4SncdQz.js +3 -0
- package/dist/ara-DSlRoA1z.cjs +1 -0
- package/dist/arc-BxwVc1OP.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-BePVesqR.cjs +1 -0
- package/dist/architecture-TIHT7OUA-CdCN4XW2.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-DhyGcAG9.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-pJBnYWx2.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/asciidoc-CSnR5M0p.cjs +1 -0
- package/dist/asciidoc-DZyZo06c.js +3 -0
- package/dist/asm-BmB_X3A_.js +3 -0
- package/dist/asm-zib-OSTh.cjs +1 -0
- package/dist/astro-BApYg9cK.cjs +1 -0
- package/dist/astro-Bk1s2QoB.js +16 -0
- package/dist/aurora-x-BF78MGx3.cjs +1 -0
- package/dist/aurora-x-Tc1Eqrl5.js +4 -0
- package/dist/awk-BYQNbw8p.cjs +1 -0
- package/dist/awk-C3bvZdNY.js +3 -0
- package/dist/ayu-dark-ClxspuCB.cjs +1 -0
- package/dist/ayu-dark-cVPWKu1C.js +4 -0
- package/dist/ballerina-BPk8Fg7E.cjs +1 -0
- package/dist/ballerina-Bp92mgFe.js +3 -0
- package/dist/bat-7FZ8F5O4.cjs +1 -0
- package/dist/bat-CXbg7Xg3.js +3 -0
- package/dist/beancount-DCtU0rYp.cjs +1 -0
- package/dist/beancount-DmmCjryt.js +3 -0
- package/dist/berry-D8ITycFg.cjs +1 -0
- package/dist/berry-DiFcr1nX.js +3 -0
- package/dist/bibtex-CmGvn0fl.js +3 -0
- package/dist/bibtex-YVvMHIoL.cjs +1 -0
- package/dist/bicep-DDIPSBse.cjs +1 -0
- package/dist/bicep-zPtP3CSU.js +3 -0
- package/dist/blade-aYJa4e4Z.js +18 -0
- package/dist/blade-s0X0QSRt.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BXsjcvEy.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-DUfdZ59z.js +3160 -0
- package/dist/bsl-2e5sJ_f2.js +5 -0
- package/dist/bsl-Boo9Znnk.cjs +1 -0
- package/dist/c-CtSegEhe.cjs +1 -0
- package/dist/c-DOHa0HhF.js +5 -0
- package/dist/c4Diagram-LMCZKHZV-CupZJT9_.cjs +10 -0
- package/dist/c4Diagram-LMCZKHZV-XVBQkiBu.js +2962 -0
- package/dist/cadence-BdOzwJ16.cjs +1 -0
- package/dist/cadence-DKZt82SN.js +3 -0
- package/dist/cairo-D7N4wIlJ.js +5 -0
- package/dist/cairo-yxjWoJOX.cjs +1 -0
- package/dist/catppuccin-frappe-BgIo7C1L.js +4 -0
- package/dist/catppuccin-frappe-lMRSGXsq.cjs +1 -0
- package/dist/catppuccin-latte-DACltl2d.js +4 -0
- package/dist/catppuccin-latte-DvhQrqwX.cjs +1 -0
- package/dist/catppuccin-macchiato-D_87UlHU.js +4 -0
- package/dist/catppuccin-macchiato-SYJuf56p.cjs +1 -0
- package/dist/catppuccin-mocha-btILUzM9.js +4 -0
- package/dist/catppuccin-mocha-nV-o7gzF.cjs +1 -0
- package/dist/channel-B_58s50a.js +5 -0
- package/dist/channel-CftZUi3r.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
- package/dist/chunk-32BRIVSS-DUxAI9Oa.cjs +1 -0
- package/dist/chunk-32BRIVSS-O-rQI_k2.js +61 -0
- package/dist/chunk-52WLFC77-B-_tvcsL.js +590 -0
- package/dist/chunk-52WLFC77-SZUA2rNI.cjs +10 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
- package/dist/chunk-7BUUIJ7U-B018BbRy.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-D1CB1CXU.js +67 -0
- package/dist/chunk-C7G6YPKG-HH-he6SO.cjs +1 -0
- package/dist/chunk-EX3LRPZG-D0TH5Vrj.js +2046 -0
- package/dist/chunk-EX3LRPZG-DgwSD7VR.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-CCaqRbxb.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-c8mJHkIt.js +57 -0
- package/dist/chunk-HOUHSVGY-CqEBw5yz.cjs +1 -0
- package/dist/chunk-HOUHSVGY-D13Pk7nF.js +277 -0
- package/dist/chunk-ICXQ74PX-Bq9mKzdP.js +1369 -0
- package/dist/chunk-ICXQ74PX-TcRXMN1n.cjs +2 -0
- package/dist/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-CNjhxe7N.cjs +161 -0
- package/dist/chunk-KEIR6QF5-yJg1YNda.js +21383 -0
- package/dist/chunk-MOJQB5TN-BOC0rggK.js +490 -0
- package/dist/chunk-MOJQB5TN-CSjPQYln.cjs +88 -0
- package/dist/chunk-OGEWGWER-BYjMhJGb.js +32 -0
- package/dist/chunk-OGEWGWER-Bzj7N4Ii.cjs +1 -0
- package/dist/chunk-PUDLZKDR-D18W-L-L.js +4142 -0
- package/dist/chunk-PUDLZKDR-JbFT5hiR.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-DATOcgxL.cjs +70 -0
- package/dist/chunk-Q4XR5HBZ-DwgV8nWo.js +1628 -0
- package/dist/chunk-RYQCIY6F-Budeukwp.cjs +1 -0
- package/dist/chunk-RYQCIY6F-CTIaeOkt.js +240 -0
- package/dist/chunk-V7JOEXUC-BYc3FcMK.js +3357 -0
- package/dist/chunk-V7JOEXUC-Wa1_qMKV.cjs +206 -0
- package/dist/chunk-VAUOI2AC-3AGHwQI8.cjs +1 -0
- package/dist/chunk-VAUOI2AC-D4COVrqB.js +10 -0
- package/dist/chunk-VR4S4FIN-BBKjPbG_.js +26 -0
- package/dist/chunk-VR4S4FIN-DXfCPsY8.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DNtzmu_Z.cjs +127 -0
- package/dist/chunk-WYO6CB5R-DVUXWnvM.js +3736 -0
- package/dist/chunk-XXDRQBXY-DWq_A1Wb.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CYGK4FNM.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-Ch-mMgcC.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-DLqc5SfA.js +1146 -0
- package/dist/clarity-DnwH_oaR.js +3 -0
- package/dist/clarity-mvj5EDZ5.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BPcmQYGc.js +30 -0
- package/dist/classDiagram-OUVF2IWQ-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-C_A6LIqp.js +30 -0
- package/dist/clojure-C64DxiGB.cjs +1 -0
- package/dist/clojure-DQex2ThW.js +3 -0
- package/dist/cmake-BvNQeWu_.cjs +1 -0
- package/dist/cmake-C4lGF15i.js +3 -0
- package/dist/cobol-B6D1w50i.cjs +1 -0
- package/dist/cobol-f_8vDiHm.js +10 -0
- package/dist/codeowners-a_Z0p9_y.js +3 -0
- package/dist/codeowners-jShtr2Jw.cjs +1 -0
- package/dist/codeql-B0nK9JGf.js +3 -0
- package/dist/codeql-svt7Eror.cjs +1 -0
- package/dist/coffee-CIzsduL9.cjs +1 -0
- package/dist/coffee-D2SRpDoy.js +5 -0
- package/dist/common-lisp-BX8N9UvD.js +3 -0
- package/dist/common-lisp-Dd1YOGnK.cjs +1 -0
- package/dist/coq-B9dKr70z.cjs +1 -0
- package/dist/coq-CvkpvpO8.js +3 -0
- package/dist/cose-bilkent-JH36ORCC-DpRqLdKD.js +2251 -0
- package/dist/cose-bilkent-JH36ORCC-J0CMLAR2.cjs +1 -0
- package/dist/cpp-9IaFKtqm.cjs +1 -0
- package/dist/cpp-BWBwL8H2.js +19 -0
- package/dist/crystal-Bu5wFOgG.cjs +1 -0
- package/dist/crystal-DZ0RRcQB.js +18 -0
- package/dist/csharp-BSn8IIds.js +3 -0
- package/dist/csharp-DL064tVH.cjs +1 -0
- package/dist/css-CARKKeVZ.js +5 -0
- package/dist/css-Dedc30a-.cjs +1 -0
- package/dist/csv-CyUbk12o.js +3 -0
- package/dist/csv-yb5ne98b.cjs +1 -0
- package/dist/cue-BMD_ZKqV.js +3 -0
- package/dist/cue-BsqD5mfq.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-D56X6uF-.js +3 -0
- package/dist/cynefin-VYW2F7L2-DfMKgfBn.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-Ccm1ka2e.cjs +62 -0
- package/dist/cynefinDiagram-TSTJHNR4-LkTzYNHk.js +349 -0
- package/dist/cypher-CmLM-pVb.cjs +1 -0
- package/dist/cypher-MBxXk8fI.js +3 -0
- package/dist/cytoscape.esm-BJfLlyzE.cjs +321 -0
- package/dist/cytoscape.esm-CjrrPC2e.js +18151 -0
- package/dist/d-B1zD62h2.cjs +1 -0
- package/dist/d-Dr6f0t8l.js +3 -0
- package/dist/d2_markstream-vue-C462TwwW.js +5 -0
- package/dist/d2_markstream-vue-hk4WzRHI.cjs +1 -0
- package/dist/dagre-Cdkj1zk3.js +1603 -0
- package/dist/dagre-RL-7--pi.cjs +1 -0
- package/dist/dagre-VKFMJZFB-BTuSjqsN.js +326 -0
- package/dist/dagre-VKFMJZFB-D-LL1taY.cjs +4 -0
- package/dist/dark-plus-BiFR5lqb.js +4 -0
- package/dist/dark-plus-g9uFu8Uo.cjs +1 -0
- package/dist/dart-B-IpsYek.cjs +1 -0
- package/dist/dart-BKVVcZnx.js +3 -0
- package/dist/dax-DGyoV51j.cjs +1 -0
- package/dist/dax-julDJwHn.js +3 -0
- package/dist/defaultLocale-aSMWOJHq.js +201 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/desktop-C7pIXmgL.cjs +1 -0
- package/dist/desktop-DN7gePkB.js +3 -0
- package/dist/diagram-FQU43EPY-DXRLbyr1.cjs +3 -0
- package/dist/diagram-FQU43EPY-Nd_0dBIp.js +432 -0
- package/dist/diagram-G47NLZAW-C6QidYrt.cjs +24 -0
- package/dist/diagram-G47NLZAW-DsbgcrAn.js +525 -0
- package/dist/diagram-NH7WQ7WH-BIir8UdD.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-LBvy80o5.js +134 -0
- package/dist/diagram-OA4YK3LP-B6zIeHZO.cjs +30 -0
- package/dist/diagram-OA4YK3LP-wIkZDLSU.js +300 -0
- package/dist/diagram-WEI45ONY-DoJT44KW.cjs +41 -0
- package/dist/diagram-WEI45ONY-DuODSE5u.js +214 -0
- package/dist/diff-Pd8fJfZO.cjs +1 -0
- package/dist/diff-jiFCwOef.js +3 -0
- package/dist/dist-BD0EaJeM.js +42 -0
- package/dist/dist-BPaCZ1IA.cjs +3 -0
- package/dist/dist-BtUTYFnJ.js +6360 -0
- package/dist/dist-BxWvDA4U.js +59 -0
- package/dist/dist-CCXt4qM3.cjs +8 -0
- package/dist/dist-CS9eMk17.js +1588 -0
- package/dist/dist-Cu0Z5KOd.cjs +12 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/docker-DMpUQ2UE.js +3 -0
- package/dist/docker-OqFhd4tF.cjs +1 -0
- package/dist/dotenv-BNXs3SVk.js +3 -0
- package/dist/dotenv-skQA6mID.cjs +1 -0
- package/dist/dracula-B9CfY-AT.cjs +1 -0
- package/dist/dracula-DiGCm6b4.js +4 -0
- package/dist/dracula-soft-C5LEeGj9.js +4 -0
- package/dist/dracula-soft-IAqLIxBv.cjs +1 -0
- package/dist/dream-maker-DMoKJVoA.js +3 -0
- package/dist/dream-maker-Kuay-eJE.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-BPnqNNpq.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BVWfIZk7.cjs +1 -0
- package/dist/edge-DPKc6QBW.cjs +1 -0
- package/dist/edge-DewrpuZI.js +12 -0
- package/dist/elixir-BHncl6yR.js +5 -0
- package/dist/elixir-Bz8PD4t1.cjs +1 -0
- package/dist/elm-DFucj7BB.cjs +1 -0
- package/dist/elm-DQTVghsR.js +5 -0
- package/dist/emacs-lisp-BLYG10aJ.js +3 -0
- package/dist/emacs-lisp-DjdBmCDP.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-BDhFo6C9.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-DT6IAJLm.js +1727 -0
- package/dist/erb-BCBUKD2W.js +10 -0
- package/dist/erb-BrUkDVI_.cjs +1 -0
- package/dist/erlang-Dk9Hm-lN.cjs +1 -0
- package/dist/erlang-Hh_mGaXF.js +3 -0
- package/dist/eventmodeling-45OFAUF4-9NJTUpfs.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DhmcBUQs.js +3 -0
- package/dist/everforest-dark-B8U5Kz_2.cjs +1 -0
- package/dist/everforest-dark-DPbo4JN4.js +4 -0
- package/dist/everforest-light-3-FCa2iD.cjs +1 -0
- package/dist/everforest-light-E_X_ZD6H.js +4 -0
- package/dist/exports-C67Wizt6.js +16990 -0
- package/dist/exports-C8Eu-cBn.cjs +261 -0
- package/dist/fennel-F2TJW9Cm.js +3 -0
- package/dist/fennel-RU1EYi0I.cjs +1 -0
- package/dist/find-8kzfNl8Q.js +107 -0
- package/dist/find-D49DDMOn.cjs +1 -0
- package/dist/fish--5Qbt4_-.cjs +1 -0
- package/dist/fish-Cl8O7-1O.js +3 -0
- package/dist/flowDiagram-23GEKE2U-BIAXSHCZ.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-FteV-tpU.js +17 -0
- package/dist/fluent-B0YyYoEC.js +3 -0
- package/dist/fluent-CqQ_wVqT.cjs +1 -0
- package/dist/fortran-fixed-form-BPVXUvGc.cjs +1 -0
- package/dist/fortran-fixed-form-Cxg1zLtO.js +5 -0
- package/dist/fortran-free-form-f48WwHdi.js +3 -0
- package/dist/fortran-free-form-wAUw7GO7.cjs +1 -0
- package/dist/fsharp-D4kfoNJ7.js +5 -0
- package/dist/fsharp-Dkh04On7.cjs +1 -0
- package/dist/ganttDiagram-NO4QXBWP-B8AFbqrz.js +3084 -0
- package/dist/ganttDiagram-NO4QXBWP-iuUxsjHH.cjs +292 -0
- package/dist/gdresource-C3LE_wel.js +10 -0
- package/dist/gdresource-DOgNDMAP.cjs +1 -0
- package/dist/gdscript-697ItOg3.js +3 -0
- package/dist/gdscript-AA2UfFO_.cjs +1 -0
- package/dist/gdshader-BahZb96R.js +3 -0
- package/dist/gdshader-Bf5fzism.cjs +1 -0
- package/dist/genie-DaIfgQYl.js +3 -0
- package/dist/genie-IAbcuR8x.cjs +1 -0
- package/dist/gherkin-0dxzekuL.js +3 -0
- package/dist/gherkin-BOoUZ55R.cjs +1 -0
- package/dist/git-commit-CQ35rNAw.js +5 -0
- package/dist/git-commit-CoIFbnBM.cjs +1 -0
- package/dist/git-rebase-BUotlrNG.js +5 -0
- package/dist/git-rebase-bioQjlhA.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DQ-Mge2t.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DuFCGfar.js +3 -0
- package/dist/gitGraphDiagram-IHSO6WYX-CpjxCJlh.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-TXisRU_i.cjs +106 -0
- package/dist/github-dark-BVSmXPiH.js +4 -0
- package/dist/github-dark-default-D_WiUS3j.cjs +1 -0
- package/dist/github-dark-default-VbvJ-ilw.js +4 -0
- package/dist/github-dark-dimmed-BVZ6NmlH.js +4 -0
- package/dist/github-dark-dimmed-CF-d-yzu.cjs +1 -0
- package/dist/github-dark-high-contrast-B28XrSlN.cjs +1 -0
- package/dist/github-dark-high-contrast-Cu_F5fce.js +4 -0
- package/dist/github-dark-lSLm2DGc.cjs +1 -0
- package/dist/github-light-5VJ9LmmZ.cjs +1 -0
- package/dist/github-light-Dtf7jHNG.js +4 -0
- package/dist/github-light-default-CfhvIofU.cjs +1 -0
- package/dist/github-light-default-ChKQp2aO.js +4 -0
- package/dist/github-light-high-contrast-2daONXzf.cjs +1 -0
- package/dist/github-light-high-contrast-CfdjYrkI.js +4 -0
- package/dist/gleam-DyHWdg1e.js +3 -0
- package/dist/gleam-uW2PZxh0.cjs +1 -0
- package/dist/glimmer-js-Ciof3QL9.js +14 -0
- package/dist/glimmer-js-DiIpfAHi.cjs +1 -0
- package/dist/glimmer-ts-BGK6t0VF.js +14 -0
- package/dist/glimmer-ts-D7kaiXm8.cjs +1 -0
- package/dist/glsl-BK7MJn4u.js +6 -0
- package/dist/glsl-QqXZ78Kg.cjs +1 -0
- package/dist/gnuplot-5XuWKCad.js +3 -0
- package/dist/gnuplot-CFHC6IzT.cjs +1 -0
- package/dist/go-Bv7fxmN-.cjs +1 -0
- package/dist/go-C_wi3fjb.js +3 -0
- package/dist/graphlib-B0pkl27u.cjs +1 -0
- package/dist/graphlib-DjREGp7-.js +340 -0
- package/dist/graphql--1t261Yk.js +15 -0
- package/dist/graphql-wVo4PHpT.cjs +1 -0
- package/dist/groovy-AC3I0XgS.cjs +1 -0
- package/dist/groovy-BmEdfp0z.js +3 -0
- package/dist/hack-C4FKqOSK.cjs +1 -0
- package/dist/hack-DK3t1k__.js +10 -0
- package/dist/haml-B3VLhRsZ.js +11 -0
- package/dist/haml-CQ-lzphw.cjs +1 -0
- package/dist/handlebars-POWurPLW.cjs +1 -0
- package/dist/handlebars-_qNUzqAO.js +14 -0
- package/dist/haskell-BVQlrU40.cjs +1 -0
- package/dist/haskell-CZshrN4v.js +3 -0
- package/dist/haxe-CIeDdEBx.js +3 -0
- package/dist/haxe-CidPNuKh.cjs +1 -0
- package/dist/hcl-BrEqO7Sq.cjs +1 -0
- package/dist/hcl-DRqyh8D_.js +3 -0
- package/dist/hjson-CVbBR8Ay.cjs +1 -0
- package/dist/hjson-D-HSEzgv.js +3 -0
- package/dist/hlsl-DQCtPnLa.js +3 -0
- package/dist/hlsl-ze_s5DJn.cjs +1 -0
- package/dist/houston-BscSB6JY.js +4 -0
- package/dist/houston-BtgI9cLW.cjs +1 -0
- package/dist/html-D_OBWe7R.js +11 -0
- package/dist/html-derivative-Dq3Sh7mm.cjs +1 -0
- package/dist/html-derivative-XT6VOD81.js +6 -0
- package/dist/html-mo6ldvys.cjs +1 -0
- package/dist/http-C2taPV9U.cjs +1 -0
- package/dist/http-CdMPSPdd.js +14 -0
- package/dist/hxml-CHo8HAT-.js +5 -0
- package/dist/hxml-Dkp_OvfK.cjs +1 -0
- package/dist/hy-DB6h75gj.js +3 -0
- package/dist/hy-JhxQ7Sq3.cjs +1 -0
- package/dist/imba-BMaY4ENg.cjs +1 -0
- package/dist/imba-B_ww4ZTP.js +5 -0
- package/dist/index.cjs +352 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +25941 -0
- package/dist/index2-Db29305J.cjs +1 -0
- package/dist/index2-QpsswhC2.js +129 -0
- package/dist/index3-B9UVcR3x.cjs +1 -0
- package/dist/index3-CSFQ35FU.js +125 -0
- package/dist/index4-BjmzmXkZ.cjs +2 -0
- package/dist/index4-CzKbdrmD.js +1166 -0
- package/dist/index5-CjNnYoXJ.js +688 -0
- package/dist/index5-CvMqoYtf.cjs +1 -0
- package/dist/index6-BUkE1lni.js +468 -0
- package/dist/index6-DwZeyaka.cjs +1 -0
- package/dist/index7-CCL1p1Eh.cjs +1 -0
- package/dist/index7-D-76uUB1.js +7 -0
- package/dist/info-DKCQHKI2-CVAfu3m_.cjs +1 -0
- package/dist/info-DKCQHKI2-X1UEZeu5.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-BQ-pmobf.js +20 -0
- package/dist/infoDiagram-FWYZ7A6U-BTUkuUAu.cjs +2 -0
- package/dist/infographic_markstream-vue-DH5naZYC.js +5 -0
- package/dist/infographic_markstream-vue-DMdeL6IU.cjs +1 -0
- package/dist/ini-1ngrKrS7.js +3 -0
- package/dist/ini-DrnN5Bei.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Co4dhKfe.js +15 -0
- package/dist/isEmpty-9fTBY8_5.js +929 -0
- package/dist/isEmpty-DaIHfoaK.cjs +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DAFpMtyi.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-Dldh7OZP.js +719 -0
- package/dist/java-CCeor0rw.js +5 -0
- package/dist/java-DtOeEWAB.cjs +1 -0
- package/dist/javascript-1Zv2m4qT.cjs +1 -0
- package/dist/javascript-Bx27vxbw.js +5 -0
- package/dist/jinja-Bo4OY5rp.cjs +1 -0
- package/dist/jinja-DUV-rjqE.js +5 -0
- package/dist/jison-BHS26PqW.cjs +1 -0
- package/dist/jison-lY_a1uD8.js +5 -0
- package/dist/journeyDiagram-5HDEW3XC-BoJvuLAJ.cjs +139 -0
- package/dist/journeyDiagram-5HDEW3XC-DWc-P146.js +884 -0
- package/dist/json-As0Z6gXq.js +5 -0
- package/dist/json-B31_sYlO.cjs +1 -0
- package/dist/json5-B0AZLeeE.cjs +1 -0
- package/dist/json5-CkR44bl5.js +3 -0
- package/dist/jsonc-BhRQOhO0.js +3 -0
- package/dist/jsonc-zSGaK820.cjs +1 -0
- package/dist/jsonl-BWEDeKY6.js +3 -0
- package/dist/jsonl-mSW-3clM.cjs +1 -0
- package/dist/jsonnet-D8xj-VWe.js +3 -0
- package/dist/jsonnet-xnK8ISOr.cjs +1 -0
- package/dist/jssm-BqqNlOWn.js +3 -0
- package/dist/jssm-Dc68VWf8.cjs +1 -0
- package/dist/jsx-CHdPoawR.cjs +1 -0
- package/dist/jsx-DcWc-BUA.js +5 -0
- package/dist/julia-A2t8dw8p.cjs +1 -0
- package/dist/julia-JllIpLrt.js +16 -0
- package/dist/kanagawa-dragon-C_H008Ji.cjs +1 -0
- package/dist/kanagawa-dragon-CzUH0vOV.js +4 -0
- package/dist/kanagawa-lotus-CWHrabz1.js +4 -0
- package/dist/kanagawa-lotus-DuABjfU_.cjs +1 -0
- package/dist/kanagawa-wave-B27tzldJ.js +4 -0
- package/dist/kanagawa-wave-D93njvJc.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-4QNogezI.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-CSpYoE2w.cjs +89 -0
- package/dist/katex-mzuGQl-k.cjs +257 -0
- package/dist/katex-uQfgtQZ-.js +21962 -0
- package/dist/kotlin-CkALtvL4.js +3 -0
- package/dist/kotlin-x64ufdmW.cjs +1 -0
- package/dist/kusto-Cc3N9caa.js +3 -0
- package/dist/kusto-YvjJ-Hwr.cjs +1 -0
- package/dist/languageIconExtended-5rP5TRI7.cjs +116 -0
- package/dist/languageIconExtended-BKBNbfml.js +37 -0
- package/dist/laserwave-Q0rnzsLB.js +4 -0
- package/dist/laserwave-TFMEGQQo.cjs +1 -0
- package/dist/latex-B4owy79D.js +5 -0
- package/dist/latex-DPkqFaSl.cjs +1 -0
- package/dist/lean-CYVERefS.cjs +1 -0
- package/dist/lean-Dg5VYRtH.js +3 -0
- package/dist/less-BW5l_msz.js +3 -0
- package/dist/less-DKjtszmK.cjs +1 -0
- package/dist/light-plus-D1TTTooO.js +4 -0
- package/dist/light-plus-lbGw82Zw.cjs +1 -0
- package/dist/line-QnKkzT3y.js +34 -0
- package/dist/line-umMVu17Q.cjs +1 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/linear-D5gAG4Dc.js +289 -0
- package/dist/liquid-DOhZfMRk.cjs +1 -0
- package/dist/liquid-DbDSSGUn.js +14 -0
- package/dist/log-C02Mufkv.js +3 -0
- package/dist/log-Dn7sU6Qz.cjs +1 -0
- package/dist/logo-CCpvPvYW.cjs +1 -0
- package/dist/logo-CESV6ppB.js +3 -0
- package/dist/lua-BWV9zmiO.js +6 -0
- package/dist/lua-BZylxbuX.cjs +1 -0
- package/dist/luau-CO1iqemL.js +3 -0
- package/dist/luau-D5ttg_a3.cjs +1 -0
- package/dist/make-BorM9pEX.js +3 -0
- package/dist/make-OoJyrwI_.cjs +1 -0
- package/dist/map-CnWYCApZ.cjs +1 -0
- package/dist/map-DmTyBWxT.js +16 -0
- package/dist/markdown-Dehhcpca.cjs +1 -0
- package/dist/markdown-bvZ2LFQ7.js +3 -0
- package/dist/marko-9qP7O73P.js +14 -0
- package/dist/marko-CkDNu79_.cjs +1 -0
- package/dist/material-theme-BkOXIsau.cjs +1 -0
- package/dist/material-theme-RBxZ7zcK.js +4 -0
- package/dist/material-theme-darker-CDq_a3lh.cjs +1 -0
- package/dist/material-theme-darker-CJJd5EpQ.js +4 -0
- package/dist/material-theme-lighter-0ylr_FPD.js +4 -0
- package/dist/material-theme-lighter-CSQ2VYal.cjs +1 -0
- package/dist/material-theme-ocean-BlU8W8uQ.js +4 -0
- package/dist/material-theme-ocean-kObtq4AQ.cjs +1 -0
- package/dist/material-theme-palenight-D1I1vvpR.cjs +1 -0
- package/dist/material-theme-palenight-Di4FHq0q.js +4 -0
- package/dist/matlab-CL6DKGr6.cjs +1 -0
- package/dist/matlab-CWaaTDe1.js +3 -0
- package/dist/mdc-D8ytkkcj.js +12 -0
- package/dist/mdc-DixMyBlq.cjs +1 -0
- package/dist/mdx-BYvRDPL7.cjs +1 -0
- package/dist/mdx-CwEa7e3y.js +3 -0
- package/dist/mermaid-CX3dK12k.cjs +1 -0
- package/dist/mermaid-Z3pEhdr4.js +3 -0
- package/dist/mermaid-parser.core-Bhhg_EMD.js +638 -0
- package/dist/mermaid-parser.core-C0weIoPn.cjs +6 -0
- package/dist/mermaid.core-CbBmSLjg.js +817 -0
- package/dist/mermaid.core-CsEkQu6v.cjs +10 -0
- package/dist/mhchem-CGx3NnwF.js +1762 -0
- package/dist/mhchem-DMzgkAws.cjs +1 -0
- package/dist/min-dark-BRRwK1lu.js +4 -0
- package/dist/min-dark-BVfJIgG3.cjs +1 -0
- package/dist/min-light-Bqm_Wy8m.js +4 -0
- package/dist/min-light-CpbVExmt.cjs +1 -0
- package/dist/mindmap-definition-LN4V7U3C-B29e6fR_.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-BUSRrZX0.js +1008 -0
- package/dist/mipsasm-CmvfwuBg.js +3 -0
- package/dist/mipsasm-Dmsj67N7.cjs +1 -0
- package/dist/mojo-CFCIR8gy.cjs +1 -0
- package/dist/mojo-emijrbEC.js +3 -0
- package/dist/monokai-BQ1cZfkR.cjs +1 -0
- package/dist/monokai-KOBwLR5r.js +4 -0
- package/dist/move-BtWg9WSG.js +3 -0
- package/dist/move-DFUk3AJ3.cjs +1 -0
- package/dist/narrat-CE6tJc3S.js +3 -0
- package/dist/narrat-DfhrkvLZ.cjs +1 -0
- package/dist/netstar-ai-chat.css +2 -0
- package/dist/nextflow-D8RM97Up.cjs +1 -0
- package/dist/nextflow-DIQqWNA9.js +3 -0
- package/dist/nginx-8x8qY3Vr.js +5 -0
- package/dist/nginx-DFfEIEnK.cjs +1 -0
- package/dist/night-owl-C0QObreH.cjs +1 -0
- package/dist/night-owl-DS6PHOBH.js +4 -0
- package/dist/nim-BIbchMrJ.cjs +1 -0
- package/dist/nim-nIS1y_GA.js +20 -0
- package/dist/nix-BeOLKLuV.js +3 -0
- package/dist/nix-D5-3ErHy.cjs +1 -0
- package/dist/nord-CA9ic6hU.cjs +1 -0
- package/dist/nord-CqaxQpqw.js +4 -0
- package/dist/nushell-BNdP_dr6.cjs +1 -0
- package/dist/nushell-BSiFk-Bi.js +3 -0
- package/dist/objective-c-BoPltVXU.cjs +1 -0
- package/dist/objective-c-D4ODnIJv.js +3 -0
- package/dist/objective-cpp-BC5VHuf6.cjs +1 -0
- package/dist/objective-cpp-CFzZBsJ8.js +3 -0
- package/dist/ocaml-DjzTWzJR.cjs +1 -0
- package/dist/ocaml-ygyAtqA3.js +3 -0
- package/dist/one-dark-pro-BiLpJ3Ut.cjs +1 -0
- package/dist/one-dark-pro-n87lL4ex.js +4 -0
- package/dist/one-light-BHJM53xo.cjs +1 -0
- package/dist/one-light-DHV5uJWg.js +4 -0
- package/dist/ordinal-95c16pGC.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-CWI1wkgR.js +3 -0
- package/dist/packet-7NZHBO7P-olpQFy19.cjs +1 -0
- package/dist/pascal-BCxfk_0K.cjs +1 -0
- package/dist/pascal-Cp3o03W3.js +3 -0
- package/dist/path-BECm07xX.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-5may-nQh.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-BlS7jv2X.js +94 -0
- package/dist/perl-B32vckzd.cjs +1 -0
- package/dist/perl-Caha11sj.js +16 -0
- package/dist/php-BZdcwfk-.cjs +1 -0
- package/dist/php-Dd_dF-AL.js +18 -0
- package/dist/pie-RZYD4A2V-CyOF19CW.js +3 -0
- package/dist/pie-RZYD4A2V-KV7VmSAP.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-B5uibzAn.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-peGWddZk.cjs +39 -0
- package/dist/plastic-CFgeDarh.cjs +1 -0
- package/dist/plastic-CfcNj0mY.js +4 -0
- package/dist/plsql-ak2Z7rg2.cjs +1 -0
- package/dist/plsql-x7conUc6.js +3 -0
- package/dist/po--CQNV_Eo.js +3 -0
- package/dist/po-DPOakX0_.cjs +1 -0
- package/dist/poimandres-B2kS4VCU.cjs +1 -0
- package/dist/poimandres-CSgoTNSr.js +4 -0
- package/dist/polar-DZoPeUtu.js +3 -0
- package/dist/polar-MGc0OyxL.cjs +1 -0
- package/dist/postcss-BAYQYIpZ.js +3 -0
- package/dist/postcss-DwSR_Nna.cjs +1 -0
- package/dist/powerquery-B9PiNUFU.js +3 -0
- package/dist/powerquery-bShN3jEf.cjs +1 -0
- package/dist/powershell-DGeGpYK6.cjs +1 -0
- package/dist/powershell-DmbTGv4H.js +3 -0
- package/dist/prisma-DcdjiSgR.js +3 -0
- package/dist/prisma-qjGbhxmN.cjs +1 -0
- package/dist/prolog-3Sh8TEBQ.js +3 -0
- package/dist/prolog-DOzeE1gX.cjs +1 -0
- package/dist/proto-BKmbHU2z.js +3 -0
- package/dist/proto-CQtcOaoZ.cjs +1 -0
- package/dist/pug-CQRIElQa.cjs +1 -0
- package/dist/pug-PKxYWb_o.js +12 -0
- package/dist/puppet-CMc7WUL-.js +3 -0
- package/dist/puppet-DXMJeNAQ.cjs +1 -0
- package/dist/purescript-BmHbM-d_.cjs +1 -0
- package/dist/purescript-CJV-ANk0.js +3 -0
- package/dist/python-Dgo3Imqt.js +3 -0
- package/dist/python-y8JZoKTg.cjs +1 -0
- package/dist/qml-DGggscta.cjs +1 -0
- package/dist/qml-znAETRGB.js +5 -0
- package/dist/qmldir-BSWsNKCW.js +3 -0
- package/dist/qmldir-Wb6QN41x.cjs +1 -0
- package/dist/qss-P1EyCZ52.js +3 -0
- package/dist/qss-b49hd9Kf.cjs +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-0axZxxZT.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-el6K_cdK.js +2001 -0
- package/dist/r-Q1Syx2NF.js +5 -0
- package/dist/r-VgF6jsMr.cjs +1 -0
- package/dist/racket-DIriCx31.cjs +1 -0
- package/dist/racket-DKb_r0U5.js +3 -0
- package/dist/radar-I7S5WNFK-BjTQsjn9.cjs +1 -0
- package/dist/radar-I7S5WNFK-DXOk1lH0.js +3 -0
- package/dist/railroad-3IZDKUUU-BudmQt4z.js +3 -0
- package/dist/railroad-3IZDKUUU-CVKrVFrS.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BEuRVGxN.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-Bs1OWkDS.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-Cih63c2z.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-DN3oF240.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6--hTz8Aio.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6-DbHn_Dfb.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-CCPPrI-t.js +76 -0
- package/dist/railroadDiagram-RFXS5EU6-DI-XxXi4.cjs +1 -0
- package/dist/raku-DM0xz1qH.js +3 -0
- package/dist/raku-aSFsj2VS.cjs +1 -0
- package/dist/razor-ClXepwCg.cjs +1 -0
- package/dist/razor-DoIrK7wH.js +10 -0
- package/dist/red-CuDZBeel.js +4 -0
- package/dist/red-utLotyz8.cjs +1 -0
- package/dist/reg-Bc7EZp_L.js +3 -0
- package/dist/reg-GmnSXO4L.cjs +1 -0
- package/dist/regexp-CjKnir1L.js +5 -0
- package/dist/regexp-CjwGKeJO.cjs +1 -0
- package/dist/rel-DMLolXbX.cjs +1 -0
- package/dist/rel-DT4yPypn.js +3 -0
- package/dist/requirementDiagram-TGXJPOKE-BxnKsGpN.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-FQoCKQHp.js +2223 -0
- package/dist/riscv-9-ahY7jN.js +3 -0
- package/dist/riscv-DWfvSg0U.cjs +1 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rose-pine-BTVbOgGM.cjs +1 -0
- package/dist/rose-pine-Dsg47IX4.js +4 -0
- package/dist/rose-pine-dawn-C49-oxm2.js +4 -0
- package/dist/rose-pine-dawn-y8-MyOw6.cjs +1 -0
- package/dist/rose-pine-moon-BZmq4QbO.cjs +1 -0
- package/dist/rose-pine-moon-D19T_UYY.js +4 -0
- package/dist/rough.esm-B7woRVjF.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/rst-9SsxKThC.cjs +1 -0
- package/dist/rst-Ct-G6CIi.js +22 -0
- package/dist/ruby-CHhXdqUe.js +30 -0
- package/dist/ruby-q98Sa-C-.cjs +1 -0
- package/dist/rust-BbRDDZlI.js +3 -0
- package/dist/rust-DhJ-EsMg.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-1N6666do.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-CRbnmmPK.js +970 -0
- package/dist/sas-DhbnVUXW.cjs +1 -0
- package/dist/sas-nwN47Ppz.js +5 -0
- package/dist/sass-C3mlvlBn.js +3 -0
- package/dist/sass-MDtHeILc.cjs +1 -0
- package/dist/scala-BV3NjK9f.cjs +1 -0
- package/dist/scala-GwvQo9dz.js +3 -0
- package/dist/scheme-C_T6Gr_E.js +3 -0
- package/dist/scheme-DaNTt7Ra.cjs +1 -0
- package/dist/scss-KLMxyv4f.js +6 -0
- package/dist/scss-KgcvXJOI.cjs +1 -0
- package/dist/sdbl-9Nf-vYL_.cjs +1 -0
- package/dist/sdbl-BGVcFmba.js +3 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B0eyTzj-.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-ouUfS-aJ.cjs +162 -0
- package/dist/shaderlab-AMREd5T9.cjs +1 -0
- package/dist/shaderlab-yvRlOGRS.js +5 -0
- package/dist/shellscript-BRXFilKi.cjs +1 -0
- package/dist/shellscript-DsmUQZdg.js +5 -0
- package/dist/shellsession-BtjfrBaH.cjs +1 -0
- package/dist/shellsession-DQ_F9Wr_.js +5 -0
- package/dist/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/slack-dark-BzBaQ0xz.js +4 -0
- package/dist/slack-dark-DDeCEapU.cjs +1 -0
- package/dist/slack-ochin-Cnjuvrsj.js +4 -0
- package/dist/slack-ochin-DLKW_Bxr.cjs +1 -0
- package/dist/smalltalk-BN2TAEzt.js +3 -0
- package/dist/smalltalk-Dfg_7NMl.cjs +1 -0
- package/dist/snazzy-light-CO8ltd4m.js +4 -0
- package/dist/snazzy-light-Cb_pyD6_.cjs +1 -0
- package/dist/solarized-dark-CqgMwhwG.cjs +1 -0
- package/dist/solarized-dark-vcCVwuVC.js +4 -0
- package/dist/solarized-light-BgVA2R62.js +4 -0
- package/dist/solarized-light-U0ItNhXi.cjs +1 -0
- package/dist/solidity-bpqb7ojf.cjs +1 -0
- package/dist/solidity-idpkkykB.js +3 -0
- package/dist/soy-D11BGnGf.cjs +1 -0
- package/dist/soy-D5hACXEU.js +5 -0
- package/dist/sparql-D2f6sVo0.cjs +1 -0
- package/dist/sparql-DvWZ0oTn.js +5 -0
- package/dist/splunk-CC1SfDSs.cjs +1 -0
- package/dist/splunk-W3Nh1Gtf.js +3 -0
- package/dist/sql-BE7gM4sJ.js +5 -0
- package/dist/sql-CAKohXJZ.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DR6txdQ-.js +2142 -0
- package/dist/ssh-config-Dn_5wFSU.cjs +1 -0
- package/dist/ssh-config-lL0vBG-J.js +3 -0
- package/dist/stata-DeV05m63.js +5 -0
- package/dist/stata-ckWyZ9G6.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DaporqgM.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-DrVYkEQ-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-DZ0YarTq.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-iNhJP0se.js +30 -0
- package/dist/stylus-7dQPGNPK.js +3 -0
- package/dist/stylus-CEIbUfUR.cjs +1 -0
- package/dist/svelte-BBzqqTAG.cjs +1 -0
- package/dist/svelte-DuClbIDV.js +14 -0
- package/dist/swift-BfppNwCZ.js +3 -0
- package/dist/swift-Dbq1ciSe.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-BkAqjD-a.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-Cl0MBCBd.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bh7l_29Y.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bs_bljXb.js +31 -0
- package/dist/synthwave-84-CmyDaNXM.js +4 -0
- package/dist/synthwave-84-vhaAnDJD.cjs +1 -0
- package/dist/system-verilog-CBp9ww7I.js +3 -0
- package/dist/system-verilog-DyrRIUre.cjs +1 -0
- package/dist/systemd-CimDnTNX.cjs +1 -0
- package/dist/systemd-oFJVdchd.js +3 -0
- package/dist/talonscript-2QSX5qC5.cjs +1 -0
- package/dist/talonscript-BxIWRwbR.js +3 -0
- package/dist/tasl-Bxh5A0Un.js +3 -0
- package/dist/tasl-DkVK1Vvo.cjs +1 -0
- package/dist/tcl-CNIcTZox.cjs +1 -0
- package/dist/tcl-Yv5TG6Ev.js +3 -0
- package/dist/templ-BNN_ssr9.cjs +1 -0
- package/dist/templ-BxsPIKhr.js +12 -0
- package/dist/terraform-CGGCPjBs.cjs +1 -0
- package/dist/terraform-DLFpHj9I.js +3 -0
- package/dist/tex-DPBa3hMF.cjs +1 -0
- package/dist/tex-DZPZ_tE0.js +5 -0
- package/dist/timeline-definition-FHXFAJF6-Cb_8gFYP.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-FkgzuuoZ.js +1069 -0
- package/dist/tokyo-night-BmmxIDHp.js +4 -0
- package/dist/tokyo-night-DXq-AiCd.cjs +1 -0
- package/dist/toml-CJQRMfJQ.cjs +1 -0
- package/dist/toml-Dm2pJ9O8.js +3 -0
- package/dist/treeView-QDETBFTQ-B_LvJjui.cjs +1 -0
- package/dist/treeView-QDETBFTQ-WaAklEEa.js +3 -0
- package/dist/treemap-6X3UGDF4-BZ8Ptxjo.cjs +1 -0
- package/dist/treemap-6X3UGDF4-TbJH_2rS.js +3 -0
- package/dist/ts-tags-BgTM9Oo9.js +38 -0
- package/dist/ts-tags-aCZsPrDI.cjs +1 -0
- package/dist/tsv-AfvsdcL-.js +3 -0
- package/dist/tsv-CrGD5YUm.cjs +1 -0
- package/dist/tsx-Bx4pCqLJ.js +5 -0
- package/dist/tsx-CqEtpJwc.cjs +1 -0
- package/dist/turtle-CSKPMBVG.js +3 -0
- package/dist/turtle-hKghkgYb.cjs +1 -0
- package/dist/twig-B4TBRIrX.cjs +1 -0
- package/dist/twig-BawUFy9o.js +18 -0
- package/dist/types/agent.d.ts +199 -0
- package/dist/typescript-BPkdvRNZ.js +5 -0
- package/dist/typescript-CjwIFskf.cjs +1 -0
- package/dist/typespec-BTz_JMOP.js +3 -0
- package/dist/typespec-DouelPXK.cjs +1 -0
- package/dist/typst-CE4u0InM.js +3 -0
- package/dist/typst-tWpJew-N.cjs +1 -0
- package/dist/v-BsQ8V6u8.js +3 -0
- package/dist/v-C8s-zsPQ.cjs +1 -0
- package/dist/vala-DM-_wXAy.cjs +1 -0
- package/dist/vala-YJiBqBnL.js +3 -0
- package/dist/vb-Bex0KYEQ.js +3 -0
- package/dist/vb-C9lJKj2z.cjs +1 -0
- package/dist/vennDiagram-L72KCM5P-DRanJu29.cjs +34 -0
- package/dist/vennDiagram-L72KCM5P-DigPDc3M.js +1880 -0
- package/dist/verilog-BGHQfpqH.js +3 -0
- package/dist/verilog-DirKIM6M.cjs +1 -0
- package/dist/vesper-B2O42csv.js +4 -0
- package/dist/vesper-DvpD9Vcf.cjs +1 -0
- package/dist/vhdl-BfmNQSSn.js +3 -0
- package/dist/vhdl-CNJHrCfd.cjs +1 -0
- package/dist/viml-B611mZED.cjs +1 -0
- package/dist/viml-CEz_TDNf.js +3 -0
- package/dist/vitesse-black-DC0QCRHA.js +4 -0
- package/dist/vitesse-black-NsXXFHlu.cjs +1 -0
- package/dist/vitesse-dark-Bv5Yx4Rj.js +4 -0
- package/dist/vitesse-dark-D0Ji9E-l.cjs +1 -0
- package/dist/vitesse-light-1Wh4YtKa.cjs +1 -0
- package/dist/vitesse-light-DYJDYLfk.js +4 -0
- package/dist/vue-DPEJC1L8.js +21 -0
- package/dist/vue-DwTH6YhB.cjs +1 -0
- package/dist/vue-html-CDRAOas6.js +10 -0
- package/dist/vue-html-THpxvSNU.cjs +1 -0
- package/dist/vue-i18n-3JaSdo8e.cjs +5 -0
- package/dist/vue-i18n-C_VfkvBa.js +3020 -0
- package/dist/vyper-9K4scKvw.js +3 -0
- package/dist/vyper-c-_n3oeH.cjs +1 -0
- package/dist/wardley-OPB4EBWU-B1lggTfF.cjs +1 -0
- package/dist/wardley-OPB4EBWU-GZ7F_2Eb.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-DQE0RgUA.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-ZqPLK5FR.cjs +78 -0
- package/dist/wasm-B9xa8Mue.js +4 -0
- package/dist/wasm-BIF3u71S.js +3 -0
- package/dist/wasm-DLWzvvDm.cjs +1 -0
- package/dist/wasm-DcRxl4j_.cjs +1 -0
- package/dist/wenyan-6FBHpKQQ.js +3 -0
- package/dist/wenyan-BQyJDXGi.cjs +1 -0
- package/dist/wgsl-0onuchT4.js +3 -0
- package/dist/wgsl-CZxSYjuU.cjs +1 -0
- package/dist/wikitext-C6FMYqyf.js +3 -0
- package/dist/wikitext-DKu5qD0V.cjs +1 -0
- package/dist/wolfram-B2KhbCjm.cjs +1 -0
- package/dist/wolfram-BuhvgrGp.js +3 -0
- package/dist/xml-B8vy9UOv.js +6 -0
- package/dist/xml-CQVcpGJ_.cjs +1 -0
- package/dist/xsl-B6FtdfnY.cjs +1 -0
- package/dist/xsl-DiaKo18G.js +5 -0
- package/dist/xychartDiagram-FW5EYKEG-9RCD4gzs.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-B_EUKZ5E.js +2102 -0
- package/dist/yaml-B-_wC7KV.cjs +1 -0
- package/dist/yaml-CANEFoqw.js +5 -0
- package/dist/zenscript-BSqTPUXj.cjs +1 -0
- package/dist/zenscript-DpMcKymA.js +3 -0
- package/dist/zig-DBCpOdKI.cjs +1 -0
- package/dist/zig-DWkMyyIZ.js +3 -0
- package/package.json +68 -0
|
@@ -0,0 +1,1588 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/stream-markdown@0.0.16_shiki@2.5.0_vue@3.6.0-beta.8_typescript@5.9.3_/node_modules/stream-markdown/dist/index.js
|
|
2
|
+
var e = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e.get(t) ?? 0;
|
|
5
|
+
}
|
|
6
|
+
function n(n) {
|
|
7
|
+
let r = t(n) + 1;
|
|
8
|
+
return e.set(n, r), r;
|
|
9
|
+
}
|
|
10
|
+
function r(t) {
|
|
11
|
+
e.delete(t);
|
|
12
|
+
}
|
|
13
|
+
var i = 30, a = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
function o(e) {
|
|
15
|
+
a.delete(e);
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
let t = a.get(e);
|
|
19
|
+
return t || (t = /* @__PURE__ */ new Map(), a.set(e, t)), t;
|
|
20
|
+
}
|
|
21
|
+
function c(e) {
|
|
22
|
+
return typeof e?.htmlCacheMaxEntries == "number" ? Math.max(0, Math.floor(e.htmlCacheMaxEntries)) : i;
|
|
23
|
+
}
|
|
24
|
+
function l(e, t, n) {
|
|
25
|
+
let r = n?.htmlCache !== !1, i = c(n);
|
|
26
|
+
if (!r || i <= 0) return;
|
|
27
|
+
let a = s(e), o = a.get(t);
|
|
28
|
+
return o && (a.delete(t), a.set(t, o)), o;
|
|
29
|
+
}
|
|
30
|
+
function u(e, t, n, r) {
|
|
31
|
+
let i = r?.htmlCache !== !1, a = c(r);
|
|
32
|
+
if (!i || a <= 0) return;
|
|
33
|
+
let o = s(e);
|
|
34
|
+
if (o.set(t, n), o.size > a) {
|
|
35
|
+
let e = o.keys().next().value;
|
|
36
|
+
e !== void 0 && o.delete(e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var d = 50, f = /* @__PURE__ */ new WeakMap();
|
|
40
|
+
function p(e) {
|
|
41
|
+
let t = f.get(e);
|
|
42
|
+
return t || (t = /* @__PURE__ */ new Map(), f.set(e, t)), t;
|
|
43
|
+
}
|
|
44
|
+
function m(e) {
|
|
45
|
+
f.delete(e);
|
|
46
|
+
}
|
|
47
|
+
function h(e, n, r, i, a) {
|
|
48
|
+
let o = a?.tokenCache !== !1, s = typeof a?.tokenCacheMaxEntries == "number" ? Math.max(0, Math.floor(a.tokenCacheMaxEntries)) : d, c = e, l = () => {
|
|
49
|
+
if (typeof c.codeToThemedTokens == "function") return c.codeToThemedTokens(n, r, i);
|
|
50
|
+
if (typeof c.codeToTokens == "function") return c.codeToTokens(n, {
|
|
51
|
+
lang: r,
|
|
52
|
+
theme: i
|
|
53
|
+
}).tokens;
|
|
54
|
+
throw TypeError("Highlighter does not support token APIs: codeToThemedTokens/codeToTokens");
|
|
55
|
+
};
|
|
56
|
+
if (!o || s <= 0) return l();
|
|
57
|
+
let u = p(e), f = JSON.stringify([
|
|
58
|
+
"stream-markdown-token-v2",
|
|
59
|
+
t(e),
|
|
60
|
+
r,
|
|
61
|
+
i,
|
|
62
|
+
n
|
|
63
|
+
]), m = u.get(f);
|
|
64
|
+
if (m) return u.delete(f), u.set(f, m), m;
|
|
65
|
+
let h = l();
|
|
66
|
+
if (u.set(f, h), u.size > s) {
|
|
67
|
+
let e = u.keys().next().value;
|
|
68
|
+
e !== void 0 && u.delete(e);
|
|
69
|
+
}
|
|
70
|
+
return h;
|
|
71
|
+
}
|
|
72
|
+
var g = /* @__PURE__ */ "jsx.tsx.vue.csharp.python.java.c.cpp.rust.go.powershell.sql.json.html.javascript.typescript.css.markdown.xml.yaml.toml.dockerfile.kotlin.objective-c.objective-cpp.php.ruby.scala.svelte.swift.erlang.angular-html.angular-ts.dart.lua.mermaid.cmake.nginx".split("."), _ = ["vitesse-dark", "vitesse-light"], v = null, y = null, b = /* @__PURE__ */ new Set(), x = [], S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new Map(), E = Promise.resolve(), D = 0, O = ["loadLanguage", "loadTheme"], k = /* @__PURE__ */ new WeakMap();
|
|
73
|
+
function A(e) {
|
|
74
|
+
n(e), m(e), o(e);
|
|
75
|
+
}
|
|
76
|
+
function j(e, t) {
|
|
77
|
+
let n = k.get(e)?.[t];
|
|
78
|
+
if (n) return n;
|
|
79
|
+
let r = e[t];
|
|
80
|
+
return typeof r == "function" ? r : void 0;
|
|
81
|
+
}
|
|
82
|
+
function M(e, t) {
|
|
83
|
+
return !!j(e, t);
|
|
84
|
+
}
|
|
85
|
+
async function ee(e, t, ...n) {
|
|
86
|
+
let r = j(e, t);
|
|
87
|
+
r && await r.apply(e, n);
|
|
88
|
+
}
|
|
89
|
+
function te(e, t, n) {
|
|
90
|
+
if (v === e) {
|
|
91
|
+
if (t === "loadLanguage") {
|
|
92
|
+
for (let e of n) typeof e == "string" && S.add(e);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
for (let e of n) ae(e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function ne(e, t, n) {
|
|
99
|
+
te(e, t, n), A(e);
|
|
100
|
+
}
|
|
101
|
+
function re(e) {
|
|
102
|
+
if (k.has(e)) return;
|
|
103
|
+
let t = {}, n = e;
|
|
104
|
+
for (let r of O) {
|
|
105
|
+
let i = n[r];
|
|
106
|
+
typeof i == "function" && (t[r] = i, n[r] = (...t) => {
|
|
107
|
+
let n;
|
|
108
|
+
try {
|
|
109
|
+
n = i.apply(e, t);
|
|
110
|
+
} catch (t) {
|
|
111
|
+
throw A(e), t;
|
|
112
|
+
}
|
|
113
|
+
return n && typeof n.then == "function" ? n.then((n) => (ne(e, r, t), n), (t) => {
|
|
114
|
+
throw A(e), t;
|
|
115
|
+
}) : (ne(e, r, t), n);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
k.set(e, t);
|
|
119
|
+
}
|
|
120
|
+
function N(e, t) {
|
|
121
|
+
return D === t && v === e;
|
|
122
|
+
}
|
|
123
|
+
function P(e) {
|
|
124
|
+
try {
|
|
125
|
+
let t = e.dispose?.();
|
|
126
|
+
t && typeof t.catch == "function" && t.catch(() => void 0);
|
|
127
|
+
} catch {}
|
|
128
|
+
}
|
|
129
|
+
function F(e) {
|
|
130
|
+
if (typeof e == "string") return e;
|
|
131
|
+
try {
|
|
132
|
+
let t = e?.name;
|
|
133
|
+
return typeof t == "string" ? t : void 0;
|
|
134
|
+
} catch {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function I(e) {
|
|
139
|
+
return !!e && typeof e == "object";
|
|
140
|
+
}
|
|
141
|
+
function L(e, t) {
|
|
142
|
+
return t === void 0 ? { __streamMarkdownType: e } : {
|
|
143
|
+
__streamMarkdownType: e,
|
|
144
|
+
value: t
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function R(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
148
|
+
if (e === null || typeof e == "boolean" || typeof e == "string") return e;
|
|
149
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : L("number", String(e));
|
|
150
|
+
if (e === void 0) return L("undefined");
|
|
151
|
+
if (typeof e == "bigint") return L("bigint", e.toString());
|
|
152
|
+
if (typeof e == "symbol") return L("symbol", String(e));
|
|
153
|
+
if (typeof e == "function") return L("function", e.name || "");
|
|
154
|
+
if (typeof e != "object") return L(typeof e);
|
|
155
|
+
if (t.has(e)) return L("circular");
|
|
156
|
+
t.add(e);
|
|
157
|
+
try {
|
|
158
|
+
if (Array.isArray(e)) return e.map((e) => R(e, t));
|
|
159
|
+
let n = e, r = {};
|
|
160
|
+
for (let e of Object.keys(n).sort()) r[e] = R(n[e], t);
|
|
161
|
+
return r;
|
|
162
|
+
} finally {
|
|
163
|
+
t.delete(e);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function z(e) {
|
|
167
|
+
if (I(e)) try {
|
|
168
|
+
return JSON.stringify(R(e));
|
|
169
|
+
} catch {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function ie(e) {
|
|
174
|
+
if (!I(e)) return;
|
|
175
|
+
let t = F(e), n = t ? T.get(t) : w.get(e);
|
|
176
|
+
return n?.generation === D ? n.fingerprint : void 0;
|
|
177
|
+
}
|
|
178
|
+
function B(e) {
|
|
179
|
+
if (typeof e == "string") return C.has(e);
|
|
180
|
+
let t = z(e);
|
|
181
|
+
return t !== void 0 && ie(e) === t;
|
|
182
|
+
}
|
|
183
|
+
function ae(e) {
|
|
184
|
+
if (typeof e == "string") {
|
|
185
|
+
C.add(e), T.delete(e);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (!I(e)) return;
|
|
189
|
+
let t = F(e), n = z(e);
|
|
190
|
+
if (n !== void 0) {
|
|
191
|
+
let r = {
|
|
192
|
+
generation: D,
|
|
193
|
+
fingerprint: n
|
|
194
|
+
};
|
|
195
|
+
t ? T.set(t, r) : w.set(e, r);
|
|
196
|
+
}
|
|
197
|
+
t && C.delete(t);
|
|
198
|
+
}
|
|
199
|
+
function oe(e, t) {
|
|
200
|
+
for (let t of e) S.add(t);
|
|
201
|
+
for (let e of t) ae(e);
|
|
202
|
+
}
|
|
203
|
+
function se(e) {
|
|
204
|
+
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
205
|
+
for (let r of e) {
|
|
206
|
+
if (typeof r == "string") {
|
|
207
|
+
t.add(r);
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
I(r) && n.add(r);
|
|
211
|
+
}
|
|
212
|
+
x = x.filter((e) => typeof e == "string" ? !t.has(e) : !(I(e) && n.has(e)));
|
|
213
|
+
}
|
|
214
|
+
function ce(e) {
|
|
215
|
+
for (let t of e) S.has(t) || b.add(t);
|
|
216
|
+
}
|
|
217
|
+
function le(e) {
|
|
218
|
+
return x.findIndex((t) => F(t) === e);
|
|
219
|
+
}
|
|
220
|
+
function ue(e) {
|
|
221
|
+
return x.includes(e);
|
|
222
|
+
}
|
|
223
|
+
function de(e) {
|
|
224
|
+
for (let t of e) {
|
|
225
|
+
let e = F(t);
|
|
226
|
+
if (e) {
|
|
227
|
+
let n = le(e);
|
|
228
|
+
if (n !== -1) {
|
|
229
|
+
B(t) ? x.splice(n, 1) : x[n] = t;
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
} else if (I(t) && ue(t)) continue;
|
|
233
|
+
B(t) || x.push(t);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function fe(e) {
|
|
237
|
+
for (let t of e) {
|
|
238
|
+
if (B(t)) continue;
|
|
239
|
+
let e = F(t);
|
|
240
|
+
e && le(e) !== -1 || !e && I(t) && ue(t) || x.push(t);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async function pe(e, t) {
|
|
244
|
+
if (!N(e, t)) return;
|
|
245
|
+
let n = Array.from(b).filter((e) => !S.has(e)), r = x.filter((e) => !B(e));
|
|
246
|
+
b.clear(), x = [];
|
|
247
|
+
let i = !1, a = !1, o = !1, s = 0, c = 0;
|
|
248
|
+
try {
|
|
249
|
+
if (n.length > 0 && M(e, "loadLanguage")) for (; s < n.length; s++) {
|
|
250
|
+
let r = n[s];
|
|
251
|
+
if (!S.has(r)) {
|
|
252
|
+
if (a = !0, await ee(e, "loadLanguage", r), !N(e, t)) return;
|
|
253
|
+
S.add(r), i = !0;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (r.length > 0 && M(e, "loadTheme")) for (; c < r.length; c++) {
|
|
257
|
+
let n = r[c];
|
|
258
|
+
if (!B(n)) {
|
|
259
|
+
if (a = !0, await ee(e, "loadTheme", n), !N(e, t)) return;
|
|
260
|
+
ae(n), i = !0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
} catch (i) {
|
|
264
|
+
if (!N(e, t)) return;
|
|
265
|
+
a && (A(e), o = !0);
|
|
266
|
+
let l = n.slice(s), u = r.slice(c);
|
|
267
|
+
for (let e of l) S.has(e) || b.add(e);
|
|
268
|
+
throw fe(u), i;
|
|
269
|
+
} finally {
|
|
270
|
+
i && !o && N(e, t) && A(e);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
async function me(e, t = D) {
|
|
274
|
+
let n = E.catch(() => void 0).then(() => {
|
|
275
|
+
if (N(e, t)) return pe(e, t);
|
|
276
|
+
});
|
|
277
|
+
return E = n.catch(() => void 0), n;
|
|
278
|
+
}
|
|
279
|
+
async function V(e = {}) {
|
|
280
|
+
let t = !e.langs || e.langs.length === 0 ? g : e.langs, n = !e.themes || e.themes.length === 0 ? _ : e.themes;
|
|
281
|
+
ce(t), de(n);
|
|
282
|
+
let r = D;
|
|
283
|
+
if (v) {
|
|
284
|
+
let t = v;
|
|
285
|
+
return await me(t, r), r !== D || v !== t ? V(e) : t;
|
|
286
|
+
}
|
|
287
|
+
if (!y) {
|
|
288
|
+
let e = D, t = (async () => {
|
|
289
|
+
let { createHighlighter: t } = await import("./dist-BtUTYFnJ.js"), n = x.length > 0 ? x.slice() : _, r = b.size > 0 ? Array.from(b) : g, i = await t({
|
|
290
|
+
themes: n,
|
|
291
|
+
langs: r
|
|
292
|
+
});
|
|
293
|
+
if (e !== D) return P(i), i;
|
|
294
|
+
re(i), oe(r, n);
|
|
295
|
+
for (let e of r) b.delete(e);
|
|
296
|
+
return se(n), v = i, await me(i, e), i;
|
|
297
|
+
})().finally(() => {
|
|
298
|
+
y === t && (y = null);
|
|
299
|
+
});
|
|
300
|
+
y = t;
|
|
301
|
+
}
|
|
302
|
+
let i = await y;
|
|
303
|
+
return r !== D || (await me(i, r), r !== D || v !== i) ? V(e) : i;
|
|
304
|
+
}
|
|
305
|
+
function he() {
|
|
306
|
+
D++;
|
|
307
|
+
let e = v;
|
|
308
|
+
v = null, y = null, e && (r(e), m(e), o(e), P(e)), b.clear(), x = [], S.clear(), C.clear(), T.clear(), E = Promise.resolve();
|
|
309
|
+
}
|
|
310
|
+
var ge = /^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i, _e = /^[a-z][a-z0-9-]*$/i, ve = /^--[\w-]+$/, ye = /* @__PURE__ */ new Set([
|
|
311
|
+
"rgb",
|
|
312
|
+
"rgba",
|
|
313
|
+
"hsl",
|
|
314
|
+
"hsla",
|
|
315
|
+
"hwb",
|
|
316
|
+
"lab",
|
|
317
|
+
"lch",
|
|
318
|
+
"oklab",
|
|
319
|
+
"oklch",
|
|
320
|
+
"color",
|
|
321
|
+
"color-mix",
|
|
322
|
+
"light-dark",
|
|
323
|
+
"var",
|
|
324
|
+
"calc",
|
|
325
|
+
"min",
|
|
326
|
+
"max",
|
|
327
|
+
"clamp"
|
|
328
|
+
]), be = /([a-z][\w-]*)\s*\(/gi;
|
|
329
|
+
function xe(e) {
|
|
330
|
+
if (e == null || !Number.isFinite(e) || e <= 0) return "";
|
|
331
|
+
let t = [];
|
|
332
|
+
return e & 1 && t.push("font-style: italic;"), e & 2 && t.push("font-weight: 600;"), e & 4 && t.push("text-decoration: underline; text-underline-offset: 0.15em;"), t.join(" ");
|
|
333
|
+
}
|
|
334
|
+
var Se = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map(), Te = [], Ee = 3, H = 0, De = "", Oe = -1, ke = /* @__PURE__ */ new WeakMap();
|
|
335
|
+
function Ae(e) {
|
|
336
|
+
for (let t = 0; t < e.length; t++) {
|
|
337
|
+
let n = e.charCodeAt(t);
|
|
338
|
+
if (n <= 31 || n === 127 || "!;\"'{}<>\\".includes(e[t])) return !0;
|
|
339
|
+
}
|
|
340
|
+
return !1;
|
|
341
|
+
}
|
|
342
|
+
function je(e) {
|
|
343
|
+
return !e || Ae(e) || /url\s*\(|\/\*|@/i.test(e) || !Me(e) ? !1 : Ne(e);
|
|
344
|
+
}
|
|
345
|
+
function Me(e) {
|
|
346
|
+
let t = 0;
|
|
347
|
+
for (let n = 0; n < e.length; n++) {
|
|
348
|
+
let r = e[n];
|
|
349
|
+
if (r === "(") {
|
|
350
|
+
t++;
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
if (r === ")" && (t--, t < 0)) return !1;
|
|
354
|
+
}
|
|
355
|
+
return t === 0;
|
|
356
|
+
}
|
|
357
|
+
function Ne(e) {
|
|
358
|
+
be.lastIndex = 0;
|
|
359
|
+
let t;
|
|
360
|
+
for (; t = be.exec(e);) {
|
|
361
|
+
let e = t[1].toLowerCase();
|
|
362
|
+
if (!ye.has(e)) return !1;
|
|
363
|
+
}
|
|
364
|
+
return !0;
|
|
365
|
+
}
|
|
366
|
+
function Pe(e) {
|
|
367
|
+
let t = e.indexOf("(");
|
|
368
|
+
if (t <= 0 || !e.endsWith(")")) return !1;
|
|
369
|
+
let n = e.slice(0, t).trim().toLowerCase();
|
|
370
|
+
if (!ye.has(n)) return !1;
|
|
371
|
+
if (n !== "var") return !0;
|
|
372
|
+
let r = e.slice(t + 1, -1).trim(), i = r.indexOf(","), a = (i === -1 ? r : r.slice(0, i)).trim();
|
|
373
|
+
return ve.test(a);
|
|
374
|
+
}
|
|
375
|
+
function Fe(e) {
|
|
376
|
+
return ge.test(e) || _e.test(e) || Pe(e);
|
|
377
|
+
}
|
|
378
|
+
function Ie(e) {
|
|
379
|
+
if (typeof e != "string") return "";
|
|
380
|
+
let t = e.trim();
|
|
381
|
+
return !t || !je(t) ? "" : Fe(t) ? t : "";
|
|
382
|
+
}
|
|
383
|
+
function Le(e, t) {
|
|
384
|
+
let n = Ie(e), r = `${n}|${t ?? 0}`, i = Ce.get(r);
|
|
385
|
+
if (i !== void 0) return i;
|
|
386
|
+
let a = `${n ? `color: ${n};` : ""}${xe(t)}`;
|
|
387
|
+
return Ce.set(r, a), a;
|
|
388
|
+
}
|
|
389
|
+
function Re(e) {
|
|
390
|
+
return e.replace(/&/g, "&").replace(/"/g, """);
|
|
391
|
+
}
|
|
392
|
+
function ze(e, t) {
|
|
393
|
+
return Le(e, t);
|
|
394
|
+
}
|
|
395
|
+
function Be(e) {
|
|
396
|
+
let t = 2166136261, n = 5381;
|
|
397
|
+
for (let r = 0; r < e.length; r++) {
|
|
398
|
+
let i = e.charCodeAt(r);
|
|
399
|
+
t ^= i, t = Math.imul(t, 16777619), n = Math.imul(n, 33) ^ i;
|
|
400
|
+
}
|
|
401
|
+
return `${(t >>> 0).toString(36)}-${(n >>> 0).toString(36)}`;
|
|
402
|
+
}
|
|
403
|
+
function Ve(e) {
|
|
404
|
+
return Array.from({ length: Ee }, () => `.${e}`).join("");
|
|
405
|
+
}
|
|
406
|
+
function He(e) {
|
|
407
|
+
if (!e) return "";
|
|
408
|
+
let t = Se.get(e);
|
|
409
|
+
if (t) return t;
|
|
410
|
+
let n = `smd-token-${Be(e)}`, r = n, i = 1;
|
|
411
|
+
for (;;) {
|
|
412
|
+
let t = we.get(r);
|
|
413
|
+
if (!t) return Se.set(e, r), we.set(r, e), Te.push(`${Ve(r)}{${e}}`), H++, r;
|
|
414
|
+
if (t === e) return Se.set(e, r), r;
|
|
415
|
+
r = `${n}-${i++}`;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function Ue(e, t) {
|
|
419
|
+
let n = Le(e, t);
|
|
420
|
+
return n ? ` style="${Re(n)}"` : "";
|
|
421
|
+
}
|
|
422
|
+
function We(e, t) {
|
|
423
|
+
let n = Le(e, t);
|
|
424
|
+
if (!n) return "";
|
|
425
|
+
let r = He(n);
|
|
426
|
+
return r ? ` class="${r}"` : "";
|
|
427
|
+
}
|
|
428
|
+
function U(e, t, n = "inline") {
|
|
429
|
+
return n === "class" ? We(e, t) : Ue(e, t);
|
|
430
|
+
}
|
|
431
|
+
function Ge(e, t, n, r = "inline") {
|
|
432
|
+
let i = Le(t, n);
|
|
433
|
+
if (i) {
|
|
434
|
+
if (r === "class") {
|
|
435
|
+
let t = He(i);
|
|
436
|
+
if (t) {
|
|
437
|
+
e.className = t;
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
e.setAttribute("style", i);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function W(e) {
|
|
446
|
+
return e.nodeType === 9;
|
|
447
|
+
}
|
|
448
|
+
function Ke(e) {
|
|
449
|
+
return e.nodeType === 11 && "host" in e;
|
|
450
|
+
}
|
|
451
|
+
function qe(e) {
|
|
452
|
+
if (e === null) return null;
|
|
453
|
+
if (e !== void 0) {
|
|
454
|
+
if (W(e) || Ke(e)) return e;
|
|
455
|
+
if (e.isConnected === !1) return null;
|
|
456
|
+
let t = typeof e.getRootNode == "function" ? e.getRootNode() : null;
|
|
457
|
+
return t && (W(t) || Ke(t)) ? t : e.ownerDocument ?? null;
|
|
458
|
+
}
|
|
459
|
+
return typeof document < "u" ? document : null;
|
|
460
|
+
}
|
|
461
|
+
function Je(e) {
|
|
462
|
+
return qe(e) != null;
|
|
463
|
+
}
|
|
464
|
+
function Ye(e, t, n = "inline") {
|
|
465
|
+
let r = e ?? n;
|
|
466
|
+
return (r === "auto" || r === "class") && Je(t) ? "class" : "inline";
|
|
467
|
+
}
|
|
468
|
+
function Xe(e) {
|
|
469
|
+
return W(e) ? e : e.ownerDocument;
|
|
470
|
+
}
|
|
471
|
+
function Ze(e, t) {
|
|
472
|
+
if (W(e)) {
|
|
473
|
+
(e.head ?? e.documentElement).appendChild(t);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
e.appendChild(t);
|
|
477
|
+
}
|
|
478
|
+
function Qe(e, t) {
|
|
479
|
+
if (typeof t.getRootNode == "function") return t.getRootNode() === e;
|
|
480
|
+
let n = e.contains;
|
|
481
|
+
return typeof n == "function" ? n.call(e, t) : t.ownerDocument === e && t.isConnected === !0;
|
|
482
|
+
}
|
|
483
|
+
function $e(e, t) {
|
|
484
|
+
return t.ownerDocument === Xe(e) ? W(e) ? Qe(e, t) : t.parentNode === e : !1;
|
|
485
|
+
}
|
|
486
|
+
function et() {
|
|
487
|
+
return Oe !== H && (De = Te.join("\n"), Oe = H), De;
|
|
488
|
+
}
|
|
489
|
+
function tt(e) {
|
|
490
|
+
if (Te.length === 0) return;
|
|
491
|
+
let t = qe(e);
|
|
492
|
+
if (!t) return;
|
|
493
|
+
let n = ke.get(t);
|
|
494
|
+
if (!n || !$e(t, n.element)) {
|
|
495
|
+
let e = Xe(t).createElement("style");
|
|
496
|
+
e.dataset.streamMarkdownTokenStyles = "", Ze(t, e), n = {
|
|
497
|
+
element: e,
|
|
498
|
+
generation: -1
|
|
499
|
+
}, ke.set(t, n);
|
|
500
|
+
}
|
|
501
|
+
let r = et();
|
|
502
|
+
n.generation === H && n.element.textContent === r || (n.element.textContent = r, n.generation = H);
|
|
503
|
+
}
|
|
504
|
+
function nt(e) {
|
|
505
|
+
let t = 1;
|
|
506
|
+
for (let n = 0; n < e.length; n++) e.charCodeAt(n) === 10 && t++;
|
|
507
|
+
return t;
|
|
508
|
+
}
|
|
509
|
+
function rt(e, t, n = !1) {
|
|
510
|
+
let r = nt(t), i = n ? e.map((e) => e.slice()) : e;
|
|
511
|
+
return i.length > r && (i = i.slice(0, r)), i.length < r && (i = i.concat(Array.from({ length: r - i.length }, () => []))), i;
|
|
512
|
+
}
|
|
513
|
+
function it(e) {
|
|
514
|
+
return e.replace(/\r/g, "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
515
|
+
}
|
|
516
|
+
function at(e) {
|
|
517
|
+
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
518
|
+
}
|
|
519
|
+
function ot(e) {
|
|
520
|
+
return typeof e != "number" || !Number.isFinite(e) ? 1 : Math.trunc(e);
|
|
521
|
+
}
|
|
522
|
+
function st(e) {
|
|
523
|
+
return e.styleRoot === void 0 ? typeof document < "u" ? document : void 0 : e.styleRoot;
|
|
524
|
+
}
|
|
525
|
+
function ct(e, n, r) {
|
|
526
|
+
let { lang: i, theme: a, preClass: o = "shiki", codeClass: s = "", lineClass: c = "line", showLineNumbers: d = !1, startingLineNumber: f = 1 } = r, p = ot(f), m = st(r), g = Ye(r.tokenStyleMode, m, "inline"), _;
|
|
527
|
+
try {
|
|
528
|
+
_ = e.getTheme?.(a)?.bg;
|
|
529
|
+
} catch {}
|
|
530
|
+
let v = Ie(_), y = JSON.stringify([
|
|
531
|
+
"stream-markdown-html-v3",
|
|
532
|
+
t(e),
|
|
533
|
+
g,
|
|
534
|
+
v,
|
|
535
|
+
i,
|
|
536
|
+
a,
|
|
537
|
+
o,
|
|
538
|
+
s,
|
|
539
|
+
c,
|
|
540
|
+
d,
|
|
541
|
+
p,
|
|
542
|
+
n
|
|
543
|
+
]), b = r.tokenLines == null;
|
|
544
|
+
if (b) {
|
|
545
|
+
let t = l(e, y, {
|
|
546
|
+
htmlCache: r.htmlCache,
|
|
547
|
+
htmlCacheMaxEntries: r.htmlCacheMaxEntries
|
|
548
|
+
});
|
|
549
|
+
if (t) return g === "class" && tt(m), t;
|
|
550
|
+
}
|
|
551
|
+
let x = r.tokenLines ? rt(r.tokenLines, n, !0) : rt(h(e, n, i, a, {
|
|
552
|
+
tokenCache: r.tokenCache,
|
|
553
|
+
tokenCacheMaxEntries: r.tokenCacheMaxEntries
|
|
554
|
+
}), n), S = p, C = x.map((e) => {
|
|
555
|
+
let t = g === "class" ? (() => {
|
|
556
|
+
let t = "", n = 0;
|
|
557
|
+
for (; n < e.length;) {
|
|
558
|
+
let r = e[n], i = U(r.color, r.fontStyle, g), a = r.content;
|
|
559
|
+
for (n++; n < e.length;) {
|
|
560
|
+
let t = e[n];
|
|
561
|
+
if (U(t.color, t.fontStyle, g) !== i) break;
|
|
562
|
+
a += t.content, n++;
|
|
563
|
+
}
|
|
564
|
+
t += `<span${i}>${it(a)}</span>`;
|
|
565
|
+
}
|
|
566
|
+
return t;
|
|
567
|
+
})() : e.map((e) => `<span${U(e.color, e.fontStyle, g)}>${it(e.content)}</span>`).join(""), n = d ? `<span class="line-number" data-line="${S++}"></span>` : "";
|
|
568
|
+
return `<span class="${at(c)}">${n}${t}</span>`;
|
|
569
|
+
}).join("\n"), w = v ? ` style="background-color: ${at(v)};"` : "", T = `<pre class="${at(o)}"${w}><code${s ? ` class="${at(s)}"` : ""}>${C}</code></pre>`;
|
|
570
|
+
return g === "class" && tt(m), b && u(e, y, T, {
|
|
571
|
+
htmlCache: r.htmlCache,
|
|
572
|
+
htmlCacheMaxEntries: r.htmlCacheMaxEntries
|
|
573
|
+
}), T;
|
|
574
|
+
}
|
|
575
|
+
var G = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap();
|
|
576
|
+
function pt(e) {
|
|
577
|
+
let t = 1;
|
|
578
|
+
for (let n = 0; n < e.length; n++) e.charCodeAt(n) === 10 && t++;
|
|
579
|
+
return t;
|
|
580
|
+
}
|
|
581
|
+
function mt(e, t, n = !1) {
|
|
582
|
+
let r = pt(t), i = n ? e.map((e) => e.slice()) : e;
|
|
583
|
+
return i.length > r && (i = i.slice(0, r)), i.length < r && (i = i.concat(Array.from({ length: r - i.length }, () => []))), i;
|
|
584
|
+
}
|
|
585
|
+
function ht(e) {
|
|
586
|
+
return e?.map((e) => e.map((e) => ({ ...e })));
|
|
587
|
+
}
|
|
588
|
+
function gt(e) {
|
|
589
|
+
return typeof e != "number" || !Number.isFinite(e) ? 1 : Math.trunc(e);
|
|
590
|
+
}
|
|
591
|
+
function _t(e) {
|
|
592
|
+
let t = pt(e), n = Math.ceil(e.length / 6);
|
|
593
|
+
return Math.min(8e3, t + n);
|
|
594
|
+
}
|
|
595
|
+
function vt(e) {
|
|
596
|
+
return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? 0 : e;
|
|
597
|
+
}
|
|
598
|
+
function yt(e, t = 50) {
|
|
599
|
+
if (typeof e?.timeRemaining != "function") return t;
|
|
600
|
+
let n = e.timeRemaining();
|
|
601
|
+
return typeof n == "number" && Number.isFinite(n) && n >= 0 ? n : t;
|
|
602
|
+
}
|
|
603
|
+
function K(e) {
|
|
604
|
+
return e.replace(/\r/g, "");
|
|
605
|
+
}
|
|
606
|
+
function bt(e) {
|
|
607
|
+
return K(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
608
|
+
}
|
|
609
|
+
function xt(e) {
|
|
610
|
+
return JSON.stringify([
|
|
611
|
+
e.lang,
|
|
612
|
+
e.theme,
|
|
613
|
+
e.backgroundColor,
|
|
614
|
+
e.highlighterRevision,
|
|
615
|
+
e.tokenStyleMode,
|
|
616
|
+
e.preClass,
|
|
617
|
+
e.codeClass,
|
|
618
|
+
e.lineClass,
|
|
619
|
+
e.showLineNumbers,
|
|
620
|
+
e.startingLineNumber
|
|
621
|
+
]);
|
|
622
|
+
}
|
|
623
|
+
function St(e, t) {
|
|
624
|
+
try {
|
|
625
|
+
let n = e.getTheme?.(t);
|
|
626
|
+
return Ie(n?.bg);
|
|
627
|
+
} catch {
|
|
628
|
+
return "";
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
function Ct(e) {
|
|
632
|
+
return e.getAttribute("class") ?? "";
|
|
633
|
+
}
|
|
634
|
+
function wt(e) {
|
|
635
|
+
return e ? `background-color: ${e};` : "";
|
|
636
|
+
}
|
|
637
|
+
function Tt(e, t) {
|
|
638
|
+
if (!t) return "";
|
|
639
|
+
let n = e.createElement("pre");
|
|
640
|
+
return n.setAttribute("style", t), n.style.cssText.trim();
|
|
641
|
+
}
|
|
642
|
+
function Et(e, t) {
|
|
643
|
+
let n = e.getAttribute("style") ?? "", r = wt(t);
|
|
644
|
+
return n === r ? !0 : Tt(e.ownerDocument, n) === Tt(e.ownerDocument, r);
|
|
645
|
+
}
|
|
646
|
+
function Dt(e, t, n) {
|
|
647
|
+
let r = t.parentElement;
|
|
648
|
+
return !!r && r.tagName.toLowerCase() === "pre" && r.parentElement === e && e.childNodes.length === 1 && e.firstChild === r && r.childNodes.length === 1 && r.firstChild === t && Ct(r) === n.preClass && Ct(t) === n.codeClass && Et(r, n.backgroundColor);
|
|
649
|
+
}
|
|
650
|
+
function Ot(e) {
|
|
651
|
+
dt.delete(e), G.delete(e), ft.delete(e);
|
|
652
|
+
}
|
|
653
|
+
function kt(e, t, n) {
|
|
654
|
+
dt.set(e, t), G.set(e, n);
|
|
655
|
+
let r = e.querySelector("code");
|
|
656
|
+
r ? ft.set(e, r.innerHTML) : ft.delete(e);
|
|
657
|
+
}
|
|
658
|
+
function At(e, t) {
|
|
659
|
+
lt.set(e, t), ut.set(e, e.innerHTML);
|
|
660
|
+
}
|
|
661
|
+
function jt(e) {
|
|
662
|
+
let t = lt.get(e);
|
|
663
|
+
if (t) {
|
|
664
|
+
if (ut.get(e) !== e.innerHTML) {
|
|
665
|
+
lt.delete(e), ut.delete(e);
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
return t;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function Mt(e, t) {
|
|
672
|
+
return ft.get(e) === t.innerHTML;
|
|
673
|
+
}
|
|
674
|
+
function Nt(e, t) {
|
|
675
|
+
return e.styleRoot === void 0 ? t : e.styleRoot;
|
|
676
|
+
}
|
|
677
|
+
function Pt(e, t) {
|
|
678
|
+
return Ye(e.tokenStyleMode, t, "class");
|
|
679
|
+
}
|
|
680
|
+
function q(e, t) {
|
|
681
|
+
t === "class" && tt(e);
|
|
682
|
+
}
|
|
683
|
+
function Ft(e) {
|
|
684
|
+
return e.trim().split(/\s+/).filter(Boolean);
|
|
685
|
+
}
|
|
686
|
+
function It(e, t) {
|
|
687
|
+
let n = Array.from(e.children), r = Ft(t);
|
|
688
|
+
return r.length === 0 ? n : n.filter((e) => r.every((t) => e.classList.contains(t)));
|
|
689
|
+
}
|
|
690
|
+
function Lt(e) {
|
|
691
|
+
return K(e).split("\n");
|
|
692
|
+
}
|
|
693
|
+
function Rt(e, t) {
|
|
694
|
+
return e.tagName.toLowerCase() === "span" && Ct(e) === t;
|
|
695
|
+
}
|
|
696
|
+
function zt(e, t) {
|
|
697
|
+
if (t.length === 0) return e.childNodes.length === 0;
|
|
698
|
+
if (e.childNodes.length !== t.length * 2 - 1) return !1;
|
|
699
|
+
for (let n = 0; n < t.length; n++) {
|
|
700
|
+
let r = n * 2;
|
|
701
|
+
if (e.childNodes[r] !== t[n]) return !1;
|
|
702
|
+
if (n < t.length - 1) {
|
|
703
|
+
let t = e.childNodes[r + 1];
|
|
704
|
+
if (!t || t.nodeType !== 3 || t.textContent !== "\n") return !1;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
return !0;
|
|
708
|
+
}
|
|
709
|
+
function Bt(e, t, n, r) {
|
|
710
|
+
let i = Lt(n);
|
|
711
|
+
if (t.length !== e.children.length || t.length !== i.length || !zt(e, t)) return !1;
|
|
712
|
+
for (let e = 0; e < t.length; e++) {
|
|
713
|
+
let n = t[e];
|
|
714
|
+
if (!Rt(n, r) || (n.textContent ?? "").replace(/\r/g, "") !== i[e]) return !1;
|
|
715
|
+
}
|
|
716
|
+
return !0;
|
|
717
|
+
}
|
|
718
|
+
function Vt(e, t, n, r) {
|
|
719
|
+
let i = "";
|
|
720
|
+
if (r === "inline") for (let t of e) {
|
|
721
|
+
let e = U(t.color, t.fontStyle, r);
|
|
722
|
+
i += `<span${e}>${bt(t.content)}</span>`;
|
|
723
|
+
}
|
|
724
|
+
else {
|
|
725
|
+
let t = 0;
|
|
726
|
+
for (; t < e.length;) {
|
|
727
|
+
let n = e[t], a = U(n.color, n.fontStyle, r), o = K(n.content);
|
|
728
|
+
for (t++; t < e.length;) {
|
|
729
|
+
let n = e[t];
|
|
730
|
+
if (U(n.color, n.fontStyle, r) !== a) break;
|
|
731
|
+
o += K(n.content), t++;
|
|
732
|
+
}
|
|
733
|
+
i += `<span${a}>${bt(o)}</span>`;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return `${t && typeof n == "number" ? `<span class="line-number" data-line="${n}"></span>` : ""}${i}`;
|
|
737
|
+
}
|
|
738
|
+
function J(e, t, n, r) {
|
|
739
|
+
let i = [r, t && typeof n == "number" ? n : ""], a = 0;
|
|
740
|
+
for (; a < e.length;) {
|
|
741
|
+
let t = ze(e[a].color, e[a].fontStyle), n = "";
|
|
742
|
+
for (; a < e.length;) {
|
|
743
|
+
let i = e[a];
|
|
744
|
+
if (n += K(i.content), a++, r !== "class" || a >= e.length || ze(e[a].color, e[a].fontStyle) !== t) break;
|
|
745
|
+
}
|
|
746
|
+
i.push(t, n.length, n);
|
|
747
|
+
}
|
|
748
|
+
return JSON.stringify(i);
|
|
749
|
+
}
|
|
750
|
+
function Ht(e, t, n, r, i, a, o) {
|
|
751
|
+
let s = a.createElement("span");
|
|
752
|
+
if (s.className = r, t && typeof n == "number") {
|
|
753
|
+
let e = a.createElement("span");
|
|
754
|
+
e.className = "line-number", e.dataset.line = String(n), s.appendChild(e);
|
|
755
|
+
}
|
|
756
|
+
let c = 0;
|
|
757
|
+
for (; c < e.length;) {
|
|
758
|
+
let t = e[c], n = ze(t.color, t.fontStyle), r = K(t.content);
|
|
759
|
+
if (c++, i === "class") for (; c < e.length;) {
|
|
760
|
+
let t = e[c];
|
|
761
|
+
if (ze(t.color, t.fontStyle) !== n) break;
|
|
762
|
+
r += K(t.content), c++;
|
|
763
|
+
}
|
|
764
|
+
let o = a.createElement("span");
|
|
765
|
+
Ge(o, t.color, t.fontStyle, i), o.textContent = r, s.appendChild(o);
|
|
766
|
+
}
|
|
767
|
+
return o && At(s, o), s;
|
|
768
|
+
}
|
|
769
|
+
function Ut(e, n, r, i) {
|
|
770
|
+
if (!e) return "noop";
|
|
771
|
+
let { lang: a, theme: o, preClass: s = "shiki", codeClass: c = "", lineClass: l = "line", showLineNumbers: u = !1, startingLineNumber: d = 1, tokenLines: f } = i, p = gt(d), m = i.compareMode ?? "signature", g = e.ownerDocument, _ = Nt(i, e), v = Pt(i, _), y = St(n, o), b = xt({
|
|
772
|
+
lang: a,
|
|
773
|
+
theme: o,
|
|
774
|
+
backgroundColor: y,
|
|
775
|
+
highlighterRevision: t(n),
|
|
776
|
+
tokenStyleMode: v,
|
|
777
|
+
preClass: s,
|
|
778
|
+
codeClass: c,
|
|
779
|
+
lineClass: l,
|
|
780
|
+
showLineNumbers: u,
|
|
781
|
+
startingLineNumber: p
|
|
782
|
+
}), x = (t) => (kt(e, r, b), i.onResult?.(t), t), S = () => (e.innerHTML = ct(n, r, {
|
|
783
|
+
lang: a,
|
|
784
|
+
theme: o,
|
|
785
|
+
preClass: s,
|
|
786
|
+
codeClass: c,
|
|
787
|
+
lineClass: l,
|
|
788
|
+
showLineNumbers: u,
|
|
789
|
+
startingLineNumber: p,
|
|
790
|
+
tokenCache: i.tokenCache,
|
|
791
|
+
tokenCacheMaxEntries: i.tokenCacheMaxEntries,
|
|
792
|
+
htmlCache: i.htmlCache,
|
|
793
|
+
htmlCacheMaxEntries: i.htmlCacheMaxEntries,
|
|
794
|
+
tokenLines: f,
|
|
795
|
+
styleRoot: _,
|
|
796
|
+
tokenStyleMode: v
|
|
797
|
+
}), x("full")), C = e.querySelector("code");
|
|
798
|
+
if (C && q(_, v), !C || !Dt(e, C, {
|
|
799
|
+
preClass: s,
|
|
800
|
+
codeClass: c,
|
|
801
|
+
backgroundColor: y
|
|
802
|
+
}) || G.get(e) !== b) return S();
|
|
803
|
+
let w = dt.get(e);
|
|
804
|
+
if (typeof w != "string" || (C.textContent ?? "").replace(/\r/g, "") !== w.replace(/\r/g, "")) return S();
|
|
805
|
+
let T = It(C, l);
|
|
806
|
+
if (!Bt(C, T, w, l)) return S();
|
|
807
|
+
let E = f ? mt(f, r, !0) : mt(h(n, r, a, o, {
|
|
808
|
+
tokenCache: i.tokenCache,
|
|
809
|
+
tokenCacheMaxEntries: i.tokenCacheMaxEntries
|
|
810
|
+
}), r), D = E.length, O = T.length;
|
|
811
|
+
if (i.appendOnlyFastPath === !0 && typeof w == "string" && w.length > 0 && r.startsWith(w) && r !== w && O > 0 && pt(w) === O) {
|
|
812
|
+
let e = O - 1, t = u ? p + e : void 0, n = m === "signature" ? J(E[e], u, t, v) : void 0, r = Ht(E[e], u, t, l, v, g, n);
|
|
813
|
+
for (T[e].innerHTML = ""; r.firstChild;) T[e].appendChild(r.firstChild);
|
|
814
|
+
if (n && At(T[e], n), D > O) {
|
|
815
|
+
let e = g.createDocumentFragment(), t = p + O;
|
|
816
|
+
for (let n = O; n < D; n++) {
|
|
817
|
+
e.appendChild(g.createTextNode("\n"));
|
|
818
|
+
let r = u ? t : void 0, i = m === "signature" ? J(E[n], u, r, v) : void 0, a = Ht(E[n], u, r, l, v, g, i);
|
|
819
|
+
e.appendChild(a), t++;
|
|
820
|
+
}
|
|
821
|
+
C.appendChild(e);
|
|
822
|
+
}
|
|
823
|
+
return q(_, v), x("incremental");
|
|
824
|
+
}
|
|
825
|
+
let k = -1, A = Math.min(O, D), j = p;
|
|
826
|
+
for (let e = 0; e < A; e++) {
|
|
827
|
+
let t = u ? j : void 0, n = T[e];
|
|
828
|
+
if (m === "signature") {
|
|
829
|
+
let r = J(E[e], u, t, v), i = jt(n);
|
|
830
|
+
if (i) {
|
|
831
|
+
if (i !== r) {
|
|
832
|
+
k = e;
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
} else {
|
|
836
|
+
let i = Vt(E[e], u, t, v);
|
|
837
|
+
if (n.innerHTML !== i) {
|
|
838
|
+
k = e;
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
At(n, r);
|
|
842
|
+
}
|
|
843
|
+
} else {
|
|
844
|
+
let r = Vt(E[e], u, t, v);
|
|
845
|
+
if (n.innerHTML !== r) {
|
|
846
|
+
k = e;
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
j++;
|
|
851
|
+
}
|
|
852
|
+
if (k === -1) {
|
|
853
|
+
if (D > O) {
|
|
854
|
+
let e = g.createDocumentFragment(), t = p + O;
|
|
855
|
+
for (let n = O; n < D; n++) {
|
|
856
|
+
e.appendChild(g.createTextNode("\n"));
|
|
857
|
+
let r = u ? t : void 0, i = m === "signature" ? J(E[n], u, r, v) : void 0, a = Ht(E[n], u, r, l, v, g, i);
|
|
858
|
+
e.appendChild(a), t++;
|
|
859
|
+
}
|
|
860
|
+
return C.appendChild(e), q(_, v), x("incremental");
|
|
861
|
+
}
|
|
862
|
+
return D < O ? S() : (q(_, v), x("noop"));
|
|
863
|
+
}
|
|
864
|
+
if (k >= O - 1) {
|
|
865
|
+
let e = u ? p + k : void 0, t = m === "signature" ? J(E[k], u, e, v) : void 0, n = Ht(E[k], u, e, l, v, g, t);
|
|
866
|
+
for (T[k].innerHTML = ""; n.firstChild;) T[k].appendChild(n.firstChild);
|
|
867
|
+
if (t && At(T[k], t), D > O) {
|
|
868
|
+
let e = g.createDocumentFragment(), t = p + O;
|
|
869
|
+
for (let n = O; n < D; n++) {
|
|
870
|
+
e.appendChild(g.createTextNode("\n"));
|
|
871
|
+
let r = u ? t : void 0, i = m === "signature" ? J(E[n], u, r, v) : void 0, a = Ht(E[n], u, r, l, v, g, i);
|
|
872
|
+
e.appendChild(a), t++;
|
|
873
|
+
}
|
|
874
|
+
C.appendChild(e);
|
|
875
|
+
}
|
|
876
|
+
return q(_, v), x("incremental");
|
|
877
|
+
}
|
|
878
|
+
return S();
|
|
879
|
+
}
|
|
880
|
+
function Wt(e, t) {
|
|
881
|
+
if (e) try {
|
|
882
|
+
e(t);
|
|
883
|
+
} catch (e) {
|
|
884
|
+
console.error("stream-markdown scheduled token update onResult error", e);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
function Gt(e, n, r) {
|
|
888
|
+
let i = !0, a = e, o = null, s = !1, c = 0;
|
|
889
|
+
return {
|
|
890
|
+
update: (e, l) => {
|
|
891
|
+
if (!i || !a) return "noop";
|
|
892
|
+
let u = l !== void 0;
|
|
893
|
+
if (!u && !s && r.skipSameCode !== !1 && o === e) {
|
|
894
|
+
let i = a.querySelector("code"), o = Nt(r, a), s = Pt(r, o), c = r.preClass ?? "shiki", l = r.codeClass ?? "", u = r.lineClass ?? "line", d = r.showLineNumbers ?? !1, f = St(n, r.theme), p = gt(r.startingLineNumber ?? 1), m = xt({
|
|
895
|
+
lang: r.lang,
|
|
896
|
+
theme: r.theme,
|
|
897
|
+
backgroundColor: f,
|
|
898
|
+
highlighterRevision: t(n),
|
|
899
|
+
tokenStyleMode: s,
|
|
900
|
+
preClass: c,
|
|
901
|
+
codeClass: l,
|
|
902
|
+
lineClass: u,
|
|
903
|
+
showLineNumbers: d,
|
|
904
|
+
startingLineNumber: p
|
|
905
|
+
});
|
|
906
|
+
if (i && Dt(a, i, {
|
|
907
|
+
preClass: c,
|
|
908
|
+
codeClass: l,
|
|
909
|
+
backgroundColor: f
|
|
910
|
+
}) && G.get(a) === m && Mt(a, i) && (i.textContent ?? "").replace(/\r/g, "") === e.replace(/\r/g, "")) return q(o, s), r.onResult?.("noop"), "noop";
|
|
911
|
+
}
|
|
912
|
+
let d, f = {
|
|
913
|
+
...r,
|
|
914
|
+
...u ? { tokenLines: l } : {},
|
|
915
|
+
onResult: (e) => {
|
|
916
|
+
try {
|
|
917
|
+
r.onResult?.(e);
|
|
918
|
+
} catch (e) {
|
|
919
|
+
d = e;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}, p = ++c, m = Ut(a, n, e, f);
|
|
923
|
+
if (p === c && (o = e, s = u), d !== void 0) throw d;
|
|
924
|
+
return m;
|
|
925
|
+
},
|
|
926
|
+
reset: () => {
|
|
927
|
+
!i || !a || (a.innerHTML = "", Ot(a), o = null, s = !1, c++);
|
|
928
|
+
},
|
|
929
|
+
cancel: () => {},
|
|
930
|
+
dispose: () => {
|
|
931
|
+
i = !1, a = null, o = null, s = !1, c++;
|
|
932
|
+
}
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
function Kt(e) {
|
|
936
|
+
let t = e?.ownerDocument?.defaultView;
|
|
937
|
+
if (typeof t?.IntersectionObserver == "function") return t.IntersectionObserver;
|
|
938
|
+
let n = typeof window < "u" ? window : null;
|
|
939
|
+
if (typeof n?.IntersectionObserver == "function") return n.IntersectionObserver;
|
|
940
|
+
let r = globalThis;
|
|
941
|
+
return typeof r.IntersectionObserver == "function" ? r.IntersectionObserver : null;
|
|
942
|
+
}
|
|
943
|
+
var qt = new class {
|
|
944
|
+
constructor() {
|
|
945
|
+
this.queue = [], this.byContainer = /* @__PURE__ */ new WeakMap(), this.visible = /* @__PURE__ */ new WeakMap(), this.io = null, this.idleScheduled = !1, this.idleHandle = null, this.idleCancel = null, this.idleToken = 0, this.nextId = 1;
|
|
946
|
+
}
|
|
947
|
+
ensureIntersectionObserver(e) {
|
|
948
|
+
if (!this.io) try {
|
|
949
|
+
let t = Kt(e);
|
|
950
|
+
t ? this.io = new t((e) => {
|
|
951
|
+
for (let t of e) this.visible.set(t.target, t.isIntersecting);
|
|
952
|
+
}, {
|
|
953
|
+
root: null,
|
|
954
|
+
threshold: 0
|
|
955
|
+
}) : this.io = null;
|
|
956
|
+
} catch {
|
|
957
|
+
this.io = null;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
schedule(e, t, n, r, i, a) {
|
|
961
|
+
let o = this.byContainer.get(e);
|
|
962
|
+
if (o) return o.id = this.nextId++, o.code = n, o.highlighter = t, o.opts = r, o.tokenLines = ht(i), o.estNodes = _t(n), o.shouldRun = a, o.id;
|
|
963
|
+
let s = {
|
|
964
|
+
id: this.nextId++,
|
|
965
|
+
container: e,
|
|
966
|
+
highlighter: t,
|
|
967
|
+
code: n,
|
|
968
|
+
opts: r,
|
|
969
|
+
tokenLines: ht(i),
|
|
970
|
+
estNodes: _t(n),
|
|
971
|
+
shouldRun: a
|
|
972
|
+
};
|
|
973
|
+
if (this.queue.push(s), this.byContainer.set(e, s), this.ensureIntersectionObserver(e), this.io) try {
|
|
974
|
+
this.io.observe(e);
|
|
975
|
+
} catch {}
|
|
976
|
+
return this.ensureProcessing(), s.id;
|
|
977
|
+
}
|
|
978
|
+
cancelIdle() {
|
|
979
|
+
if (!this.idleScheduled) return;
|
|
980
|
+
let e = this.idleHandle, t = this.idleCancel;
|
|
981
|
+
if (this.idleToken++, this.idleScheduled = !1, this.idleHandle = null, this.idleCancel = null, e !== null && t) try {
|
|
982
|
+
t(e);
|
|
983
|
+
} catch {}
|
|
984
|
+
}
|
|
985
|
+
ensureProcessing() {
|
|
986
|
+
if (this.idleScheduled || this.queue.length === 0) return;
|
|
987
|
+
let e = globalThis, t = this.queue[0]?.container.ownerDocument?.defaultView, n = t && typeof t.requestIdleCallback == "function" ? t : typeof e.requestIdleCallback == "function" ? e : null, r = n?.requestIdleCallback;
|
|
988
|
+
this.idleScheduled = !0;
|
|
989
|
+
let i = ++this.idleToken, a = !1, o = (e) => {
|
|
990
|
+
i === this.idleToken && (a = !0, this.idleScheduled = !1, this.idleHandle = null, this.idleCancel = null, this.process(e));
|
|
991
|
+
};
|
|
992
|
+
if (r) try {
|
|
993
|
+
let e = r.call(n, o, { timeout: 100 });
|
|
994
|
+
if (a) return;
|
|
995
|
+
this.idleHandle = e, this.idleCancel = typeof n.cancelIdleCallback == "function" ? (e) => n.cancelIdleCallback(e) : null;
|
|
996
|
+
return;
|
|
997
|
+
} catch {
|
|
998
|
+
if (a) return;
|
|
999
|
+
}
|
|
1000
|
+
let s = ++this.idleToken, c = (e) => {
|
|
1001
|
+
s === this.idleToken && (a = !0, this.idleScheduled = !1, this.idleHandle = null, this.idleCancel = null, this.process(e));
|
|
1002
|
+
};
|
|
1003
|
+
this.idleHandle = setTimeout(() => c({
|
|
1004
|
+
timeRemaining: () => 50,
|
|
1005
|
+
didTimeout: !0
|
|
1006
|
+
}), 50), this.idleCancel = (e) => clearTimeout(e);
|
|
1007
|
+
}
|
|
1008
|
+
stopObserving(e) {
|
|
1009
|
+
if (this.io) try {
|
|
1010
|
+
this.io.unobserve(e);
|
|
1011
|
+
} catch {}
|
|
1012
|
+
this.visible.delete(e);
|
|
1013
|
+
}
|
|
1014
|
+
process(e) {
|
|
1015
|
+
let n = yt(e), r = Math.min(2e3, Math.max(100, Math.floor(n * 6))), i = 0;
|
|
1016
|
+
for (; this.queue.length && !(i >= r);) {
|
|
1017
|
+
let n = this.queue.findIndex((e) => this.visible.get(e.container) === !0);
|
|
1018
|
+
n === -1 && (n = 0);
|
|
1019
|
+
let a = this.queue.splice(n, 1)[0];
|
|
1020
|
+
if (this.byContainer.delete(a.container), a.shouldRun && !a.shouldRun()) {
|
|
1021
|
+
this.byContainer.has(a.container) || this.stopObserving(a.container);
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
if (typeof a.estNodes == "number" && i + a.estNodes > r && i !== 0) {
|
|
1025
|
+
this.queue.push(a), this.byContainer.set(a.container, a);
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1028
|
+
try {
|
|
1029
|
+
Ut(a.container, a.highlighter, a.code, a.tokenLines ? {
|
|
1030
|
+
...a.opts,
|
|
1031
|
+
tokenLines: a.tokenLines
|
|
1032
|
+
} : a.opts);
|
|
1033
|
+
} catch {
|
|
1034
|
+
try {
|
|
1035
|
+
let e = Nt(a.opts, a.container), n = Pt(a.opts, e);
|
|
1036
|
+
a.container.innerHTML = ct(a.highlighter, a.code, {
|
|
1037
|
+
lang: a.opts.lang,
|
|
1038
|
+
theme: a.opts.theme,
|
|
1039
|
+
preClass: a.opts.preClass,
|
|
1040
|
+
codeClass: a.opts.codeClass,
|
|
1041
|
+
lineClass: a.opts.lineClass,
|
|
1042
|
+
showLineNumbers: a.opts.showLineNumbers,
|
|
1043
|
+
startingLineNumber: a.opts.startingLineNumber,
|
|
1044
|
+
tokenCache: a.opts.tokenCache,
|
|
1045
|
+
tokenCacheMaxEntries: a.opts.tokenCacheMaxEntries,
|
|
1046
|
+
htmlCache: a.opts.htmlCache,
|
|
1047
|
+
htmlCacheMaxEntries: a.opts.htmlCacheMaxEntries,
|
|
1048
|
+
tokenLines: a.tokenLines,
|
|
1049
|
+
styleRoot: e,
|
|
1050
|
+
tokenStyleMode: n
|
|
1051
|
+
}), kt(a.container, a.code, xt({
|
|
1052
|
+
lang: a.opts.lang,
|
|
1053
|
+
theme: a.opts.theme,
|
|
1054
|
+
backgroundColor: St(a.highlighter, a.opts.theme),
|
|
1055
|
+
highlighterRevision: t(a.highlighter),
|
|
1056
|
+
tokenStyleMode: n,
|
|
1057
|
+
preClass: a.opts.preClass ?? "shiki",
|
|
1058
|
+
codeClass: a.opts.codeClass ?? "",
|
|
1059
|
+
lineClass: a.opts.lineClass ?? "line",
|
|
1060
|
+
showLineNumbers: a.opts.showLineNumbers ?? !1,
|
|
1061
|
+
startingLineNumber: gt(a.opts.startingLineNumber ?? 1)
|
|
1062
|
+
})), Wt(a.opts.onResult, "full");
|
|
1063
|
+
} catch {
|
|
1064
|
+
Wt(a.opts.onResult, "noop");
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
if (typeof a.estNodes == "number" ? i += a.estNodes : i += 50, this.byContainer.has(a.container) || this.stopObserving(a.container), yt(e) < 6) break;
|
|
1068
|
+
}
|
|
1069
|
+
this.queue.length && this.ensureProcessing();
|
|
1070
|
+
}
|
|
1071
|
+
cancelFor(e, t) {
|
|
1072
|
+
let n = this.byContainer.get(e);
|
|
1073
|
+
if (n) {
|
|
1074
|
+
if (t !== void 0 && n.id !== t) return;
|
|
1075
|
+
this.byContainer.delete(e);
|
|
1076
|
+
let r = this.queue.findIndex((e) => e.id === n.id);
|
|
1077
|
+
r !== -1 && this.queue.splice(r, 1);
|
|
1078
|
+
}
|
|
1079
|
+
this.queue.length === 0 && this.cancelIdle(), this.stopObserving(e);
|
|
1080
|
+
}
|
|
1081
|
+
}();
|
|
1082
|
+
function Jt(e, n, r) {
|
|
1083
|
+
let i = !0, a = e, o = null, s = null, c, l = null, u = 0, d = null, f = !1, p = (e, i) => {
|
|
1084
|
+
if (!a || i || f || r.skipSameCode === !1 || d !== e) return !1;
|
|
1085
|
+
let o = a.querySelector("code");
|
|
1086
|
+
if (!o) return !1;
|
|
1087
|
+
let s = r.preClass ?? "shiki", c = r.codeClass ?? "", l = St(n, r.theme);
|
|
1088
|
+
if (!Dt(a, o, {
|
|
1089
|
+
preClass: s,
|
|
1090
|
+
codeClass: c,
|
|
1091
|
+
backgroundColor: l
|
|
1092
|
+
})) return !1;
|
|
1093
|
+
let u = Nt(r, a), p = Pt(r, u), m = r.lineClass ?? "line", h = r.showLineNumbers ?? !1, g = gt(r.startingLineNumber ?? 1), _ = xt({
|
|
1094
|
+
lang: r.lang,
|
|
1095
|
+
theme: r.theme,
|
|
1096
|
+
backgroundColor: l,
|
|
1097
|
+
highlighterRevision: t(n),
|
|
1098
|
+
tokenStyleMode: p,
|
|
1099
|
+
preClass: s,
|
|
1100
|
+
codeClass: c,
|
|
1101
|
+
lineClass: m,
|
|
1102
|
+
showLineNumbers: h,
|
|
1103
|
+
startingLineNumber: g
|
|
1104
|
+
});
|
|
1105
|
+
return G.get(a) !== _ || !Mt(a, o) || (o.textContent ?? "").replace(/\r/g, "") !== e.replace(/\r/g, "") ? !1 : (q(u, p), !0);
|
|
1106
|
+
}, m = () => {
|
|
1107
|
+
if (!a || o == null) return;
|
|
1108
|
+
let e = o;
|
|
1109
|
+
o = null, qt.cancelFor(a, e);
|
|
1110
|
+
}, h = () => {
|
|
1111
|
+
u++, l !== null && (clearTimeout(l), l = null), s = null, c = void 0, m();
|
|
1112
|
+
}, g = () => {
|
|
1113
|
+
if (l = null, !i || !a || s == null) return;
|
|
1114
|
+
let e = s, t = a, p = c, m = p !== void 0;
|
|
1115
|
+
s = null, c = void 0;
|
|
1116
|
+
let h = r.onResult, g = u, _ = -1, v = !1, y = {
|
|
1117
|
+
...r,
|
|
1118
|
+
appendOnlyFastPath: r.appendOnlyFastPath ?? !1,
|
|
1119
|
+
onResult: (t) => {
|
|
1120
|
+
v = !0, u === g && o === _ && (o = null), u === g && (d = e, f = m), Wt(h, t);
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
_ = qt.schedule(t, n, e, y, p, () => i && a === t && u === g), v || (o = _);
|
|
1124
|
+
}, _ = () => {
|
|
1125
|
+
let e = vt(r.throttleMs);
|
|
1126
|
+
if (l !== null && (clearTimeout(l), l = null), e <= 0) {
|
|
1127
|
+
g();
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
l = setTimeout(g, e);
|
|
1131
|
+
};
|
|
1132
|
+
return {
|
|
1133
|
+
update: (e, t) => !i || !a ? "noop" : p(e, t !== void 0) ? (h(), Wt(r.onResult, "noop"), "noop") : (u++, m(), s = e, c = ht(t), _(), "noop"),
|
|
1134
|
+
reset: () => {
|
|
1135
|
+
!i || !a || (h(), a.innerHTML = "", Ot(a), d = null, f = !1);
|
|
1136
|
+
},
|
|
1137
|
+
cancel: h,
|
|
1138
|
+
dispose: () => {
|
|
1139
|
+
i = !1, h(), a = null, d = null, f = !1;
|
|
1140
|
+
}
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
var Y = [], X = [], Z = null, Yt = 0, Xt = null, Q = !1, Zt = 8;
|
|
1144
|
+
function Qt(e) {
|
|
1145
|
+
typeof e == "number" && Number.isFinite(e) && e >= 0 && (Zt = e);
|
|
1146
|
+
}
|
|
1147
|
+
function $t() {
|
|
1148
|
+
return Zt;
|
|
1149
|
+
}
|
|
1150
|
+
function en() {
|
|
1151
|
+
return Q;
|
|
1152
|
+
}
|
|
1153
|
+
function tn() {
|
|
1154
|
+
return Y.length + X.length;
|
|
1155
|
+
}
|
|
1156
|
+
function nn() {
|
|
1157
|
+
Q = !0, dn();
|
|
1158
|
+
}
|
|
1159
|
+
function rn() {
|
|
1160
|
+
Q && (Q = !1, fn());
|
|
1161
|
+
}
|
|
1162
|
+
function an() {
|
|
1163
|
+
return globalThis.performance?.now ? globalThis.performance.now() : Date.now();
|
|
1164
|
+
}
|
|
1165
|
+
function on() {
|
|
1166
|
+
return Y.length > 0 || X.length > 0;
|
|
1167
|
+
}
|
|
1168
|
+
function sn() {
|
|
1169
|
+
return Y.shift() ?? X.shift();
|
|
1170
|
+
}
|
|
1171
|
+
function cn(e) {
|
|
1172
|
+
let t = Y.indexOf(e);
|
|
1173
|
+
return t >= 0 ? (Y.splice(t, 1), !0) : (t = X.indexOf(e), t >= 0 ? (X.splice(t, 1), !0) : !1);
|
|
1174
|
+
}
|
|
1175
|
+
function ln() {
|
|
1176
|
+
Y.length = 0, X.length = 0;
|
|
1177
|
+
}
|
|
1178
|
+
function un() {
|
|
1179
|
+
let e = [globalThis, typeof window < "u" ? window : null].filter(Boolean);
|
|
1180
|
+
for (let t of e) if (typeof t.requestAnimationFrame == "function" && typeof t.cancelAnimationFrame == "function") return {
|
|
1181
|
+
request: (e) => t.requestAnimationFrame(e),
|
|
1182
|
+
cancel: (e) => t.cancelAnimationFrame(e)
|
|
1183
|
+
};
|
|
1184
|
+
return {
|
|
1185
|
+
request: (e) => setTimeout(() => e(an()), 16),
|
|
1186
|
+
cancel: (e) => clearTimeout(e)
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
function dn() {
|
|
1190
|
+
if (Z == null) return;
|
|
1191
|
+
let e = Z, t = Xt;
|
|
1192
|
+
Z = null, Yt++, Xt = null;
|
|
1193
|
+
try {
|
|
1194
|
+
t?.(e);
|
|
1195
|
+
} catch {}
|
|
1196
|
+
}
|
|
1197
|
+
function fn() {
|
|
1198
|
+
if (Z != null || Q || !on()) return;
|
|
1199
|
+
let e = un(), t = ++Yt, n = !1, r = () => {
|
|
1200
|
+
t === Yt && (n = !0, pn());
|
|
1201
|
+
};
|
|
1202
|
+
try {
|
|
1203
|
+
Xt = e.cancel;
|
|
1204
|
+
let t = e.request(r);
|
|
1205
|
+
if (n) return;
|
|
1206
|
+
Z = t;
|
|
1207
|
+
} catch {
|
|
1208
|
+
if (n) return;
|
|
1209
|
+
let e = ++Yt;
|
|
1210
|
+
Z = setTimeout(() => {
|
|
1211
|
+
e === Yt && (n = !0, pn());
|
|
1212
|
+
}, 16), Xt = (e) => clearTimeout(e);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
function pn() {
|
|
1216
|
+
if (Z = null, Xt = null, Q) return;
|
|
1217
|
+
let e = an();
|
|
1218
|
+
for (; on();) {
|
|
1219
|
+
let t = sn();
|
|
1220
|
+
try {
|
|
1221
|
+
t();
|
|
1222
|
+
} catch (e) {
|
|
1223
|
+
console.error("render-scheduler job error", e);
|
|
1224
|
+
}
|
|
1225
|
+
if (Q || an() - e >= Zt) break;
|
|
1226
|
+
}
|
|
1227
|
+
!Q && on() && fn();
|
|
1228
|
+
}
|
|
1229
|
+
function $(e, t) {
|
|
1230
|
+
let n = t?.priority ?? "normal", r = !1, i = () => {
|
|
1231
|
+
r || e();
|
|
1232
|
+
};
|
|
1233
|
+
return n === "high" ? Y.push(i) : X.push(i), fn(), () => {
|
|
1234
|
+
r || (r = !0, cn(i) && (on() || dn()));
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
function mn(e) {
|
|
1238
|
+
e();
|
|
1239
|
+
}
|
|
1240
|
+
function hn() {
|
|
1241
|
+
for (dn(); on();) {
|
|
1242
|
+
let e = sn();
|
|
1243
|
+
try {
|
|
1244
|
+
e();
|
|
1245
|
+
} catch {}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function gn() {
|
|
1249
|
+
ln(), dn();
|
|
1250
|
+
}
|
|
1251
|
+
function _n(e, t = {}) {
|
|
1252
|
+
let n = Math.max(1, t.batchSize ?? 6), r = Math.max(1, t.staggerMs ?? 30), i = [], a = [];
|
|
1253
|
+
for (let t of e) {
|
|
1254
|
+
let e = t.el.getBoundingClientRect(), n = globalThis.innerHeight ?? 0;
|
|
1255
|
+
e.bottom >= 0 && e.top <= n ? i.push(t) : a.push(t);
|
|
1256
|
+
}
|
|
1257
|
+
nn();
|
|
1258
|
+
for (let e of i) $(() => {
|
|
1259
|
+
try {
|
|
1260
|
+
e.render();
|
|
1261
|
+
} catch {}
|
|
1262
|
+
}, { priority: "high" });
|
|
1263
|
+
rn(), t.drainVisible && hn();
|
|
1264
|
+
let o = !1, s = [];
|
|
1265
|
+
for (let e = 0; e < a.length; e += n) {
|
|
1266
|
+
let t = a.slice(e, e + n), i = Math.floor(e / n) * r, c = setTimeout(() => {
|
|
1267
|
+
if (!o) for (let e of t) $(() => {
|
|
1268
|
+
try {
|
|
1269
|
+
e.render();
|
|
1270
|
+
} catch {}
|
|
1271
|
+
}, { priority: "normal" });
|
|
1272
|
+
}, i);
|
|
1273
|
+
s.push(c);
|
|
1274
|
+
}
|
|
1275
|
+
return () => {
|
|
1276
|
+
o = !0;
|
|
1277
|
+
for (let e of s) clearTimeout(e);
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
var vn = /* @__PURE__ */ new WeakMap(), yn = null;
|
|
1281
|
+
function bn() {
|
|
1282
|
+
return yn || (typeof window > "u" || !window.IntersectionObserver ? null : (yn = new IntersectionObserver((e) => {
|
|
1283
|
+
for (let t of e) {
|
|
1284
|
+
let e = vn.get(t.target);
|
|
1285
|
+
if (e) try {
|
|
1286
|
+
e(!!t.isIntersecting, t);
|
|
1287
|
+
} catch {}
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
root: null,
|
|
1291
|
+
threshold: 0
|
|
1292
|
+
}), yn));
|
|
1293
|
+
}
|
|
1294
|
+
function xn(e, t) {
|
|
1295
|
+
let n = bn();
|
|
1296
|
+
return vn.set(e, t), n && n.observe(e), () => {
|
|
1297
|
+
vn.delete(e), n && n.unobserve(e);
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
var Sn = null;
|
|
1301
|
+
function Cn() {
|
|
1302
|
+
return Sn ??= import("./dist-BD0EaJeM.js").then((e) => e.ShikiStreamTokenizer).catch((e) => {
|
|
1303
|
+
throw Sn = null, e;
|
|
1304
|
+
}), Sn;
|
|
1305
|
+
}
|
|
1306
|
+
function wn(e) {
|
|
1307
|
+
let t = [[]], n = !1, r = (e, n) => {
|
|
1308
|
+
n && t[t.length - 1].push(n === e.content ? e : {
|
|
1309
|
+
...e,
|
|
1310
|
+
content: n
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
1313
|
+
for (let i of e) {
|
|
1314
|
+
let e = i.content;
|
|
1315
|
+
if (!e || n && (n = !1, e.charCodeAt(0) === 10 && (t.push([]), e = e.slice(1), !e))) continue;
|
|
1316
|
+
let a = 0;
|
|
1317
|
+
for (let o = 0; o < e.length; o++) {
|
|
1318
|
+
let s = e.charCodeAt(o);
|
|
1319
|
+
if (!(s !== 10 && s !== 13)) {
|
|
1320
|
+
if (r(i, e.slice(a, o)), s === 13) {
|
|
1321
|
+
o + 1 < e.length && e.charCodeAt(o + 1) === 10 ? (t.push([]), o++) : o === e.length - 1 && (n = !0), a = o + 1;
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
t.push([]), a = o + 1;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
r(i, e.slice(a));
|
|
1328
|
+
}
|
|
1329
|
+
return t;
|
|
1330
|
+
}
|
|
1331
|
+
function Tn(e, n) {
|
|
1332
|
+
let r = "", i = n.lang, a = n.theme ?? "vitesse-dark", o = null, s = null, c = [], l = -1, u = -1, d, f, p = null, m = n.scheduleInRaf ?? !0, h = !1, _ = null, v = 0, y = null, b = !1, x = null, S = !1, C = Promise.resolve(), w = (e = i) => {
|
|
1333
|
+
let t = n.langs?.length ? n.langs : void 0, r = t ?? g;
|
|
1334
|
+
return !e || e === "plaintext" || r.includes(e) ? t : [...r, e];
|
|
1335
|
+
}, T = async (e = i) => {
|
|
1336
|
+
if (b) return;
|
|
1337
|
+
let t = await V({
|
|
1338
|
+
langs: w(e),
|
|
1339
|
+
themes: n.themes
|
|
1340
|
+
});
|
|
1341
|
+
b || (o = t);
|
|
1342
|
+
}, E = (e) => {
|
|
1343
|
+
if (!o) return !1;
|
|
1344
|
+
let t = o;
|
|
1345
|
+
if (typeof t.getTheme != "function") return !1;
|
|
1346
|
+
try {
|
|
1347
|
+
return !!t.getTheme(e);
|
|
1348
|
+
} catch {
|
|
1349
|
+
return !1;
|
|
1350
|
+
}
|
|
1351
|
+
}, D = async (e, t = i) => {
|
|
1352
|
+
if (!e || b || (o || await T(t), b || !o) || E(e)) return;
|
|
1353
|
+
let n = await V({
|
|
1354
|
+
langs: w(t),
|
|
1355
|
+
themes: [e]
|
|
1356
|
+
});
|
|
1357
|
+
b || (o = n);
|
|
1358
|
+
}, O = () => o ? t(o) : -1, k = async () => {
|
|
1359
|
+
if (o || await T(i), b || !o) return;
|
|
1360
|
+
let e = O(), t = i ?? "plaintext", n = a;
|
|
1361
|
+
if (s && u === e && d === t && f === n) return;
|
|
1362
|
+
s?.clear(), s = null, u = -1, d = void 0, f = void 0;
|
|
1363
|
+
let r = await Cn();
|
|
1364
|
+
if (b || !o) return;
|
|
1365
|
+
let c = O();
|
|
1366
|
+
s = new r({
|
|
1367
|
+
highlighter: o,
|
|
1368
|
+
lang: t,
|
|
1369
|
+
theme: n
|
|
1370
|
+
}), u = c, d = t, f = n;
|
|
1371
|
+
}, A = (e) => {
|
|
1372
|
+
let t = C.then(e, e);
|
|
1373
|
+
return C = t.then(() => void 0, () => void 0), t;
|
|
1374
|
+
}, j = () => {
|
|
1375
|
+
c = [], l = O();
|
|
1376
|
+
}, M = () => {
|
|
1377
|
+
s?.clear(), s = null, u = -1, d = void 0, f = void 0;
|
|
1378
|
+
}, ee = (e, t) => b || s !== e || u !== t || O() !== t, te = () => {
|
|
1379
|
+
v++, _ &&= (_(), null), h = !1, y = null, p?.cancel?.();
|
|
1380
|
+
}, ne = (e, t) => {
|
|
1381
|
+
let n = ++v, r = !1, i = $(() => {
|
|
1382
|
+
v === n && (r = !0, _ = null, e());
|
|
1383
|
+
}, { priority: t });
|
|
1384
|
+
v === n && (_ = r ? null : i);
|
|
1385
|
+
};
|
|
1386
|
+
typeof window < "u" && e && (x = xn(e, (e) => {
|
|
1387
|
+
S = e;
|
|
1388
|
+
})), typeof n.timeBudget == "number" && Number.isFinite(n.timeBudget) && n.timeBudget >= 0 && Qt(n.timeBudget);
|
|
1389
|
+
let re = () => ({
|
|
1390
|
+
lang: i ?? "plaintext",
|
|
1391
|
+
theme: a,
|
|
1392
|
+
preClass: n.preClass,
|
|
1393
|
+
codeClass: n.codeClass,
|
|
1394
|
+
lineClass: n.lineClass,
|
|
1395
|
+
showLineNumbers: n.showLineNumbers,
|
|
1396
|
+
startingLineNumber: n.startingLineNumber,
|
|
1397
|
+
tokenCache: n.tokenCache,
|
|
1398
|
+
tokenCacheMaxEntries: n.tokenCacheMaxEntries,
|
|
1399
|
+
htmlCache: n.htmlCache,
|
|
1400
|
+
htmlCacheMaxEntries: n.htmlCacheMaxEntries,
|
|
1401
|
+
styleRoot: n.styleRoot,
|
|
1402
|
+
tokenStyleMode: n.tokenStyleMode,
|
|
1403
|
+
compareMode: n.compareMode,
|
|
1404
|
+
skipSameCode: n.skipSameCode,
|
|
1405
|
+
appendOnlyFastPath: !1,
|
|
1406
|
+
throttleMs: n.throttleMs,
|
|
1407
|
+
onResult: n.onResult
|
|
1408
|
+
}), N = () => {
|
|
1409
|
+
p?.dispose(), !(b || !o) && (p = (m ? Jt : Gt)(e, o, re()));
|
|
1410
|
+
}, P = (e, t) => {
|
|
1411
|
+
if (!b) {
|
|
1412
|
+
if (y = {
|
|
1413
|
+
code: e,
|
|
1414
|
+
tokenLines: t
|
|
1415
|
+
}, !m) {
|
|
1416
|
+
if (!p) return;
|
|
1417
|
+
let e = y;
|
|
1418
|
+
y = null, e && p.update(e.code, e.tokenLines);
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
h || (h = !0, ne(() => {
|
|
1422
|
+
if (h = !1, b || !p || !y) return;
|
|
1423
|
+
let e = y;
|
|
1424
|
+
y = null, p.update(e.code, e.tokenLines);
|
|
1425
|
+
}, S ? "high" : "normal"));
|
|
1426
|
+
}
|
|
1427
|
+
}, F = (e) => {
|
|
1428
|
+
b || (M(), j(), P(e));
|
|
1429
|
+
}, I = (e) => e.replace(/\r/g, ""), L = () => {
|
|
1430
|
+
let e = "";
|
|
1431
|
+
for (let t of c) e += t.content;
|
|
1432
|
+
return e;
|
|
1433
|
+
}, R = (e) => !o || l !== t(o) ? !1 : I(L()) === I(e), z = (e) => {
|
|
1434
|
+
if (!R(e)) {
|
|
1435
|
+
j(), P(e);
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
P(e, wn(c));
|
|
1439
|
+
};
|
|
1440
|
+
return {
|
|
1441
|
+
updateCode: (e, t) => A(async () => {
|
|
1442
|
+
if (b) return;
|
|
1443
|
+
let d = t ?? i, f = d !== i;
|
|
1444
|
+
if (e === r && !f && p) {
|
|
1445
|
+
te(), z(e);
|
|
1446
|
+
return;
|
|
1447
|
+
}
|
|
1448
|
+
let m = r;
|
|
1449
|
+
if (r = e, te(), !o || f) {
|
|
1450
|
+
if (i = d, await T(d), await D(a, d), b) return;
|
|
1451
|
+
M(), j(), N();
|
|
1452
|
+
} else p || N();
|
|
1453
|
+
if (await k(), b || !s || !p) return;
|
|
1454
|
+
let h = !f && n.useGrammarState !== !1 && R(m) && !!m && e.startsWith(m);
|
|
1455
|
+
h || (s.clear(), j());
|
|
1456
|
+
let g = h ? e.slice(m.length) : e, _ = s, v = u, { stable: y, unstable: x, recall: S } = await _.enqueue(g);
|
|
1457
|
+
if (ee(_, v)) {
|
|
1458
|
+
F(e);
|
|
1459
|
+
return;
|
|
1460
|
+
}
|
|
1461
|
+
h && S > 0 ? c.splice(Math.max(0, c.length - S)) : h || j(), c.push(...y ?? [], ...x ?? []), l = v, z(e);
|
|
1462
|
+
}),
|
|
1463
|
+
setTheme: (e) => A(async () => {
|
|
1464
|
+
if (b || !e || e === a || (te(), await D(e, i), b)) return;
|
|
1465
|
+
if (a = e, M(), j(), N(), !r) {
|
|
1466
|
+
z(r);
|
|
1467
|
+
return;
|
|
1468
|
+
}
|
|
1469
|
+
await k();
|
|
1470
|
+
let t = s;
|
|
1471
|
+
if (b || !t || !p) return;
|
|
1472
|
+
let n = u, { stable: o, unstable: d } = await t.enqueue(r);
|
|
1473
|
+
if (ee(t, n)) {
|
|
1474
|
+
F(r);
|
|
1475
|
+
return;
|
|
1476
|
+
}
|
|
1477
|
+
c = [...o ?? [], ...d ?? []], l = n, z(r);
|
|
1478
|
+
}),
|
|
1479
|
+
dispose: () => {
|
|
1480
|
+
b = !0, te(), p?.dispose(), p = null, M(), c = [], l = -1, x &&= (x(), null);
|
|
1481
|
+
},
|
|
1482
|
+
getState: () => ({
|
|
1483
|
+
code: r,
|
|
1484
|
+
lang: i,
|
|
1485
|
+
theme: a,
|
|
1486
|
+
tokenCount: c.length
|
|
1487
|
+
})
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
function En(e, t) {
|
|
1491
|
+
let n = "", r = t.lang, i = t.theme ?? "vitesse-dark", a = null, o = null, s = t.scheduleInRaf ?? !0, c = !1, l = null, u = 0, d = !1, f = null, p = !1, m = Promise.resolve(), h = (e = r) => {
|
|
1492
|
+
let n = t.langs?.length ? t.langs : void 0, i = n ?? g;
|
|
1493
|
+
return !e || e === "plaintext" || i.includes(e) ? n : [...i, e];
|
|
1494
|
+
}, _ = () => {
|
|
1495
|
+
u++, l &&= (l(), null), c = !1, o?.cancel?.();
|
|
1496
|
+
}, v = (e, t) => {
|
|
1497
|
+
let n = ++u, r = !1, i = $(() => {
|
|
1498
|
+
u === n && (r = !0, l = null, e());
|
|
1499
|
+
}, { priority: t });
|
|
1500
|
+
u === n && (l = r ? null : i);
|
|
1501
|
+
}, y = async (e = r) => {
|
|
1502
|
+
if (d) return;
|
|
1503
|
+
let n = await V({
|
|
1504
|
+
langs: h(e),
|
|
1505
|
+
themes: t.themes
|
|
1506
|
+
});
|
|
1507
|
+
d || (a = n);
|
|
1508
|
+
}, b = (e) => {
|
|
1509
|
+
if (!a) return !1;
|
|
1510
|
+
let t = a;
|
|
1511
|
+
if (typeof t.getTheme != "function") return !1;
|
|
1512
|
+
try {
|
|
1513
|
+
return !!t.getTheme(e);
|
|
1514
|
+
} catch {
|
|
1515
|
+
return !1;
|
|
1516
|
+
}
|
|
1517
|
+
}, x = async (e, t = r) => {
|
|
1518
|
+
if (!e || d || (a || await y(t), d || !a) || b(e)) return;
|
|
1519
|
+
let n = await V({
|
|
1520
|
+
langs: h(t),
|
|
1521
|
+
themes: [e]
|
|
1522
|
+
});
|
|
1523
|
+
d || (a = n);
|
|
1524
|
+
}, S = (e) => {
|
|
1525
|
+
let t = m.then(e, e);
|
|
1526
|
+
return m = t.then(() => void 0, () => void 0), t;
|
|
1527
|
+
};
|
|
1528
|
+
typeof window < "u" && e && (f = xn(e, (e) => {
|
|
1529
|
+
p = e;
|
|
1530
|
+
})), typeof t.timeBudget == "number" && Number.isFinite(t.timeBudget) && t.timeBudget >= 0 && Qt(t.timeBudget);
|
|
1531
|
+
let C = () => ({
|
|
1532
|
+
lang: r ?? "plaintext",
|
|
1533
|
+
theme: i,
|
|
1534
|
+
preClass: t.preClass,
|
|
1535
|
+
codeClass: t.codeClass,
|
|
1536
|
+
lineClass: t.lineClass,
|
|
1537
|
+
showLineNumbers: t.showLineNumbers,
|
|
1538
|
+
startingLineNumber: t.startingLineNumber,
|
|
1539
|
+
tokenCache: t.tokenCache,
|
|
1540
|
+
tokenCacheMaxEntries: t.tokenCacheMaxEntries,
|
|
1541
|
+
htmlCache: t.htmlCache,
|
|
1542
|
+
htmlCacheMaxEntries: t.htmlCacheMaxEntries,
|
|
1543
|
+
styleRoot: t.styleRoot,
|
|
1544
|
+
tokenStyleMode: t.tokenStyleMode,
|
|
1545
|
+
compareMode: t.compareMode,
|
|
1546
|
+
skipSameCode: t.skipSameCode,
|
|
1547
|
+
appendOnlyFastPath: !1,
|
|
1548
|
+
throttleMs: t.throttleMs,
|
|
1549
|
+
onResult: t.onResult
|
|
1550
|
+
}), w = () => {
|
|
1551
|
+
o?.dispose(), !(d || !a) && (o = (s ? Jt : Gt)(e, a, C()));
|
|
1552
|
+
}, T = () => {
|
|
1553
|
+
if (!d) {
|
|
1554
|
+
if (!s) {
|
|
1555
|
+
if (!o) return;
|
|
1556
|
+
o.update(n);
|
|
1557
|
+
return;
|
|
1558
|
+
}
|
|
1559
|
+
c || (c = !0, v(() => {
|
|
1560
|
+
c = !1, !(d || !o) && o.update(n);
|
|
1561
|
+
}, p ? "high" : "normal"));
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
return {
|
|
1565
|
+
updateCode: (e, t) => S(async () => {
|
|
1566
|
+
if (d) return;
|
|
1567
|
+
let s = t ?? r, c = s !== r;
|
|
1568
|
+
if (n = e, _(), !a || c) {
|
|
1569
|
+
if (r = s, await y(s), await x(i, s), d) return;
|
|
1570
|
+
w();
|
|
1571
|
+
} else o || w();
|
|
1572
|
+
T();
|
|
1573
|
+
}),
|
|
1574
|
+
setTheme: (e) => S(async () => {
|
|
1575
|
+
d || !e || e === i || (_(), await x(e, r), !d && (i = e, w(), T()));
|
|
1576
|
+
}),
|
|
1577
|
+
dispose: () => {
|
|
1578
|
+
d = !0, _(), o?.dispose(), o = null, f &&= (f(), null);
|
|
1579
|
+
},
|
|
1580
|
+
getState: () => ({
|
|
1581
|
+
code: n,
|
|
1582
|
+
lang: r,
|
|
1583
|
+
theme: i
|
|
1584
|
+
})
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
//#endregion
|
|
1588
|
+
export { gn as clearAll, Jt as createScheduledTokenIncrementalUpdater, Tn as createShikiStreamCachedRenderer, En as createShikiStreamRenderer, Gt as createTokenIncrementalUpdater, g as defaultLanguages, _ as defaultThemes, he as disposeHighlighter, hn as drain, tn as getQueueLength, $t as getTimeBudget, en as isPaused, nn as pause, V as registerHighlight, ct as renderCodeWithTokens, _n as restoreWithVisibilityPriority, rn as resume, mn as runImmediate, $ as scheduleRenderJob, Qt as setTimeBudget, Ut as updateCodeTokensIncremental };
|