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

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 (325) 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 +14 -2779
  5. package/dist/ai-agent.umd.js +3213 -4
  6. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  7. package/dist/angular-html-CHuhdNYa.js +32 -0
  8. package/dist/angular-ts-CkwnAxZa.js +32 -0
  9. package/dist/apache-BUjz-sD2.js +6 -0
  10. package/dist/apex-oLhhs58q.js +6 -0
  11. package/dist/apl-C8FRyJIY.js +24 -0
  12. package/dist/applescript-BPx7YFFu.js +6 -0
  13. package/dist/ara-Z2fSOxSw.js +6 -0
  14. package/dist/arc-BzRDGNYi.js +85 -0
  15. package/dist/architectureDiagram-VXUJARFQ-jlW87y1j.js +4682 -0
  16. package/dist/asciidoc-B-pCoB3G.js +6 -0
  17. package/dist/asm-BTWLY5ym.js +6 -0
  18. package/dist/astro-CAC4-sRr.js +25 -0
  19. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  20. package/dist/awk-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0.js +6 -0
  28. package/dist/blade-Bwl5-ENK.js +27 -0
  29. package/dist/blockDiagram-VD42YOAC-P4woNHAr.js +2415 -0
  30. package/dist/bsl-NkNNwerW.js +8 -0
  31. package/dist/c-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-CB9WFLmJ.js +1593 -0
  33. package/dist/cadence-02UX7mW8.js +6 -0
  34. package/dist/cairo-Cp116741.js +18 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  39. package/dist/channel-B-TkD8Bv.js +5 -0
  40. package/dist/chunk-4BX2VUAB-DCjARiNr.js +9 -0
  41. package/dist/chunk-55IACEB6-DvmPHLo5.js +8 -0
  42. package/dist/chunk-B4BG7PRW-L08cVxNP.js +1377 -0
  43. package/dist/chunk-DI55MBZ5-zkyTO7pn.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-BkpbM-uP.js +19 -0
  45. package/dist/chunk-QN33PNHL-DSFN3Uoh.js +20 -0
  46. package/dist/chunk-QZHKN3VN-CAgMv7Xo.js +15 -0
  47. package/dist/chunk-TZMSLE5B-B6GY_sBW.js +64 -0
  48. package/dist/clarity-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-KqDAjO33.js +30 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-KqDAjO33.js +30 -0
  51. package/dist/clojure-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DNTp9HAy.js +20 -0
  54. package/dist/code-block-QI2IAROF-Culy9AKV.js +2042 -0
  55. package/dist/codeowners-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI.js +6 -0
  57. package/dist/coffee-BrprHIxF.js +18 -0
  58. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-DtppvcNV.js +2620 -0
  61. package/dist/cpp-CwJ5QP3s.js +29 -0
  62. package/dist/crystal-DWRgWI1Z.js +24 -0
  63. package/dist/csv-CmYOceLb.js +6 -0
  64. package/dist/cue-ZzumE7IT.js +6 -0
  65. package/dist/cypher-jpdmjtA6.js +6 -0
  66. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  67. package/dist/d-CBagWSwH.js +6 -0
  68. package/dist/dagre-6UL2VRFP-BfvQz4N-.js +459 -0
  69. package/dist/dark-plus-pUHDTVV0.js +4 -0
  70. package/dist/dart-6ObCrKr9.js +6 -0
  71. package/dist/dax-CcDT-8dH.js +6 -0
  72. package/dist/defaultLocale-D1piDxzZ.js +177 -0
  73. package/dist/desktop-B93p9R9O.js +6 -0
  74. package/dist/diagram-PSM6KHXK-ka-cDwC2.js +552 -0
  75. package/dist/diagram-QEK2KX5R-BW-yTygZ.js +232 -0
  76. package/dist/diagram-S2PKOQOG-j24g_p7y.js +154 -0
  77. package/dist/diff-BxzP2J8R.js +6 -0
  78. package/dist/docker-CsHqm9tx.js +6 -0
  79. package/dist/dotenv-BMjVjUL1.js +6 -0
  80. package/dist/dracula-BtZx2Kac.js +4 -0
  81. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  82. package/dist/dream-maker-PAx17jaB.js +6 -0
  83. package/dist/edge-B5_tHZZy.js +21 -0
  84. package/dist/elixir-Dj_1qPNg.js +18 -0
  85. package/dist/elm-DZPAA5Qn.js +9 -0
  86. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  87. package/dist/erDiagram-Q2GNP2WA-BoiJgXhe.js +854 -0
  88. package/dist/erb-DiYOU0he.js +31 -0
  89. package/dist/erlang-CNRRyeIc.js +18 -0
  90. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  91. package/dist/everforest-light-BbXl82Em.js +4 -0
  92. package/dist/fennel-N4WcXuKx.js +6 -0
  93. package/dist/fish-BTDEUgqH.js +6 -0
  94. package/dist/flowDiagram-NV44I4VS-BHGntIlE.js +1639 -0
  95. package/dist/fluent-BMXUxfv1.js +6 -0
  96. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  97. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  98. package/dist/fsharp-yevJ8DSS.js +18 -0
  99. package/dist/ganttDiagram-JELNMOA3-Ce8NwhCP.js +2710 -0
  100. package/dist/gdresource-BwtMIoBm.js +10 -0
  101. package/dist/gdscript-BifyeYhI.js +6 -0
  102. package/dist/gdshader-Bk8fF6yr.js +6 -0
  103. package/dist/genie-DzUvd7U9.js +6 -0
  104. package/dist/gherkin-DHRaV0YP.js +6 -0
  105. package/dist/git-commit-Bd32YZ0K.js +8 -0
  106. package/dist/git-rebase-BWMiWxYf.js +18 -0
  107. package/dist/gitGraphDiagram-NY62KEGX-DxoN7y5T.js +723 -0
  108. package/dist/github-dark-DenFmJkN.js +4 -0
  109. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  110. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  111. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  112. package/dist/github-light-JYsPkUQd.js +4 -0
  113. package/dist/github-light-default-D99KPAby.js +4 -0
  114. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  115. package/dist/gleam-Bv284lvN.js +6 -0
  116. package/dist/glimmer-js-Nc7Kk_CN.js +21 -0
  117. package/dist/glimmer-ts-DLoneyA9.js +21 -0
  118. package/dist/glsl-CkUcVZNK.js +8 -0
  119. package/dist/gnuplot-yPG9-sE_.js +6 -0
  120. package/dist/graph-C-gpLwEq.js +1189 -0
  121. package/dist/graphql-CB9Yiq18.js +23 -0
  122. package/dist/groovy-CJQTphOW.js +6 -0
  123. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  124. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  125. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  126. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  127. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  128. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  129. package/dist/hack-dNZDE7CK.js +19 -0
  130. package/dist/haml-CIHYN_l8.js +19 -0
  131. package/dist/handlebars-5wdAGqTJ.js +21 -0
  132. package/dist/haskell-WeIwNIP6.js +6 -0
  133. package/dist/haxe-TztHsm5T.js +6 -0
  134. package/dist/hcl-D438OF-I.js +6 -0
  135. package/dist/hjson-DYBUbqOl.js +6 -0
  136. package/dist/hlsl-Bk8TCZNL.js +6 -0
  137. package/dist/houston-BDYrDoDW.js +4 -0
  138. package/dist/html-derivative-89LwIO26.js +18 -0
  139. package/dist/http-Dsh8rSJR.js +26 -0
  140. package/dist/hurl-NdmqbL7E.js +26 -0
  141. package/dist/hxml-GbqSQCLa.js +8 -0
  142. package/dist/hy-Brt5EZ7-.js +6 -0
  143. package/dist/imba-CimUv-Uh.js +6 -0
  144. package/dist/index-C3mwt8G1.js +67982 -0
  145. package/dist/infoDiagram-WHAUD3N6-DdxAG2VL.js +35 -0
  146. package/dist/ini-BZIuRIvJ.js +6 -0
  147. package/dist/init-DjUOC4st.js +16 -0
  148. package/dist/java-DY6VlHhP.js +6 -0
  149. package/dist/jinja-BuwNoMI4.js +21 -0
  150. package/dist/jison-_q6rTsMi.js +18 -0
  151. package/dist/journeyDiagram-XKPGCS4Q-CT5Fbg6c.js +848 -0
  152. package/dist/json5-BT4Fjg39.js +6 -0
  153. package/dist/jsonc-CHjZD8gR.js +6 -0
  154. package/dist/jsonl-BGuvDmy9.js +6 -0
  155. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  156. package/dist/jssm-BcADi6EI.js +6 -0
  157. package/dist/jsx-BtKADgXT.js +6 -0
  158. package/dist/julia-BCBeSq7V.js +27 -0
  159. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  160. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  161. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  162. package/dist/kanban-definition-3W4ZIXB7-CxtMdkvq.js +732 -0
  163. package/dist/katex.min-l0sNRNKZ.js +1 -0
  164. package/dist/kdl-BNOv9TC3.js +6 -0
  165. package/dist/kotlin-ByBMgTeR.js +6 -0
  166. package/dist/kusto-VWFLl2T0.js +6 -0
  167. package/dist/laserwave-6a00oqik.js +4 -0
  168. package/dist/latex-DF20280u.js +9 -0
  169. package/dist/layout-D2NtTgFh.js +1730 -0
  170. package/dist/lean-D5yRrexI.js +6 -0
  171. package/dist/less-B1GLI2Di.js +6 -0
  172. package/dist/light-plus-CZuVqSLX.js +4 -0
  173. package/dist/linear-sERCAB61.js +277 -0
  174. package/dist/liquid-CFYzC-s7.js +21 -0
  175. package/dist/llvm-co1rIKs3.js +6 -0
  176. package/dist/log-Al8wyEFV.js +6 -0
  177. package/dist/logo-DBa4JDzV.js +6 -0
  178. package/dist/lua-kX5WP_P5.js +8 -0
  179. package/dist/luau-DtBSxLyz.js +6 -0
  180. package/dist/make-CsMclxtr.js +6 -0
  181. package/dist/marko-OTJE9YCh.js +23 -0
  182. package/dist/material-theme-D6KBX41T.js +4 -0
  183. package/dist/material-theme-darker-CkRroheE.js +4 -0
  184. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  185. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  186. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  187. package/dist/matlab-BOAaUVP0.js +6 -0
  188. package/dist/mdc-tFNBAW39.js +21 -0
  189. package/dist/mdx-BOhZZUJ8.js +6 -0
  190. package/dist/mermaid-B0ixDHKN.js +6 -0
  191. package/dist/mermaid-NA5CF7SZ-620UJKEg.js +14 -0
  192. package/dist/mermaid.core-08D5Vldk.js +14401 -0
  193. package/dist/min-dark-C7ak0t6c.js +4 -0
  194. package/dist/min-light-CKFxVcPp.js +4 -0
  195. package/dist/mindmap-definition-VGOIOE7T-CTZ_Wx0b.js +798 -0
  196. package/dist/mipsasm-CTx18fBl.js +6 -0
  197. package/dist/mojo-BD611d7o.js +6 -0
  198. package/dist/monokai-C1KBYcO0.js +4 -0
  199. package/dist/move-F-dICmj2.js +6 -0
  200. package/dist/narrat-DmhDCBs-.js +6 -0
  201. package/dist/nextflow-DmSVRGjG.js +6 -0
  202. package/dist/nginx-COxS3qoU.js +9 -0
  203. package/dist/night-owl-Bm2rzalh.js +4 -0
  204. package/dist/nim-CZHmlxcO.js +28 -0
  205. package/dist/nix-BZK5F767.js +9 -0
  206. package/dist/nord-CC5OiUXg.js +4 -0
  207. package/dist/nushell-D8j3dhT-.js +6 -0
  208. package/dist/objective-c-Itk8tzmv.js +6 -0
  209. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  210. package/dist/ocaml-eSVK32Eg.js +6 -0
  211. package/dist/openscad-Sp5uZ6f2.js +6 -0
  212. package/dist/ordinal-MUacOSdK.js +65 -0
  213. package/dist/pascal-xy8pJNns.js +6 -0
  214. package/dist/perl-CvmtpKyV.js +24 -0
  215. package/dist/php-B1tFq0rn.js +25 -0
  216. package/dist/pieDiagram-ADFJNKIX-DtleX3ES.js +173 -0
  217. package/dist/pkl-C-zSNmaA.js +6 -0
  218. package/dist/plastic-CSTz3KZp.js +4 -0
  219. package/dist/plsql-pVbGZfOv.js +6 -0
  220. package/dist/po-BNfHvqmm.js +6 -0
  221. package/dist/poimandres-C-VADXHD.js +4 -0
  222. package/dist/polar-CAZahv3u.js +6 -0
  223. package/dist/postcss-05aHdL-n.js +6 -0
  224. package/dist/powerquery-DI9HkTvs.js +6 -0
  225. package/dist/powershell-Clc4ydu-.js +6 -0
  226. package/dist/prisma-FZjmVtSl.js +6 -0
  227. package/dist/prolog-C5-yg4TO.js +6 -0
  228. package/dist/proto-MmCPeFAD.js +6 -0
  229. package/dist/pug-xpTstXA9.js +20 -0
  230. package/dist/puppet-CUJHmnxV.js +6 -0
  231. package/dist/purescript-rUfGld-4.js +6 -0
  232. package/dist/qml-G4_KKZym.js +18 -0
  233. package/dist/qmldir-BInDYbpo.js +6 -0
  234. package/dist/qss-AeJTysr_.js +6 -0
  235. package/dist/quadrantDiagram-AYHSOK5B-D193y_DL.js +1038 -0
  236. package/dist/r-Bm0uF0U2.js +6 -0
  237. package/dist/racket-B83wSAja.js +6 -0
  238. package/dist/raku-nEQ4ZJJ7.js +6 -0
  239. package/dist/razor-BS4LwTsw.js +19 -0
  240. package/dist/red-7y8PH7HH.js +4 -0
  241. package/dist/reg-m_s_Kiip.js +6 -0
  242. package/dist/regexp-BazyLpPg.js +6 -0
  243. package/dist/rel-BcRfyd6Q.js +6 -0
  244. package/dist/requirementDiagram-UZGBJVZJ-DcSe-m6d.js +864 -0
  245. package/dist/riscv-Ce8MAQLP.js +6 -0
  246. package/dist/rose-pine-BKc3yVeu.js +4 -0
  247. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  248. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  249. package/dist/rosmsg-Cz0w1km8.js +6 -0
  250. package/dist/rst-BvkiqG_4.js +39 -0
  251. package/dist/ruby-CSrNBwZK.js +40 -0
  252. package/dist/sankeyDiagram-TZEHDZUN-HpXuokMl.js +838 -0
  253. package/dist/sas-DciBl6hq.js +18 -0
  254. package/dist/sass-DxHp5rTx.js +6 -0
  255. package/dist/scala-D4grkFkl.js +6 -0
  256. package/dist/scheme-BCRWuEm4.js +6 -0
  257. package/dist/scss-Sr5SHsiH.js +18 -0
  258. package/dist/sdbl-B7T8abf4.js +6 -0
  259. package/dist/sequenceDiagram-WL72ISMW-D_5I_YtC.js +2530 -0
  260. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  261. package/dist/shellsession-B0YIY3D-.js +18 -0
  262. package/dist/slack-dark-i7wN4OET.js +4 -0
  263. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  264. package/dist/smalltalk-BlI1_OkM.js +6 -0
  265. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  266. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  267. package/dist/solarized-light-BheCkDPT.js +4 -0
  268. package/dist/solidity-DUWnFhS6.js +6 -0
  269. package/dist/soy-I6L3jl3W.js +18 -0
  270. package/dist/sparql-B0KWFEri.js +8 -0
  271. package/dist/splunk-CRXR8A9s.js +6 -0
  272. package/dist/ssh-config-DP-hNVbF.js +6 -0
  273. package/dist/stata-BNwq7-ev.js +18 -0
  274. package/dist/stateDiagram-FKZM4ZOC-CRSpvNED.js +276 -0
  275. package/dist/stateDiagram-v2-4FDKWEC3-DfUK-Zbc.js +29 -0
  276. package/dist/style.css +1 -1
  277. package/dist/stylus-CyKEU1Ej.js +6 -0
  278. package/dist/svelte-Din0yw3u.js +22 -0
  279. package/dist/swift-9UzSvamq.js +6 -0
  280. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  281. package/dist/system-verilog-BCm7smPJ.js +6 -0
  282. package/dist/systemd-C-4qm6XH.js +6 -0
  283. package/dist/talonscript-CFF3LF_O.js +6 -0
  284. package/dist/tasl-Cg_WBUAe.js +6 -0
  285. package/dist/tcl-DN7buRTF.js +6 -0
  286. package/dist/templ-CBu7yCES.js +20 -0
  287. package/dist/terraform-DGvcn9zM.js +6 -0
  288. package/dist/tex-DpOayVob.js +8 -0
  289. package/dist/timeline-definition-IT6M3QCI-DaJ4iEOK.js +813 -0
  290. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  291. package/dist/treemap-KMMF4GRG-C3Ab2yjL.js +16045 -0
  292. package/dist/ts-tags-3Kvfz4et.js +49 -0
  293. package/dist/tsv-BtvSkaG0.js +6 -0
  294. package/dist/tsx-B8rCNbgL.js +6 -0
  295. package/dist/turtle-_H59FV7D.js +6 -0
  296. package/dist/twig-3l_q-6xZ.js +37 -0
  297. package/dist/typespec-DWqp-kUU.js +6 -0
  298. package/dist/typst-D_1QKWns.js +6 -0
  299. package/dist/v-BPCNiyYe.js +6 -0
  300. package/dist/vala-uxaPR7d1.js +6 -0
  301. package/dist/vb-D8_c5-KN.js +6 -0
  302. package/dist/verilog-B-bybjPF.js +6 -0
  303. package/dist/vesper-BckBta1U.js +4 -0
  304. package/dist/vhdl-CUlNa8ac.js +6 -0
  305. package/dist/viml-DsfA-sWm.js +6 -0
  306. package/dist/vitesse-black-BoGvW84i.js +4 -0
  307. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  308. package/dist/vitesse-light-CcmG315c.js +4 -0
  309. package/dist/vue-BuFQ04-G.js +37 -0
  310. package/dist/vue-html-CyxHqgfT.js +21 -0
  311. package/dist/vue-vine-B_YNGutq.js +30 -0
  312. package/dist/vyper-CPQuu50u.js +6 -0
  313. package/dist/wasm-BBXxrAl7.js +6 -0
  314. package/dist/wasm-DQxwEHae.js +7 -0
  315. package/dist/wenyan-pbVjoM9_.js +6 -0
  316. package/dist/wgsl-DY4iK1q1.js +6 -0
  317. package/dist/wikitext-Z-MoUasO.js +6 -0
  318. package/dist/wit-CQMQOlTg.js +6 -0
  319. package/dist/wolfram-Dz4KXISs.js +6 -0
  320. package/dist/xml-C2J0sS9M.js +8 -0
  321. package/dist/xsl-CbTBIiv3.js +9 -0
  322. package/dist/xychartDiagram-PRI3JC2R-Cf2smXg5.js +1353 -0
  323. package/dist/zenscript-CxBjpf9c.js +6 -0
  324. package/dist/zig-Vm0PO9wB.js +6 -0
  325. package/package.json +25 -25
