@yaoshu-ai/ai-chat 1.5.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/LICENSE +21 -0
- package/README.md +448 -0
- package/dist/1.png +0 -0
- package/dist/2.png +0 -0
- package/dist/RenderContent-Dlqka7tn.js +33786 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +5 -0
- package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +5 -0
- package/dist/_arrayEach-CWzCztxB.js +44 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DQVEcJUW.js +6 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/ai-chat.css +1 -0
- package/dist/andromeeda-BbmzSJq1.js +4 -0
- package/dist/angular-html-DPB4Rf0C.js +32 -0
- package/dist/angular-ts-CTOR2ofC.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apex-OyTfjCYK.js +6 -0
- package/dist/apl-CjNiDgad.js +16 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-B1p3jPmf.js +83 -0
- package/dist/architecture-U656AL7Q-BbBZWZnv.js +5 -0
- package/dist/architectureDiagram-VXUJARFQ-o3qI6Hfe.js +4662 -0
- package/dist/asciidoc-C1T9ziH6.js +6 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/assets/_basePickBy-Cpv34cvw.js +151 -0
- package/dist/assets/_baseUniq-DcdXmdC4.js +614 -0
- package/dist/assets/arc-B0v8Xerj.js +83 -0
- package/dist/assets/architectureDiagram-VXUJARFQ-CuYvJnXX.js +4662 -0
- package/dist/assets/blockDiagram-VD42YOAC-BxZitMjG.js +2262 -0
- package/dist/assets/c4Diagram-YG6GDRKO-ZsN99P-D.js +1580 -0
- package/dist/assets/channel-d_ygJPeO.js +5 -0
- package/dist/assets/chunk-4BX2VUAB-96IoYLlF.js +8 -0
- package/dist/assets/chunk-55IACEB6-gENcR4HP.js +8 -0
- package/dist/assets/chunk-B4BG7PRW-BOypo6sC.js +1375 -0
- package/dist/assets/chunk-DI55MBZ5-DHEKLVmM.js +1370 -0
- package/dist/assets/chunk-FMBD7UC4-CZ-mW5Zk.js +19 -0
- package/dist/assets/chunk-QN33PNHL-BeoL9V94.js +19 -0
- package/dist/assets/chunk-QZHKN3VN-DedBAq5I.js +15 -0
- package/dist/assets/chunk-TZMSLE5B-Bg9wRIeU.js +64 -0
- package/dist/assets/classDiagram-2ON5EDUG-OqXlgyvI.js +19 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-OqXlgyvI.js +19 -0
- package/dist/assets/clone-D3-moMc7.js +8 -0
- package/dist/assets/cose-bilkent-S5V4N54A-CrU20ri2.js +2607 -0
- package/dist/assets/cytoscape.esm-DfdJODL8.js +18735 -0
- package/dist/assets/dagre-6UL2VRFP-BMNAUhAh.js +444 -0
- package/dist/assets/defaultLocale-57BWB7pV.js +171 -0
- package/dist/assets/diagram-PSM6KHXK-DDXdcx9h.js +535 -0
- package/dist/assets/diagram-QEK2KX5R-DaOkv31-.js +220 -0
- package/dist/assets/diagram-S2PKOQOG-Kk0nHneV.js +145 -0
- package/dist/assets/erDiagram-Q2GNP2WA-DVKOxqjl.js +841 -0
- package/dist/assets/flowDiagram-NV44I4VS-BoWYkdqy.js +1620 -0
- package/dist/assets/ganttDiagram-LVOFAZNH-Dvgzms7S.js +2500 -0
- package/dist/assets/gitGraphDiagram-NY62KEGX-Bna3uwG8.js +702 -0
- package/dist/assets/graph-BLzmbjIy.js +247 -0
- package/dist/assets/infoDiagram-ER5ION4S-Did3mqZL.js +27 -0
- package/dist/assets/init-DjUOC4st.js +16 -0
- package/dist/assets/journeyDiagram-XKPGCS4Q-C3BPCBal.js +834 -0
- package/dist/assets/kanban-definition-3W4ZIXB7-Cf5SUn-1.js +719 -0
- package/dist/assets/katex-SsTUIUTC.js +11688 -0
- package/dist/assets/layout-B00gooay.js +1335 -0
- package/dist/assets/linear-DVxTWzAi.js +259 -0
- package/dist/assets/mindmap-definition-VGOIOE7T-Q-_IrD51.js +785 -0
- package/dist/assets/ordinal-DfAQgscy.js +61 -0
- package/dist/assets/pieDiagram-ADFJNKIX-LygDPC1s.js +165 -0
- package/dist/assets/quadrantDiagram-AYHSOK5B-77SStCdg.js +1024 -0
- package/dist/assets/requirementDiagram-UZGBJVZJ-CMlgwZi9.js +850 -0
- package/dist/assets/sankeyDiagram-TZEHDZUN-DnlAgtvb.js +811 -0
- package/dist/assets/sequenceDiagram-WL72ISMW-Cf4BDgIS.js +2511 -0
- package/dist/assets/stateDiagram-FKZM4ZOC-CBGqngi4.js +267 -0
- package/dist/assets/stateDiagram-v2-4FDKWEC3-BZTJjZnO.js +18 -0
- package/dist/assets/timeline-definition-IT6M3QCI-DVwyHSfZ.js +795 -0
- package/dist/assets/treemap-KMMF4GRG-Bx903ckh.js +12994 -0
- package/dist/assets/xychartDiagram-PRI3JC2R-pvSCMiXN.js +1341 -0
- package/dist/astro-CFFExE8Q.js +18 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/ayu-dark-DJoqd4M9.js +4 -0
- package/dist/ayu-light-BzXEJRJ-.js +4 -0
- package/dist/ayu-mirage-BJ2oZGzi.js +4 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/beancount-DqJEb89h.js +6 -0
- package/dist/berry-DODBq_Ff.js +6 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-BorU73w0.js +6 -0
- package/dist/bird2-CraR6qSn.js +6 -0
- package/dist/blade-D0HyNvCw.js +20 -0
- package/dist/blockDiagram-VD42YOAC-DahK-Cj4.js +2364 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c3-BY5XW5ym.js +6 -0
- package/dist/c4Diagram-YG6GDRKO-DEyHjCYx.js +1580 -0
- package/dist/cadence-02UX7mW8.js +6 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
- package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
- package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
- package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
- package/dist/channel-3keaKHdb.js +5 -0
- package/dist/chunk-4BX2VUAB-DAiVtoK8.js +8 -0
- package/dist/chunk-55IACEB6-CaBF4LGk.js +8 -0
- package/dist/chunk-B4BG7PRW-BRwDg4Nv.js +1375 -0
- package/dist/chunk-DI55MBZ5-DSCddmFg.js +1370 -0
- package/dist/chunk-FMBD7UC4-DeD5V5dF.js +19 -0
- package/dist/chunk-QN33PNHL-DtsdNsBa.js +19 -0
- package/dist/chunk-QZHKN3VN-BjOYbdQP.js +15 -0
- package/dist/chunk-TZMSLE5B-BwhJBSuO.js +64 -0
- package/dist/clarity-PKm5CwqM.js +6 -0
- package/dist/classDiagram-2ON5EDUG-C0IaF0ZL.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-C0IaF0ZL.js +16 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cobol-DBolczTz.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-DGBR_nr_.js +8 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/cose-bilkent-S5V4N54A-CRxUs4km.js +2609 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/crystal-CRJyc4G-.js +18 -0
- package/dist/csharp-CCgA4A09.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/d2_markstream-vue_false-BfRvcluz.js +5 -0
- package/dist/dagre-6UL2VRFP-dTDl1Tgv.js +442 -0
- package/dist/dark-plus-pUHDTVV0.js +4 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/diagram-PSM6KHXK-Dh-BBqVQ.js +531 -0
- package/dist/diagram-QEK2KX5R-CPqYwhdb.js +217 -0
- package/dist/diagram-S2PKOQOG-CapIa3n7.js +142 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/echarts-gl.min.js +1 -0
- package/dist/echarts.min.js +46 -0
- package/dist/edge-BYQkOzbF.js +12 -0
- package/dist/elixir-Dh036GMp.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-B8d80SOq.js +841 -0
- package/dist/erb-ScVOXVpH.js +10 -0
- package/dist/erlang-DNcDT8Hi.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/favicon.svg +1 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-BTDEUgqH.js +6 -0
- package/dist/flowDiagram-NV44I4VS-Wtd6x8Dz.js +1620 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fortran-fixed-form-B67KFkXH.js +8 -0
- package/dist/fortran-free-form-CwqYvCLJ.js +6 -0
- package/dist/fsharp-CYOiIVNx.js +8 -0
- package/dist/ganttDiagram-LVOFAZNH-PIGXq8YG.js +2506 -0
- package/dist/gdresource-CvCIUjhi.js +10 -0
- package/dist/gdscript-DSAxJ_aS.js +6 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/geo.json +1 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/gitGraph-F6HP7TQM-CIGXYS91.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-BDnzMpYT.js +699 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/glimmer-js-DkxNrfPT.js +14 -0
- package/dist/glimmer-ts-D6YZEmK_.js +14 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gn-XtJxiLa4.js +6 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-CvFNMTvu.js +6 -0
- package/dist/graph-BJDrjORS.js +244 -0
- package/dist/graphql-CBu2ehBn.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
- package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
- package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
- package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
- package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
- package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
- package/dist/hack-ItRNKiEb.js +10 -0
- package/dist/haml-NZLVzu_R.js +10 -0
- package/dist/handlebars-mxStpSE7.js +14 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/horizon-CJQ10nlf.js +4 -0
- package/dist/horizon-bright-2WzHy-Vo.js +4 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/html-B50bmoVb.js +10 -0
- package/dist/html-derivative-C6bxFbFW.js +8 -0
- package/dist/http-DLvAkeD-.js +14 -0
- package/dist/hurl-CgkFN90t.js +12 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/index-C8Q6O4II.js +513 -0
- package/dist/index-DAiOgSvo.js +10210 -0
- package/dist/index-qjiatRMM.js +74370 -0
- package/dist/index.es.js +12 -0
- package/dist/index2-Pjnp80bi.js +70 -0
- package/dist/index3-Bhg7Q86T.js +70 -0
- package/dist/index4-5xarPQV7.js +544 -0
- package/dist/index5-DYxqqGmv.js +592 -0
- package/dist/index6-DXyezjvJ.js +196 -0
- package/dist/index7-IFig1gg1.js +217 -0
- package/dist/info-NVLQJR56-CFDwNFH-.js +5 -0
- package/dist/infoDiagram-ER5ION4S-ClOwLtgG.js +24 -0
- package/dist/infographic_markstream-vue_false-BfsmcXxk.js +5 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-C25yR2R2.js +6 -0
- package/dist/jinja-CFW5uAwY.js +11 -0
- package/dist/jison-DdreslRX.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q-_UZpi048.js +834 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/julia-CZiKXNNP.js +16 -0
- package/dist/just-CEK2SJ_k.js +18 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7-Cutzg6yp.js +719 -0
- package/dist/katex-SsTUIUTC.js +11688 -0
- package/dist/kdl-BNOv9TC3.js +6 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-DH_XitHS.js +6 -0
- package/dist/languageIconExtended-OLNeqZ3A.js +119 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-B8Egmqc5.js +8 -0
- package/dist/layout-PTzgkkQP.js +1223 -0
- package/dist/lean-BnVxaZxY.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-Bye2JJhy.js +259 -0
- package/dist/liquid-CHzkx3jT.js +14 -0
- package/dist/llvm-Bk2XctFf.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-Bp3IRv7I.js +8 -0
- package/dist/luau-UQyhudEE.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-CJBA24Ri.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/mdc-C9YSUwVC.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mermaid-C3rz4dYh.js +6 -0
- package/dist/mermaid-parser.core-C86xHHvY.js +13249 -0
- package/dist/mermaid.core-BIhT9VUC.js +14709 -0
- package/dist/mhchem-XHl7cef5.js +2306 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/mindmap-definition-VGOIOE7T-l17eTXZb.js +784 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-EIZIZRTQ.js +6 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/moonbit-B1TV0fG3.js +6 -0
- package/dist/move-Db4ltDq1.js +6 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-47kAzSl1.js +8 -0
- package/dist/nextflow-groovy-Drz_2V0j.js +6 -0
- package/dist/nginx-D7O4WoB1.js +8 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/night-owl-light-CBI5u5kw.js +4 -0
- package/dist/nim-QAjRdh9w.js +20 -0
- package/dist/nix-fTRXMGic.js +9 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nushell-BGCPRlV5.js +6 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/odin-BItnF517.js +6 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-LkMrt1Cf.js +4 -0
- package/dist/openscad-Sp5uZ6f2.js +6 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-BFZMPI3H-c2t_1f8D.js +5 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-DkVrgJBg.js +16 -0
- package/dist/php-BIzsF_5x.js +18 -0
- package/dist/pie-7BOR55EZ-CVvzPUU7.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-C01Py6L8.js +161 -0
- package/dist/pkl-C-zSNmaA.js +6 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/proto-C7QgialS.js +6 -0
- package/dist/pug-XOw9Q1Ho.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/qml-rTNXsquU.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/quadrantDiagram-AYHSOK5B-sypB1aPG.js +1022 -0
- package/dist/r-CSmzDPi7.js +6 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/radar-NHE76QYJ-GJjAzk_L.js +5 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-Ci8D0dQK.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-Cs95WEDy.js +850 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/ron-DCEEQypA.js +6 -0
- package/dist/rose-pine-BKc3yVeu.js +4 -0
- package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
- package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
- package/dist/rosmsg-Cz0w1km8.js +6 -0
- package/dist/rst-DM32Wy3O.js +22 -0
- package/dist/ruby-BeqCs27h.js +30 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/safeRaf-I3a3-dyJ.js +10 -0
- package/dist/sankeyDiagram-TZEHDZUN-BN3bNFt9.js +810 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/sequenceDiagram-WL72ISMW-CZ6inTco.js +2511 -0
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solidity-DUWnFhS6.js +6 -0
- package/dist/soy-C1-6njHa.js +8 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/stateDiagram-FKZM4ZOC-BjHpkttt.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3-SoFWin9i.js +16 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/surrealql-CQi7GQN7.js +8 -0
- package/dist/svelte-rYri41WT.js +14 -0
- package/dist/swift-DJpUqPLg.js +6 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-Crs9Ui8q.js +12 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-AHxmLTL0.js +8 -0
- package/dist/timeline-definition-IT6M3QCI-axILemxx.js +795 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/treemap-KMMF4GRG-DLUO0usq.js +5 -0
- package/dist/ts-tags-BUclWxCG.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-DwV2Fi4L.js +18 -0
- package/dist/typescript-RycA9KXf.js +6 -0
- package/dist/typespec-DWqp-kUU.js +6 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/v-BPCNiyYe.js +6 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vue-DXEmyXn9.js +31 -0
- package/dist/vue-html-j9xNEdu3.js +8 -0
- package/dist/vue-vine-D41-N99t.js +18 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/xychartDiagram-PRI3JC2R-C7nmWmlk.js +1340 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +134 -0
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
import { defineComponent as so, getCurrentInstance as zo, computed as C, ref as M, watch as V, onBeforeUnmount as To, createBlock as be, createElementBlock as H, onUnmounted as co, openBlock as _, unref as g, normalizeClass as ne, normalizeStyle as $e, createCommentVNode as J, withDirectives as Ze, createElementVNode as u, renderSlot as Ne, toDisplayString as Ye, Fragment as Ho, vShow as eo, onMounted as Do, Teleport as Lo, withModifiers as jo, nextTick as ke } from "vue";
|
|
2
|
+
import { l as vo, u as mo, g as ze, y as Vo, m as Yo, x as oo, k as Wo, a as Io, b as to, c as no, r as lo, d as qo } from "./RenderContent-Dlqka7tn.js";
|
|
3
|
+
import { e as ae } from "./safeRaf-I3a3-dyJ.js";
|
|
4
|
+
var Ro = Object.defineProperty, Ao = Object.defineProperties, Uo = Object.getOwnPropertyDescriptors, io = Object.getOwnPropertySymbols, Xo = Object.prototype.hasOwnProperty, Go = Object.prototype.propertyIsEnumerable, ao = (p, m, k) => m in p ? Ro(p, m, { enumerable: !0, configurable: !0, writable: !0, value: k }) : p[m] = k, Te = (p, m) => {
|
|
5
|
+
for (var k in m || (m = {})) Xo.call(m, k) && ao(p, k, m[k]);
|
|
6
|
+
if (io) for (var k of io(m)) Go.call(m, k) && ao(p, k, m[k]);
|
|
7
|
+
return p;
|
|
8
|
+
}, ro = (p, m) => Ao(p, Uo(m)), Y = (p, m, k) => new Promise((i, I) => {
|
|
9
|
+
var $ = (d) => {
|
|
10
|
+
try {
|
|
11
|
+
f(k.next(d));
|
|
12
|
+
} catch (U) {
|
|
13
|
+
I(U);
|
|
14
|
+
}
|
|
15
|
+
}, b = (d) => {
|
|
16
|
+
try {
|
|
17
|
+
f(k.throw(d));
|
|
18
|
+
} catch (U) {
|
|
19
|
+
I(U);
|
|
20
|
+
}
|
|
21
|
+
}, f = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then($, b);
|
|
22
|
+
f((k = k.apply(p, m)).next());
|
|
23
|
+
});
|
|
24
|
+
const Jo = { class: "markstream-vue" }, Ko = { class: "html-preview-frame__header" }, Qo = { class: "html-preview-frame__title" }, Zo = { class: "html-preview-frame__label" }, et = ["srcdoc"], ot = /* @__PURE__ */ vo(/* @__PURE__ */ so({ __name: "HtmlPreviewFrame", props: { code: {}, isDark: { type: Boolean }, onClose: { type: Function }, title: {} }, setup(p) {
|
|
25
|
+
const m = p, { t: k } = mo(), i = C(() => {
|
|
26
|
+
const $ = m.code || "", b = $.trim().toLowerCase();
|
|
27
|
+
return b.startsWith("<!doctype") || b.startsWith("<html") || b.startsWith("<body") ? $ : `<!doctype html>
|
|
28
|
+
<html lang="en">
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8" />
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
32
|
+
<style>
|
|
33
|
+
html, body {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-color: ${m.isDark ? "#020617" : "#ffffff"};
|
|
38
|
+
color: ${m.isDark ? "#e5e7eb" : "#020617"};
|
|
39
|
+
}
|
|
40
|
+
body {
|
|
41
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', ui-sans-serif, sans-serif;
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
${$}
|
|
47
|
+
</body>
|
|
48
|
+
</html>`;
|
|
49
|
+
});
|
|
50
|
+
function I($) {
|
|
51
|
+
var b;
|
|
52
|
+
$.key !== "Escape" && $.key !== "Esc" || (b = m.onClose) == null || b.call(m);
|
|
53
|
+
}
|
|
54
|
+
return Do(() => {
|
|
55
|
+
typeof window < "u" && window.addEventListener("keydown", I);
|
|
56
|
+
}), co(() => {
|
|
57
|
+
typeof window < "u" && window.removeEventListener("keydown", I);
|
|
58
|
+
}), ($, b) => (_(), be(Lo, { to: "body" }, [u("div", Jo, [u("div", { class: ne(["html-preview-frame__backdrop", { "html-preview-frame__backdrop--dark": m.isDark }]), onClick: b[2] || (b[2] = (f) => {
|
|
59
|
+
var d;
|
|
60
|
+
return (d = m.onClose) == null ? void 0 : d.call(m);
|
|
61
|
+
}) }, [u("div", { class: ne(["html-preview-frame", { "html-preview-frame--dark": m.isDark }]), onClick: b[1] || (b[1] = jo(() => {
|
|
62
|
+
}, ["stop"])) }, [u("div", Ko, [u("div", Qo, [b[3] || (b[3] = u("span", { class: "html-preview-frame__dot" }, null, -1)), u("span", Zo, Ye(m.title || g(k)("common.preview") || "Preview"), 1)]), u("button", { type: "button", class: ne(["html-preview-frame__close", { "html-preview-frame__close--dark": m.isDark }]), onClick: b[0] || (b[0] = (f) => {
|
|
63
|
+
var d;
|
|
64
|
+
return (d = m.onClose) == null ? void 0 : d.call(m);
|
|
65
|
+
}) }, " × ", 2)]), u("iframe", { class: "html-preview-frame__iframe", sandbox: "allow-scripts allow-same-origin", srcdoc: i.value }, null, 8, et)], 2)], 2)])]));
|
|
66
|
+
} }), [["__scopeId", "data-v-296dd89d"]]);
|
|
67
|
+
let oe = null, He = null, re = null, te = null, De = null, Le = null;
|
|
68
|
+
const je = /* @__PURE__ */ new WeakMap();
|
|
69
|
+
let tt = 0;
|
|
70
|
+
const nt = { key: 0, class: "code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5", style: { color: "var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))", "background-color": "var(--vscode-editor-background, var(--markstream-code-fallback-bg))" } }, lt = { class: "flex items-center gap-x-2 flex-1 overflow-hidden" }, it = ["innerHTML"], at = { class: "text-sm font-medium font-mono truncate" }, rt = { class: "flex items-center gap-x-2" }, ut = ["aria-pressed"], st = ["disabled"], ct = ["disabled"], dt = ["disabled"], vt = ["aria-label"], mt = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, ft = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, pt = ["aria-pressed"], ht = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, wt = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, gt = ["aria-label"], yt = { class: "code-editor-layer" }, kt = { class: "code-loading-placeholder" }, bt = { class: "sr-only", "aria-live": "polite", role: "status" }, uo = "__markstreamMonacoPassiveTouch__", Ve = /* @__PURE__ */ vo(/* @__PURE__ */ so({ __name: "CodeBlockNode", props: { node: {}, isDark: { type: Boolean }, loading: { type: Boolean, default: !0 }, stream: { type: Boolean, default: !0 }, darkTheme: { default: void 0 }, lightTheme: { default: void 0 }, isShowPreview: { type: Boolean, default: !0 }, monacoOptions: {}, enableFontSizeControl: { type: Boolean, default: !0 }, minWidth: { default: void 0 }, maxWidth: { default: void 0 }, themes: {}, showHeader: { type: Boolean, default: !0 }, showCopyButton: { type: Boolean, default: !0 }, showExpandButton: { type: Boolean, default: !0 }, showPreviewButton: { type: Boolean, default: !0 }, showFontSizeButtons: { type: Boolean, default: !0 }, showTooltips: { type: Boolean }, customId: {} }, emits: ["previewCode", "copy"], setup(p, { emit: m }) {
|
|
71
|
+
var k;
|
|
72
|
+
const i = p, I = m;
|
|
73
|
+
typeof window < "u" && (function() {
|
|
74
|
+
var o;
|
|
75
|
+
try {
|
|
76
|
+
const e = window;
|
|
77
|
+
if (e[uo]) return;
|
|
78
|
+
const t = (o = window.Element) == null ? void 0 : o.prototype, n = t?.addEventListener;
|
|
79
|
+
if (!t || !n) return;
|
|
80
|
+
t.addEventListener = function(l, a, c) {
|
|
81
|
+
return l === "touchstart" && (function(r, y) {
|
|
82
|
+
if (!r) return !1;
|
|
83
|
+
const s = r;
|
|
84
|
+
return !(typeof s.closest != "function" || !s.closest(".monaco-editor, .monaco-diff-editor") || y && typeof y == "object" && "passive" in y);
|
|
85
|
+
})(this, c) ? n.call(this, l, a, (function(r) {
|
|
86
|
+
return r == null ? { passive: !0 } : typeof r == "boolean" ? { capture: r, passive: !0 } : typeof r == "object" ? "passive" in r ? r : ro(Te({}, r), { passive: !0 }) : { passive: !0 };
|
|
87
|
+
})(c)) : n.call(this, l, a, c);
|
|
88
|
+
}, e[uo] = !0;
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
})();
|
|
92
|
+
const $ = zo(), b = C(() => {
|
|
93
|
+
const o = $?.vnode.props;
|
|
94
|
+
return !(!o || !o.onPreviewCode && !o.onPreviewCode);
|
|
95
|
+
}), { t: f } = mo(), d = M(null), U = M(null), K = M(!1), D = M(ze(i.node.language)), le = C(() => Vo(D.value)), S = M(!1), O = M(!1), ue = M(!1), Q = M(!1), se = M(!1), X = M(null);
|
|
96
|
+
let xe = 0;
|
|
97
|
+
const fo = Yo(), ie = M(null), q = M(typeof window > "u");
|
|
98
|
+
typeof window < "u" && V(() => U.value, (o) => {
|
|
99
|
+
var e;
|
|
100
|
+
if ((e = ie.value) == null || e.destroy(), ie.value = null, !o) return void (q.value = !1);
|
|
101
|
+
const t = fo(o, { rootMargin: "400px" });
|
|
102
|
+
ie.value = t, q.value = t.isVisible.value, t.whenVisible.then(() => {
|
|
103
|
+
q.value = !0;
|
|
104
|
+
});
|
|
105
|
+
}, { immediate: !0 }), To(() => {
|
|
106
|
+
var o;
|
|
107
|
+
(o = ie.value) == null || o.destroy(), ie.value = null;
|
|
108
|
+
});
|
|
109
|
+
let L = null, ce = null, Me = () => {
|
|
110
|
+
}, Ce = () => {
|
|
111
|
+
}, de = () => null, j = () => ({ getModel: () => ({ getLineCount: () => 1 }), getOption: () => 14, updateOptions: () => {
|
|
112
|
+
} }), T = () => ({ getModel: () => ({ getLineCount: () => 1 }), getOption: () => 14, updateOptions: () => {
|
|
113
|
+
} }), Be = () => {
|
|
114
|
+
}, ve = () => {
|
|
115
|
+
}, Z = null, We = () => {
|
|
116
|
+
var o;
|
|
117
|
+
return String((o = i.node.language) != null ? o : "plaintext");
|
|
118
|
+
}, Se = () => Y(null, null, function* () {
|
|
119
|
+
});
|
|
120
|
+
const P = C(() => i.node.diff), Ie = C(() => P.value ? "diff" : "single"), po = M(Ie.value), me = M(!1), ho = C(() => {
|
|
121
|
+
var o;
|
|
122
|
+
const e = (o = i.monacoOptions) == null ? void 0 : o.wordWrap;
|
|
123
|
+
return e == null || String(e) !== "off";
|
|
124
|
+
}), qe = C(() => typeof window < "u" && !me.value && !Q.value), fe = M(!1);
|
|
125
|
+
typeof window < "u" && Y(null, null, function* () {
|
|
126
|
+
try {
|
|
127
|
+
const o = yield qo();
|
|
128
|
+
if (!o) return void (me.value = !0);
|
|
129
|
+
const e = o.useMonaco, t = o.detectLanguage;
|
|
130
|
+
if (typeof t == "function" && (We = t), typeof e == "function") {
|
|
131
|
+
const n = Je();
|
|
132
|
+
if (n && i.themes && Array.isArray(i.themes) && !i.themes.includes(n)) throw new Error("Preferred theme not in provided themes array");
|
|
133
|
+
const l = e(ro(Te({ wordWrap: "on", wrappingIndent: "same", themes: i.themes, theme: n }, i.monacoOptions || {}), { onThemeChange() {
|
|
134
|
+
Fe();
|
|
135
|
+
} }));
|
|
136
|
+
L = l.createEditor || L, ce = l.createDiffEditor || ce, Me = l.updateCode || Me, Ce = l.updateDiff || Ce, de = l.getEditor || de, j = l.getEditorView || j, T = l.getDiffEditorView || T, Be = l.cleanupEditor || Be, ve = l.safeClean || l.cleanupEditor || ve, Se = l.setTheme || Se, se.value = !0, d.value && (yield we(d.value));
|
|
137
|
+
}
|
|
138
|
+
} catch {
|
|
139
|
+
me.value = !0;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
const N = M(typeof ((k = i.monacoOptions) == null ? void 0 : k.fontSize) == "number" ? i.monacoOptions.fontSize : Number.NaN), h = M(N.value), wo = C(() => {
|
|
143
|
+
const o = N.value, e = h.value;
|
|
144
|
+
return typeof o == "number" && Number.isFinite(o) && o > 0 && typeof e == "number" && Number.isFinite(e) && e > 0;
|
|
145
|
+
}), Re = C(() => {
|
|
146
|
+
var o;
|
|
147
|
+
const e = (o = i.monacoOptions) == null ? void 0 : o.fontSize;
|
|
148
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return e;
|
|
149
|
+
const t = h.value;
|
|
150
|
+
return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : 12;
|
|
151
|
+
}), go = C(() => {
|
|
152
|
+
var o;
|
|
153
|
+
const e = (o = i.monacoOptions) == null ? void 0 : o.lineHeight;
|
|
154
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : Math.round(1.5 * Re.value);
|
|
155
|
+
}), yo = C(() => {
|
|
156
|
+
var o;
|
|
157
|
+
const e = (o = i.monacoOptions) == null ? void 0 : o.tabSize;
|
|
158
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 4;
|
|
159
|
+
}), ko = C(() => {
|
|
160
|
+
var o;
|
|
161
|
+
const e = (o = i.monacoOptions) == null ? void 0 : o.fontFamily;
|
|
162
|
+
return Te({ fontSize: `${Re.value}px`, lineHeight: `${go.value}px`, tabSize: yo.value }, typeof e == "string" && e.trim() ? { "--markstream-code-font-family": e.trim() } : {});
|
|
163
|
+
});
|
|
164
|
+
function Ae() {
|
|
165
|
+
var o, e, t, n, l;
|
|
166
|
+
try {
|
|
167
|
+
const a = P.value ? (t = (e = (o = T()) == null ? void 0 : o.getModifiedEditor) == null ? void 0 : e.call(o)) != null ? t : T() : j(), c = de(), r = (n = c?.EditorOption) == null ? void 0 : n.fontInfo;
|
|
168
|
+
if (a && r != null) {
|
|
169
|
+
const y = (l = a.getOption) == null ? void 0 : l.call(a, r), s = y?.fontSize;
|
|
170
|
+
if (typeof s == "number" && Number.isFinite(s) && s > 0) return s;
|
|
171
|
+
}
|
|
172
|
+
} catch {
|
|
173
|
+
}
|
|
174
|
+
try {
|
|
175
|
+
const a = d.value;
|
|
176
|
+
if (a) {
|
|
177
|
+
const c = a.querySelector(".view-lines .view-line");
|
|
178
|
+
if (c) try {
|
|
179
|
+
if (typeof window < "u" && typeof window.getComputedStyle == "function") {
|
|
180
|
+
const r = window.getComputedStyle(c).fontSize, y = r && r.match(/^(\d+(?:\.\d+)?)/);
|
|
181
|
+
if (y) return Number.parseFloat(y[1]);
|
|
182
|
+
}
|
|
183
|
+
} catch {
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
} catch {
|
|
187
|
+
}
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
function Oe(o) {
|
|
191
|
+
var e, t;
|
|
192
|
+
try {
|
|
193
|
+
const a = de(), c = (e = a?.EditorOption) == null ? void 0 : e.lineHeight;
|
|
194
|
+
if (c != null) {
|
|
195
|
+
const r = (t = o?.getOption) == null ? void 0 : t.call(o, c);
|
|
196
|
+
if (typeof r == "number" && r > 0) return r;
|
|
197
|
+
}
|
|
198
|
+
} catch {
|
|
199
|
+
}
|
|
200
|
+
const n = (function() {
|
|
201
|
+
try {
|
|
202
|
+
const a = d.value;
|
|
203
|
+
if (!a) return null;
|
|
204
|
+
const c = a.querySelector(".view-lines .view-line");
|
|
205
|
+
if (c) {
|
|
206
|
+
const r = Math.ceil(c.getBoundingClientRect().height);
|
|
207
|
+
if (r > 0) return r;
|
|
208
|
+
}
|
|
209
|
+
} catch {
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
})();
|
|
213
|
+
if (n && n > 0) return n;
|
|
214
|
+
const l = Number.isFinite(h.value) && h.value > 0 ? h.value : 12;
|
|
215
|
+
return Math.max(12, Math.round(1.35 * l));
|
|
216
|
+
}
|
|
217
|
+
function _e() {
|
|
218
|
+
var o;
|
|
219
|
+
if (Number.isFinite(h.value) && h.value > 0 && Number.isFinite(N.value)) return h.value;
|
|
220
|
+
const e = Ae();
|
|
221
|
+
return typeof ((o = i.monacoOptions) == null ? void 0 : o.fontSize) == "number" ? (N.value = i.monacoOptions.fontSize, h.value = i.monacoOptions.fontSize, h.value) : e && e > 0 ? (N.value = e, h.value = e, e) : (N.value = 12, h.value = 12, 12);
|
|
222
|
+
}
|
|
223
|
+
function Ue() {
|
|
224
|
+
var o, e, t, n, l, a, c, r, y, s, v, W, R, x;
|
|
225
|
+
try {
|
|
226
|
+
const w = P.value ? T() : j();
|
|
227
|
+
if (!w) return null;
|
|
228
|
+
if (P.value && w?.getOriginalEditor && w?.getModifiedEditor) {
|
|
229
|
+
const B = (o = w.getOriginalEditor) == null ? void 0 : o.call(w), E = (e = w.getModifiedEditor) == null ? void 0 : e.call(w);
|
|
230
|
+
(t = B?.layout) == null || t.call(B), (n = E?.layout) == null || n.call(E);
|
|
231
|
+
const ye = ((l = B?.getContentHeight) == null ? void 0 : l.call(B)) || 0, Ke = ((a = E?.getContentHeight) == null ? void 0 : a.call(E)) || 0, Qe = Math.max(ye, Ke);
|
|
232
|
+
if (Qe > 0) return Math.ceil(Qe + 1);
|
|
233
|
+
const Po = ((y = (r = (c = B?.getModel) == null ? void 0 : c.call(B)) == null ? void 0 : r.getLineCount) == null ? void 0 : y.call(r)) || 1, Eo = ((W = (v = (s = E?.getModel) == null ? void 0 : s.call(E)) == null ? void 0 : v.getLineCount) == null ? void 0 : W.call(v)) || 1, $o = Math.max(Po, Eo), No = Math.max(Oe(B), Oe(E));
|
|
234
|
+
return Math.ceil($o * (No + 1.5) + 0 + 1);
|
|
235
|
+
}
|
|
236
|
+
if (w?.getContentHeight) {
|
|
237
|
+
(R = w?.layout) == null || R.call(w);
|
|
238
|
+
const B = w.getContentHeight();
|
|
239
|
+
if (B > 0) return Math.ceil(B + 1);
|
|
240
|
+
}
|
|
241
|
+
const A = (x = w?.getModel) == null ? void 0 : x.call(w);
|
|
242
|
+
let ge = 1;
|
|
243
|
+
A && typeof A.getLineCount == "function" && (ge = A.getLineCount());
|
|
244
|
+
const Ee = Oe(w);
|
|
245
|
+
return Math.ceil(ge * (Ee + 1.5) + 0 + 1);
|
|
246
|
+
} catch {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
function Fe() {
|
|
251
|
+
var o, e, t, n, l, a, c, r;
|
|
252
|
+
const y = d.value, s = U.value;
|
|
253
|
+
if (!y || !s) return;
|
|
254
|
+
const v = y.querySelector(".monaco-editor") || y, W = v.querySelector(".monaco-editor-background") || v, R = v.querySelector(".view-lines") || v;
|
|
255
|
+
let x = null, w = null, A = null;
|
|
256
|
+
try {
|
|
257
|
+
typeof window < "u" && typeof window.getComputedStyle == "function" && (x = window.getComputedStyle(v), w = W === v ? x : window.getComputedStyle(W), A = R === v ? x : window.getComputedStyle(R));
|
|
258
|
+
} catch {
|
|
259
|
+
x = null, w = null, A = null;
|
|
260
|
+
}
|
|
261
|
+
const ge = String((o = x?.getPropertyValue("--vscode-editor-foreground")) != null ? o : "").trim(), Ee = String((e = x?.getPropertyValue("--vscode-editor-background")) != null ? e : "").trim(), B = String((n = (t = x?.getPropertyValue("--vscode-editor-selectionBackground")) != null ? t : x?.getPropertyValue("--vscode-editor-hoverHighlightBackground")) != null ? n : "").trim(), E = ge || String((a = (l = A?.color) != null ? l : x?.color) != null ? a : "").trim(), ye = Ee || String((r = (c = w?.backgroundColor) != null ? c : x?.backgroundColor) != null ? r : "").trim();
|
|
262
|
+
E && s.style.setProperty("--vscode-editor-foreground", E), ye && s.style.setProperty("--vscode-editor-background", ye), B && s.style.setProperty("--vscode-editor-selectionBackground", B);
|
|
263
|
+
}
|
|
264
|
+
function G() {
|
|
265
|
+
try {
|
|
266
|
+
const o = d.value;
|
|
267
|
+
if (!o) return;
|
|
268
|
+
const e = o.getBoundingClientRect(), t = window.scrollY + e.top, n = Ue();
|
|
269
|
+
if (n != null && n > 0) {
|
|
270
|
+
const l = e.height;
|
|
271
|
+
o.style.height = `${Math.ceil(n)}px`, o.style.maxHeight = "none";
|
|
272
|
+
const a = Math.ceil(n) - l;
|
|
273
|
+
a !== 0 && t < window.scrollY && window.scrollBy(0, a);
|
|
274
|
+
}
|
|
275
|
+
} catch {
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function ee() {
|
|
279
|
+
var o;
|
|
280
|
+
try {
|
|
281
|
+
const e = d.value;
|
|
282
|
+
if (!e) return;
|
|
283
|
+
const t = e.getBoundingClientRect(), n = window.scrollY + t.top, l = t.height, a = (function() {
|
|
284
|
+
var s, v;
|
|
285
|
+
const W = (v = (s = i.monacoOptions) == null ? void 0 : s.MAX_HEIGHT) != null ? v : 500;
|
|
286
|
+
if (typeof W == "number") return W;
|
|
287
|
+
const R = String(W).match(/^(\d+(?:\.\d+)?)/);
|
|
288
|
+
return R ? Number.parseFloat(R[1]) : 500;
|
|
289
|
+
})();
|
|
290
|
+
if (xe > 0 && (xe--, X.value != null)) {
|
|
291
|
+
const s = Math.min(X.value, a);
|
|
292
|
+
e.style.height = `${Math.ceil(s)}px`, e.style.maxHeight = `${Math.ceil(a)}px`, e.style.overflow = "auto";
|
|
293
|
+
const v = Math.ceil(s) - l;
|
|
294
|
+
return void (v !== 0 && n < window.scrollY && window.scrollBy(0, v));
|
|
295
|
+
}
|
|
296
|
+
const c = Ue();
|
|
297
|
+
if (c != null && c > 0) {
|
|
298
|
+
const s = Math.min(c, a);
|
|
299
|
+
e.style.height = `${Math.ceil(s)}px`, e.style.maxHeight = `${Math.ceil(a)}px`, e.style.overflow = "auto";
|
|
300
|
+
const v = Math.ceil(s) - l;
|
|
301
|
+
return void (v !== 0 && n < window.scrollY && window.scrollBy(0, v));
|
|
302
|
+
}
|
|
303
|
+
if (X.value != null) {
|
|
304
|
+
const s = Math.min(X.value, a);
|
|
305
|
+
e.style.height = `${Math.ceil(s)}px`, e.style.maxHeight = `${Math.ceil(a)}px`, e.style.overflow = "auto";
|
|
306
|
+
const v = Math.ceil(s) - l;
|
|
307
|
+
return void (v !== 0 && n < window.scrollY && window.scrollBy(0, v));
|
|
308
|
+
}
|
|
309
|
+
const r = Math.ceil(((o = e.getBoundingClientRect) == null ? void 0 : o.call(e).height) || 0);
|
|
310
|
+
if (r > 0) {
|
|
311
|
+
const s = Math.min(r, a);
|
|
312
|
+
e.style.height = `${Math.ceil(s)}px`, e.style.maxHeight = `${Math.ceil(a)}px`, e.style.overflow = "auto";
|
|
313
|
+
const v = Math.ceil(s) - l;
|
|
314
|
+
return void (v !== 0 && n < window.scrollY && window.scrollBy(0, v));
|
|
315
|
+
}
|
|
316
|
+
const y = Number.parseFloat(e.style.height);
|
|
317
|
+
if (!Number.isNaN(y) && y > 0) {
|
|
318
|
+
const s = Math.ceil(Math.min(y, a));
|
|
319
|
+
e.style.height = `${s}px`;
|
|
320
|
+
const v = s - l;
|
|
321
|
+
v !== 0 && n < window.scrollY && window.scrollBy(0, v);
|
|
322
|
+
} else {
|
|
323
|
+
const s = Math.ceil(a);
|
|
324
|
+
e.style.height = `${s}px`;
|
|
325
|
+
const v = s - l;
|
|
326
|
+
v !== 0 && n < window.scrollY && window.scrollBy(0, v);
|
|
327
|
+
}
|
|
328
|
+
e.style.maxHeight = `${Math.ceil(a)}px`, e.style.overflow = "auto";
|
|
329
|
+
} catch {
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
const Pe = C(() => i.isShowPreview && (D.value === "html" || D.value === "svg"));
|
|
333
|
+
V(() => i.node.language, (o) => {
|
|
334
|
+
D.value = ze(o);
|
|
335
|
+
}), V(() => i.node.code, (o) => Y(null, null, function* () {
|
|
336
|
+
var e, t;
|
|
337
|
+
if (i.stream !== !1) {
|
|
338
|
+
if (D.value || (D.value = ze(We(o))), L && !ue.value && d.value) try {
|
|
339
|
+
yield we(d.value);
|
|
340
|
+
} catch {
|
|
341
|
+
}
|
|
342
|
+
P.value ? Ce(String((e = i.node.originalCode) != null ? e : ""), String((t = i.node.updatedCode) != null ? t : ""), le.value) : Me(o, le.value), S.value && ae(() => G());
|
|
343
|
+
}
|
|
344
|
+
}));
|
|
345
|
+
const bo = C(() => {
|
|
346
|
+
const o = D.value;
|
|
347
|
+
return o ? oo[o] || o.charAt(0).toUpperCase() + o.slice(1) : oo[""];
|
|
348
|
+
}), xo = C(() => (Io.value, Wo(D.value || ""))), Mo = C(() => {
|
|
349
|
+
const o = {}, e = (l) => {
|
|
350
|
+
if (l != null) return typeof l == "number" ? `${l}px` : String(l);
|
|
351
|
+
}, t = e(i.minWidth), n = e(i.maxWidth);
|
|
352
|
+
return t && (o.minWidth = t), n && (o.maxWidth = n), o;
|
|
353
|
+
}), pe = C(() => i.showTooltips !== !1);
|
|
354
|
+
function Co() {
|
|
355
|
+
return Y(this, null, function* () {
|
|
356
|
+
try {
|
|
357
|
+
typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(i.node.code)), K.value = !0, I("copy", i.node.code), setTimeout(() => {
|
|
358
|
+
K.value = !1;
|
|
359
|
+
}, 1e3);
|
|
360
|
+
} catch (o) {
|
|
361
|
+
console.error("复制失败:", o);
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function Xe(o) {
|
|
366
|
+
const e = o.currentTarget || o.target;
|
|
367
|
+
return !e || e.disabled ? null : e;
|
|
368
|
+
}
|
|
369
|
+
function z(o, e, t = "top") {
|
|
370
|
+
if (!pe.value) return;
|
|
371
|
+
const n = Xe(o);
|
|
372
|
+
if (!n) return;
|
|
373
|
+
const l = o, a = l?.clientX != null && l?.clientY != null ? { x: l.clientX, y: l.clientY } : void 0;
|
|
374
|
+
lo(n, e, t, !1, a, i.isDark);
|
|
375
|
+
}
|
|
376
|
+
function F() {
|
|
377
|
+
pe.value && to();
|
|
378
|
+
}
|
|
379
|
+
function Ge(o) {
|
|
380
|
+
if (!pe.value) return;
|
|
381
|
+
const e = Xe(o);
|
|
382
|
+
if (!e) return;
|
|
383
|
+
const t = K.value ? f("common.copied") || "Copied" : f("common.copy") || "Copy", n = o, l = n?.clientX != null && n?.clientY != null ? { x: n.clientX, y: n.clientY } : void 0;
|
|
384
|
+
lo(e, t, "top", !1, l, i.isDark);
|
|
385
|
+
}
|
|
386
|
+
function Bo() {
|
|
387
|
+
S.value = !S.value;
|
|
388
|
+
const o = P.value ? T() : j(), e = d.value;
|
|
389
|
+
o && e && (S.value ? (he(!0), e.style.maxHeight = "none", e.style.overflow = "visible", G()) : (he(!1), e.style.overflow = "auto", ee()));
|
|
390
|
+
}
|
|
391
|
+
function So() {
|
|
392
|
+
var o, e, t;
|
|
393
|
+
if (O.value = !O.value, O.value) {
|
|
394
|
+
if (d.value) {
|
|
395
|
+
const n = Math.ceil(((e = (o = d.value).getBoundingClientRect) == null ? void 0 : e.call(o).height) || 0);
|
|
396
|
+
n > 0 && (X.value = n);
|
|
397
|
+
}
|
|
398
|
+
he(!1);
|
|
399
|
+
} else {
|
|
400
|
+
S.value && he(!0), d.value && X.value != null && (d.value.style.height = `${X.value}px`);
|
|
401
|
+
const n = P.value ? T() : j();
|
|
402
|
+
try {
|
|
403
|
+
(t = n?.layout) == null || t.call(n);
|
|
404
|
+
} catch {
|
|
405
|
+
}
|
|
406
|
+
xe = 2, ae(() => {
|
|
407
|
+
S.value ? G() : ee();
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function Oo() {
|
|
412
|
+
if (!Pe.value) return;
|
|
413
|
+
const o = D.value;
|
|
414
|
+
if (b.value) {
|
|
415
|
+
const e = o === "html" ? "text/html" : "image/svg+xml", t = o === "html" ? f("artifacts.htmlPreviewTitle") || "HTML Preview" : f("artifacts.svgPreviewTitle") || "SVG Preview";
|
|
416
|
+
return void I("previewCode", { node: i.node, artifactType: e, artifactTitle: t, id: `temp-${o}-${Date.now()}` });
|
|
417
|
+
}
|
|
418
|
+
o === "html" && (fe.value = !fe.value);
|
|
419
|
+
}
|
|
420
|
+
function he(o) {
|
|
421
|
+
var e, t;
|
|
422
|
+
try {
|
|
423
|
+
if (P.value) {
|
|
424
|
+
const n = T();
|
|
425
|
+
(e = n?.updateOptions) == null || e.call(n, { automaticLayout: o });
|
|
426
|
+
} else {
|
|
427
|
+
const n = j();
|
|
428
|
+
(t = n?.updateOptions) == null || t.call(n, { automaticLayout: o });
|
|
429
|
+
}
|
|
430
|
+
} catch {
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function we(o) {
|
|
434
|
+
return L ? Z || (ue.value = !0, Z = Y(null, null, function* () {
|
|
435
|
+
yield (function(t) {
|
|
436
|
+
return Y(this, null, function* () {
|
|
437
|
+
var n, l, a;
|
|
438
|
+
if (!L) return;
|
|
439
|
+
P.value ? (ve(), ce ? yield ce(t, String((n = i.node.originalCode) != null ? n : ""), String((l = i.node.updatedCode) != null ? l : ""), le.value) : yield L(t, i.node.code, le.value)) : yield L(t, i.node.code, le.value);
|
|
440
|
+
const c = P.value ? T() : j();
|
|
441
|
+
if (typeof ((a = i.monacoOptions) == null ? void 0 : a.fontSize) == "number") c?.updateOptions({ fontSize: i.monacoOptions.fontSize, automaticLayout: !1 }), N.value = i.monacoOptions.fontSize, h.value = i.monacoOptions.fontSize;
|
|
442
|
+
else {
|
|
443
|
+
const r = Ae();
|
|
444
|
+
r && r > 0 ? (N.value = r, h.value = r) : (N.value = 12, h.value = 12);
|
|
445
|
+
}
|
|
446
|
+
S.value || O.value || ee(), i.loading === !1 && (yield ke(), ae(() => {
|
|
447
|
+
S.value && !O.value ? G() : O.value || ee();
|
|
448
|
+
})), yield ke(), Q.value = !0, Fe();
|
|
449
|
+
});
|
|
450
|
+
})(o);
|
|
451
|
+
}).finally(() => {
|
|
452
|
+
Z = null;
|
|
453
|
+
}), Z) : null;
|
|
454
|
+
}
|
|
455
|
+
V(pe, (o) => {
|
|
456
|
+
o || to();
|
|
457
|
+
}), V(() => h.value, (o, e) => {
|
|
458
|
+
const t = P.value ? T() : j();
|
|
459
|
+
t && typeof o == "number" && Number.isFinite(o) && o > 0 && (t.updateOptions({ fontSize: o }), S.value && !O.value && G());
|
|
460
|
+
}, { flush: "post", immediate: !1 });
|
|
461
|
+
const _o = V(() => [d.value, P.value, i.stream, i.loading, se.value, q.value], (o) => Y(null, [o], function* ([e, t, n, l, a, c]) {
|
|
462
|
+
if (!e || !L || !c || n === !1 && l !== !1) return;
|
|
463
|
+
const r = we(e);
|
|
464
|
+
if (r) {
|
|
465
|
+
try {
|
|
466
|
+
yield r;
|
|
467
|
+
} catch {
|
|
468
|
+
Q.value = !1;
|
|
469
|
+
}
|
|
470
|
+
_o();
|
|
471
|
+
}
|
|
472
|
+
}));
|
|
473
|
+
function Je() {
|
|
474
|
+
return i.isDark ? i.darkTheme : i.lightTheme;
|
|
475
|
+
}
|
|
476
|
+
V(Ie, (o, e) => Y(null, null, function* () {
|
|
477
|
+
if (o !== e && (po.value = o, L && d.value && ue.value && (i.stream !== !1 || i.loading === !1) && q.value)) try {
|
|
478
|
+
Q.value = !1, ue.value = !1, Z = null, ve(), yield ke(), yield we(d.value);
|
|
479
|
+
} catch {
|
|
480
|
+
Q.value = !1;
|
|
481
|
+
}
|
|
482
|
+
})), V(() => [i.isDark, i.darkTheme, i.lightTheme, se.value], () => {
|
|
483
|
+
se.value && (function() {
|
|
484
|
+
const o = Je();
|
|
485
|
+
o && (function(e, t) {
|
|
486
|
+
const n = (function(l) {
|
|
487
|
+
if (l == null) return null;
|
|
488
|
+
if (typeof l == "string") return l;
|
|
489
|
+
if (typeof l == "object" && l && "name" in l) return String(l.name);
|
|
490
|
+
if (typeof l == "object") {
|
|
491
|
+
const a = je.get(l);
|
|
492
|
+
if (a) return a;
|
|
493
|
+
try {
|
|
494
|
+
const r = JSON.stringify(l);
|
|
495
|
+
if (r) return je.set(l, r), r;
|
|
496
|
+
} catch {
|
|
497
|
+
}
|
|
498
|
+
const c = "__theme_" + ++tt;
|
|
499
|
+
return je.set(l, c), c;
|
|
500
|
+
}
|
|
501
|
+
return String(l);
|
|
502
|
+
})(t);
|
|
503
|
+
return n ? (Le = e, oe || De !== n ? oe ? (te === n || He === n || (re = t, te = n), oe) : (re = t, te = n, oe = Y(null, null, function* () {
|
|
504
|
+
for (; te && re != null; ) {
|
|
505
|
+
const l = re, a = te;
|
|
506
|
+
if (re = null, te = null, De !== a) try {
|
|
507
|
+
He = a, yield (Le ?? e)(l), De = a;
|
|
508
|
+
} catch {
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}).finally(() => {
|
|
512
|
+
oe = null, He = null;
|
|
513
|
+
}), oe) : Promise.resolve()) : Promise.resolve();
|
|
514
|
+
})(Se, o).then(() => {
|
|
515
|
+
Q.value && ae(() => Fe());
|
|
516
|
+
});
|
|
517
|
+
})();
|
|
518
|
+
}), V(() => [i.monacoOptions, q.value], () => {
|
|
519
|
+
var o, e;
|
|
520
|
+
if (!L || !q.value) return;
|
|
521
|
+
const t = P.value ? T() : j(), n = typeof ((o = i.monacoOptions) == null ? void 0 : o.fontSize) == "number" ? i.monacoOptions.fontSize : Number.isFinite(h.value) ? h.value : void 0;
|
|
522
|
+
typeof n == "number" && Number.isFinite(n) && n > 0 && ((e = t?.updateOptions) == null || e.call(t, { fontSize: n })), S.value && !O.value ? G() : O.value || ee();
|
|
523
|
+
}, { deep: !0 });
|
|
524
|
+
const Fo = V(() => [i.loading, q.value], (o) => Y(null, [o], function* ([e, t]) {
|
|
525
|
+
t && (e || (yield ke(), ae(() => {
|
|
526
|
+
O.value || (S.value ? G() : ee()), Fo();
|
|
527
|
+
})));
|
|
528
|
+
}), { immediate: !0, flush: "post" });
|
|
529
|
+
return co(() => {
|
|
530
|
+
Be();
|
|
531
|
+
}), (o, e) => me.value ? (_(), be(g(no), { key: 0, node: p.node, loading: i.loading }, null, 8, ["node", "loading"])) : (_(), H("div", { key: 1, ref_key: "container", ref: U, style: $e(Mo.value), class: ne(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm", [i.isDark ? "border-gray-700/30 bg-gray-900" : "border-gray-200 bg-white", { "is-rendering": i.loading, "is-dark": i.isDark }]]) }, [i.showHeader ? (_(), H("div", nt, [Ne(o.$slots, "header-left", {}, () => [u("div", lt, [u("span", { class: "icon-slot h-4 w-4 flex-shrink-0", innerHTML: xo.value }, null, 8, it), u("span", at, Ye(bo.value), 1)])], !0), Ne(o.$slots, "header-right", {}, () => [u("div", rt, [u("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-pressed": O.value, onClick: So, onMouseenter: e[0] || (e[0] = (t) => z(t, O.value ? g(f)("common.expand") || "Expand" : g(f)("common.collapse") || "Collapse")), onFocus: e[1] || (e[1] = (t) => z(t, O.value ? g(f)("common.expand") || "Expand" : g(f)("common.collapse") || "Collapse")), onMouseleave: F, onBlur: F }, [(_(), H("svg", { style: $e({ rotate: O.value ? "0deg" : "90deg" }), xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [...e[17] || (e[17] = [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m9 18l6-6l-6-6" }, null, -1)])], 4))], 40, ut), i.showFontSizeButtons && i.enableFontSizeControl ? (_(), H(Ho, { key: 0 }, [u("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !!Number.isFinite(h.value) && h.value <= 10, onClick: e[2] || (e[2] = (t) => (function() {
|
|
532
|
+
const n = _e(), l = Math.max(10, n - 1);
|
|
533
|
+
h.value = l;
|
|
534
|
+
})()), onMouseenter: e[3] || (e[3] = (t) => z(t, g(f)("common.decrease") || "Decrease")), onFocus: e[4] || (e[4] = (t) => z(t, g(f)("common.decrease") || "Decrease")), onMouseleave: F, onBlur: F }, [...e[18] || (e[18] = [u("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h14" })], -1)])], 40, st), u("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !wo.value || h.value === N.value, onClick: e[5] || (e[5] = (t) => (_e(), void (Number.isFinite(N.value) && (h.value = N.value)))), onMouseenter: e[6] || (e[6] = (t) => z(t, g(f)("common.reset") || "Reset")), onFocus: e[7] || (e[7] = (t) => z(t, g(f)("common.reset") || "Reset")), onMouseleave: F, onBlur: F }, [...e[19] || (e[19] = [u("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [u("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [u("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }), u("path", { d: "M3 3v5h5" })])], -1)])], 40, ct), u("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !!Number.isFinite(h.value) && h.value >= 36, onClick: e[8] || (e[8] = (t) => (function() {
|
|
535
|
+
const n = _e(), l = Math.min(36, n + 1);
|
|
536
|
+
h.value = l;
|
|
537
|
+
})()), onMouseenter: e[9] || (e[9] = (t) => z(t, g(f)("common.increase") || "Increase")), onFocus: e[10] || (e[10] = (t) => z(t, g(f)("common.increase") || "Increase")), onMouseleave: F, onBlur: F }, [...e[20] || (e[20] = [u("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h14m-7-7v14" })], -1)])], 40, dt)], 64)) : J("", !0), i.showCopyButton ? (_(), H("button", { key: 1, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": K.value ? g(f)("common.copied") || "Copied" : g(f)("common.copy") || "Copy", onClick: Co, onMouseenter: e[11] || (e[11] = (t) => Ge(t)), onFocus: e[12] || (e[12] = (t) => Ge(t)), onMouseleave: F, onBlur: F }, [K.value ? (_(), H("svg", ft, [...e[22] || (e[22] = [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M20 6L9 17l-5-5" }, null, -1)])])) : (_(), H("svg", mt, [...e[21] || (e[21] = [u("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [u("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }), u("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })], -1)])]))], 40, vt)) : J("", !0), i.showExpandButton ? (_(), H("button", { key: 2, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-pressed": S.value, onClick: Bo, onMouseenter: e[13] || (e[13] = (t) => z(t, S.value ? g(f)("common.collapse") || "Collapse" : g(f)("common.expand") || "Expand")), onFocus: e[14] || (e[14] = (t) => z(t, S.value ? g(f)("common.collapse") || "Collapse" : g(f)("common.expand") || "Expand")), onMouseleave: F, onBlur: F }, [S.value ? (_(), H("svg", ht, [...e[23] || (e[23] = [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" }, null, -1)])])) : (_(), H("svg", wt, [...e[24] || (e[24] = [u("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" }, null, -1)])]))], 40, pt)) : J("", !0), Pe.value && i.showPreviewButton ? (_(), H("button", { key: 3, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": g(f)("common.preview") || "Preview", onClick: Oo, onMouseenter: e[15] || (e[15] = (t) => z(t, g(f)("common.preview") || "Preview")), onFocus: e[16] || (e[16] = (t) => z(t, g(f)("common.preview") || "Preview")), onMouseleave: F, onBlur: F }, [...e[25] || (e[25] = [u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24" }, [u("g", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" }, [u("path", { d: "M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496" }), u("path", { d: "M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23" })])], -1)])], 40, gt)) : J("", !0)])], !0)])) : J("", !0), Ze(u("div", yt, [u("div", { ref_key: "codeEditor", ref: d, class: ne(["code-editor-container", [p.stream ? "" : "code-height-placeholder", { "is-hidden": qe.value }]]) }, null, 2), qe.value ? (_(), be(g(no), { key: 0, class: ne(["code-pre-fallback", { "is-wrap": ho.value }]), style: $e(ko.value), node: p.node }, null, 8, ["class", "style", "node"])) : J("", !0)], 512), [[eo, !(O.value || !p.stream && p.loading)]]), fe.value && !b.value && Pe.value && D.value === "html" ? (_(), be(ot, { key: 1, code: p.node.code, "is-dark": i.isDark, "on-close": () => fe.value = !1 }, null, 8, ["code", "is-dark", "on-close"])) : J("", !0), Ze(u("div", kt, [Ne(o.$slots, "loading", { loading: p.loading, stream: p.stream }, () => [e[26] || (e[26] = u("div", { class: "loading-skeleton" }, [u("div", { class: "skeleton-line" }), u("div", { class: "skeleton-line" }), u("div", { class: "skeleton-line short" })], -1))], !0)], 512), [[eo, !p.stream && p.loading]]), u("span", bt, Ye(K.value ? g(f)("common.copied") || "Copied" : ""), 1)], 6));
|
|
538
|
+
} }), [["__scopeId", "data-v-39c34a1b"]]);
|
|
539
|
+
Ve.install = (p) => {
|
|
540
|
+
p.component(Ve.__name, Ve);
|
|
541
|
+
};
|
|
542
|
+
export {
|
|
543
|
+
Ve as default
|
|
544
|
+
};
|