@foris/ai-agent 0.9.0 → 0.9.1-beta.2

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 (345) hide show
  1. package/dist/ai-agent.es.js +2780 -7
  2. package/dist/ai-agent.umd.js +4 -3817
  3. package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +2 -2
  4. package/dist/components/ai-elements/code-block.d.ts +4 -3
  5. package/dist/components/ai-elements/streamdown-code.d.ts +13 -0
  6. package/dist/components/ui/input-group.d.ts +1 -1
  7. package/dist/style.css +1 -1
  8. package/package.json +56 -13
  9. package/dist/abap-Y8Dl9g_6.js +0 -6
  10. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  11. package/dist/ada-vP6ak0IW.js +0 -6
  12. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  13. package/dist/angular-html-DPB4Rf0C.js +0 -32
  14. package/dist/angular-ts-CeqPwKaz.js +0 -24
  15. package/dist/apache-BUjz-sD2.js +0 -6
  16. package/dist/apex-oLhhs58q.js +0 -6
  17. package/dist/apl-Bfz1rp5e.js +0 -17
  18. package/dist/applescript-BPx7YFFu.js +0 -6
  19. package/dist/ara-Z2fSOxSw.js +0 -6
  20. package/dist/arc-DHSZg76Q.js +0 -85
  21. package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX.js +0 -4674
  22. package/dist/asciidoc-B-pCoB3G.js +0 -6
  23. package/dist/asm-BTWLY5ym.js +0 -6
  24. package/dist/astro-CFFExE8Q.js +0 -18
  25. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  26. package/dist/awk-Fb0P9dkn.js +0 -6
  27. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  28. package/dist/ballerina-oZK-YekG.js +0 -6
  29. package/dist/bat-0FvbqU9S.js +0 -6
  30. package/dist/beancount-DqJEb89h.js +0 -6
  31. package/dist/berry-DODBq_Ff.js +0 -6
  32. package/dist/bibtex-EULQRLY5.js +0 -6
  33. package/dist/bicep-BorU73w0.js +0 -6
  34. package/dist/blade-DRRSiTQz.js +0 -21
  35. package/dist/blockDiagram-VD42YOAC-B4cTulr6.js +0 -2407
  36. package/dist/bsl-NkNNwerW.js +0 -8
  37. package/dist/c-eeMepfLm.js +0 -6
  38. package/dist/c4Diagram-YG6GDRKO-B8--s8xx.js +0 -1585
  39. package/dist/cadence-02UX7mW8.js +0 -6
  40. package/dist/cairo-DM6WF2e3.js +0 -8
  41. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  42. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  43. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  44. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  45. package/dist/channel-Cqk_cOiy.js +0 -5
  46. package/dist/chunk-4BX2VUAB-Cb-wAjVN.js +0 -9
  47. package/dist/chunk-55IACEB6-QFXfbMHG.js +0 -8
  48. package/dist/chunk-B4BG7PRW-CFs53zrP.js +0 -1377
  49. package/dist/chunk-DI55MBZ5-CKjAOeh7.js +0 -1383
  50. package/dist/chunk-FMBD7UC4-B29MtLTn.js +0 -19
  51. package/dist/chunk-QN33PNHL-5bU-bM6A.js +0 -20
  52. package/dist/chunk-QZHKN3VN-B_Q6cMrq.js +0 -15
  53. package/dist/chunk-TZMSLE5B-DlULRafu.js +0 -64
  54. package/dist/clarity-PKm5CwqM.js +0 -6
  55. package/dist/classDiagram-2ON5EDUG-DJmXfcVi.js +0 -22
  56. package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi.js +0 -22
  57. package/dist/clojure-CXJfHrL3.js +0 -6
  58. package/dist/cmake-BJz8BOTU.js +0 -6
  59. package/dist/cobol-DYTFdEK1.js +0 -12
  60. package/dist/code-block-QI2IAROF-C_F85uim.js +0 -2812
  61. package/dist/codeowners-Bt9yU6NX.js +0 -6
  62. package/dist/codeql-DHkodjjI.js +0 -6
  63. package/dist/coffee-DGBR_nr_.js +0 -8
  64. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  65. package/dist/coq-B0L9upzn.js +0 -6
  66. package/dist/cose-bilkent-S5V4N54A-N3jM_XQd.js +0 -2612
  67. package/dist/cpp-ZFnOq6fV.js +0 -19
  68. package/dist/crystal-CRJyc4G-.js +0 -18
  69. package/dist/csharp-C7yUs7-w.js +0 -6
  70. package/dist/css-CECN5uSL.js +0 -6
  71. package/dist/csv-CmYOceLb.js +0 -6
  72. package/dist/cue-ZzumE7IT.js +0 -6
  73. package/dist/cypher-jpdmjtA6.js +0 -6
  74. package/dist/cytoscape.esm-ClN43hhW.js +0 -18846
  75. package/dist/d-CBagWSwH.js +0 -6
  76. package/dist/dagre-6UL2VRFP-CJdrtgOu.js +0 -451
  77. package/dist/dark-plus-pUHDTVV0.js +0 -4
  78. package/dist/dart-6ObCrKr9.js +0 -6
  79. package/dist/dax-CcDT-8dH.js +0 -6
  80. package/dist/defaultLocale-DcQU6Vee.js +0 -177
  81. package/dist/desktop-B93p9R9O.js +0 -6
  82. package/dist/diagram-PSM6KHXK-DSaDqHvO.js +0 -544
  83. package/dist/diagram-QEK2KX5R-BbxboH_-.js +0 -224
  84. package/dist/diagram-S2PKOQOG-DWsCb5He.js +0 -146
  85. package/dist/diff-BxzP2J8R.js +0 -6
  86. package/dist/docker-CsHqm9tx.js +0 -6
  87. package/dist/dotenv-BMjVjUL1.js +0 -6
  88. package/dist/dracula-BtZx2Kac.js +0 -4
  89. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  90. package/dist/dream-maker-PAx17jaB.js +0 -6
  91. package/dist/edge-B882-fmN.js +0 -14
  92. package/dist/elixir-DRzNHQCz.js +0 -10
  93. package/dist/elm-DZPAA5Qn.js +0 -9
  94. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  95. package/dist/erDiagram-Q2GNP2WA-Bl0uHx93.js +0 -846
  96. package/dist/erb-DB1DqdBc.js +0 -27
  97. package/dist/erlang-DNcDT8Hi.js +0 -8
  98. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  99. package/dist/everforest-light-BbXl82Em.js +0 -4
  100. package/dist/fennel-N4WcXuKx.js +0 -6
  101. package/dist/fish-BTDEUgqH.js +0 -6
  102. package/dist/flowDiagram-NV44I4VS-Dq0mXT8f.js +0 -1631
  103. package/dist/fluent-BMXUxfv1.js +0 -6
  104. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  105. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  106. package/dist/fsharp-CYOiIVNx.js +0 -8
  107. package/dist/ganttDiagram-JELNMOA3-Dj1adndm.js +0 -2702
  108. package/dist/gdresource-BwtMIoBm.js +0 -10
  109. package/dist/gdscript-BifyeYhI.js +0 -6
  110. package/dist/gdshader-Bk8fF6yr.js +0 -6
  111. package/dist/genie-DzUvd7U9.js +0 -6
  112. package/dist/gherkin-DHRaV0YP.js +0 -6
  113. package/dist/git-commit-Bd32YZ0K.js +0 -8
  114. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  115. package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1.js +0 -715
  116. package/dist/github-dark-DenFmJkN.js +0 -4
  117. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  118. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  119. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  120. package/dist/github-light-JYsPkUQd.js +0 -4
  121. package/dist/github-light-default-D99KPAby.js +0 -4
  122. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  123. package/dist/gleam-Bv284lvN.js +0 -6
  124. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  125. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  126. package/dist/glsl-CkUcVZNK.js +0 -8
  127. package/dist/gnuplot-yPG9-sE_.js +0 -6
  128. package/dist/go-ChxJuLYK.js +0 -6
  129. package/dist/graph-DB2UxkYH.js +0 -1190
  130. package/dist/graphql-CBu2ehBn.js +0 -14
  131. package/dist/groovy-CJQTphOW.js +0 -6
  132. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  133. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  134. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  135. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  136. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  137. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  138. package/dist/hack-DVWgrvc2.js +0 -12
  139. package/dist/haml-NZLVzu_R.js +0 -10
  140. package/dist/handlebars-mxStpSE7.js +0 -14
  141. package/dist/haskell-WeIwNIP6.js +0 -6
  142. package/dist/haxe-TztHsm5T.js +0 -6
  143. package/dist/hcl-D438OF-I.js +0 -6
  144. package/dist/hjson-DYBUbqOl.js +0 -6
  145. package/dist/hlsl-Bk8TCZNL.js +0 -6
  146. package/dist/houston-BDYrDoDW.js +0 -4
  147. package/dist/html-B50bmoVb.js +0 -10
  148. package/dist/html-derivative-ByyNxAP5.js +0 -10
  149. package/dist/http-BVIWqb92.js +0 -19
  150. package/dist/hurl-B8OTiYoQ.js +0 -17
  151. package/dist/hxml-GbqSQCLa.js +0 -8
  152. package/dist/hy-Brt5EZ7-.js +0 -6
  153. package/dist/imba-CimUv-Uh.js +0 -6
  154. package/dist/index-gmzqSpwg.js +0 -71246
  155. package/dist/infoDiagram-WHAUD3N6-DPjzRs82.js +0 -27
  156. package/dist/ini-BZIuRIvJ.js +0 -6
  157. package/dist/init-DjUOC4st.js +0 -16
  158. package/dist/java-DY6VlHhP.js +0 -6
  159. package/dist/javascript-C25yR2R2.js +0 -6
  160. package/dist/jinja-CI-LSgSv.js +0 -13
  161. package/dist/jison-DdreslRX.js +0 -8
  162. package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq.js +0 -840
  163. package/dist/json-DxJze_jm.js +0 -6
  164. package/dist/json5-BT4Fjg39.js +0 -6
  165. package/dist/jsonc-CHjZD8gR.js +0 -6
  166. package/dist/jsonl-BGuvDmy9.js +0 -6
  167. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  168. package/dist/jssm-BcADi6EI.js +0 -6
  169. package/dist/jsx-BtKADgXT.js +0 -6
  170. package/dist/julia-ll8P6QXy.js +0 -19
  171. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  172. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  173. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  174. package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx.js +0 -724
  175. package/dist/katex.min-l0sNRNKZ.js +0 -1
  176. package/dist/kdl-BNOv9TC3.js +0 -6
  177. package/dist/kotlin-ByBMgTeR.js +0 -6
  178. package/dist/kusto-VWFLl2T0.js +0 -6
  179. package/dist/laserwave-6a00oqik.js +0 -4
  180. package/dist/latex-DF20280u.js +0 -9
  181. package/dist/layout-Q6wQN5dr.js +0 -1730
  182. package/dist/lean-D5yRrexI.js +0 -6
  183. package/dist/less-B1GLI2Di.js +0 -6
  184. package/dist/light-plus-CZuVqSLX.js +0 -4
  185. package/dist/linear-UL3ZZUJv.js +0 -277
  186. package/dist/liquid-CHzkx3jT.js +0 -14
  187. package/dist/llvm-co1rIKs3.js +0 -6
  188. package/dist/log-Al8wyEFV.js +0 -6
  189. package/dist/logo-DBa4JDzV.js +0 -6
  190. package/dist/lua-kX5WP_P5.js +0 -8
  191. package/dist/luau-DtBSxLyz.js +0 -6
  192. package/dist/make-CsMclxtr.js +0 -6
  193. package/dist/markdown-CrScaQ96.js +0 -6
  194. package/dist/marko-ls0Jg2j8.js +0 -14
  195. package/dist/material-theme-D6KBX41T.js +0 -4
  196. package/dist/material-theme-darker-CkRroheE.js +0 -4
  197. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  198. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  199. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  200. package/dist/matlab-BOAaUVP0.js +0 -6
  201. package/dist/mdc-DIP5_jeM.js +0 -15
  202. package/dist/mdx-BOhZZUJ8.js +0 -6
  203. package/dist/mermaid-B0ixDHKN.js +0 -6
  204. package/dist/mermaid-NA5CF7SZ-BDJrKfjz.js +0 -6
  205. package/dist/mermaid.core-Cpfp0NBU.js +0 -14414
  206. package/dist/min-dark-C7ak0t6c.js +0 -4
  207. package/dist/min-light-CKFxVcPp.js +0 -4
  208. package/dist/mindmap-definition-VGOIOE7T-B6ovfeib.js +0 -790
  209. package/dist/mipsasm-CTx18fBl.js +0 -6
  210. package/dist/mojo-BD611d7o.js +0 -6
  211. package/dist/monokai-C1KBYcO0.js +0 -4
  212. package/dist/move-F-dICmj2.js +0 -6
  213. package/dist/narrat-DmhDCBs-.js +0 -6
  214. package/dist/nextflow-DmSVRGjG.js +0 -6
  215. package/dist/nginx-COxS3qoU.js +0 -9
  216. package/dist/night-owl-Bm2rzalh.js +0 -4
  217. package/dist/nim-CCwXZLHG.js +0 -21
  218. package/dist/nix-BZK5F767.js +0 -9
  219. package/dist/nord-CC5OiUXg.js +0 -4
  220. package/dist/nushell-D8j3dhT-.js +0 -6
  221. package/dist/objective-c-Itk8tzmv.js +0 -6
  222. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  223. package/dist/ocaml-eSVK32Eg.js +0 -6
  224. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  225. package/dist/one-light-D9sNaUtq.js +0 -4
  226. package/dist/openscad-Sp5uZ6f2.js +0 -6
  227. package/dist/ordinal-MUacOSdK.js +0 -65
  228. package/dist/pascal-xy8pJNns.js +0 -6
  229. package/dist/perl-NvKK8p2P.js +0 -17
  230. package/dist/php-CK5hNnT0.js +0 -19
  231. package/dist/pieDiagram-ADFJNKIX-Bn24elWA.js +0 -166
  232. package/dist/pkl-C-zSNmaA.js +0 -6
  233. package/dist/plastic-CSTz3KZp.js +0 -4
  234. package/dist/plsql-pVbGZfOv.js +0 -6
  235. package/dist/po-BNfHvqmm.js +0 -6
  236. package/dist/poimandres-C-VADXHD.js +0 -4
  237. package/dist/polar-CAZahv3u.js +0 -6
  238. package/dist/postcss-05aHdL-n.js +0 -6
  239. package/dist/powerquery-DI9HkTvs.js +0 -6
  240. package/dist/powershell-Clc4ydu-.js +0 -6
  241. package/dist/prisma-FZjmVtSl.js +0 -6
  242. package/dist/prolog-C5-yg4TO.js +0 -6
  243. package/dist/proto-MmCPeFAD.js +0 -6
  244. package/dist/pug-XOw9Q1Ho.js +0 -12
  245. package/dist/puppet-CUJHmnxV.js +0 -6
  246. package/dist/purescript-rUfGld-4.js +0 -6
  247. package/dist/python-BFNSHbwJ.js +0 -6
  248. package/dist/qml-rTNXsquU.js +0 -8
  249. package/dist/qmldir-BInDYbpo.js +0 -6
  250. package/dist/qss-AeJTysr_.js +0 -6
  251. package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll.js +0 -1030
  252. package/dist/r-Bm0uF0U2.js +0 -6
  253. package/dist/racket-B83wSAja.js +0 -6
  254. package/dist/raku-nEQ4ZJJ7.js +0 -6
  255. package/dist/razor-CoqPuKQU.js +0 -12
  256. package/dist/red-7y8PH7HH.js +0 -4
  257. package/dist/reg-m_s_Kiip.js +0 -6
  258. package/dist/regexp-BazyLpPg.js +0 -6
  259. package/dist/rel-BcRfyd6Q.js +0 -6
  260. package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz.js +0 -856
  261. package/dist/riscv-Ce8MAQLP.js +0 -6
  262. package/dist/rose-pine-BKc3yVeu.js +0 -4
  263. package/dist/rose-pine-dawn-BulJcPZT.js +0 -4
  264. package/dist/rose-pine-moon-j6jiXKV8.js +0 -4
  265. package/dist/rosmsg-Cz0w1km8.js +0 -6
  266. package/dist/rst-AoEjemIj.js +0 -36
  267. package/dist/ruby-CGSl8JoB.js +0 -36
  268. package/dist/rust-CLzF9zIN.js +0 -6
  269. package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k.js +0 -830
  270. package/dist/sas-fpEvgATw.js +0 -8
  271. package/dist/sass-DxHp5rTx.js +0 -6
  272. package/dist/scala-D4grkFkl.js +0 -6
  273. package/dist/scheme-BCRWuEm4.js +0 -6
  274. package/dist/scss-B1FaCqwR.js +0 -8
  275. package/dist/sdbl-B7T8abf4.js +0 -6
  276. package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7.js +0 -2526
  277. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  278. package/dist/shellscript-InADTalH.js +0 -6
  279. package/dist/shellsession-DiDJNQdy.js +0 -8
  280. package/dist/slack-dark-i7wN4OET.js +0 -4
  281. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  282. package/dist/smalltalk-BlI1_OkM.js +0 -6
  283. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  284. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  285. package/dist/solarized-light-BheCkDPT.js +0 -4
  286. package/dist/solidity-DUWnFhS6.js +0 -6
  287. package/dist/soy-YPoZ1G2p.js +0 -10
  288. package/dist/sparql-B0KWFEri.js +0 -8
  289. package/dist/splunk-CRXR8A9s.js +0 -6
  290. package/dist/sql-Cn_v3PB0.js +0 -6
  291. package/dist/ssh-config-DP-hNVbF.js +0 -6
  292. package/dist/stata-B8c5fTjX.js +0 -8
  293. package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8.js +0 -268
  294. package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b.js +0 -21
  295. package/dist/stylus-CyKEU1Ej.js +0 -6
  296. package/dist/svelte-5UasyOg7.js +0 -14
  297. package/dist/swift-9UzSvamq.js +0 -6
  298. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  299. package/dist/system-verilog-BCm7smPJ.js +0 -6
  300. package/dist/systemd-C-4qm6XH.js +0 -6
  301. package/dist/talonscript-CFF3LF_O.js +0 -6
  302. package/dist/tasl-Cg_WBUAe.js +0 -6
  303. package/dist/tcl-DN7buRTF.js +0 -6
  304. package/dist/templ-peLZIM2D.js +0 -12
  305. package/dist/terraform-DGvcn9zM.js +0 -6
  306. package/dist/tex-DpOayVob.js +0 -8
  307. package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h.js +0 -805
  308. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  309. package/dist/toml-DY62mUL_.js +0 -6
  310. package/dist/treemap-KMMF4GRG-D_L55G0b.js +0 -15045
  311. package/dist/ts-tags-CWmBp2js.js +0 -43
  312. package/dist/tsv-BtvSkaG0.js +0 -6
  313. package/dist/tsx-B8rCNbgL.js +0 -6
  314. package/dist/turtle-_H59FV7D.js +0 -6
  315. package/dist/twig-Cpoho6oi.js +0 -35
  316. package/dist/typescript-RycA9KXf.js +0 -6
  317. package/dist/typespec-DWqp-kUU.js +0 -6
  318. package/dist/typst-D_1QKWns.js +0 -6
  319. package/dist/v-BPCNiyYe.js +0 -6
  320. package/dist/vala-uxaPR7d1.js +0 -6
  321. package/dist/vb-D8_c5-KN.js +0 -6
  322. package/dist/verilog-B-bybjPF.js +0 -6
  323. package/dist/vesper-BckBta1U.js +0 -4
  324. package/dist/vhdl-CUlNa8ac.js +0 -6
  325. package/dist/viml-DsfA-sWm.js +0 -6
  326. package/dist/vitesse-black-BoGvW84i.js +0 -4
  327. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  328. package/dist/vitesse-light-CcmG315c.js +0 -4
  329. package/dist/vue-DmFKWfEU.js +0 -31
  330. package/dist/vue-html-BB2aI7Yc.js +0 -15
  331. package/dist/vue-vine-CznNap4x.js +0 -24
  332. package/dist/vyper-CPQuu50u.js +0 -6
  333. package/dist/wasm-BBXxrAl7.js +0 -6
  334. package/dist/wasm-DQxwEHae.js +0 -7
  335. package/dist/wenyan-pbVjoM9_.js +0 -6
  336. package/dist/wgsl-DY4iK1q1.js +0 -6
  337. package/dist/wikitext-Z-MoUasO.js +0 -6
  338. package/dist/wit-CQMQOlTg.js +0 -6
  339. package/dist/wolfram-Dz4KXISs.js +0 -6
  340. package/dist/xml-C2J0sS9M.js +0 -8
  341. package/dist/xsl-CbTBIiv3.js +0 -9
  342. package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u.js +0 -1345
  343. package/dist/yaml-DaO7k5B1.js +0 -6
  344. package/dist/zenscript-CxBjpf9c.js +0 -6
  345. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,790 +0,0 @@