@@ -0,0 +1,732 @@
1
+ import { _ as c, l as te, c as W, H as fe, af as ye, ag as me, ah as be, V as Ee, E as K, i as G, t as _e, J as ke, W as Se, X as le, Y as ce } from "./mermaid.core-08D5Vldk.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-BkpbM-uP.js";
3
+ import "./index-C3mwt8G1.js";
4
+ import "react/jsx-runtime";
5
+ import "react";
6
+ import "class-variance-authority";
7
+ import "clsx";
8
+ import "tailwind-merge";
9
+ import "react-dom";
10
+ import "cmdk";
11
+ import "nanoid";
12
+ import "@foris/avocado-icons";
13
+ import "react-markdown";
14
+ var $ = function() {
15
+ var t = /* @__PURE__ */ c(function(E, i, n, a) {
16
+ for (n = n || {}, a = E.length; a--; n[E[a]] = i)
17
+ ;
18
+ return n;
19
+ }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], _ = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], s = [6, 7, 11], H = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], j = [1, 38], V = {
20
+ trace: /* @__PURE__ */ c(function() {
21
+ }, "trace"),
22
+ yy: {},
23
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
24
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
25
+ 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, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
26
+ performAction: /* @__PURE__ */ c(function(i, n, a, o, u, e, B) {
27
+ var l = e.length - 1;
28
+ switch (u) {
29
+ case 6:
30
+ case 7:
31
+ return o;
32
+ case 8:
33
+ o.getLogger().trace("Stop NL ");
34
+ break;
35
+ case 9:
36
+ o.getLogger().trace("Stop EOF ");
37
+ break;
38
+ case 11:
39
+ o.getLogger().trace("Stop NL2 ");
40
+ break;
41
+ case 12:
42
+ o.getLogger().trace("Stop EOF2 ");
43
+ break;
44
+ case 15:
45
+ o.getLogger().info("Node: ", e[l - 1].id), o.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
46
+ break;
47
+ case 16:
48
+ o.getLogger().info("Node: ", e[l].id), o.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
49
+ break;
50
+ case 17:
51
+ o.getLogger().trace("Icon: ", e[l]), o.decorateNode({ icon: e[l] });
52
+ break;
53
+ case 18:
54
+ case 23:
55
+ o.decorateNode({ class: e[l] });
56
+ break;
57
+ case 19:
58
+ o.getLogger().trace("SPACELIST");
59
+ break;
60
+ case 20:
61
+ o.getLogger().trace("Node: ", e[l - 1].id), o.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
62
+ break;
63
+ case 21:
64
+ o.getLogger().trace("Node: ", e[l].id), o.addNode(0, e[l].id, e[l].descr, e[l].type);
65
+ break;
66
+ case 22:
67
+ o.decorateNode({ icon: e[l] });
68
+ break;
69
+ case 27:
70
+ o.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
71
+ break;
72
+ case 28:
73
+ this.$ = { id: e[l], descr: e[l], type: 0 };
74
+ break;
75
+ case 29:
76
+ o.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
77
+ break;
78
+ case 30:
79
+ this.$ = e[l - 1] + e[l];
80
+ break;
81
+ case 31:
82
+ this.$ = e[l];
83
+ break;
84
+ }
85
+ }, "anonymous"),
86
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(s, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(s, [2, 19]), t(s, [2, 21], { 15: 30, 24: H }), t(s, [2, 22]), t(s, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(s, [2, 16], { 15: 37, 24: H }), t(s, [2, 17]), t(s, [2, 18]), t(s, [2, 20], { 24: j }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(s, [2, 15], { 24: j }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
87
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
88
+ parseError: /* @__PURE__ */ c(function(i, n) {
89
+ if (n.recoverable)
90
+ this.trace(i);
91
+ else {
92
+ var a = new Error(i);
93
+ throw a.hash = n, a;
94
+ }
95
+ }, "parseError"),
96
+ parse: /* @__PURE__ */ c(function(i) {
97
+ var n = this, a = [0], o = [], u = [null], e = [], B = this.table, l = "", z = 0, se = 0, ue = 2, re = 1, ge = e.slice.call(arguments, 1), m = Object.create(this.lexer), T = { yy: {} };
98
+ for (var J in this.yy)
99
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
100
+ m.setInput(i, T.yy), T.yy.lexer = m, T.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
101
+ var q = m.yylloc;
102
+ e.push(q);
103
+ var de = m.options && m.options.ranges;
104
+ typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
105
+ function pe(S) {
106
+ a.length = a.length - 2 * S, u.length = u.length - S, e.length = e.length - S;
107
+ }
108
+ c(pe, "popStack");
109
+ function ae() {
110
+ var S;
111
+ return S = o.pop() || m.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
112
+ }
113
+ c(ae, "lex");
114
+ for (var k, R, v, Q, F = {}, X, I, oe, Y; ; ) {
115
+ if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
116
+ var Z = "";
117
+ Y = [];
118
+ for (X in B[R])
119
+ this.terminals_[X] && X > ue && Y.push("'" + this.terminals_[X] + "'");
120
+ m.showPosition ? Z = "Parse error on line " + (z + 1) + `:
121
+ ` + m.showPosition() + `
122
+ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
123
+ text: m.match,
124
+ token: this.terminals_[k] || k,
125
+ line: m.yylineno,
126
+ loc: q,
127
+ expected: Y
128
+ });
129
+ }
130
+ if (v[0] instanceof Array && v.length > 1)
131
+ throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
132
+ switch (v[0]) {
133
+ case 1:
134
+ a.push(k), u.push(m.yytext), e.push(m.yylloc), a.push(v[1]), k = null, se = m.yyleng, l = m.yytext, z = m.yylineno, q = m.yylloc;
135
+ break;
136
+ case 2:
137
+ if (I = this.productions_[v[1]][1], F.$ = u[u.length - I], F._$ = {
138
+ first_line: e[e.length - (I || 1)].first_line,
139
+ last_line: e[e.length - 1].last_line,
140
+ first_column: e[e.length - (I || 1)].first_column,
141
+ last_column: e[e.length - 1].last_column
142
+ }, de && (F._$.range = [
143
+ e[e.length - (I || 1)].range[0],
144
+ e[e.length - 1].range[1]
145
+ ]), Q = this.performAction.apply(F, [
146
+ l,
147
+ se,
148
+ z,
149
+ T.yy,
150
+ v[1],
151
+ u,
152
+ e
153
+ ].concat(ge)), typeof Q < "u")
154
+ return Q;
155
+ I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(F.$), e.push(F._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
156
+ break;
157
+ case 3:
158
+ return !0;
159
+ }
160
+ }
161
+ return !0;
162
+ }, "parse")
163
+ }, b = /* @__PURE__ */ function() {
164
+ var E = {
165
+ EOF: 1,
166
+ parseError: /* @__PURE__ */ c(function(n, a) {
167
+ if (this.yy.parser)
168
+ this.yy.parser.parseError(n, a);
169
+ else
170
+ throw new Error(n);
171
+ }, "parseError"),
172
+ // resets the lexer, sets new input
173
+ setInput: /* @__PURE__ */ c(function(i, n) {
174
+ return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
175
+ first_line: 1,
176
+ first_column: 0,
177
+ last_line: 1,
178
+ last_column: 0
179
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
180
+ }, "setInput"),
181
+ // consumes and returns one char from the input
182
+ input: /* @__PURE__ */ c(function() {
183
+ var i = this._input[0];
184
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
185
+ var n = i.match(/(?:\r\n?|\n).*/g);
186
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
187
+ }, "input"),
188
+ // unshifts one char (or a string) into the input
189
+ unput: /* @__PURE__ */ c(function(i) {
190
+ var n = i.length, a = i.split(/(?:\r\n?|\n)/g);
191
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
192
+ var o = this.match.split(/(?:\r\n?|\n)/g);
193
+ 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);
194
+ var u = this.yylloc.range;
195
+ return this.yylloc = {
196
+ first_line: this.yylloc.first_line,
197
+ last_line: this.yylineno + 1,
198
+ first_column: this.yylloc.first_column,
199
+ 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 - n
200
+ }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
201
+ }, "unput"),
202
+ // When called from action, caches matched text and appends it on next action
203
+ more: /* @__PURE__ */ c(function() {
204
+ return this._more = !0, this;
205
+ }, "more"),
206
+ // 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.
207
+ reject: /* @__PURE__ */ c(function() {
208
+ if (this.options.backtrack_lexer)
209
+ this._backtrack = !0;
210
+ else
211
+ 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).
212
+ ` + this.showPosition(), {
213
+ text: "",
214
+ token: null,
215
+ line: this.yylineno
216
+ });
217
+ return this;
218
+ }, "reject"),
219
+ // retain first n characters of the match
220
+ less: /* @__PURE__ */ c(function(i) {
221
+ this.unput(this.match.slice(i));
222
+ }, "less"),
223
+ // displays already matched input, i.e. for error messages
224
+ pastInput: /* @__PURE__ */ c(function() {
225
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
226
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
227
+ }, "pastInput"),
228
+ // displays upcoming input, i.e. for error messages
229
+ upcomingInput: /* @__PURE__ */ c(function() {
230
+ var i = this.match;
231
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
232
+ }, "upcomingInput"),
233
+ // displays the character position where the lexing error occurred, i.e. for error messages
234
+ showPosition: /* @__PURE__ */ c(function() {
235
+ var i = this.pastInput(), n = new Array(i.length + 1).join("-");
236
+ return i + this.upcomingInput() + `
237
+ ` + n + "^";
238
+ }, "showPosition"),
239
+ // test the lexed token: return FALSE when not a match, otherwise return token
240
+ test_match: /* @__PURE__ */ c(function(i, n) {
241
+ var a, o, u;
242
+ if (this.options.backtrack_lexer && (u = {
243
+ yylineno: this.yylineno,
244
+ yylloc: {
245
+ first_line: this.yylloc.first_line,
246
+ last_line: this.last_line,
247
+ first_column: this.yylloc.first_column,
248
+ last_column: this.yylloc.last_column
249
+ },
250
+ yytext: this.yytext,
251
+ match: this.match,
252
+ matches: this.matches,
253
+ matched: this.matched,
254
+ yyleng: this.yyleng,
255
+ offset: this.offset,
256
+ _more: this._more,
257
+ _input: this._input,
258
+ yy: this.yy,
259
+ conditionStack: this.conditionStack.slice(0),
260
+ done: this.done
261
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), o = i[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
262
+ first_line: this.yylloc.last_line,
263
+ last_line: this.yylineno + 1,
264
+ first_column: this.yylloc.last_column,
265
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
266
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
267
+ return a;
268
+ if (this._backtrack) {
269
+ for (var e in u)
270
+ this[e] = u[e];
271
+ return !1;
272
+ }
273
+ return !1;
274
+ }, "test_match"),
275
+ // return next match in input
276
+ next: /* @__PURE__ */ c(function() {
277
+ if (this.done)
278
+ return this.EOF;
279
+ this._input || (this.done = !0);
280
+ var i, n, a, o;
281
+ this._more || (this.yytext = "", this.match = "");
282
+ for (var u = this._currentRules(), e = 0; e < u.length; e++)
283
+ if (a = this._input.match(this.rules[u[e]]), a && (!n || a[0].length > n[0].length)) {
284
+ if (n = a, o = e, this.options.backtrack_lexer) {
285
+ if (i = this.test_match(a, u[e]), i !== !1)
286
+ return i;
287
+ if (this._backtrack) {
288
+ n = !1;
289
+ continue;
290
+ } else
291
+ return !1;
292
+ } else if (!this.options.flex)
293
+ break;
294
+ }
295
+ return n ? (i = this.test_match(n, u[o]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
296
+ ` + this.showPosition(), {
297
+ text: "",
298
+ token: null,
299
+ line: this.yylineno
300
+ });
301
+ }, "next"),
302
+ // return next match that has a token
303
+ lex: /* @__PURE__ */ c(function() {
304
+ var n = this.next();
305
+ return n || this.lex();
306
+ }, "lex"),
307
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
308
+ begin: /* @__PURE__ */ c(function(n) {
309
+ this.conditionStack.push(n);
310
+ }, "begin"),
311
+ // pop the previously active lexer condition state off the condition stack
312
+ popState: /* @__PURE__ */ c(function() {
313
+ var n = this.conditionStack.length - 1;
314
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
315
+ }, "popState"),
316
+ // produce the lexer rule set which is active for the currently active lexer condition state
317
+ _currentRules: /* @__PURE__ */ c(function() {
318
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
319
+ }, "_currentRules"),
320
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
321
+ topState: /* @__PURE__ */ c(function(n) {
322
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
323
+ }, "topState"),
324
+ // alias for begin(condition)
325
+ pushState: /* @__PURE__ */ c(function(n) {
326
+ this.begin(n);
327
+ }, "pushState"),
328
+ // return the number of states currently on the stack
329
+ stateStackSize: /* @__PURE__ */ c(function() {
330
+ return this.conditionStack.length;
331
+ }, "stateStackSize"),
332
+ options: { "case-insensitive": !0 },
333
+ performAction: /* @__PURE__ */ c(function(n, a, o, u) {
334
+ switch (o) {
335
+ case 0:
336
+ return this.pushState("shapeData"), a.yytext = "", 24;
337
+ case 1:
338
+ return this.pushState("shapeDataStr"), 24;
339
+ case 2:
340
+ return this.popState(), 24;
341
+ case 3:
342
+ const e = /\n\s*/g;
343
+ return a.yytext = a.yytext.replace(e, "<br/>"), 24;
344
+ case 4:
345
+ return 24;
346
+ case 5:
347
+ this.popState();
348
+ break;
349
+ case 6:
350
+ return n.getLogger().trace("Found comment", a.yytext), 6;
351
+ case 7:
352
+ return 8;
353
+ case 8:
354
+ this.begin("CLASS");
355
+ break;
356
+ case 9:
357
+ return this.popState(), 17;
358
+ case 10:
359
+ this.popState();
360
+ break;
361
+ case 11:
362
+ n.getLogger().trace("Begin icon"), this.begin("ICON");
363
+ break;
364
+ case 12:
365
+ return n.getLogger().trace("SPACELINE"), 6;
366
+ case 13:
367
+ return 7;
368
+ case 14:
369
+ return 16;
370
+ case 15:
371
+ n.getLogger().trace("end icon"), this.popState();
372
+ break;
373
+ case 16:
374
+ return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
375
+ case 17:
376
+ return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
377
+ case 18:
378
+ return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
379
+ case 19:
380
+ return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
381
+ case 20:
382
+ return this.begin("NODE"), 20;
383
+ case 21:
384
+ return this.begin("NODE"), 20;
385
+ case 22:
386
+ return this.begin("NODE"), 20;
387
+ case 23:
388
+ return this.begin("NODE"), 20;
389
+ case 24:
390
+ return 13;
391
+ case 25:
392
+ return 23;
393
+ case 26:
394
+ return 11;
395
+ case 27:
396
+ this.begin("NSTR2");
397
+ break;
398
+ case 28:
399
+ return "NODE_DESCR";
400
+ case 29:
401
+ this.popState();
402
+ break;
403
+ case 30:
404
+ n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
405
+ break;
406
+ case 31:
407
+ return n.getLogger().trace("description:", a.yytext), "NODE_DESCR";
408
+ case 32:
409
+ this.popState();
410
+ break;
411
+ case 33:
412
+ return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
413
+ case 34:
414
+ return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
415
+ case 35:
416
+ return this.popState(), n.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
417
+ case 36:
418
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
419
+ case 37:
420
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
421
+ case 38:
422
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
423
+ case 39:
424
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
425
+ case 40:
426
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
427
+ case 41:
428
+ return n.getLogger().trace("Long description:", a.yytext), 21;
429
+ case 42:
430
+ return n.getLogger().trace("Long description:", a.yytext), 21;
431
+ }
432
+ }, "anonymous"),
433
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\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],
434
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
435
+ };
436
+ return E;
437
+ }();
438
+ V.lexer = b;
439
+ function O() {
440
+ this.yy = {};
441
+ }
442
+ return c(O, "Parser"), O.prototype = V, V.Parser = O, new O();
443
+ }();
444
+ $.parser = $;
445
+ var xe = $, D = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ c(() => {
446
+ D = [], ne = [], ee = 0, ie = {};
447
+ }, "clear"), De = /* @__PURE__ */ c((t) => {
448
+ if (D.length === 0)
449
+ return null;
450
+ const g = D[0].level;
451
+ let d = null;
452
+ for (let r = D.length - 1; r >= 0; r--)
453
+ if (D[r].level === g && !d && (d = D[r]), D[r].level < g)
454
+ throw new Error('Items without section detected, found section ("' + D[r].label + '")');
455
+ return t === (d == null ? void 0 : d.level) ? null : d;
456
+ }, "getSection"), he = /* @__PURE__ */ c(function() {
457
+ return ne;
458
+ }, "getSections"), Le = /* @__PURE__ */ c(function() {
459
+ const t = [], g = [], d = he(), r = W();
460
+ for (const p of d) {
461
+ const _ = {
462
+ id: p.id,
463
+ label: G(p.label ?? "", r),
464
+ isGroup: !0,
465
+ ticket: p.ticket,
466
+ shape: "kanbanSection",
467
+ level: p.level,
468
+ look: r.look
469
+ };
470
+ g.push(_);
471
+ const f = D.filter((h) => h.parentId === p.id);
472
+ for (const h of f) {
473
+ const L = {
474
+ id: h.id,
475
+ parentId: p.id,
476
+ label: G(h.label ?? "", r),
477
+ isGroup: !1,
478
+ ticket: h == null ? void 0 : h.ticket,
479
+ priority: h == null ? void 0 : h.priority,
480
+ assigned: h == null ? void 0 : h.assigned,
481
+ icon: h == null ? void 0 : h.icon,
482
+ shape: "kanbanItem",
483
+ level: h.level,
484
+ rx: 5,
485
+ ry: 5,
486
+ cssStyles: ["text-align: left"]
487
+ };
488
+ g.push(L);
489
+ }
490
+ }
491
+ return { nodes: g, edges: t, other: {}, config: W() };
492
+ }, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
493
+ var C, w;
494
+ const _ = W();
495
+ let f = ((C = _.mindmap) == null ? void 0 : C.padding) ?? K.mindmap.padding;
496
+ switch (r) {
497
+ case y.ROUNDED_RECT:
498
+ case y.RECT:
499
+ case y.HEXAGON:
500
+ f *= 2;
501
+ }
502
+ const h = {
503
+ id: G(g, _) || "kbn" + ee++,
504
+ level: t,
505
+ label: G(d, _),
506
+ width: ((w = _.mindmap) == null ? void 0 : w.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
507
+ padding: f,
508
+ isGroup: !1
509
+ };
510
+ if (p !== void 0) {
511
+ let N;
512
+ p.includes(`
513
+ `) ? N = p + `
514
+ ` : N = `{
515
+ ` + p + `
516
+ }`;
517
+ const s = _e(N, { schema: ke });
518
+ if (s.shape && (s.shape !== s.shape.toLowerCase() || s.shape.includes("_")))
519
+ throw new Error(`No such shape: ${s.shape}. Shape names should be lowercase.`);
520
+ s != null && s.shape && s.shape === "kanbanItem" && (h.shape = s == null ? void 0 : s.shape), s != null && s.label && (h.label = s == null ? void 0 : s.label), s != null && s.icon && (h.icon = s == null ? void 0 : s.icon.toString()), s != null && s.assigned && (h.assigned = s == null ? void 0 : s.assigned.toString()), s != null && s.ticket && (h.ticket = s == null ? void 0 : s.ticket.toString()), s != null && s.priority && (h.priority = s == null ? void 0 : s.priority);
521
+ }
522
+ const L = De(t);
523
+ L ? h.parentId = L.id || "kbn" + ee++ : ne.push(h), D.push(h);
524
+ }, "addNode"), y = {
525
+ DEFAULT: 0,
526
+ NO_BORDER: 0,
527
+ ROUNDED_RECT: 1,
528
+ RECT: 2,
529
+ CIRCLE: 3,
530
+ CLOUD: 4,
531
+ BANG: 5,
532
+ HEXAGON: 6
533
+ }, Ie = /* @__PURE__ */ c((t, g) => {
534
+ switch (te.debug("In get type", t, g), t) {
535
+ case "[":
536
+ return y.RECT;
537
+ case "(":
538
+ return g === ")" ? y.ROUNDED_RECT : y.CLOUD;
539
+ case "((":
540
+ return y.CIRCLE;
541
+ case ")":
542
+ return y.CLOUD;
543
+ case "))":
544
+ return y.BANG;
545
+ case "{{":
546
+ return y.HEXAGON;
547
+ default:
548
+ return y.DEFAULT;
549
+ }
550
+ }, "getType"), Ce = /* @__PURE__ */ c((t, g) => {
551
+ ie[t] = g;
552
+ }, "setElementForId"), we = /* @__PURE__ */ c((t) => {
553
+ if (!t)
554
+ return;
555
+ const g = W(), d = D[D.length - 1];
556
+ t.icon && (d.icon = G(t.icon, g)), t.class && (d.cssClasses = G(t.class, g));
557
+ }, "decorateNode"), Ae = /* @__PURE__ */ c((t) => {
558
+ switch (t) {
559
+ case y.DEFAULT:
560
+ return "no-border";
561
+ case y.RECT:
562
+ return "rect";
563
+ case y.ROUNDED_RECT:
564
+ return "rounded-rect";
565
+ case y.CIRCLE:
566
+ return "circle";
567
+ case y.CLOUD:
568
+ return "cloud";
569
+ case y.BANG:
570
+ return "bang";
571
+ case y.HEXAGON:
572
+ return "hexgon";
573
+ default:
574
+ return "no-border";
575
+ }
576
+ }, "type2Str"), Te = /* @__PURE__ */ c(() => te, "getLogger"), Re = /* @__PURE__ */ c((t) => ie[t], "getElementById"), Pe = {
577
+ clear: ve,
578
+ addNode: Oe,
579
+ getSections: he,
580
+ getData: Le,
581
+ nodeType: y,
582
+ getType: Ie,
583
+ setElementForId: Ce,
584
+ decorateNode: we,
585
+ type2Str: Ae,
586
+ getLogger: Te,
587
+ getElementById: Re
588
+ }, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
589
+ var M, U, A, j, V;
590
+ te.debug(`Rendering kanban diagram
591
+ ` + t);
592
+ const _ = r.db.getData(), f = W();
593
+ f.htmlLabels = !1;
594
+ const h = fe(g), L = h.append("g");
595
+ L.attr("class", "sections");
596
+ const C = h.append("g");
597
+ C.attr("class", "items");
598
+ const w = _.nodes.filter(
599
+ // TODO: TypeScript 5.5 will infer this predicate automatically
600
+ (b) => b.isGroup
601
+ );
602
+ let N = 0;
603
+ const s = 10, H = [];
604
+ let x = 25;
605
+ for (const b of w) {
606
+ const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
607
+ N = N + 1, b.x = O * N + (N - 1) * s / 2, b.width = O, b.y = 0, b.height = O * 3, b.rx = 5, b.ry = 5, b.cssClasses = b.cssClasses + " section-" + N;
608
+ const E = await ye(L, b);
609
+ x = Math.max(x, (U = E == null ? void 0 : E.labelBBox) == null ? void 0 : U.height), H.push(E);
610
+ }
611
+ let P = 0;
612
+ for (const b of w) {
613
+ const O = H[P];
614
+ P = P + 1;
615
+ const E = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, i = -E * 3 / 2 + x;
616
+ let n = i;
617
+ const a = _.nodes.filter((e) => e.parentId === b.id);
618
+ for (const e of a) {
619
+ if (e.isGroup)
620
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
621
+ e.x = b.x, e.width = E - 1.5 * s;
622
+ const l = (await me(C, e, { config: f })).node().getBBox();
623
+ e.y = n + l.height / 2, await be(e), n = e.y + l.height / 2 + s / 2;
624
+ }
625
+ const o = O.cluster.select("rect"), u = Math.max(n - i + 3 * s, 50) + (x - 25);
626
+ o.attr("height", u);
627
+ }
628
+ Ee(
629
+ void 0,
630
+ h,
631
+ ((j = f.mindmap) == null ? void 0 : j.padding) ?? K.kanban.padding,
632
+ ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? K.kanban.useMaxWidth
633
+ );
634
+ }, "draw"), Fe = {
635
+ draw: Be
636
+ }, Ge = /* @__PURE__ */ c((t) => {
637
+ let g = "";
638
+ for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
639
+ t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
640
+ const d = /* @__PURE__ */ c((r, p) => t.darkMode ? ce(r, p) : le(r, p), "adjuster");
641
+ for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) {
642
+ const p = "" + (17 - 3 * r);
643
+ g += `
644
+ .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
645
+ fill: ${d(t["cScale" + r], 10)};
646
+ stroke: ${d(t["cScale" + r], 10)};
647
+
648
+ }
649
+ .section-${r - 1} text {
650
+ fill: ${t["cScaleLabel" + r]};
651
+ }
652
+ .node-icon-${r - 1} {
653
+ font-size: 40px;
654
+ color: ${t["cScaleLabel" + r]};
655
+ }
656
+ .section-edge-${r - 1}{
657
+ stroke: ${t["cScale" + r]};
658
+ }
659
+ .edge-depth-${r - 1}{
660
+ stroke-width: ${p};
661
+ }
662
+ .section-${r - 1} line {
663
+ stroke: ${t["cScaleInv" + r]} ;
664
+ stroke-width: 3;
665
+ }
666
+
667
+ .disabled, .disabled circle, .disabled text {
668
+ fill: lightgray;
669
+ }
670
+ .disabled text {
671
+ fill: #efefef;
672
+ }
673
+
674
+ .node rect,
675
+ .node circle,
676
+ .node ellipse,
677
+ .node polygon,
678
+ .node path {
679
+ fill: ${t.background};
680
+ stroke: ${t.nodeBorder};
681
+ stroke-width: 1px;
682
+ }
683
+
684
+ .kanban-ticket-link {
685
+ fill: ${t.background};
686
+ stroke: ${t.nodeBorder};
687
+ text-decoration: underline;
688
+ }
689
+ `;
690
+ }
691
+ return g;
692
+ }, "genSections"), He = /* @__PURE__ */ c((t) => `
693
+ .edge {
694
+ stroke-width: 3;
695
+ }
696
+ ${Ge(t)}
697
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
698
+ fill: ${t.git0};
699
+ }
700
+ .section-root text {
701
+ fill: ${t.gitBranchLabel0};
702
+ }
703
+ .icon-container {
704
+ height:100%;
705
+ display: flex;
706
+ justify-content: center;
707
+ align-items: center;
708
+ }
709
+ .edge {
710
+ fill: none;
711
+ }
712
+ .cluster-label, .label {
713
+ color: ${t.textColor};
714
+ fill: ${t.textColor};
715
+ }
716
+ .kanban-label {
717
+ dy: 1em;
718
+ alignment-baseline: middle;
719
+ text-anchor: middle;
720
+ dominant-baseline: middle;
721
+ text-align: center;
722
+ }
723
+ ${Ne()}
724
+ `, "getStyles"), Me = He, tt = {
725
+ db: Ve,
726
+ renderer: Fe,
727
+ parser: xe,
728
+ styles: Me
729
+ };
730
+ export {
731
+ tt as diagram
732
+ };