@foris/ai-agent 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/ai-agent.es.js +6 -1391
- package/dist/ai-agent.umd.js +3374 -103
- package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
- package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
- package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
- package/dist/ai-prompt-code-editor/index.d.ts +1 -0
- package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
- package/dist/andromeeda-BIpZ7gaU.js +4 -0
- package/dist/angular-html-DPB4Rf0C.js +32 -0
- package/dist/angular-ts-CeqPwKaz.js +24 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apex-oLhhs58q.js +6 -0
- package/dist/apl-Bfz1rp5e.js +17 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-CYayZuAl.js +85 -0
- package/dist/architectureDiagram-VXUJARFQ-CqFKxLlH.js +4674 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asm-BTWLY5ym.js +6 -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-CxPZkpb2.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/blade-DRRSiTQz.js +21 -0
- package/dist/blockDiagram-VD42YOAC-DEi-xIcu.js +2407 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c4Diagram-YG6GDRKO-mFZhX_-U.js +1585 -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-CbDO3juL.js +5 -0
- package/dist/chunk-4BX2VUAB-D5qkn5BA.js +9 -0
- package/dist/chunk-55IACEB6-CR8xZK7z.js +8 -0
- package/dist/chunk-B4BG7PRW-Cm3F2ypm.js +1377 -0
- package/dist/chunk-DI55MBZ5-CxISwEU9.js +1383 -0
- package/dist/chunk-FMBD7UC4-DZxSUJCY.js +19 -0
- package/dist/chunk-QN33PNHL-5NUdQ31M.js +20 -0
- package/dist/chunk-QZHKN3VN-CSeHgX9s.js +15 -0
- package/dist/chunk-TZMSLE5B-DfqMo2XK.js +64 -0
- package/dist/clarity-PKm5CwqM.js +6 -0
- package/dist/classDiagram-2ON5EDUG-6wC7c07U.js +22 -0
- package/dist/classDiagram-v2-WZHVMYZB-6wC7c07U.js +22 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cobol-DYTFdEK1.js +12 -0
- package/dist/code-block-QI2IAROF-zqFu2qJj.js +2812 -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/components/ai-elements/artifact.d.ts +23 -0
- package/dist/components/ai-elements/canvas.d.ts +7 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
- package/dist/components/ai-elements/checkpoint.d.ts +11 -0
- package/dist/components/ai-elements/code-block.d.ts +17 -0
- package/dist/components/ai-elements/confirmation.d.ts +49 -0
- package/dist/components/ai-elements/connection.d.ts +2 -0
- package/dist/components/ai-elements/context.d.ts +32 -0
- package/dist/components/ai-elements/controls.d.ts +4 -0
- package/dist/components/ai-elements/conversation.d.ts +15 -0
- package/dist/components/ai-elements/edge.d.ts +5 -0
- package/dist/components/ai-elements/image.d.ts +6 -0
- package/dist/components/ai-elements/inline-citation.d.ts +38 -0
- package/dist/components/ai-elements/loader.d.ts +5 -0
- package/dist/components/ai-elements/message.d.ts +46 -0
- package/dist/components/ai-elements/model-selector.d.ts +35 -0
- package/dist/components/ai-elements/node.d.ts +21 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
- package/dist/components/ai-elements/panel.d.ts +5 -0
- package/dist/components/ai-elements/plan.d.ts +25 -0
- package/dist/components/ai-elements/prompt-input.d.ts +187 -0
- package/dist/components/ai-elements/queue.d.ts +61 -0
- package/dist/components/ai-elements/reasoning.d.ts +26 -0
- package/dist/components/ai-elements/shimmer.d.ts +9 -0
- package/dist/components/ai-elements/sources.d.ts +12 -0
- package/dist/components/ai-elements/suggestion.d.ts +10 -0
- package/dist/components/ai-elements/task.d.ts +14 -0
- package/dist/components/ai-elements/tool.d.ts +23 -0
- package/dist/components/ai-elements/toolbar.d.ts +5 -0
- package/dist/components/ai-elements/web-preview.d.ts +34 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/cose-bilkent-S5V4N54A-BzL4MMWZ.js +2612 -0
- package/dist/cpp-ZFnOq6fV.js +19 -0
- package/dist/crystal-CRJyc4G-.js +18 -0
- package/dist/csharp-C7yUs7-w.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-ClN43hhW.js +18846 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dagre-6UL2VRFP-CwTDE2RX.js +451 -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-DcQU6Vee.js +177 -0
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/diagram-PSM6KHXK-UeQhynP7.js +544 -0
- package/dist/diagram-QEK2KX5R-DZy1cp9G.js +224 -0
- package/dist/diagram-S2PKOQOG-DyT7Ss8-.js +146 -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/edge-B882-fmN.js +14 -0
- package/dist/elixir-DRzNHQCz.js +10 -0
- package/dist/elm-DZPAA5Qn.js +9 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-CpzaErVm.js +846 -0
- package/dist/erb-DB1DqdBc.js +27 -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/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-BTDEUgqH.js +6 -0
- package/dist/flowDiagram-NV44I4VS-BHP6h-eN.js +1631 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
- package/dist/fortran-free-form-DPIT_jbP.js +6 -0
- package/dist/fsharp-CYOiIVNx.js +8 -0
- package/dist/ganttDiagram-JELNMOA3-0qqei9Bz.js +2702 -0
- package/dist/gdresource-BwtMIoBm.js +10 -0
- package/dist/gdscript-BifyeYhI.js +6 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/genie-DzUvd7U9.js +6 -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/gitGraphDiagram-NY62KEGX-DGukWnfa.js +715 -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/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/graph-DB2UxkYH.js +1190 -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-DVWgrvc2.js +12 -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/hooks/useCodeTransform.d.ts +13 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/html-B50bmoVb.js +10 -0
- package/dist/html-derivative-ByyNxAP5.js +10 -0
- package/dist/http-BVIWqb92.js +19 -0
- package/dist/hurl-B8OTiYoQ.js +17 -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-Zd10d_CE.js +52486 -0
- package/dist/index.d.ts +2 -2
- package/dist/infoDiagram-WHAUD3N6-CRWuQBon.js +27 -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-CI-LSgSv.js +13 -0
- package/dist/jison-DdreslRX.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q-Bl-asDPd.js +840 -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-ll8P6QXy.js +19 -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-IdguZzXg.js +724 -0
- package/dist/katex.min-l0sNRNKZ.js +1 -0
- package/dist/kdl-BNOv9TC3.js +6 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-VWFLl2T0.js +6 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-DF20280u.js +9 -0
- package/dist/layout-Q6wQN5dr.js +1730 -0
- package/dist/lean-D5yRrexI.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-CRqCHTKs.js +277 -0
- package/dist/liquid-CHzkx3jT.js +14 -0
- package/dist/llvm-co1rIKs3.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-DtBSxLyz.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-ls0Jg2j8.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-DIP5_jeM.js +15 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mermaid-B0ixDHKN.js +6 -0
- package/dist/mermaid-NA5CF7SZ-CkTMfgBy.js +6 -0
- package/dist/mermaid.core-DyFxH-Px.js +14414 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/mindmap-definition-VGOIOE7T-C8jP5oWr.js +790 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-BD611d7o.js +6 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/move-F-dICmj2.js +6 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-DmSVRGjG.js +6 -0
- package/dist/nginx-COxS3qoU.js +9 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-CCwXZLHG.js +21 -0
- package/dist/nix-BZK5F767.js +9 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nushell-D8j3dhT-.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/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/openscad-Sp5uZ6f2.js +6 -0
- package/dist/ordinal-MUacOSdK.js +65 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-NvKK8p2P.js +17 -0
- package/dist/php-CK5hNnT0.js +19 -0
- package/dist/pieDiagram-ADFJNKIX-DuP0zFKX.js +166 -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-MmCPeFAD.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-ACKBMWQA.js +1030 -0
- package/dist/r-Bm0uF0U2.js +6 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-CoqPuKQU.js +12 -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-DAH6cyPg.js +856 -0
- package/dist/riscv-Ce8MAQLP.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-AoEjemIj.js +36 -0
- package/dist/ruby-CGSl8JoB.js +36 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/sankeyDiagram-TZEHDZUN-DpLK8yNI.js +830 -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-CslcsjON.js +2526 -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-YPoZ1G2p.js +10 -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-oVuJ6JZY.js +268 -0
- package/dist/stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js +21 -0
- package/dist/style.css +1 -1
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-5UasyOg7.js +14 -0
- package/dist/swift-9UzSvamq.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/tailwind.css +178 -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-peLZIM2D.js +12 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-DpOayVob.js +8 -0
- package/dist/timeline-definition-IT6M3QCI-D_aGDXh0.js +805 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
- package/dist/ts-tags-CWmBp2js.js +43 -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-Cpoho6oi.js +35 -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-DmFKWfEU.js +31 -0
- package/dist/vue-html-BB2aI7Yc.js +15 -0
- package/dist/vue-vine-CznNap4x.js +24 -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-CbTBIiv3.js +9 -0
- package/dist/xychartDiagram-PRI3JC2R-u3osfT09.js +1345 -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 +36 -7
- package/dist/ai-input-action/InputAction.d.ts +0 -8
- package/dist/ai-input-action/index.d.ts +0 -1
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-DyFxH-Px.js";
|
|
2
|
+
import { s as we } from "./chunk-QN33PNHL-5NUdQ31M.js";
|
|
3
|
+
import { p as Ce } from "./chunk-4BX2VUAB-D5qkn5BA.js";
|
|
4
|
+
import { p as Te } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
5
|
+
import { b as I } from "./defaultLocale-DcQU6Vee.js";
|
|
6
|
+
import { o as Z } from "./ordinal-MUacOSdK.js";
|
|
7
|
+
import "./index-Zd10d_CE.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "react-dom";
|
|
10
|
+
import "./init-DjUOC4st.js";
|
|
11
|
+
function Le(t) {
|
|
12
|
+
var a = 0, l = t.children, n = l && l.length;
|
|
13
|
+
if (!n)
|
|
14
|
+
a = 1;
|
|
15
|
+
else
|
|
16
|
+
for (; --n >= 0; )
|
|
17
|
+
a += l[n].value;
|
|
18
|
+
t.value = a;
|
|
19
|
+
}
|
|
20
|
+
function $e() {
|
|
21
|
+
return this.eachAfter(Le);
|
|
22
|
+
}
|
|
23
|
+
function Ae(t, a) {
|
|
24
|
+
let l = -1;
|
|
25
|
+
for (const n of this)
|
|
26
|
+
t.call(a, n, ++l, this);
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
function Fe(t, a) {
|
|
30
|
+
for (var l = this, n = [l], o, s, d = -1; l = n.pop(); )
|
|
31
|
+
if (t.call(a, l, ++d, this), o = l.children)
|
|
32
|
+
for (s = o.length - 1; s >= 0; --s)
|
|
33
|
+
n.push(o[s]);
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
function ke(t, a) {
|
|
37
|
+
for (var l = this, n = [l], o = [], s, d, h, g = -1; l = n.pop(); )
|
|
38
|
+
if (o.push(l), s = l.children)
|
|
39
|
+
for (d = 0, h = s.length; d < h; ++d)
|
|
40
|
+
n.push(s[d]);
|
|
41
|
+
for (; l = o.pop(); )
|
|
42
|
+
t.call(a, l, ++g, this);
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
function Ne(t, a) {
|
|
46
|
+
let l = -1;
|
|
47
|
+
for (const n of this)
|
|
48
|
+
if (t.call(a, n, ++l, this))
|
|
49
|
+
return n;
|
|
50
|
+
}
|
|
51
|
+
function Me(t) {
|
|
52
|
+
return this.eachAfter(function(a) {
|
|
53
|
+
for (var l = +t(a.data) || 0, n = a.children, o = n && n.length; --o >= 0; )
|
|
54
|
+
l += n[o].value;
|
|
55
|
+
a.value = l;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function _e(t) {
|
|
59
|
+
return this.eachBefore(function(a) {
|
|
60
|
+
a.children && a.children.sort(t);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function ze(t) {
|
|
64
|
+
for (var a = this, l = Ve(a, t), n = [a]; a !== l; )
|
|
65
|
+
a = a.parent, n.push(a);
|
|
66
|
+
for (var o = n.length; t !== l; )
|
|
67
|
+
n.splice(o, 0, t), t = t.parent;
|
|
68
|
+
return n;
|
|
69
|
+
}
|
|
70
|
+
function Ve(t, a) {
|
|
71
|
+
if (t === a)
|
|
72
|
+
return t;
|
|
73
|
+
var l = t.ancestors(), n = a.ancestors(), o = null;
|
|
74
|
+
for (t = l.pop(), a = n.pop(); t === a; )
|
|
75
|
+
o = t, t = l.pop(), a = n.pop();
|
|
76
|
+
return o;
|
|
77
|
+
}
|
|
78
|
+
function De() {
|
|
79
|
+
for (var t = this, a = [t]; t = t.parent; )
|
|
80
|
+
a.push(t);
|
|
81
|
+
return a;
|
|
82
|
+
}
|
|
83
|
+
function Pe() {
|
|
84
|
+
return Array.from(this);
|
|
85
|
+
}
|
|
86
|
+
function Be() {
|
|
87
|
+
var t = [];
|
|
88
|
+
return this.eachBefore(function(a) {
|
|
89
|
+
a.children || t.push(a);
|
|
90
|
+
}), t;
|
|
91
|
+
}
|
|
92
|
+
function Ee() {
|
|
93
|
+
var t = this, a = [];
|
|
94
|
+
return t.each(function(l) {
|
|
95
|
+
l !== t && a.push({ source: l.parent, target: l });
|
|
96
|
+
}), a;
|
|
97
|
+
}
|
|
98
|
+
function* Re() {
|
|
99
|
+
var t = this, a, l = [t], n, o, s;
|
|
100
|
+
do
|
|
101
|
+
for (a = l.reverse(), l = []; t = a.pop(); )
|
|
102
|
+
if (yield t, n = t.children)
|
|
103
|
+
for (o = 0, s = n.length; o < s; ++o)
|
|
104
|
+
l.push(n[o]);
|
|
105
|
+
while (l.length);
|
|
106
|
+
}
|
|
107
|
+
function Q(t, a) {
|
|
108
|
+
t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
|
|
109
|
+
for (var l = new K(t), n, o = [l], s, d, h, g; n = o.pop(); )
|
|
110
|
+
if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
|
|
111
|
+
for (n.children = d, h = g - 1; h >= 0; --h)
|
|
112
|
+
o.push(s = d[h] = new K(d[h])), s.parent = n, s.depth = n.depth + 1;
|
|
113
|
+
return l.eachBefore(Ge);
|
|
114
|
+
}
|
|
115
|
+
function We() {
|
|
116
|
+
return Q(this).eachBefore(Oe);
|
|
117
|
+
}
|
|
118
|
+
function He(t) {
|
|
119
|
+
return t.children;
|
|
120
|
+
}
|
|
121
|
+
function Ie(t) {
|
|
122
|
+
return Array.isArray(t) ? t[1] : null;
|
|
123
|
+
}
|
|
124
|
+
function Oe(t) {
|
|
125
|
+
t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
|
|
126
|
+
}
|
|
127
|
+
function Ge(t) {
|
|
128
|
+
var a = 0;
|
|
129
|
+
do
|
|
130
|
+
t.height = a;
|
|
131
|
+
while ((t = t.parent) && t.height < ++a);
|
|
132
|
+
}
|
|
133
|
+
function K(t) {
|
|
134
|
+
this.data = t, this.depth = this.height = 0, this.parent = null;
|
|
135
|
+
}
|
|
136
|
+
K.prototype = Q.prototype = {
|
|
137
|
+
constructor: K,
|
|
138
|
+
count: $e,
|
|
139
|
+
each: Ae,
|
|
140
|
+
eachAfter: ke,
|
|
141
|
+
eachBefore: Fe,
|
|
142
|
+
find: Ne,
|
|
143
|
+
sum: Me,
|
|
144
|
+
sort: _e,
|
|
145
|
+
path: ze,
|
|
146
|
+
ancestors: De,
|
|
147
|
+
descendants: Pe,
|
|
148
|
+
leaves: Be,
|
|
149
|
+
links: Ee,
|
|
150
|
+
copy: We,
|
|
151
|
+
[Symbol.iterator]: Re
|
|
152
|
+
};
|
|
153
|
+
function je(t) {
|
|
154
|
+
if (typeof t != "function")
|
|
155
|
+
throw new Error();
|
|
156
|
+
return t;
|
|
157
|
+
}
|
|
158
|
+
function O() {
|
|
159
|
+
return 0;
|
|
160
|
+
}
|
|
161
|
+
function G(t) {
|
|
162
|
+
return function() {
|
|
163
|
+
return t;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function qe(t) {
|
|
167
|
+
t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
|
|
168
|
+
}
|
|
169
|
+
function Xe(t, a, l, n, o) {
|
|
170
|
+
for (var s = t.children, d, h = -1, g = s.length, c = t.value && (n - a) / t.value; ++h < g; )
|
|
171
|
+
d = s[h], d.y0 = l, d.y1 = o, d.x0 = a, d.x1 = a += d.value * c;
|
|
172
|
+
}
|
|
173
|
+
function Ye(t, a, l, n, o) {
|
|
174
|
+
for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
|
|
175
|
+
d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
|
|
176
|
+
}
|
|
177
|
+
var Ke = (1 + Math.sqrt(5)) / 2;
|
|
178
|
+
function Ue(t, a, l, n, o, s) {
|
|
179
|
+
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, E, M; u < r; ) {
|
|
180
|
+
x = o - l, S = s - n;
|
|
181
|
+
do
|
|
182
|
+
p = h[b++].value;
|
|
183
|
+
while (!p && b < r);
|
|
184
|
+
for (m = N = p, E = Math.max(S / x, x / S) / (v * t), M = p * p * E, V = Math.max(N / M, M / m); b < r; ++b) {
|
|
185
|
+
if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E, k = Math.max(N / M, M / m), k > V) {
|
|
186
|
+
p -= c;
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
V = k;
|
|
190
|
+
}
|
|
191
|
+
d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? Xe(g, l, n, o, v ? n += S * p / v : s) : Ye(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
|
|
192
|
+
}
|
|
193
|
+
return d;
|
|
194
|
+
}
|
|
195
|
+
const Ze = function t(a) {
|
|
196
|
+
function l(n, o, s, d, h) {
|
|
197
|
+
Ue(a, n, o, s, d, h);
|
|
198
|
+
}
|
|
199
|
+
return l.ratio = function(n) {
|
|
200
|
+
return t((n = +n) > 1 ? n : 1);
|
|
201
|
+
}, l;
|
|
202
|
+
}(Ke);
|
|
203
|
+
function Je() {
|
|
204
|
+
var t = Ze, a = !1, l = 1, n = 1, o = [0], s = O, d = O, h = O, g = O, c = O;
|
|
205
|
+
function u(r) {
|
|
206
|
+
return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(qe), r;
|
|
207
|
+
}
|
|
208
|
+
function b(r) {
|
|
209
|
+
var x = o[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, m = r.y1 - x;
|
|
210
|
+
p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), r.x0 = S, r.y0 = v, r.x1 = p, r.y1 = m, r.children && (x = o[r.depth + 1] = s(r) / 2, S += c(r) - x, v += d(r) - x, p -= h(r) - x, m -= g(r) - x, p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), t(r, S, v, p, m));
|
|
211
|
+
}
|
|
212
|
+
return u.round = function(r) {
|
|
213
|
+
return arguments.length ? (a = !!r, u) : a;
|
|
214
|
+
}, u.size = function(r) {
|
|
215
|
+
return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
|
|
216
|
+
}, u.tile = function(r) {
|
|
217
|
+
return arguments.length ? (t = je(r), u) : t;
|
|
218
|
+
}, u.padding = function(r) {
|
|
219
|
+
return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
|
|
220
|
+
}, u.paddingInner = function(r) {
|
|
221
|
+
return arguments.length ? (s = typeof r == "function" ? r : G(+r), u) : s;
|
|
222
|
+
}, u.paddingOuter = function(r) {
|
|
223
|
+
return arguments.length ? u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : u.paddingTop();
|
|
224
|
+
}, u.paddingTop = function(r) {
|
|
225
|
+
return arguments.length ? (d = typeof r == "function" ? r : G(+r), u) : d;
|
|
226
|
+
}, u.paddingRight = function(r) {
|
|
227
|
+
return arguments.length ? (h = typeof r == "function" ? r : G(+r), u) : h;
|
|
228
|
+
}, u.paddingBottom = function(r) {
|
|
229
|
+
return arguments.length ? (g = typeof r == "function" ? r : G(+r), u) : g;
|
|
230
|
+
}, u.paddingLeft = function(r) {
|
|
231
|
+
return arguments.length ? (c = typeof r == "function" ? r : G(+r), u) : c;
|
|
232
|
+
}, u;
|
|
233
|
+
}
|
|
234
|
+
var q, ne = (q = class {
|
|
235
|
+
constructor() {
|
|
236
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = he, this.getAccTitle = ue, this.setDiagramTitle = pe, this.getDiagramTitle = fe, this.getAccDescription = ge, this.setAccDescription = me;
|
|
237
|
+
}
|
|
238
|
+
getNodes() {
|
|
239
|
+
return this.nodes;
|
|
240
|
+
}
|
|
241
|
+
getConfig() {
|
|
242
|
+
const a = ve, l = te();
|
|
243
|
+
return ae({
|
|
244
|
+
...a.treemap,
|
|
245
|
+
...l.treemap ?? {}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
addNode(a, l) {
|
|
249
|
+
this.nodes.push(a), this.levels.set(a, l), l === 0 && (this.outerNodes.push(a), this.root ?? (this.root = a));
|
|
250
|
+
}
|
|
251
|
+
getRoot() {
|
|
252
|
+
return { name: "", children: this.outerNodes };
|
|
253
|
+
}
|
|
254
|
+
addClass(a, l) {
|
|
255
|
+
const n = this.classes.get(a) ?? { id: a, styles: [], textStyles: [] }, o = l.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
256
|
+
o && o.forEach((s) => {
|
|
257
|
+
ye(s) && (n != null && n.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n != null && n.styles ? n.styles.push(s) : n.styles = [s];
|
|
258
|
+
}), this.classes.set(a, n);
|
|
259
|
+
}
|
|
260
|
+
getClasses() {
|
|
261
|
+
return this.classes;
|
|
262
|
+
}
|
|
263
|
+
getStylesForClass(a) {
|
|
264
|
+
var l;
|
|
265
|
+
return ((l = this.classes.get(a)) == null ? void 0 : l.styles) ?? [];
|
|
266
|
+
}
|
|
267
|
+
clear() {
|
|
268
|
+
Se(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
269
|
+
}
|
|
270
|
+
}, w(q, "TreeMapDB"), q);
|
|
271
|
+
function le(t) {
|
|
272
|
+
if (!t.length)
|
|
273
|
+
return [];
|
|
274
|
+
const a = [], l = [];
|
|
275
|
+
return t.forEach((n) => {
|
|
276
|
+
const o = {
|
|
277
|
+
name: n.name,
|
|
278
|
+
children: n.type === "Leaf" ? void 0 : []
|
|
279
|
+
};
|
|
280
|
+
for (o.classSelector = n == null ? void 0 : n.classSelector, n != null && n.cssCompiledStyles && (o.cssCompiledStyles = [n.cssCompiledStyles]), n.type === "Leaf" && n.value !== void 0 && (o.value = n.value); l.length > 0 && l[l.length - 1].level >= n.level; )
|
|
281
|
+
l.pop();
|
|
282
|
+
if (l.length === 0)
|
|
283
|
+
a.push(o);
|
|
284
|
+
else {
|
|
285
|
+
const s = l[l.length - 1].node;
|
|
286
|
+
s.children ? s.children.push(o) : s.children = [o];
|
|
287
|
+
}
|
|
288
|
+
n.type !== "Leaf" && l.push({ node: o, level: n.level });
|
|
289
|
+
}), a;
|
|
290
|
+
}
|
|
291
|
+
w(le, "buildHierarchy");
|
|
292
|
+
var Qe = /* @__PURE__ */ w((t, a) => {
|
|
293
|
+
Ce(t, a);
|
|
294
|
+
const l = [];
|
|
295
|
+
for (const s of t.TreemapRows ?? [])
|
|
296
|
+
s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
|
|
297
|
+
for (const s of t.TreemapRows ?? []) {
|
|
298
|
+
const d = s.item;
|
|
299
|
+
if (!d)
|
|
300
|
+
continue;
|
|
301
|
+
const h = s.indent ? parseInt(s.indent) : 0, g = et(d), c = d.classSelector ? a.getStylesForClass(d.classSelector) : [], u = c.length > 0 ? c.join(";") : void 0, b = {
|
|
302
|
+
level: h,
|
|
303
|
+
name: g,
|
|
304
|
+
type: d.$type,
|
|
305
|
+
value: d.value,
|
|
306
|
+
classSelector: d.classSelector,
|
|
307
|
+
cssCompiledStyles: u
|
|
308
|
+
};
|
|
309
|
+
l.push(b);
|
|
310
|
+
}
|
|
311
|
+
const n = le(l), o = /* @__PURE__ */ w((s, d) => {
|
|
312
|
+
for (const h of s)
|
|
313
|
+
a.addNode(h, d), h.children && h.children.length > 0 && o(h.children, d + 1);
|
|
314
|
+
}, "addNodesRecursively");
|
|
315
|
+
o(n, 0);
|
|
316
|
+
}, "populate"), et = /* @__PURE__ */ w((t) => t.name ? String(t.name) : "", "getItemName"), re = {
|
|
317
|
+
// @ts-expect-error - TreeMapDB is not assignable to DiagramDB
|
|
318
|
+
parser: { yy: void 0 },
|
|
319
|
+
parse: /* @__PURE__ */ w(async (t) => {
|
|
320
|
+
var a;
|
|
321
|
+
try {
|
|
322
|
+
const n = await Te("treemap", t);
|
|
323
|
+
J.debug("Treemap AST:", n);
|
|
324
|
+
const o = (a = re.parser) == null ? void 0 : a.yy;
|
|
325
|
+
if (!(o instanceof ne))
|
|
326
|
+
throw new Error(
|
|
327
|
+
"parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
328
|
+
);
|
|
329
|
+
Qe(n, o);
|
|
330
|
+
} catch (l) {
|
|
331
|
+
throw J.error("Error parsing treemap:", l), l;
|
|
332
|
+
}
|
|
333
|
+
}, "parse")
|
|
334
|
+
}, tt = 10, B = 10, j = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
|
|
335
|
+
const o = n.db, s = o.getConfig(), d = s.padding ?? tt, h = o.getDiagramTitle(), g = o.getRoot(), { themeVariables: c } = te();
|
|
336
|
+
if (!g)
|
|
337
|
+
return;
|
|
338
|
+
const u = h ? 30 : 0, b = xe(a), r = s.nodeWidth ? s.nodeWidth * B : 960, x = s.nodeHeight ? s.nodeHeight * B : 500, S = r, v = x + u;
|
|
339
|
+
b.attr("viewBox", `0 0 ${S} ${v}`), be(b, v, S, s.useMaxWidth);
|
|
340
|
+
let p;
|
|
341
|
+
try {
|
|
342
|
+
const e = s.valueFormat || ",";
|
|
343
|
+
if (e === "$0,0")
|
|
344
|
+
p = /* @__PURE__ */ w((i) => "$" + I(",")(i), "valueFormat");
|
|
345
|
+
else if (e.startsWith("$") && e.includes(",")) {
|
|
346
|
+
const i = /\.\d+/.exec(e), f = i ? i[0] : "";
|
|
347
|
+
p = /* @__PURE__ */ w((C) => "$" + I("," + f)(C), "valueFormat");
|
|
348
|
+
} else if (e.startsWith("$")) {
|
|
349
|
+
const i = e.substring(1);
|
|
350
|
+
p = /* @__PURE__ */ w((f) => "$" + I(i || "")(f), "valueFormat");
|
|
351
|
+
} else
|
|
352
|
+
p = I(e);
|
|
353
|
+
} catch (e) {
|
|
354
|
+
J.error("Error creating format function:", e), p = I(",");
|
|
355
|
+
}
|
|
356
|
+
const m = Z().range([
|
|
357
|
+
"transparent",
|
|
358
|
+
c.cScale0,
|
|
359
|
+
c.cScale1,
|
|
360
|
+
c.cScale2,
|
|
361
|
+
c.cScale3,
|
|
362
|
+
c.cScale4,
|
|
363
|
+
c.cScale5,
|
|
364
|
+
c.cScale6,
|
|
365
|
+
c.cScale7,
|
|
366
|
+
c.cScale8,
|
|
367
|
+
c.cScale9,
|
|
368
|
+
c.cScale10,
|
|
369
|
+
c.cScale11
|
|
370
|
+
]), N = Z().range([
|
|
371
|
+
"transparent",
|
|
372
|
+
c.cScalePeer0,
|
|
373
|
+
c.cScalePeer1,
|
|
374
|
+
c.cScalePeer2,
|
|
375
|
+
c.cScalePeer3,
|
|
376
|
+
c.cScalePeer4,
|
|
377
|
+
c.cScalePeer5,
|
|
378
|
+
c.cScalePeer6,
|
|
379
|
+
c.cScalePeer7,
|
|
380
|
+
c.cScalePeer8,
|
|
381
|
+
c.cScalePeer9,
|
|
382
|
+
c.cScalePeer10,
|
|
383
|
+
c.cScalePeer11
|
|
384
|
+
]), k = Z().range([
|
|
385
|
+
c.cScaleLabel0,
|
|
386
|
+
c.cScaleLabel1,
|
|
387
|
+
c.cScaleLabel2,
|
|
388
|
+
c.cScaleLabel3,
|
|
389
|
+
c.cScaleLabel4,
|
|
390
|
+
c.cScaleLabel5,
|
|
391
|
+
c.cScaleLabel6,
|
|
392
|
+
c.cScaleLabel7,
|
|
393
|
+
c.cScaleLabel8,
|
|
394
|
+
c.cScaleLabel9,
|
|
395
|
+
c.cScaleLabel10,
|
|
396
|
+
c.cScaleLabel11
|
|
397
|
+
]);
|
|
398
|
+
h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
|
|
399
|
+
const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
|
|
400
|
+
(e) => e.children && e.children.length > 0 ? j + B : 0
|
|
401
|
+
).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(E), se = ee.descendants().filter((e) => e.children && e.children.length > 0), R = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
402
|
+
R.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", j).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), R.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", j), R.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
|
|
403
|
+
if (e.depth === 0)
|
|
404
|
+
return "display: none;";
|
|
405
|
+
const i = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
406
|
+
return i.nodeStyles + ";" + i.borderStyles.join(";");
|
|
407
|
+
}), R.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", j / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
|
|
408
|
+
if (e.depth === 0)
|
|
409
|
+
return "display: none;";
|
|
410
|
+
const i = "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
411
|
+
return i + f.labelStyles.replace("color:", "fill:");
|
|
412
|
+
}).each(function(e) {
|
|
413
|
+
if (e.depth === 0)
|
|
414
|
+
return;
|
|
415
|
+
const i = Y(this), f = e.data.name;
|
|
416
|
+
i.text(f);
|
|
417
|
+
const C = e.x1 - e.x0, $ = 6;
|
|
418
|
+
let A;
|
|
419
|
+
s.showValues !== !1 && e.value ? A = C - 10 - 30 - 10 - $ : A = C - $ - 6;
|
|
420
|
+
const F = Math.max(15, A), y = i.node();
|
|
421
|
+
if (y.getComputedTextLength() > F) {
|
|
422
|
+
const T = "...";
|
|
423
|
+
let L = f;
|
|
424
|
+
for (; L.length > 0; ) {
|
|
425
|
+
if (L = f.substring(0, L.length - 1), L.length === 0) {
|
|
426
|
+
i.text(T), y.getComputedTextLength() > F && i.text("");
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
if (i.text(L + T), y.getComputedTextLength() <= F)
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}), s.showValues !== !1 && R.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", j / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
|
|
434
|
+
if (e.depth === 0)
|
|
435
|
+
return "display: none;";
|
|
436
|
+
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
437
|
+
return i + f.labelStyles.replace("color:", "fill:");
|
|
438
|
+
});
|
|
439
|
+
const ie = ee.leaves(), X = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
440
|
+
X.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), X.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), X.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
|
|
441
|
+
const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
442
|
+
return i + f.labelStyles.replace("color:", "fill:");
|
|
443
|
+
}).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
|
|
444
|
+
const i = Y(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, D = f - 2 * A, F = C - 2 * A;
|
|
445
|
+
if (D < 10 || F < 10) {
|
|
446
|
+
i.style("display", "none");
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
let y = parseInt(i.style("font-size"), 10);
|
|
450
|
+
const _ = 8, T = 28, L = 0.6, z = 6, W = 2;
|
|
451
|
+
for (; $.getComputedTextLength() > D && y > _; )
|
|
452
|
+
y--, i.style("font-size", `${y}px`);
|
|
453
|
+
let H = Math.max(
|
|
454
|
+
z,
|
|
455
|
+
Math.min(T, Math.round(y * L))
|
|
456
|
+
), U = y + W + H;
|
|
457
|
+
for (; U > F && y > _ && (y--, H = Math.max(
|
|
458
|
+
z,
|
|
459
|
+
Math.min(T, Math.round(y * L))
|
|
460
|
+
), !(H < z && y === _)); )
|
|
461
|
+
i.style("font-size", `${y}px`), U = y + W + H;
|
|
462
|
+
i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || F < y) && i.style("display", "none");
|
|
463
|
+
}), s.showValues !== !1 && X.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
|
|
464
|
+
return (i.y1 - i.y0) / 2;
|
|
465
|
+
}).attr("style", (i) => {
|
|
466
|
+
const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
|
|
467
|
+
return f + C.labelStyles.replace("color:", "fill:");
|
|
468
|
+
}).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? p(i.value) : "").each(function(i) {
|
|
469
|
+
const f = Y(this), C = this.parentNode;
|
|
470
|
+
if (!C) {
|
|
471
|
+
f.style("display", "none");
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
const $ = Y(C).select(".treemapLabel");
|
|
475
|
+
if ($.empty() || $.style("display") === "none") {
|
|
476
|
+
f.style("display", "none");
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
|
|
480
|
+
y,
|
|
481
|
+
Math.min(D, Math.round(A * F))
|
|
482
|
+
);
|
|
483
|
+
f.style("font-size", `${T}px`);
|
|
484
|
+
const z = (i.y1 - i.y0) / 2 + A / 2 + _;
|
|
485
|
+
f.attr("y", z);
|
|
486
|
+
const W = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = W - 2 * 4;
|
|
487
|
+
f.node().getComputedTextLength() > de || z + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
|
|
488
|
+
});
|
|
489
|
+
const oe = s.diagramPadding ?? 8;
|
|
490
|
+
we(b, oe, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1);
|
|
491
|
+
}, "draw"), nt = /* @__PURE__ */ w(function(t, a) {
|
|
492
|
+
return a.db.getClasses();
|
|
493
|
+
}, "getClasses"), lt = { draw: at, getClasses: nt }, rt = {
|
|
494
|
+
sectionStrokeColor: "black",
|
|
495
|
+
sectionStrokeWidth: "1",
|
|
496
|
+
sectionFillColor: "#efefef",
|
|
497
|
+
leafStrokeColor: "black",
|
|
498
|
+
leafStrokeWidth: "1",
|
|
499
|
+
leafFillColor: "#efefef",
|
|
500
|
+
labelColor: "black",
|
|
501
|
+
labelFontSize: "12px",
|
|
502
|
+
valueFontSize: "10px",
|
|
503
|
+
valueColor: "black",
|
|
504
|
+
titleColor: "black",
|
|
505
|
+
titleFontSize: "14px"
|
|
506
|
+
}, st = /* @__PURE__ */ w(({
|
|
507
|
+
treemap: t
|
|
508
|
+
} = {}) => {
|
|
509
|
+
const a = ae(rt, t);
|
|
510
|
+
return `
|
|
511
|
+
.treemapNode.section {
|
|
512
|
+
stroke: ${a.sectionStrokeColor};
|
|
513
|
+
stroke-width: ${a.sectionStrokeWidth};
|
|
514
|
+
fill: ${a.sectionFillColor};
|
|
515
|
+
}
|
|
516
|
+
.treemapNode.leaf {
|
|
517
|
+
stroke: ${a.leafStrokeColor};
|
|
518
|
+
stroke-width: ${a.leafStrokeWidth};
|
|
519
|
+
fill: ${a.leafFillColor};
|
|
520
|
+
}
|
|
521
|
+
.treemapLabel {
|
|
522
|
+
fill: ${a.labelColor};
|
|
523
|
+
font-size: ${a.labelFontSize};
|
|
524
|
+
}
|
|
525
|
+
.treemapValue {
|
|
526
|
+
fill: ${a.valueColor};
|
|
527
|
+
font-size: ${a.valueFontSize};
|
|
528
|
+
}
|
|
529
|
+
.treemapTitle {
|
|
530
|
+
fill: ${a.titleColor};
|
|
531
|
+
font-size: ${a.titleFontSize};
|
|
532
|
+
}
|
|
533
|
+
`;
|
|
534
|
+
}, "getStyles"), it = st, vt = {
|
|
535
|
+
parser: re,
|
|
536
|
+
get db() {
|
|
537
|
+
return new ne();
|
|
538
|
+
},
|
|
539
|
+
renderer: lt,
|
|
540
|
+
styles: it
|
|
541
|
+
};
|
|
542
|
+
export {
|
|
543
|
+
vt as diagram
|
|
544
|
+
};
|