@foris/ai-agent 0.2.0 → 0.3.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.
Files changed (394) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -1391
  5. package/dist/ai-agent.umd.js +3364 -103
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  9. package/dist/angular-html-DPB4Rf0C.js +32 -0
  10. package/dist/angular-ts-CeqPwKaz.js +24 -0
  11. package/dist/apache-BUjz-sD2.js +6 -0
  12. package/dist/apex-oLhhs58q.js +6 -0
  13. package/dist/apl-Bfz1rp5e.js +17 -0
  14. package/dist/applescript-BPx7YFFu.js +6 -0
  15. package/dist/ara-Z2fSOxSw.js +6 -0
  16. package/dist/arc-DN1xn8kz.js +85 -0
  17. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  18. package/dist/asciidoc-B-pCoB3G.js +6 -0
  19. package/dist/asm-BTWLY5ym.js +6 -0
  20. package/dist/astro-CFFExE8Q.js +18 -0
  21. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  22. package/dist/awk-Fb0P9dkn.js +6 -0
  23. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  24. package/dist/ballerina-oZK-YekG.js +6 -0
  25. package/dist/bat-0FvbqU9S.js +6 -0
  26. package/dist/beancount-DqJEb89h.js +6 -0
  27. package/dist/berry-DODBq_Ff.js +6 -0
  28. package/dist/bibtex-EULQRLY5.js +6 -0
  29. package/dist/bicep-BorU73w0.js +6 -0
  30. package/dist/blade-DRRSiTQz.js +21 -0
  31. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  32. package/dist/bsl-NkNNwerW.js +8 -0
  33. package/dist/c-eeMepfLm.js +6 -0
  34. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  35. package/dist/cadence-02UX7mW8.js +6 -0
  36. package/dist/cairo-DM6WF2e3.js +8 -0
  37. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  38. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  39. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  40. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  41. package/dist/channel-BC4mWQQF.js +5 -0
  42. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  43. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  44. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  45. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  46. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  47. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  48. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  49. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  50. package/dist/clarity-PKm5CwqM.js +6 -0
  51. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  53. package/dist/clojure-CXJfHrL3.js +6 -0
  54. package/dist/cmake-BJz8BOTU.js +6 -0
  55. package/dist/cobol-DYTFdEK1.js +12 -0
  56. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  57. package/dist/codeowners-Bt9yU6NX.js +6 -0
  58. package/dist/codeql-DHkodjjI.js +6 -0
  59. package/dist/coffee-DGBR_nr_.js +8 -0
  60. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  61. package/dist/components/ai-elements/artifact.d.ts +23 -0
  62. package/dist/components/ai-elements/canvas.d.ts +7 -0
  63. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  64. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  65. package/dist/components/ai-elements/code-block.d.ts +17 -0
  66. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  67. package/dist/components/ai-elements/connection.d.ts +2 -0
  68. package/dist/components/ai-elements/context.d.ts +32 -0
  69. package/dist/components/ai-elements/controls.d.ts +4 -0
  70. package/dist/components/ai-elements/conversation.d.ts +15 -0
  71. package/dist/components/ai-elements/edge.d.ts +5 -0
  72. package/dist/components/ai-elements/image.d.ts +6 -0
  73. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  74. package/dist/components/ai-elements/loader.d.ts +5 -0
  75. package/dist/components/ai-elements/message.d.ts +46 -0
  76. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  77. package/dist/components/ai-elements/node.d.ts +21 -0
  78. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  79. package/dist/components/ai-elements/panel.d.ts +5 -0
  80. package/dist/components/ai-elements/plan.d.ts +25 -0
  81. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  82. package/dist/components/ai-elements/queue.d.ts +61 -0
  83. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  84. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  85. package/dist/components/ai-elements/sources.d.ts +12 -0
  86. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  87. package/dist/components/ai-elements/task.d.ts +14 -0
  88. package/dist/components/ai-elements/tool.d.ts +23 -0
  89. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  90. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  91. package/dist/components/ui/alert.d.ts +9 -0
  92. package/dist/components/ui/badge.d.ts +9 -0
  93. package/dist/components/ui/button-group.d.ts +12 -0
  94. package/dist/components/ui/button.d.ts +10 -0
  95. package/dist/components/ui/card.d.ts +9 -0
  96. package/dist/components/ui/carousel.d.ts +19 -0
  97. package/dist/components/ui/collapsible.d.ts +6 -0
  98. package/dist/components/ui/command.d.ts +18 -0
  99. package/dist/components/ui/dialog.d.ts +15 -0
  100. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  101. package/dist/components/ui/hover-card.d.ts +6 -0
  102. package/dist/components/ui/input-group.d.ts +16 -0
  103. package/dist/components/ui/input.d.ts +3 -0
  104. package/dist/components/ui/progress.d.ts +4 -0
  105. package/dist/components/ui/scroll-area.d.ts +5 -0
  106. package/dist/components/ui/select.d.ts +15 -0
  107. package/dist/components/ui/separator.d.ts +4 -0
  108. package/dist/components/ui/textarea.d.ts +3 -0
  109. package/dist/components/ui/tooltip.d.ts +7 -0
  110. package/dist/coq-B0L9upzn.js +6 -0
  111. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  112. package/dist/cpp-ZFnOq6fV.js +19 -0
  113. package/dist/crystal-CRJyc4G-.js +18 -0
  114. package/dist/csharp-C7yUs7-w.js +6 -0
  115. package/dist/css-CECN5uSL.js +6 -0
  116. package/dist/csv-CmYOceLb.js +6 -0
  117. package/dist/cue-ZzumE7IT.js +6 -0
  118. package/dist/cypher-jpdmjtA6.js +6 -0
  119. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  120. package/dist/d-CBagWSwH.js +6 -0
  121. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  122. package/dist/dark-plus-pUHDTVV0.js +4 -0
  123. package/dist/dart-6ObCrKr9.js +6 -0
  124. package/dist/dax-CcDT-8dH.js +6 -0
  125. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  126. package/dist/desktop-B93p9R9O.js +6 -0
  127. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  128. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  129. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  130. package/dist/diff-BxzP2J8R.js +6 -0
  131. package/dist/docker-CsHqm9tx.js +6 -0
  132. package/dist/dotenv-BMjVjUL1.js +6 -0
  133. package/dist/dracula-BtZx2Kac.js +4 -0
  134. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  135. package/dist/dream-maker-PAx17jaB.js +6 -0
  136. package/dist/edge-B882-fmN.js +14 -0
  137. package/dist/elixir-DRzNHQCz.js +10 -0
  138. package/dist/elm-DZPAA5Qn.js +9 -0
  139. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  140. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  141. package/dist/erb-DB1DqdBc.js +27 -0
  142. package/dist/erlang-DNcDT8Hi.js +8 -0
  143. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  144. package/dist/everforest-light-BbXl82Em.js +4 -0
  145. package/dist/fennel-N4WcXuKx.js +6 -0
  146. package/dist/fish-BTDEUgqH.js +6 -0
  147. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  148. package/dist/fluent-BMXUxfv1.js +6 -0
  149. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  150. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  151. package/dist/fsharp-CYOiIVNx.js +8 -0
  152. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  153. package/dist/gdresource-BwtMIoBm.js +10 -0
  154. package/dist/gdscript-BifyeYhI.js +6 -0
  155. package/dist/gdshader-Bk8fF6yr.js +6 -0
  156. package/dist/genie-DzUvd7U9.js +6 -0
  157. package/dist/gherkin-DHRaV0YP.js +6 -0
  158. package/dist/git-commit-Bd32YZ0K.js +8 -0
  159. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  160. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  161. package/dist/github-dark-DenFmJkN.js +4 -0
  162. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  163. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  164. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  165. package/dist/github-light-JYsPkUQd.js +4 -0
  166. package/dist/github-light-default-D99KPAby.js +4 -0
  167. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  168. package/dist/gleam-Bv284lvN.js +6 -0
  169. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  170. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  171. package/dist/glsl-CkUcVZNK.js +8 -0
  172. package/dist/gnuplot-yPG9-sE_.js +6 -0
  173. package/dist/go-ChxJuLYK.js +6 -0
  174. package/dist/graph-DB2UxkYH.js +1190 -0
  175. package/dist/graphql-CBu2ehBn.js +14 -0
  176. package/dist/groovy-CJQTphOW.js +6 -0
  177. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  178. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  179. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  180. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  181. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  182. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  183. package/dist/hack-DVWgrvc2.js +12 -0
  184. package/dist/haml-NZLVzu_R.js +10 -0
  185. package/dist/handlebars-mxStpSE7.js +14 -0
  186. package/dist/haskell-WeIwNIP6.js +6 -0
  187. package/dist/haxe-TztHsm5T.js +6 -0
  188. package/dist/hcl-D438OF-I.js +6 -0
  189. package/dist/hjson-DYBUbqOl.js +6 -0
  190. package/dist/hlsl-Bk8TCZNL.js +6 -0
  191. package/dist/houston-BDYrDoDW.js +4 -0
  192. package/dist/html-B50bmoVb.js +10 -0
  193. package/dist/html-derivative-ByyNxAP5.js +10 -0
  194. package/dist/http-BVIWqb92.js +19 -0
  195. package/dist/hurl-B8OTiYoQ.js +17 -0
  196. package/dist/hxml-GbqSQCLa.js +8 -0
  197. package/dist/hy-Brt5EZ7-.js +6 -0
  198. package/dist/imba-CimUv-Uh.js +6 -0
  199. package/dist/index-C2DJ8qoy.js +45435 -0
  200. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  201. package/dist/ini-BZIuRIvJ.js +6 -0
  202. package/dist/init-DjUOC4st.js +16 -0
  203. package/dist/java-DY6VlHhP.js +6 -0
  204. package/dist/javascript-C25yR2R2.js +6 -0
  205. package/dist/jinja-CI-LSgSv.js +13 -0
  206. package/dist/jison-DdreslRX.js +8 -0
  207. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  208. package/dist/json-DxJze_jm.js +6 -0
  209. package/dist/json5-BT4Fjg39.js +6 -0
  210. package/dist/jsonc-CHjZD8gR.js +6 -0
  211. package/dist/jsonl-BGuvDmy9.js +6 -0
  212. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  213. package/dist/jssm-BcADi6EI.js +6 -0
  214. package/dist/jsx-BtKADgXT.js +6 -0
  215. package/dist/julia-ll8P6QXy.js +19 -0
  216. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  217. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  218. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  220. package/dist/katex.min-l0sNRNKZ.js +1 -0
  221. package/dist/kdl-BNOv9TC3.js +6 -0
  222. package/dist/kotlin-ByBMgTeR.js +6 -0
  223. package/dist/kusto-VWFLl2T0.js +6 -0
  224. package/dist/laserwave-6a00oqik.js +4 -0
  225. package/dist/latex-DF20280u.js +9 -0
  226. package/dist/layout-Q6wQN5dr.js +1730 -0
  227. package/dist/lean-D5yRrexI.js +6 -0
  228. package/dist/less-B1GLI2Di.js +6 -0
  229. package/dist/lib/utils.d.ts +2 -0
  230. package/dist/light-plus-CZuVqSLX.js +4 -0
  231. package/dist/linear-CxGB80S5.js +277 -0
  232. package/dist/liquid-CHzkx3jT.js +14 -0
  233. package/dist/llvm-co1rIKs3.js +6 -0
  234. package/dist/log-Al8wyEFV.js +6 -0
  235. package/dist/logo-DBa4JDzV.js +6 -0
  236. package/dist/lua-kX5WP_P5.js +8 -0
  237. package/dist/luau-DtBSxLyz.js +6 -0
  238. package/dist/make-CsMclxtr.js +6 -0
  239. package/dist/markdown-CrScaQ96.js +6 -0
  240. package/dist/marko-ls0Jg2j8.js +14 -0
  241. package/dist/material-theme-D6KBX41T.js +4 -0
  242. package/dist/material-theme-darker-CkRroheE.js +4 -0
  243. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  244. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  245. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  246. package/dist/matlab-BOAaUVP0.js +6 -0
  247. package/dist/mdc-DIP5_jeM.js +15 -0
  248. package/dist/mdx-BOhZZUJ8.js +6 -0
  249. package/dist/mermaid-B0ixDHKN.js +6 -0
  250. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  251. package/dist/mermaid.core-xMGW442o.js +14414 -0
  252. package/dist/min-dark-C7ak0t6c.js +4 -0
  253. package/dist/min-light-CKFxVcPp.js +4 -0
  254. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  255. package/dist/mipsasm-CTx18fBl.js +6 -0
  256. package/dist/mojo-BD611d7o.js +6 -0
  257. package/dist/monokai-C1KBYcO0.js +4 -0
  258. package/dist/move-F-dICmj2.js +6 -0
  259. package/dist/narrat-DmhDCBs-.js +6 -0
  260. package/dist/nextflow-DmSVRGjG.js +6 -0
  261. package/dist/nginx-COxS3qoU.js +9 -0
  262. package/dist/night-owl-Bm2rzalh.js +4 -0
  263. package/dist/nim-CCwXZLHG.js +21 -0
  264. package/dist/nix-BZK5F767.js +9 -0
  265. package/dist/nord-CC5OiUXg.js +4 -0
  266. package/dist/nushell-D8j3dhT-.js +6 -0
  267. package/dist/objective-c-Itk8tzmv.js +6 -0
  268. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  269. package/dist/ocaml-eSVK32Eg.js +6 -0
  270. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  271. package/dist/one-light-D9sNaUtq.js +4 -0
  272. package/dist/openscad-Sp5uZ6f2.js +6 -0
  273. package/dist/ordinal-MUacOSdK.js +65 -0
  274. package/dist/pascal-xy8pJNns.js +6 -0
  275. package/dist/perl-NvKK8p2P.js +17 -0
  276. package/dist/php-CK5hNnT0.js +19 -0
  277. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  278. package/dist/pkl-C-zSNmaA.js +6 -0
  279. package/dist/plastic-CSTz3KZp.js +4 -0
  280. package/dist/plsql-pVbGZfOv.js +6 -0
  281. package/dist/po-BNfHvqmm.js +6 -0
  282. package/dist/poimandres-C-VADXHD.js +4 -0
  283. package/dist/polar-CAZahv3u.js +6 -0
  284. package/dist/postcss-05aHdL-n.js +6 -0
  285. package/dist/powerquery-DI9HkTvs.js +6 -0
  286. package/dist/powershell-Clc4ydu-.js +6 -0
  287. package/dist/prisma-FZjmVtSl.js +6 -0
  288. package/dist/prolog-C5-yg4TO.js +6 -0
  289. package/dist/proto-MmCPeFAD.js +6 -0
  290. package/dist/pug-XOw9Q1Ho.js +12 -0
  291. package/dist/puppet-CUJHmnxV.js +6 -0
  292. package/dist/purescript-rUfGld-4.js +6 -0
  293. package/dist/python-BFNSHbwJ.js +6 -0
  294. package/dist/qml-rTNXsquU.js +8 -0
  295. package/dist/qmldir-BInDYbpo.js +6 -0
  296. package/dist/qss-AeJTysr_.js +6 -0
  297. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  298. package/dist/r-Bm0uF0U2.js +6 -0
  299. package/dist/racket-B83wSAja.js +6 -0
  300. package/dist/raku-nEQ4ZJJ7.js +6 -0
  301. package/dist/razor-CoqPuKQU.js +12 -0
  302. package/dist/red-7y8PH7HH.js +4 -0
  303. package/dist/reg-m_s_Kiip.js +6 -0
  304. package/dist/regexp-BazyLpPg.js +6 -0
  305. package/dist/rel-BcRfyd6Q.js +6 -0
  306. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  307. package/dist/riscv-Ce8MAQLP.js +6 -0
  308. package/dist/rose-pine-BKc3yVeu.js +4 -0
  309. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  310. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  311. package/dist/rosmsg-Cz0w1km8.js +6 -0
  312. package/dist/rst-AoEjemIj.js +36 -0
  313. package/dist/ruby-CGSl8JoB.js +36 -0
  314. package/dist/rust-CLzF9zIN.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  316. package/dist/sas-fpEvgATw.js +8 -0
  317. package/dist/sass-DxHp5rTx.js +6 -0
  318. package/dist/scala-D4grkFkl.js +6 -0
  319. package/dist/scheme-BCRWuEm4.js +6 -0
  320. package/dist/scss-B1FaCqwR.js +8 -0
  321. package/dist/sdbl-B7T8abf4.js +6 -0
  322. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  323. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  324. package/dist/shellscript-InADTalH.js +6 -0
  325. package/dist/shellsession-DiDJNQdy.js +8 -0
  326. package/dist/slack-dark-i7wN4OET.js +4 -0
  327. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  328. package/dist/smalltalk-BlI1_OkM.js +6 -0
  329. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  330. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  331. package/dist/solarized-light-BheCkDPT.js +4 -0
  332. package/dist/solidity-DUWnFhS6.js +6 -0
  333. package/dist/soy-YPoZ1G2p.js +10 -0
  334. package/dist/sparql-B0KWFEri.js +8 -0
  335. package/dist/splunk-CRXR8A9s.js +6 -0
  336. package/dist/sql-Cn_v3PB0.js +6 -0
  337. package/dist/ssh-config-DP-hNVbF.js +6 -0
  338. package/dist/stata-B8c5fTjX.js +8 -0
  339. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  340. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  341. package/dist/style.css +1 -1
  342. package/dist/stylus-CyKEU1Ej.js +6 -0
  343. package/dist/svelte-5UasyOg7.js +14 -0
  344. package/dist/swift-9UzSvamq.js +6 -0
  345. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  346. package/dist/system-verilog-BCm7smPJ.js +6 -0
  347. package/dist/systemd-C-4qm6XH.js +6 -0
  348. package/dist/tailwind.css +126 -0
  349. package/dist/talonscript-CFF3LF_O.js +6 -0
  350. package/dist/tasl-Cg_WBUAe.js +6 -0
  351. package/dist/tcl-DN7buRTF.js +6 -0
  352. package/dist/templ-peLZIM2D.js +12 -0
  353. package/dist/terraform-DGvcn9zM.js +6 -0
  354. package/dist/tex-DpOayVob.js +8 -0
  355. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  356. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  357. package/dist/toml-DY62mUL_.js +6 -0
  358. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  359. package/dist/ts-tags-CWmBp2js.js +43 -0
  360. package/dist/tsv-BtvSkaG0.js +6 -0
  361. package/dist/tsx-B8rCNbgL.js +6 -0
  362. package/dist/turtle-_H59FV7D.js +6 -0
  363. package/dist/twig-Cpoho6oi.js +35 -0
  364. package/dist/typescript-RycA9KXf.js +6 -0
  365. package/dist/typespec-DWqp-kUU.js +6 -0
  366. package/dist/typst-D_1QKWns.js +6 -0
  367. package/dist/v-BPCNiyYe.js +6 -0
  368. package/dist/vala-uxaPR7d1.js +6 -0
  369. package/dist/vb-D8_c5-KN.js +6 -0
  370. package/dist/verilog-B-bybjPF.js +6 -0
  371. package/dist/vesper-BckBta1U.js +4 -0
  372. package/dist/vhdl-CUlNa8ac.js +6 -0
  373. package/dist/viml-DsfA-sWm.js +6 -0
  374. package/dist/vitesse-black-BoGvW84i.js +4 -0
  375. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  376. package/dist/vitesse-light-CcmG315c.js +4 -0
  377. package/dist/vue-DmFKWfEU.js +31 -0
  378. package/dist/vue-html-BB2aI7Yc.js +15 -0
  379. package/dist/vue-vine-CznNap4x.js +24 -0
  380. package/dist/vyper-CPQuu50u.js +6 -0
  381. package/dist/wasm-BBXxrAl7.js +6 -0
  382. package/dist/wasm-DQxwEHae.js +7 -0
  383. package/dist/wenyan-pbVjoM9_.js +6 -0
  384. package/dist/wgsl-DY4iK1q1.js +6 -0
  385. package/dist/wikitext-Z-MoUasO.js +6 -0
  386. package/dist/wit-CQMQOlTg.js +6 -0
  387. package/dist/wolfram-Dz4KXISs.js +6 -0
  388. package/dist/xml-C2J0sS9M.js +8 -0
  389. package/dist/xsl-CbTBIiv3.js +9 -0
  390. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  391. package/dist/yaml-DaO7k5B1.js +6 -0
  392. package/dist/zenscript-CxBjpf9c.js +6 -0
  393. package/dist/zig-Vm0PO9wB.js +6 -0
  394. package/package.json +35 -7