1
- import { g as le } from "./chunk-55IACEB6-QFXfbMHG.js";
2
- import { s as he } from "./chunk-QN33PNHL-5bU-bM6A.js";
3
- import { _ as l, l as C, d as X, E as j, i as F, aw as de, z as ge, A as ue, ae as pe, af as fe, ag as ye } from "./mermaid.core-Cpfp0NBU.js";
4
- import "./index-gmzqSpwg.js";
5
- import "react";
6
- import "react-dom";
7
- const E = [];
8
- for (let t = 0; t < 256; ++t)
9
- E.push((t + 256).toString(16).slice(1));
10
- function me(t, e = 0) {
11
- return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
12
- }
13
- let Y;
14
- const Ee = new Uint8Array(16);
15
- function _e() {
16
- if (!Y) {
17
- if (typeof crypto > "u" || !crypto.getRandomValues)
18
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
19
- Y = crypto.getRandomValues.bind(crypto);
20
- }
21
- return Y(Ee);
22
- }
23
- const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
24
- function Se(t, e, n) {
25
- var u;
26
- if (ne.randomUUID && !e && !t)
27
- return ne.randomUUID();
28
- t = t || {};
29
- const c = t.random ?? ((u = t.rng) == null ? void 0 : u.call(t)) ?? _e();
30
- if (c.length < 16)
31
- throw new Error("Random bytes length must be >= 16");
32
- return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
33
- }
34
- var q = function() {
35
- var t = /* @__PURE__ */ l(function(v, s, i, a) {
36
- for (i = i || {}, a = v.length; a--; i[v[a]] = s)
37
- ;
38
- return i;
39
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], R = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
40
- trace: /* @__PURE__ */ l(function() {
41
- }, "trace"),
42
- yy: {},
43
- symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
44
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
45
- productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
46
- performAction: /* @__PURE__ */ l(function(s, i, a, o, g, r, A) {
47
- var d = r.length - 1;
48
- switch (g) {
49
- case 6:
50
- case 7:
51
- return o;
52
- case 8:
53
- o.getLogger().trace("Stop NL ");
54
- break;
55
- case 9:
56
- o.getLogger().trace("Stop EOF ");
57
- break;
58
- case 11:
59
- o.getLogger().trace("Stop NL2 ");
60
- break;
61
- case 12:
62
- o.getLogger().trace("Stop EOF2 ");
63
- break;
64
- case 15:
65
- o.getLogger().info("Node: ", r[d].id), o.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
66
- break;
67
- case 16:
68
- o.getLogger().trace("Icon: ", r[d]), o.decorateNode({ icon: r[d] });
69
- break;
70
- case 17:
71
- case 21:
72
- o.decorateNode({ class: r[d] });
73
- break;
74
- case 18:
75
- o.getLogger().trace("SPACELIST");
76
- break;
77
- case 19:
78
- o.getLogger().trace("Node: ", r[d].id), o.addNode(0, r[d].id, r[d].descr, r[d].type);
79
- break;
80
- case 20:
81
- o.decorateNode({ icon: r[d] });
82
- break;
83
- case 25:
84
- o.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
85
- break;
86
- case 26:
87
- this.$ = { id: r[d], descr: r[d], type: o.nodeType.DEFAULT };
88
- break;
89
- case 27:
90
- o.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
91
- break;
92
- }
93
- }, "anonymous"),
94
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: R }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: R }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(w, [2, 8]), t(w, [2, 9]), t(w, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(w, [2, 11]), t(w, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
95
- defaultActions: { 2: [2, 1], 6: [2, 2] },
96
- parseError: /* @__PURE__ */ l(function(s, i) {
97
- if (i.recoverable)
98
- this.trace(s);
99
- else {
100
- var a = new Error(s);
101
- throw a.hash = i, a;
102
- }
103
- }, "parseError"),
104
- parse: /* @__PURE__ */ l(function(s) {
105
- var i = this, a = [0], o = [], g = [null], r = [], A = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
106
- for (var H in this.yy)
107
- Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
108
- f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
109
- var $ = f.yylloc;
110
- r.push($);
111
- var oe = f.options && f.options.ranges;
112
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
113
- function ce(N) {
114
- a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
115
- }
116
- l(ce, "popStack");
117
- function te() {
118
- var N;
119
- return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
120
- }
121
- l(te, "lex");
122
- for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
123
- if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = A[O] && A[O][S]), typeof k > "u" || !k.length || !k[0]) {
124
- var W = "";
125
- B = [];
126
- for (V in A[O])
127
- this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
128
- f.showPosition ? W = "Parse error on line " + (M + 1) + `:
129
- ` + f.showPosition() + `
130
- Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(W, {
131
- text: f.match,
132
- token: this.terminals_[S] || S,
133
- line: f.yylineno,
134
- loc: $,
135
- expected: B
136
- });
137
- }
138
- if (k[0] instanceof Array && k.length > 1)
139
- throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
140
- switch (k[0]) {
141
- case 1:
142
- a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
143
- break;
144
- case 2:
145
- if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
146
- first_line: r[r.length - (L || 1)].first_line,
147
- last_line: r[r.length - 1].last_line,
148
- first_column: r[r.length - (L || 1)].first_column,
149
- last_column: r[r.length - 1].last_column
150
- }, oe && (I._$.range = [
151
- r[r.length - (L || 1)].range[0],
152
- r[r.length - 1].range[1]
153
- ]), z = this.performAction.apply(I, [
154
- d,
155
- Z,
156
- M,
157
- T.yy,
158
- k[1],
159
- g,
160
- r
161
- ].concat(ae)), typeof z < "u")
162
- return z;
163
- L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = A[a[a.length - 2]][a[a.length - 1]], a.push(ie);
164
- break;
165
- case 3:
166
- return !0;
167
- }
168
- }
169
- return !0;
170
- }, "parse")
171
- }, se = /* @__PURE__ */ function() {
172
- var v = {
173
- EOF: 1,
174
- parseError: /* @__PURE__ */ l(function(i, a) {
175
- if (this.yy.parser)
176
- this.yy.parser.parseError(i, a);
177
- else
178
- throw new Error(i);
179
- }, "parseError"),
180
- // resets the lexer, sets new input
181
- setInput: /* @__PURE__ */ l(function(s, i) {
182
- return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
183
- first_line: 1,
184
- first_column: 0,
185
- last_line: 1,
186
- last_column: 0
187
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
188
- }, "setInput"),
189
- // consumes and returns one char from the input
190
- input: /* @__PURE__ */ l(function() {
191
- var s = this._input[0];
192
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
193
- var i = s.match(/(?:\r\n?|\n).*/g);
194
- return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
195
- }, "input"),
196
- // unshifts one char (or a string) into the input
197
- unput: /* @__PURE__ */ l(function(s) {
198
- var i = s.length, a = s.split(/(?:\r\n?|\n)/g);
199
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
200
- var o = this.match.split(/(?:\r\n?|\n)/g);
201
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
202
- var g = this.yylloc.range;
203
- return this.yylloc = {
204
- first_line: this.yylloc.first_line,
205
- last_line: this.yylineno + 1,
206
- first_column: this.yylloc.first_column,
207
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
208
- }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
209
- }, "unput"),
210
- // When called from action, caches matched text and appends it on next action
211
- more: /* @__PURE__ */ l(function() {
212
- return this._more = !0, this;
213
- }, "more"),
214
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
215
- reject: /* @__PURE__ */ l(function() {
216
- if (this.options.backtrack_lexer)
217
- this._backtrack = !0;
218
- else
219
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
220
- ` + this.showPosition(), {
221
- text: "",
222
- token: null,
223
- line: this.yylineno
224
- });
225
- return this;
226
- }, "reject"),
227
- // retain first n characters of the match
228
- less: /* @__PURE__ */ l(function(s) {
229
- this.unput(this.match.slice(s));
230
- }, "less"),
231
- // displays already matched input, i.e. for error messages
232
- pastInput: /* @__PURE__ */ l(function() {
233
- var s = this.matched.substr(0, this.matched.length - this.match.length);
234
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
235
- }, "pastInput"),
236
- // displays upcoming input, i.e. for error messages
237
- upcomingInput: /* @__PURE__ */ l(function() {
238
- var s = this.match;
239
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
240
- }, "upcomingInput"),
241
- // displays the character position where the lexing error occurred, i.e. for error messages
242
- showPosition: /* @__PURE__ */ l(function() {
243
- var s = this.pastInput(), i = new Array(s.length + 1).join("-");
244
- return s + this.upcomingInput() + `
245
- ` + i + "^";
246
- }, "showPosition"),
247
- // test the lexed token: return FALSE when not a match, otherwise return token
248
- test_match: /* @__PURE__ */ l(function(s, i) {
249
- var a, o, g;
250
- if (this.options.backtrack_lexer && (g = {
251
- yylineno: this.yylineno,
252
- yylloc: {
253
- first_line: this.yylloc.first_line,
254
- last_line: this.last_line,
255
- first_column: this.yylloc.first_column,
256
- last_column: this.yylloc.last_column
257
- },
258
- yytext: this.yytext,
259
- match: this.match,
260
- matches: this.matches,
261
- matched: this.matched,
262
- yyleng: this.yyleng,
263
- offset: this.offset,
264
- _more: this._more,
265
- _input: this._input,
266
- yy: this.yy,
267
- conditionStack: this.conditionStack.slice(0),
268
- done: this.done
269
- }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
270
- first_line: this.yylloc.last_line,
271
- last_line: this.yylineno + 1,
272
- first_column: this.yylloc.last_column,
273
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
274
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
275
- return a;
276
- if (this._backtrack) {
277
- for (var r in g)
278
- this[r] = g[r];
279
- return !1;
280
- }
281
- return !1;
282
- }, "test_match"),
283
- // return next match in input
284
- next: /* @__PURE__ */ l(function() {
285
- if (this.done)
286
- return this.EOF;
287
- this._input || (this.done = !0);
288
- var s, i, a, o;
289
- this._more || (this.yytext = "", this.match = "");
290
- for (var g = this._currentRules(), r = 0; r < g.length; r++)
291
- if (a = this._input.match(this.rules[g[r]]), a && (!i || a[0].length > i[0].length)) {
292
- if (i = a, o = r, this.options.backtrack_lexer) {
293
- if (s = this.test_match(a, g[r]), s !== !1)
294
- return s;
295
- if (this._backtrack) {
296
- i = !1;
297
- continue;
298
- } else
299
- return !1;
300
- } else if (!this.options.flex)
301
- break;
302
- }
303
- return i ? (s = this.test_match(i, g[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
304
- ` + this.showPosition(), {
305
- text: "",
306
- token: null,
307
- line: this.yylineno
308
- });
309
- }, "next"),
310
- // return next match that has a token
311
- lex: /* @__PURE__ */ l(function() {
312
- var i = this.next();
313
- return i || this.lex();
314
- }, "lex"),
315
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
316
- begin: /* @__PURE__ */ l(function(i) {
317
- this.conditionStack.push(i);
318
- }, "begin"),
319
- // pop the previously active lexer condition state off the condition stack
320
- popState: /* @__PURE__ */ l(function() {
321
- var i = this.conditionStack.length - 1;
322
- return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
323
- }, "popState"),
324
- // produce the lexer rule set which is active for the currently active lexer condition state
325
- _currentRules: /* @__PURE__ */ l(function() {
326
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
327
- }, "_currentRules"),
328
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
329
- topState: /* @__PURE__ */ l(function(i) {
330
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
331
- }, "topState"),
332
- // alias for begin(condition)
333
- pushState: /* @__PURE__ */ l(function(i) {
334
- this.begin(i);
335
- }, "pushState"),
336
- // return the number of states currently on the stack
337
- stateStackSize: /* @__PURE__ */ l(function() {
338
- return this.conditionStack.length;
339
- }, "stateStackSize"),
340
- options: { "case-insensitive": !0 },
341
- performAction: /* @__PURE__ */ l(function(i, a, o, g) {
342
- switch (o) {
343
- case 0:
344
- return i.getLogger().trace("Found comment", a.yytext), 6;
345
- case 1:
346
- return 8;
347
- case 2:
348
- this.begin("CLASS");
349
- break;
350
- case 3:
351
- return this.popState(), 16;
352
- case 4:
353
- this.popState();
354
- break;
355
- case 5:
356
- i.getLogger().trace("Begin icon"), this.begin("ICON");
357
- break;
358
- case 6:
359
- return i.getLogger().trace("SPACELINE"), 6;
360
- case 7:
361
- return 7;
362
- case 8:
363
- return 15;
364
- case 9:
365
- i.getLogger().trace("end icon"), this.popState();
366
- break;
367
- case 10:
368
- return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
369
- case 11:
370
- return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
371
- case 12:
372
- return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
373
- case 13:
374
- return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
375
- case 14:
376
- return this.begin("NODE"), 19;
377
- case 15:
378
- return this.begin("NODE"), 19;
379
- case 16:
380
- return this.begin("NODE"), 19;
381
- case 17:
382
- return this.begin("NODE"), 19;
383
- case 18:
384
- return 13;
385
- case 19:
386
- return 22;
387
- case 20:
388
- return 11;
389
- case 21:
390
- this.begin("NSTR2");
391
- break;
392
- case 22:
393
- return "NODE_DESCR";
394
- case 23:
395
- this.popState();
396
- break;
397
- case 24:
398
- i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
399
- break;
400
- case 25:
401
- return i.getLogger().trace("description:", a.yytext), "NODE_DESCR";
402
- case 26:
403
- this.popState();
404
- break;
405
- case 27:
406
- return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
407
- case 28:
408
- return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
409
- case 29:
410
- return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
411
- case 30:
412
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
413
- case 31:
414
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
415
- case 32:
416
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
417
- case 33:
418
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
419
- case 34:
420
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
421
- case 35:
422
- return i.getLogger().trace("Long description:", a.yytext), 20;
423
- case 36:
424
- return i.getLogger().trace("Long description:", a.yytext), 20;
425
- }
426
- }, "anonymous"),
427
- rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
428
- conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
429
- };
430
- return v;
431
- }();
432
- G.lexer = se;
433
- function P() {
434
- this.yy = {};
435
- }
436
- return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
437
- }();
438
- q.parser = q;
439
- var De = q, x = {
440
- DEFAULT: 0,
441
- NO_BORDER: 0,
442
- ROUNDED_RECT: 1,
443
- RECT: 2,
444
- CIRCLE: 3,
445
- CLOUD: 4,
446
- BANG: 5,
447
- HEXAGON: 6
448
- }, U, Ne = (U = class {
449
- constructor() {
450
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
451
- }
452
- clear() {
453
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
454
- }
455
- getParent(e) {
456
- for (let n = this.nodes.length - 1; n >= 0; n--)
457
- if (this.nodes[n].level < e)
458
- return this.nodes[n];
459
- return null;
460
- }
461
- getMindmap() {
462
- return this.nodes.length > 0 ? this.nodes[0] : null;
463
- }
464
- addNode(e, n, c, u) {
465
- var m, R;
466
- C.info("addNode", e, n, c, u);
467
- let h = !1;
468
- this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
469
- const p = X();
470
- let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? j.mindmap.padding;
471
- switch (u) {
472
- case this.nodeType.ROUNDED_RECT:
473
- case this.nodeType.RECT:
474
- case this.nodeType.HEXAGON:
475
- y *= 2;
476
- break;
477
- }
478
- const _ = {
479
- id: this.count++,
480
- nodeId: F(n, p),
481
- level: e,
482
- descr: F(c, p),
483
- type: u,
484
- children: [],
485
- width: ((R = p.mindmap) == null ? void 0 : R.maxNodeWidth) ?? j.mindmap.maxNodeWidth,
486
- padding: y,
487
- isRoot: h
488
- }, b = this.getParent(e);
489
- if (b)
490
- b.children.push(_), this.nodes.push(_);
491
- else if (h)
492
- this.nodes.push(_);
493
- else
494
- throw new Error(
495
- `There can be only one root. No parent could be found for ("${_.descr}")`
496
- );
497
- }
498
- getType(e, n) {
499
- switch (C.debug("In get type", e, n), e) {
500
- case "[":
501
- return this.nodeType.RECT;
502
- case "(":
503
- return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
504
- case "((":
505
- return this.nodeType.CIRCLE;
506
- case ")":
507
- return this.nodeType.CLOUD;
508
- case "))":
509
- return this.nodeType.BANG;
510
- case "{{":
511
- return this.nodeType.HEXAGON;
512
- default:
513
- return this.nodeType.DEFAULT;
514
- }
515
- }
516
- setElementForId(e, n) {
517
- this.elements[e] = n;
518
- }
519
- getElementById(e) {
520
- return this.elements[e];
521
- }
522
- decorateNode(e) {
523
- if (!e)
524
- return;
525
- const n = X(), c = this.nodes[this.nodes.length - 1];
526
- e.icon && (c.icon = F(e.icon, n)), e.class && (c.class = F(e.class, n));
527
- }
528
- type2Str(e) {
529
- switch (e) {
530
- case this.nodeType.DEFAULT:
531
- return "no-border";
532
- case this.nodeType.RECT:
533
- return "rect";
534
- case this.nodeType.ROUNDED_RECT:
535
- return "rounded-rect";
536
- case this.nodeType.CIRCLE:
537
- return "circle";
538
- case this.nodeType.CLOUD:
539
- return "cloud";
540
- case this.nodeType.BANG:
541
- return "bang";
542
- case this.nodeType.HEXAGON:
543
- return "hexgon";
544
- default:
545
- return "no-border";
546
- }
547
- }
548
- /**
549
- * Assign section numbers to nodes based on their position relative to root
550
- * @param node - The mindmap node to process
551
- * @param sectionNumber - The section number to assign (undefined for root)
552
- */
553
- assignSections(e, n) {
554
- if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
555
- for (const [c, u] of e.children.entries()) {
556
- const h = e.level === 0 ? c : n;
557
- this.assignSections(u, h);
558
- }
559
- }
560
- /**
561
- * Convert mindmap tree structure to flat array of nodes
562
- * @param node - The mindmap node to process
563
- * @param processedNodes - Array to collect processed nodes
564
- */
565
- flattenNodes(e, n) {
566
- const c = ["mindmap-node"];
567
- e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
568
- const u = c.join(" "), h = /* @__PURE__ */ l((y) => {
569
- switch (y) {
570
- case x.CIRCLE:
571
- return "mindmapCircle";
572
- case x.RECT:
573
- return "rect";
574
- case x.ROUNDED_RECT:
575
- return "rounded";
576
- case x.CLOUD:
577
- return "cloud";
578
- case x.BANG:
579
- return "bang";
580
- case x.HEXAGON:
581
- return "hexagon";
582
- case x.DEFAULT:
583
- return "defaultMindmapNode";
584
- case x.NO_BORDER:
585
- default:
586
- return "rect";
587
- }
588
- }, "getShapeFromType"), p = {
589
- id: e.id.toString(),
590
- domId: "node_" + e.id.toString(),
591
- label: e.descr,
592
- isGroup: !1,
593
- shape: h(e.type),
594
- width: e.width,
595
- height: e.height ?? 0,
596
- padding: e.padding,
597
- cssClasses: u,
598
- cssStyles: [],
599
- look: "default",
600
- icon: e.icon,
601
- x: e.x,
602
- y: e.y,
603
- // Mindmap-specific properties
604
- level: e.level,
605
- nodeId: e.nodeId,
606
- type: e.type,
607
- section: e.section
608
- };
609
- if (n.push(p), e.children)
610
- for (const y of e.children)
611
- this.flattenNodes(y, n);
612
- }
613
- /**
614
- * Generate edges from parent-child relationships in mindmap tree
615
- * @param node - The mindmap node to process
616
- * @param edges - Array to collect edges
617
- */
618
- generateEdges(e, n) {
619
- if (e.children)
620
- for (const c of e.children) {
621
- let u = "edge";
622
- c.section !== void 0 && (u += ` section-edge-${c.section}`);
623
- const h = e.level + 1;
624
- u += ` edge-depth-${h}`;
625
- const p = {
626
- id: `edge_${e.id}_${c.id}`,
627
- start: e.id.toString(),
628
- end: c.id.toString(),
629
- type: "normal",
630
- curve: "basis",
631
- thickness: "normal",
632
- look: "default",
633
- classes: u,
634
- // Store mindmap-specific data
635
- depth: e.level,
636
- section: c.section
637
- };
638
- n.push(p), this.generateEdges(c, n);
639
- }
640
- }
641
- /**
642
- * Get structured data for layout algorithms
643
- * Following the pattern established by ER diagrams
644
- * @returns Structured data containing nodes, edges, and config
645
- */
646
- getData() {
647
- const e = this.getMindmap(), n = X(), u = de().layout !== void 0, h = n;
648
- if (u || (h.layout = "cose-bilkent"), !e)
649
- return {
650
- nodes: [],
651
- edges: [],
652
- config: h
653
- };
654
- C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
655
- const p = [], y = [];
656
- this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
657
- `getData: processed ${p.length} nodes and ${y.length} edges`
658
- );
659
- const _ = /* @__PURE__ */ new Map();
660
- for (const b of p)
661
- _.set(b.id, {
662
- shape: b.shape,
663
- width: b.width,
664
- height: b.height,
665
- padding: b.padding
666
- });
667
- return {
668
- nodes: p,
669
- edges: y,
670
- config: h,
671
- // Store the root node for mindmap-specific layout algorithms
672
- rootNode: e,
673
- // Properties required by dagre layout algorithm
674
- markers: ["point"],
675
- // Mindmaps don't use markers
676
- direction: "TB",
677
- // Top-to-bottom direction for mindmaps
678
- nodeSpacing: 50,
679
- // Default spacing between nodes
680
- rankSpacing: 50,
681
- // Default spacing between ranks
682
- // Add shapes for ELK compatibility
683
- shapes: Object.fromEntries(_),
684
- // Additional properties that layout algorithms might expect
685
- type: "mindmap",
686
- diagramId: "mindmap-" + Se()
687
- };
688
- }
689
- // Expose logger to grammar
690
- getLogger() {
691
- return C;
692
- }
693
- }, l(U, "MindmapDB"), U), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
694
- var _, b;
695
- C.debug(`Rendering mindmap diagram
696
- ` + t);
697
- const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
698
- h.type = c.type, h.layoutAlgorithm = ge(h.config.layout, {
699
- fallback: "cose-bilkent"
700
- }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((m) => {
701
- m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
702
- }), await ue(h, p), he(
703
- p,
704
- ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
705
- "mindmapDiagram",
706
- ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
707
- ));
708
- }, "draw"), Le = {
709
- draw: ke
710
- }, xe = /* @__PURE__ */ l((t) => {
711
- let e = "";
712
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
713
- t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
714
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
715
- const c = "" + (17 - 3 * n);
716
- e += `
717
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
718
- fill: ${t["cScale" + n]};
719
- }
720
- .section-${n - 1} text {
721
- fill: ${t["cScaleLabel" + n]};
722
- }
723
- .node-icon-${n - 1} {
724
- font-size: 40px;
725
- color: ${t["cScaleLabel" + n]};
726
- }
727
- .section-edge-${n - 1}{
728
- stroke: ${t["cScale" + n]};
729
- }
730
- .edge-depth-${n - 1}{
731
- stroke-width: ${c};
732
- }
733
- .section-${n - 1} line {
734
- stroke: ${t["cScaleInv" + n]} ;
735
- stroke-width: 3;
736
- }
737
-
738
- .disabled, .disabled circle, .disabled text {
739
- fill: lightgray;
740
- }
741
- .disabled text {
742
- fill: #efefef;
743
- }
744
- `;
745
- }
746
- return e;
747
- }, "genSections"), ve = /* @__PURE__ */ l((t) => `
748
- .edge {
749
- stroke-width: 3;
750
- }
751
- ${xe(t)}
752
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
753
- fill: ${t.git0};
754
- }
755
- .section-root text {
756
- fill: ${t.gitBranchLabel0};
757
- }
758
- .section-root span {
759
- color: ${t.gitBranchLabel0};
760
- }
761
- .section-2 span {
762
- color: ${t.gitBranchLabel0};
763
- }
764
- .icon-container {
765
- height:100%;
766
- display: flex;
767
- justify-content: center;
768
- align-items: center;
769
- }
770
- .edge {
771
- fill: none;
772
- }
773
- .mindmap-node-label {
774
- dy: 1em;
775
- alignment-baseline: middle;
776
- text-anchor: middle;
777
- dominant-baseline: middle;
778
- text-align: center;
779
- }
780
- `, "getStyles"), Te = ve, Ue = {
781
- get db() {
782
- return new Ne();
783
- },
784
- renderer: Le,
785
- parser: De,
786
- styles: Te
787
- };
788
- export {
789
- Ue as diagram
790
- };