@@ -0,0 +1,544 @@
1
+ import { s as he, g as ue, n as pe, o as fe, b as ge, c as me, _ as w, E as te, D as ae, b2 as ye, t as Se, C as ve, l as K, H as xe, k as be, b3 as P, j as Y } from "./mermaid.core-xMGW442o.js";
2
+ import { s as we } from "./chunk-QN33PNHL-nSyFq8_s.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-BZlHuf6l.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 J } from "./ordinal-MUacOSdK.js";
7
+ import "./index-C2DJ8qoy.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 ke(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 Fe(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 U(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 U(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 U(t) {
134
+ this.data = t, this.depth = this.height = 0, this.parent = null;
135
+ }
136
+ U.prototype = Q.prototype = {
137
+ constructor: U,
138
+ count: $e,
139
+ each: Ae,
140
+ eachAfter: Fe,
141
+ eachBefore: ke,
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 Ue = (1 + Math.sqrt(5)) / 2;
178
+ function Ze(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, F, 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, F = Math.max(N / M, M / m), F > V) {
186
+ p -= c;
187
+ break;
188
+ }
189
+ V = F;
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 Je = function t(a) {
196
+ function l(n, o, s, d, h) {
197
+ Ze(a, n, o, s, d, h);
198
+ }
199
+ return l.ratio = function(n) {
200
+ return t((n = +n) > 1 ? n : 1);
201
+ }, l;
202
+ }(Ue);
203
+ function Ke() {
204
+ var t = Je, 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
+ K.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 K.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
+ K.error("Error creating format function:", e), p = I(",");
355
+ }
356
+ const m = J().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 = J().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
+ ]), F = J().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 = Ke().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:" + F(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 k = Math.max(15, A), y = i.node();
421
+ if (y.getComputedTextLength() > k) {
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() > k && i.text("");
427
+ break;
428
+ }
429
+ if (i.text(L + T), y.getComputedTextLength() <= k)
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:" + F(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:" + F(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, k = C - 2 * A;
445
+ if (D < 10 || k < 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
+ ), Z = y + W + H;
457
+ for (; Z > k && 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`), Z = y + W + H;
462
+ i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || k < 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:" + F(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, k = 0.6, y = 6, _ = 2, T = Math.max(
480
+ y,
481
+ Math.min(D, Math.round(A * k))
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
+ };