@foris/ai-agent 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -285
  5. package/dist/ai-agent.umd.js +3874 -3
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/ai-sparkles-icon/AiSparklesIcon.d.ts +6 -0
  9. package/dist/ai-sparkles-icon/index.d.ts +2 -0
  10. package/dist/ai-summary-card/SummaryCard.d.ts +3 -1
  11. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  12. package/dist/angular-html-DPB4Rf0C.js +32 -0
  13. package/dist/angular-ts-CeqPwKaz.js +24 -0
  14. package/dist/apache-BUjz-sD2.js +6 -0
  15. package/dist/apex-oLhhs58q.js +6 -0
  16. package/dist/apl-Bfz1rp5e.js +17 -0
  17. package/dist/applescript-BPx7YFFu.js +6 -0
  18. package/dist/ara-Z2fSOxSw.js +6 -0
  19. package/dist/arc-DN1xn8kz.js +85 -0
  20. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  21. package/dist/asciidoc-B-pCoB3G.js +6 -0
  22. package/dist/asm-BTWLY5ym.js +6 -0
  23. package/dist/astro-CFFExE8Q.js +18 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-Fb0P9dkn.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-oZK-YekG.js +6 -0
  28. package/dist/bat-0FvbqU9S.js +6 -0
  29. package/dist/beancount-DqJEb89h.js +6 -0
  30. package/dist/berry-DODBq_Ff.js +6 -0
  31. package/dist/bibtex-EULQRLY5.js +6 -0
  32. package/dist/bicep-BorU73w0.js +6 -0
  33. package/dist/blade-DRRSiTQz.js +21 -0
  34. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  35. package/dist/bsl-NkNNwerW.js +8 -0
  36. package/dist/c-eeMepfLm.js +6 -0
  37. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  38. package/dist/cadence-02UX7mW8.js +6 -0
  39. package/dist/cairo-DM6WF2e3.js +8 -0
  40. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  41. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  42. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  43. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  44. package/dist/channel-BC4mWQQF.js +5 -0
  45. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  46. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  47. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  48. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  49. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  50. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  51. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  52. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  53. package/dist/clarity-PKm5CwqM.js +6 -0
  54. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  55. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  56. package/dist/clojure-CXJfHrL3.js +6 -0
  57. package/dist/cmake-BJz8BOTU.js +6 -0
  58. package/dist/cobol-DYTFdEK1.js +12 -0
  59. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  60. package/dist/codeowners-Bt9yU6NX.js +6 -0
  61. package/dist/codeql-DHkodjjI.js +6 -0
  62. package/dist/coffee-DGBR_nr_.js +8 -0
  63. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  64. package/dist/components/ai-elements/artifact.d.ts +23 -0
  65. package/dist/components/ai-elements/canvas.d.ts +7 -0
  66. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  67. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  68. package/dist/components/ai-elements/code-block.d.ts +17 -0
  69. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  70. package/dist/components/ai-elements/connection.d.ts +2 -0
  71. package/dist/components/ai-elements/context.d.ts +32 -0
  72. package/dist/components/ai-elements/controls.d.ts +4 -0
  73. package/dist/components/ai-elements/conversation.d.ts +15 -0
  74. package/dist/components/ai-elements/edge.d.ts +5 -0
  75. package/dist/components/ai-elements/image.d.ts +6 -0
  76. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  77. package/dist/components/ai-elements/loader.d.ts +5 -0
  78. package/dist/components/ai-elements/message.d.ts +46 -0
  79. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  80. package/dist/components/ai-elements/node.d.ts +21 -0
  81. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  82. package/dist/components/ai-elements/panel.d.ts +5 -0
  83. package/dist/components/ai-elements/plan.d.ts +25 -0
  84. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  85. package/dist/components/ai-elements/queue.d.ts +61 -0
  86. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  87. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  88. package/dist/components/ai-elements/sources.d.ts +12 -0
  89. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  90. package/dist/components/ai-elements/task.d.ts +14 -0
  91. package/dist/components/ai-elements/tool.d.ts +23 -0
  92. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  93. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  94. package/dist/components/ui/alert.d.ts +9 -0
  95. package/dist/components/ui/badge.d.ts +9 -0
  96. package/dist/components/ui/button-group.d.ts +12 -0
  97. package/dist/components/ui/button.d.ts +10 -0
  98. package/dist/components/ui/card.d.ts +9 -0
  99. package/dist/components/ui/carousel.d.ts +19 -0
  100. package/dist/components/ui/collapsible.d.ts +6 -0
  101. package/dist/components/ui/command.d.ts +18 -0
  102. package/dist/components/ui/dialog.d.ts +15 -0
  103. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  104. package/dist/components/ui/hover-card.d.ts +6 -0
  105. package/dist/components/ui/input-group.d.ts +16 -0
  106. package/dist/components/ui/input.d.ts +3 -0
  107. package/dist/components/ui/progress.d.ts +4 -0
  108. package/dist/components/ui/scroll-area.d.ts +5 -0
  109. package/dist/components/ui/select.d.ts +15 -0
  110. package/dist/components/ui/separator.d.ts +4 -0
  111. package/dist/components/ui/textarea.d.ts +3 -0
  112. package/dist/components/ui/tooltip.d.ts +7 -0
  113. package/dist/coq-B0L9upzn.js +6 -0
  114. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  115. package/dist/cpp-ZFnOq6fV.js +19 -0
  116. package/dist/crystal-CRJyc4G-.js +18 -0
  117. package/dist/csharp-C7yUs7-w.js +6 -0
  118. package/dist/css-CECN5uSL.js +6 -0
  119. package/dist/csv-CmYOceLb.js +6 -0
  120. package/dist/cue-ZzumE7IT.js +6 -0
  121. package/dist/cypher-jpdmjtA6.js +6 -0
  122. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  123. package/dist/d-CBagWSwH.js +6 -0
  124. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  125. package/dist/dark-plus-pUHDTVV0.js +4 -0
  126. package/dist/dart-6ObCrKr9.js +6 -0
  127. package/dist/dax-CcDT-8dH.js +6 -0
  128. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  129. package/dist/desktop-B93p9R9O.js +6 -0
  130. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  131. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  132. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  133. package/dist/diff-BxzP2J8R.js +6 -0
  134. package/dist/docker-CsHqm9tx.js +6 -0
  135. package/dist/dotenv-BMjVjUL1.js +6 -0
  136. package/dist/dracula-BtZx2Kac.js +4 -0
  137. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  138. package/dist/dream-maker-PAx17jaB.js +6 -0
  139. package/dist/edge-B882-fmN.js +14 -0
  140. package/dist/elixir-DRzNHQCz.js +10 -0
  141. package/dist/elm-DZPAA5Qn.js +9 -0
  142. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  143. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  144. package/dist/erb-DB1DqdBc.js +27 -0
  145. package/dist/erlang-DNcDT8Hi.js +8 -0
  146. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  147. package/dist/everforest-light-BbXl82Em.js +4 -0
  148. package/dist/fennel-N4WcXuKx.js +6 -0
  149. package/dist/fish-BTDEUgqH.js +6 -0
  150. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  151. package/dist/fluent-BMXUxfv1.js +6 -0
  152. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  153. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  154. package/dist/fsharp-CYOiIVNx.js +8 -0
  155. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  156. package/dist/gdresource-BwtMIoBm.js +10 -0
  157. package/dist/gdscript-BifyeYhI.js +6 -0
  158. package/dist/gdshader-Bk8fF6yr.js +6 -0
  159. package/dist/genie-DzUvd7U9.js +6 -0
  160. package/dist/gherkin-DHRaV0YP.js +6 -0
  161. package/dist/git-commit-Bd32YZ0K.js +8 -0
  162. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  163. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  164. package/dist/github-dark-DenFmJkN.js +4 -0
  165. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  166. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  167. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  168. package/dist/github-light-JYsPkUQd.js +4 -0
  169. package/dist/github-light-default-D99KPAby.js +4 -0
  170. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  171. package/dist/gleam-Bv284lvN.js +6 -0
  172. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  173. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  174. package/dist/glsl-CkUcVZNK.js +8 -0
  175. package/dist/gnuplot-yPG9-sE_.js +6 -0
  176. package/dist/go-ChxJuLYK.js +6 -0
  177. package/dist/graph-DB2UxkYH.js +1190 -0
  178. package/dist/graphql-CBu2ehBn.js +14 -0
  179. package/dist/groovy-CJQTphOW.js +6 -0
  180. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  181. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  182. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  183. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  184. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  185. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  186. package/dist/hack-DVWgrvc2.js +12 -0
  187. package/dist/haml-NZLVzu_R.js +10 -0
  188. package/dist/handlebars-mxStpSE7.js +14 -0
  189. package/dist/haskell-WeIwNIP6.js +6 -0
  190. package/dist/haxe-TztHsm5T.js +6 -0
  191. package/dist/hcl-D438OF-I.js +6 -0
  192. package/dist/hjson-DYBUbqOl.js +6 -0
  193. package/dist/hlsl-Bk8TCZNL.js +6 -0
  194. package/dist/houston-BDYrDoDW.js +4 -0
  195. package/dist/html-B50bmoVb.js +10 -0
  196. package/dist/html-derivative-ByyNxAP5.js +10 -0
  197. package/dist/http-BVIWqb92.js +19 -0
  198. package/dist/hurl-B8OTiYoQ.js +17 -0
  199. package/dist/hxml-GbqSQCLa.js +8 -0
  200. package/dist/hy-Brt5EZ7-.js +6 -0
  201. package/dist/imba-CimUv-Uh.js +6 -0
  202. package/dist/index-C2DJ8qoy.js +45435 -0
  203. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  204. package/dist/ini-BZIuRIvJ.js +6 -0
  205. package/dist/init-DjUOC4st.js +16 -0
  206. package/dist/java-DY6VlHhP.js +6 -0
  207. package/dist/javascript-C25yR2R2.js +6 -0
  208. package/dist/jinja-CI-LSgSv.js +13 -0
  209. package/dist/jison-DdreslRX.js +8 -0
  210. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  211. package/dist/json-DxJze_jm.js +6 -0
  212. package/dist/json5-BT4Fjg39.js +6 -0
  213. package/dist/jsonc-CHjZD8gR.js +6 -0
  214. package/dist/jsonl-BGuvDmy9.js +6 -0
  215. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  216. package/dist/jssm-BcADi6EI.js +6 -0
  217. package/dist/jsx-BtKADgXT.js +6 -0
  218. package/dist/julia-ll8P6QXy.js +19 -0
  219. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  220. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  221. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  222. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  223. package/dist/katex.min-l0sNRNKZ.js +1 -0
  224. package/dist/kdl-BNOv9TC3.js +6 -0
  225. package/dist/kotlin-ByBMgTeR.js +6 -0
  226. package/dist/kusto-VWFLl2T0.js +6 -0
  227. package/dist/laserwave-6a00oqik.js +4 -0
  228. package/dist/latex-DF20280u.js +9 -0
  229. package/dist/layout-Q6wQN5dr.js +1730 -0
  230. package/dist/lean-D5yRrexI.js +6 -0
  231. package/dist/less-B1GLI2Di.js +6 -0
  232. package/dist/lib/utils.d.ts +2 -0
  233. package/dist/light-plus-CZuVqSLX.js +4 -0
  234. package/dist/linear-CxGB80S5.js +277 -0
  235. package/dist/liquid-CHzkx3jT.js +14 -0
  236. package/dist/llvm-co1rIKs3.js +6 -0
  237. package/dist/log-Al8wyEFV.js +6 -0
  238. package/dist/logo-DBa4JDzV.js +6 -0
  239. package/dist/lua-kX5WP_P5.js +8 -0
  240. package/dist/luau-DtBSxLyz.js +6 -0
  241. package/dist/make-CsMclxtr.js +6 -0
  242. package/dist/markdown-CrScaQ96.js +6 -0
  243. package/dist/marko-ls0Jg2j8.js +14 -0
  244. package/dist/material-theme-D6KBX41T.js +4 -0
  245. package/dist/material-theme-darker-CkRroheE.js +4 -0
  246. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  247. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  248. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  249. package/dist/matlab-BOAaUVP0.js +6 -0
  250. package/dist/mdc-DIP5_jeM.js +15 -0
  251. package/dist/mdx-BOhZZUJ8.js +6 -0
  252. package/dist/mermaid-B0ixDHKN.js +6 -0
  253. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  254. package/dist/mermaid.core-xMGW442o.js +14414 -0
  255. package/dist/min-dark-C7ak0t6c.js +4 -0
  256. package/dist/min-light-CKFxVcPp.js +4 -0
  257. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  258. package/dist/mipsasm-CTx18fBl.js +6 -0
  259. package/dist/mojo-BD611d7o.js +6 -0
  260. package/dist/monokai-C1KBYcO0.js +4 -0
  261. package/dist/move-F-dICmj2.js +6 -0
  262. package/dist/narrat-DmhDCBs-.js +6 -0
  263. package/dist/nextflow-DmSVRGjG.js +6 -0
  264. package/dist/nginx-COxS3qoU.js +9 -0
  265. package/dist/night-owl-Bm2rzalh.js +4 -0
  266. package/dist/nim-CCwXZLHG.js +21 -0
  267. package/dist/nix-BZK5F767.js +9 -0
  268. package/dist/nord-CC5OiUXg.js +4 -0
  269. package/dist/nushell-D8j3dhT-.js +6 -0
  270. package/dist/objective-c-Itk8tzmv.js +6 -0
  271. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  272. package/dist/ocaml-eSVK32Eg.js +6 -0
  273. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  274. package/dist/one-light-D9sNaUtq.js +4 -0
  275. package/dist/openscad-Sp5uZ6f2.js +6 -0
  276. package/dist/ordinal-MUacOSdK.js +65 -0
  277. package/dist/pascal-xy8pJNns.js +6 -0
  278. package/dist/perl-NvKK8p2P.js +17 -0
  279. package/dist/php-CK5hNnT0.js +19 -0
  280. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  281. package/dist/pkl-C-zSNmaA.js +6 -0
  282. package/dist/plastic-CSTz3KZp.js +4 -0
  283. package/dist/plsql-pVbGZfOv.js +6 -0
  284. package/dist/po-BNfHvqmm.js +6 -0
  285. package/dist/poimandres-C-VADXHD.js +4 -0
  286. package/dist/polar-CAZahv3u.js +6 -0
  287. package/dist/postcss-05aHdL-n.js +6 -0
  288. package/dist/powerquery-DI9HkTvs.js +6 -0
  289. package/dist/powershell-Clc4ydu-.js +6 -0
  290. package/dist/prisma-FZjmVtSl.js +6 -0
  291. package/dist/prolog-C5-yg4TO.js +6 -0
  292. package/dist/proto-MmCPeFAD.js +6 -0
  293. package/dist/pug-XOw9Q1Ho.js +12 -0
  294. package/dist/puppet-CUJHmnxV.js +6 -0
  295. package/dist/purescript-rUfGld-4.js +6 -0
  296. package/dist/python-BFNSHbwJ.js +6 -0
  297. package/dist/qml-rTNXsquU.js +8 -0
  298. package/dist/qmldir-BInDYbpo.js +6 -0
  299. package/dist/qss-AeJTysr_.js +6 -0
  300. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  301. package/dist/r-Bm0uF0U2.js +6 -0
  302. package/dist/racket-B83wSAja.js +6 -0
  303. package/dist/raku-nEQ4ZJJ7.js +6 -0
  304. package/dist/razor-CoqPuKQU.js +12 -0
  305. package/dist/red-7y8PH7HH.js +4 -0
  306. package/dist/reg-m_s_Kiip.js +6 -0
  307. package/dist/regexp-BazyLpPg.js +6 -0
  308. package/dist/rel-BcRfyd6Q.js +6 -0
  309. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  310. package/dist/riscv-Ce8MAQLP.js +6 -0
  311. package/dist/rose-pine-BKc3yVeu.js +4 -0
  312. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  313. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  314. package/dist/rosmsg-Cz0w1km8.js +6 -0
  315. package/dist/rst-AoEjemIj.js +36 -0
  316. package/dist/ruby-CGSl8JoB.js +36 -0
  317. package/dist/rust-CLzF9zIN.js +6 -0
  318. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  319. package/dist/sas-fpEvgATw.js +8 -0
  320. package/dist/sass-DxHp5rTx.js +6 -0
  321. package/dist/scala-D4grkFkl.js +6 -0
  322. package/dist/scheme-BCRWuEm4.js +6 -0
  323. package/dist/scss-B1FaCqwR.js +8 -0
  324. package/dist/sdbl-B7T8abf4.js +6 -0
  325. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  326. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  327. package/dist/shellscript-InADTalH.js +6 -0
  328. package/dist/shellsession-DiDJNQdy.js +8 -0
  329. package/dist/slack-dark-i7wN4OET.js +4 -0
  330. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  331. package/dist/smalltalk-BlI1_OkM.js +6 -0
  332. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  333. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  334. package/dist/solarized-light-BheCkDPT.js +4 -0
  335. package/dist/solidity-DUWnFhS6.js +6 -0
  336. package/dist/soy-YPoZ1G2p.js +10 -0
  337. package/dist/sparql-B0KWFEri.js +8 -0
  338. package/dist/splunk-CRXR8A9s.js +6 -0
  339. package/dist/sql-Cn_v3PB0.js +6 -0
  340. package/dist/ssh-config-DP-hNVbF.js +6 -0
  341. package/dist/stata-B8c5fTjX.js +8 -0
  342. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  343. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  344. package/dist/style.css +1 -1
  345. package/dist/stylus-CyKEU1Ej.js +6 -0
  346. package/dist/svelte-5UasyOg7.js +14 -0
  347. package/dist/swift-9UzSvamq.js +6 -0
  348. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  349. package/dist/system-verilog-BCm7smPJ.js +6 -0
  350. package/dist/systemd-C-4qm6XH.js +6 -0
  351. package/dist/tailwind.css +126 -0
  352. package/dist/talonscript-CFF3LF_O.js +6 -0
  353. package/dist/tasl-Cg_WBUAe.js +6 -0
  354. package/dist/tcl-DN7buRTF.js +6 -0
  355. package/dist/templ-peLZIM2D.js +12 -0
  356. package/dist/terraform-DGvcn9zM.js +6 -0
  357. package/dist/tex-DpOayVob.js +8 -0
  358. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  359. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  360. package/dist/toml-DY62mUL_.js +6 -0
  361. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  362. package/dist/ts-tags-CWmBp2js.js +43 -0
  363. package/dist/tsv-BtvSkaG0.js +6 -0
  364. package/dist/tsx-B8rCNbgL.js +6 -0
  365. package/dist/turtle-_H59FV7D.js +6 -0
  366. package/dist/twig-Cpoho6oi.js +35 -0
  367. package/dist/typescript-RycA9KXf.js +6 -0
  368. package/dist/typespec-DWqp-kUU.js +6 -0
  369. package/dist/typst-D_1QKWns.js +6 -0
  370. package/dist/v-BPCNiyYe.js +6 -0
  371. package/dist/vala-uxaPR7d1.js +6 -0
  372. package/dist/vb-D8_c5-KN.js +6 -0
  373. package/dist/verilog-B-bybjPF.js +6 -0
  374. package/dist/vesper-BckBta1U.js +4 -0
  375. package/dist/vhdl-CUlNa8ac.js +6 -0
  376. package/dist/viml-DsfA-sWm.js +6 -0
  377. package/dist/vitesse-black-BoGvW84i.js +4 -0
  378. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  379. package/dist/vitesse-light-CcmG315c.js +4 -0
  380. package/dist/vue-DmFKWfEU.js +31 -0
  381. package/dist/vue-html-BB2aI7Yc.js +15 -0
  382. package/dist/vue-vine-CznNap4x.js +24 -0
  383. package/dist/vyper-CPQuu50u.js +6 -0
  384. package/dist/wasm-BBXxrAl7.js +6 -0
  385. package/dist/wasm-DQxwEHae.js +7 -0
  386. package/dist/wenyan-pbVjoM9_.js +6 -0
  387. package/dist/wgsl-DY4iK1q1.js +6 -0
  388. package/dist/wikitext-Z-MoUasO.js +6 -0
  389. package/dist/wit-CQMQOlTg.js +6 -0
  390. package/dist/wolfram-Dz4KXISs.js +6 -0
  391. package/dist/xml-C2J0sS9M.js +8 -0
  392. package/dist/xsl-CbTBIiv3.js +9 -0
  393. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  394. package/dist/yaml-DaO7k5B1.js +6 -0
  395. package/dist/zenscript-CxBjpf9c.js +6 -0
  396. package/dist/zig-Vm0PO9wB.js +6 -0
  397. package/package.json +35 -7
@@ -0,0 +1,840 @@
1
+ import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B-Bmj6LGNW.js";
2
+ import { g as kt } from "./chunk-FMBD7UC4-CVr83prI.js";
3
+ import { _ as n, d as R, n as _t, o as vt, s as bt, g as wt, c as Tt, b as St, t as $t, j as G, k as Mt } from "./mermaid.core-xMGW442o.js";
4
+ import { d as et } from "./arc-DN1xn8kz.js";
5
+ import "./index-C2DJ8qoy.js";
6
+ import "react";
7
+ import "react-dom";
8
+ var U = function() {
9
+ var t = /* @__PURE__ */ n(function(h, i, a, l) {
10
+ for (a = a || {}, l = h.length; l--; a[h[l]] = i)
11
+ ;
12
+ return a;
13
+ }, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], s = [1, 9], c = [1, 10], r = [1, 11], f = [1, 12], u = [1, 13], y = [1, 14], g = {
14
+ trace: /* @__PURE__ */ n(function() {
15
+ }, "trace"),
16
+ yy: {},
17
+ symbols_: { error: 2, start: 3, journey: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, taskName: 18, taskData: 19, $accept: 0, $end: 1 },
18
+ terminals_: { 2: "error", 4: "journey", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 18: "taskName", 19: "taskData" },
19
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2]],
20
+ performAction: /* @__PURE__ */ n(function(i, a, l, d, p, o, b) {
21
+ var k = o.length - 1;
22
+ switch (p) {
23
+ case 1:
24
+ return o[k - 1];
25
+ case 2:
26
+ this.$ = [];
27
+ break;
28
+ case 3:
29
+ o[k - 1].push(o[k]), this.$ = o[k - 1];
30
+ break;
31
+ case 4:
32
+ case 5:
33
+ this.$ = o[k];
34
+ break;
35
+ case 6:
36
+ case 7:
37
+ this.$ = [];
38
+ break;
39
+ case 8:
40
+ d.setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
41
+ break;
42
+ case 9:
43
+ this.$ = o[k].trim(), d.setAccTitle(this.$);
44
+ break;
45
+ case 10:
46
+ case 11:
47
+ this.$ = o[k].trim(), d.setAccDescription(this.$);
48
+ break;
49
+ case 12:
50
+ d.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
51
+ break;
52
+ case 13:
53
+ d.addTask(o[k - 1], o[k]), this.$ = "task";
54
+ break;
55
+ }
56
+ }, "anonymous"),
57
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: s, 12: c, 14: r, 16: f, 17: u, 18: y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: s, 12: c, 14: r, 16: f, 17: u, 18: y }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, t(e, [2, 11]), t(e, [2, 12]), { 19: [1, 18] }, t(e, [2, 4]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 13])],
58
+ defaultActions: {},
59
+ parseError: /* @__PURE__ */ n(function(i, a) {
60
+ if (a.recoverable)
61
+ this.trace(i);
62
+ else {
63
+ var l = new Error(i);
64
+ throw l.hash = a, l;
65
+ }
66
+ }, "parseError"),
67
+ parse: /* @__PURE__ */ n(function(i) {
68
+ var a = this, l = [0], d = [], p = [null], o = [], b = this.table, k = "", C = 0, K = 0, dt = 2, Q = 1, yt = o.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
69
+ for (var O in this.yy)
70
+ Object.prototype.hasOwnProperty.call(this.yy, O) && (I.yy[O] = this.yy[O]);
71
+ _.setInput(i, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
72
+ var Y = _.yylloc;
73
+ o.push(Y);
74
+ var ft = _.options && _.options.ranges;
75
+ typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
76
+ function pt(w) {
77
+ l.length = l.length - 2 * w, p.length = p.length - w, o.length = o.length - w;
78
+ }
79
+ n(pt, "popStack");
80
+ function D() {
81
+ var w;
82
+ return w = d.pop() || _.lex() || Q, typeof w != "number" && (w instanceof Array && (d = w, w = d.pop()), w = a.symbols_[w] || w), w;
83
+ }
84
+ n(D, "lex");
85
+ for (var v, A, T, q, F = {}, N, M, tt, z; ; ) {
86
+ if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((v === null || typeof v > "u") && (v = D()), T = b[A] && b[A][v]), typeof T > "u" || !T.length || !T[0]) {
87
+ var X = "";
88
+ z = [];
89
+ for (N in b[A])
90
+ this.terminals_[N] && N > dt && z.push("'" + this.terminals_[N] + "'");
91
+ _.showPosition ? X = "Parse error on line " + (C + 1) + `:
92
+ ` + _.showPosition() + `
93
+ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : X = "Parse error on line " + (C + 1) + ": Unexpected " + (v == Q ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(X, {
94
+ text: _.match,
95
+ token: this.terminals_[v] || v,
96
+ line: _.yylineno,
97
+ loc: Y,
98
+ expected: z
99
+ });
100
+ }
101
+ if (T[0] instanceof Array && T.length > 1)
102
+ throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + v);
103
+ switch (T[0]) {
104
+ case 1:
105
+ l.push(v), p.push(_.yytext), o.push(_.yylloc), l.push(T[1]), v = null, K = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
106
+ break;
107
+ case 2:
108
+ if (M = this.productions_[T[1]][1], F.$ = p[p.length - M], F._$ = {
109
+ first_line: o[o.length - (M || 1)].first_line,
110
+ last_line: o[o.length - 1].last_line,
111
+ first_column: o[o.length - (M || 1)].first_column,
112
+ last_column: o[o.length - 1].last_column
113
+ }, ft && (F._$.range = [
114
+ o[o.length - (M || 1)].range[0],
115
+ o[o.length - 1].range[1]
116
+ ]), q = this.performAction.apply(F, [
117
+ k,
118
+ K,
119
+ C,
120
+ I.yy,
121
+ T[1],
122
+ p,
123
+ o
124
+ ].concat(yt)), typeof q < "u")
125
+ return q;
126
+ M && (l = l.slice(0, -1 * M * 2), p = p.slice(0, -1 * M), o = o.slice(0, -1 * M)), l.push(this.productions_[T[1]][0]), p.push(F.$), o.push(F._$), tt = b[l[l.length - 2]][l[l.length - 1]], l.push(tt);
127
+ break;
128
+ case 3:
129
+ return !0;
130
+ }
131
+ }
132
+ return !0;
133
+ }, "parse")
134
+ }, m = /* @__PURE__ */ function() {
135
+ var h = {
136
+ EOF: 1,
137
+ parseError: /* @__PURE__ */ n(function(a, l) {
138
+ if (this.yy.parser)
139
+ this.yy.parser.parseError(a, l);
140
+ else
141
+ throw new Error(a);
142
+ }, "parseError"),
143
+ // resets the lexer, sets new input
144
+ setInput: /* @__PURE__ */ n(function(i, a) {
145
+ return this.yy = a || 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 = {
146
+ first_line: 1,
147
+ first_column: 0,
148
+ last_line: 1,
149
+ last_column: 0
150
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
151
+ }, "setInput"),
152
+ // consumes and returns one char from the input
153
+ input: /* @__PURE__ */ n(function() {
154
+ var i = this._input[0];
155
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
156
+ var a = i.match(/(?:\r\n?|\n).*/g);
157
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
158
+ }, "input"),
159
+ // unshifts one char (or a string) into the input
160
+ unput: /* @__PURE__ */ n(function(i) {
161
+ var a = i.length, l = i.split(/(?:\r\n?|\n)/g);
162
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
163
+ var d = this.match.split(/(?:\r\n?|\n)/g);
164
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
165
+ var p = this.yylloc.range;
166
+ return this.yylloc = {
167
+ first_line: this.yylloc.first_line,
168
+ last_line: this.yylineno + 1,
169
+ first_column: this.yylloc.first_column,
170
+ last_column: l ? (l.length === d.length ? this.yylloc.first_column : 0) + d[d.length - l.length].length - l[0].length : this.yylloc.first_column - a
171
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
172
+ }, "unput"),
173
+ // When called from action, caches matched text and appends it on next action
174
+ more: /* @__PURE__ */ n(function() {
175
+ return this._more = !0, this;
176
+ }, "more"),
177
+ // 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.
178
+ reject: /* @__PURE__ */ n(function() {
179
+ if (this.options.backtrack_lexer)
180
+ this._backtrack = !0;
181
+ else
182
+ 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).
183
+ ` + this.showPosition(), {
184
+ text: "",
185
+ token: null,
186
+ line: this.yylineno
187
+ });
188
+ return this;
189
+ }, "reject"),
190
+ // retain first n characters of the match
191
+ less: /* @__PURE__ */ n(function(i) {
192
+ this.unput(this.match.slice(i));
193
+ }, "less"),
194
+ // displays already matched input, i.e. for error messages
195
+ pastInput: /* @__PURE__ */ n(function() {
196
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
197
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
198
+ }, "pastInput"),
199
+ // displays upcoming input, i.e. for error messages
200
+ upcomingInput: /* @__PURE__ */ n(function() {
201
+ var i = this.match;
202
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
203
+ }, "upcomingInput"),
204
+ // displays the character position where the lexing error occurred, i.e. for error messages
205
+ showPosition: /* @__PURE__ */ n(function() {
206
+ var i = this.pastInput(), a = new Array(i.length + 1).join("-");
207
+ return i + this.upcomingInput() + `
208
+ ` + a + "^";
209
+ }, "showPosition"),
210
+ // test the lexed token: return FALSE when not a match, otherwise return token
211
+ test_match: /* @__PURE__ */ n(function(i, a) {
212
+ var l, d, p;
213
+ if (this.options.backtrack_lexer && (p = {
214
+ yylineno: this.yylineno,
215
+ yylloc: {
216
+ first_line: this.yylloc.first_line,
217
+ last_line: this.last_line,
218
+ first_column: this.yylloc.first_column,
219
+ last_column: this.yylloc.last_column
220
+ },
221
+ yytext: this.yytext,
222
+ match: this.match,
223
+ matches: this.matches,
224
+ matched: this.matched,
225
+ yyleng: this.yyleng,
226
+ offset: this.offset,
227
+ _more: this._more,
228
+ _input: this._input,
229
+ yy: this.yy,
230
+ conditionStack: this.conditionStack.slice(0),
231
+ done: this.done
232
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
233
+ first_line: this.yylloc.last_line,
234
+ last_line: this.yylineno + 1,
235
+ first_column: this.yylloc.last_column,
236
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
237
+ }, 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], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
238
+ return l;
239
+ if (this._backtrack) {
240
+ for (var o in p)
241
+ this[o] = p[o];
242
+ return !1;
243
+ }
244
+ return !1;
245
+ }, "test_match"),
246
+ // return next match in input
247
+ next: /* @__PURE__ */ n(function() {
248
+ if (this.done)
249
+ return this.EOF;
250
+ this._input || (this.done = !0);
251
+ var i, a, l, d;
252
+ this._more || (this.yytext = "", this.match = "");
253
+ for (var p = this._currentRules(), o = 0; o < p.length; o++)
254
+ if (l = this._input.match(this.rules[p[o]]), l && (!a || l[0].length > a[0].length)) {
255
+ if (a = l, d = o, this.options.backtrack_lexer) {
256
+ if (i = this.test_match(l, p[o]), i !== !1)
257
+ return i;
258
+ if (this._backtrack) {
259
+ a = !1;
260
+ continue;
261
+ } else
262
+ return !1;
263
+ } else if (!this.options.flex)
264
+ break;
265
+ }
266
+ return a ? (i = this.test_match(a, p[d]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
267
+ ` + this.showPosition(), {
268
+ text: "",
269
+ token: null,
270
+ line: this.yylineno
271
+ });
272
+ }, "next"),
273
+ // return next match that has a token
274
+ lex: /* @__PURE__ */ n(function() {
275
+ var a = this.next();
276
+ return a || this.lex();
277
+ }, "lex"),
278
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
279
+ begin: /* @__PURE__ */ n(function(a) {
280
+ this.conditionStack.push(a);
281
+ }, "begin"),
282
+ // pop the previously active lexer condition state off the condition stack
283
+ popState: /* @__PURE__ */ n(function() {
284
+ var a = this.conditionStack.length - 1;
285
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
286
+ }, "popState"),
287
+ // produce the lexer rule set which is active for the currently active lexer condition state
288
+ _currentRules: /* @__PURE__ */ n(function() {
289
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
290
+ }, "_currentRules"),
291
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
292
+ topState: /* @__PURE__ */ n(function(a) {
293
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
294
+ }, "topState"),
295
+ // alias for begin(condition)
296
+ pushState: /* @__PURE__ */ n(function(a) {
297
+ this.begin(a);
298
+ }, "pushState"),
299
+ // return the number of states currently on the stack
300
+ stateStackSize: /* @__PURE__ */ n(function() {
301
+ return this.conditionStack.length;
302
+ }, "stateStackSize"),
303
+ options: { "case-insensitive": !0 },
304
+ performAction: /* @__PURE__ */ n(function(a, l, d, p) {
305
+ switch (d) {
306
+ case 0:
307
+ break;
308
+ case 1:
309
+ break;
310
+ case 2:
311
+ return 10;
312
+ case 3:
313
+ break;
314
+ case 4:
315
+ break;
316
+ case 5:
317
+ return 4;
318
+ case 6:
319
+ return 11;
320
+ case 7:
321
+ return this.begin("acc_title"), 12;
322
+ case 8:
323
+ return this.popState(), "acc_title_value";
324
+ case 9:
325
+ return this.begin("acc_descr"), 14;
326
+ case 10:
327
+ return this.popState(), "acc_descr_value";
328
+ case 11:
329
+ this.begin("acc_descr_multiline");
330
+ break;
331
+ case 12:
332
+ this.popState();
333
+ break;
334
+ case 13:
335
+ return "acc_descr_multiline_value";
336
+ case 14:
337
+ return 17;
338
+ case 15:
339
+ return 18;
340
+ case 16:
341
+ return 19;
342
+ case 17:
343
+ return ":";
344
+ case 18:
345
+ return 6;
346
+ case 19:
347
+ return "INVALID";
348
+ }
349
+ }, "anonymous"),
350
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
351
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
352
+ };
353
+ return h;
354
+ }();
355
+ g.lexer = m;
356
+ function x() {
357
+ this.yy = {};
358
+ }
359
+ return n(x, "Parser"), x.prototype = g, g.Parser = x, new x();
360
+ }();
361
+ U.parser = U;
362
+ var Et = U, V = "", Z = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
363
+ Z.length = 0, L.length = 0, V = "", B.length = 0, $t();
364
+ }, "clear"), Pt = /* @__PURE__ */ n(function(t) {
365
+ V = t, Z.push(t);
366
+ }, "addSection"), It = /* @__PURE__ */ n(function() {
367
+ return Z;
368
+ }, "getSections"), At = /* @__PURE__ */ n(function() {
369
+ let t = it();
370
+ const e = 100;
371
+ let s = 0;
372
+ for (; !t && s < e; )
373
+ t = it(), s++;
374
+ return L.push(...B), L;
375
+ }, "getTasks"), Ft = /* @__PURE__ */ n(function() {
376
+ const t = [];
377
+ return L.forEach((s) => {
378
+ s.people && t.push(...s.people);
379
+ }), [...new Set(t)].sort();
380
+ }, "updateActors"), Vt = /* @__PURE__ */ n(function(t, e) {
381
+ const s = e.substr(1).split(":");
382
+ let c = 0, r = [];
383
+ s.length === 1 ? (c = Number(s[0]), r = []) : (c = Number(s[0]), r = s[1].split(","));
384
+ const f = r.map((y) => y.trim()), u = {
385
+ section: V,
386
+ type: V,
387
+ people: f,
388
+ task: t,
389
+ score: c
390
+ };
391
+ B.push(u);
392
+ }, "addTask"), Rt = /* @__PURE__ */ n(function(t) {
393
+ const e = {
394
+ section: V,
395
+ type: V,
396
+ description: t,
397
+ task: t,
398
+ classes: []
399
+ };
400
+ L.push(e);
401
+ }, "addTaskOrg"), it = /* @__PURE__ */ n(function() {
402
+ const t = /* @__PURE__ */ n(function(s) {
403
+ return B[s].processed;
404
+ }, "compileTask");
405
+ let e = !0;
406
+ for (const [s, c] of B.entries())
407
+ t(s), e = e && c.processed;
408
+ return e;
409
+ }, "compileTasks"), Lt = /* @__PURE__ */ n(function() {
410
+ return Ft();
411
+ }, "getActors"), rt = {
412
+ getConfig: /* @__PURE__ */ n(() => R().journey, "getConfig"),
413
+ clear: Ct,
414
+ setDiagramTitle: _t,
415
+ getDiagramTitle: vt,
416
+ setAccTitle: bt,
417
+ getAccTitle: wt,
418
+ setAccDescription: Tt,
419
+ getAccDescription: St,
420
+ addSection: Pt,
421
+ getSections: It,
422
+ getTasks: At,
423
+ addTask: Vt,
424
+ addTaskOrg: Rt,
425
+ getActors: Lt
426
+ }, Bt = /* @__PURE__ */ n((t) => `.label {
427
+ font-family: ${t.fontFamily};
428
+ color: ${t.textColor};
429
+ }
430
+ .mouth {
431
+ stroke: #666;
432
+ }
433
+
434
+ line {
435
+ stroke: ${t.textColor}
436
+ }
437
+
438
+ .legend {
439
+ fill: ${t.textColor};
440
+ font-family: ${t.fontFamily};
441
+ }
442
+
443
+ .label text {
444
+ fill: #333;
445
+ }
446
+ .label {
447
+ color: ${t.textColor}
448
+ }
449
+
450
+ .face {
451
+ ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
452
+ stroke: #999;
453
+ }
454
+
455
+ .node rect,
456
+ .node circle,
457
+ .node ellipse,
458
+ .node polygon,
459
+ .node path {
460
+ fill: ${t.mainBkg};
461
+ stroke: ${t.nodeBorder};
462
+ stroke-width: 1px;
463
+ }
464
+
465
+ .node .label {
466
+ text-align: center;
467
+ }
468
+ .node.clickable {
469
+ cursor: pointer;
470
+ }
471
+
472
+ .arrowheadPath {
473
+ fill: ${t.arrowheadColor};
474
+ }
475
+
476
+ .edgePath .path {
477
+ stroke: ${t.lineColor};
478
+ stroke-width: 1.5px;
479
+ }
480
+
481
+ .flowchart-link {
482
+ stroke: ${t.lineColor};
483
+ fill: none;
484
+ }
485
+
486
+ .edgeLabel {
487
+ background-color: ${t.edgeLabelBackground};
488
+ rect {
489
+ opacity: 0.5;
490
+ }
491
+ text-align: center;
492
+ }
493
+
494
+ .cluster rect {
495
+ }
496
+
497
+ .cluster text {
498
+ fill: ${t.titleColor};
499
+ }
500
+
501
+ div.mermaidTooltip {
502
+ position: absolute;
503
+ text-align: center;
504
+ max-width: 200px;
505
+ padding: 2px;
506
+ font-family: ${t.fontFamily};
507
+ font-size: 12px;
508
+ background: ${t.tertiaryColor};
509
+ border: 1px solid ${t.border2};
510
+ border-radius: 2px;
511
+ pointer-events: none;
512
+ z-index: 100;
513
+ }
514
+
515
+ .task-type-0, .section-type-0 {
516
+ ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
517
+ }
518
+ .task-type-1, .section-type-1 {
519
+ ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
520
+ }
521
+ .task-type-2, .section-type-2 {
522
+ ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
523
+ }
524
+ .task-type-3, .section-type-3 {
525
+ ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
526
+ }
527
+ .task-type-4, .section-type-4 {
528
+ ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
529
+ }
530
+ .task-type-5, .section-type-5 {
531
+ ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
532
+ }
533
+ .task-type-6, .section-type-6 {
534
+ ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
535
+ }
536
+ .task-type-7, .section-type-7 {
537
+ ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
538
+ }
539
+
540
+ .actor-0 {
541
+ ${t.actor0 ? `fill: ${t.actor0}` : ""};
542
+ }
543
+ .actor-1 {
544
+ ${t.actor1 ? `fill: ${t.actor1}` : ""};
545
+ }
546
+ .actor-2 {
547
+ ${t.actor2 ? `fill: ${t.actor2}` : ""};
548
+ }
549
+ .actor-3 {
550
+ ${t.actor3 ? `fill: ${t.actor3}` : ""};
551
+ }
552
+ .actor-4 {
553
+ ${t.actor4 ? `fill: ${t.actor4}` : ""};
554
+ }
555
+ .actor-5 {
556
+ ${t.actor5 ? `fill: ${t.actor5}` : ""};
557
+ }
558
+ ${kt()}
559
+ `, "getStyles"), jt = Bt, J = /* @__PURE__ */ n(function(t, e) {
560
+ return gt(t, e);
561
+ }, "drawRect"), Nt = /* @__PURE__ */ n(function(t, e) {
562
+ const c = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = t.append("g");
563
+ r.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
564
+ function f(g) {
565
+ const m = et().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
566
+ g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
567
+ }
568
+ n(f, "smile");
569
+ function u(g) {
570
+ const m = et().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
571
+ g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
572
+ }
573
+ n(u, "sad");
574
+ function y(g) {
575
+ g.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
576
+ }
577
+ return n(y, "ambivalent"), e.score > 3 ? f(r) : e.score < 3 ? u(r) : y(r), c;
578
+ }, "drawFace"), ot = /* @__PURE__ */ n(function(t, e) {
579
+ const s = t.append("circle");
580
+ return s.attr("cx", e.cx), s.attr("cy", e.cy), s.attr("class", "actor-" + e.pos), s.attr("fill", e.fill), s.attr("stroke", e.stroke), s.attr("r", e.r), s.class !== void 0 && s.attr("class", s.class), e.title !== void 0 && s.append("title").text(e.title), s;
581
+ }, "drawCircle"), ct = /* @__PURE__ */ n(function(t, e) {
582
+ return mt(t, e);
583
+ }, "drawText"), zt = /* @__PURE__ */ n(function(t, e) {
584
+ function s(r, f, u, y, g) {
585
+ return r + "," + f + " " + (r + u) + "," + f + " " + (r + u) + "," + (f + y - g) + " " + (r + u - g * 1.2) + "," + (f + y) + " " + r + "," + (f + y);
586
+ }
587
+ n(s, "genPoints");
588
+ const c = t.append("polygon");
589
+ c.attr("points", s(e.x, e.y, 50, 20, 7)), c.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ct(t, e);
590
+ }, "drawLabel"), Wt = /* @__PURE__ */ n(function(t, e, s) {
591
+ const c = t.append("g"), r = lt();
592
+ r.x = e.x, r.y = e.y, r.fill = e.fill, r.width = s.width * e.taskCount + // width of the tasks
593
+ s.diagramMarginX * (e.taskCount - 1), r.height = s.height, r.class = "journey-section section-type-" + e.num, r.rx = 3, r.ry = 3, J(c, r), ht(s)(
594
+ e.text,
595
+ c,
596
+ r.x,
597
+ r.y,
598
+ r.width,
599
+ r.height,
600
+ { class: "journey-section section-type-" + e.num },
601
+ s,
602
+ e.colour
603
+ );
604
+ }, "drawSection"), nt = -1, Ot = /* @__PURE__ */ n(function(t, e, s) {
605
+ const c = e.x + s.width / 2, r = t.append("g");
606
+ nt++;
607
+ const f = 300 + 5 * 30;
608
+ r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", f).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
609
+ cx: c,
610
+ cy: 300 + (5 - e.score) * 30,
611
+ score: e.score
612
+ });
613
+ const u = lt();
614
+ u.x = e.x, u.y = e.y, u.fill = e.fill, u.width = s.width, u.height = s.height, u.class = "task task-type-" + e.num, u.rx = 3, u.ry = 3, J(r, u);
615
+ let y = e.x + 14;
616
+ e.people.forEach((g) => {
617
+ const m = e.actors[g].color, x = {
618
+ cx: y,
619
+ cy: e.y,
620
+ r: 7,
621
+ fill: m,
622
+ stroke: "#000",
623
+ title: g,
624
+ pos: e.actors[g].position
625
+ };
626
+ ot(r, x), y += 10;
627
+ }), ht(s)(
628
+ e.task,
629
+ r,
630
+ u.x,
631
+ u.y,
632
+ u.width,
633
+ u.height,
634
+ { class: "task" },
635
+ s,
636
+ e.colour
637
+ );
638
+ }, "drawTask"), Yt = /* @__PURE__ */ n(function(t, e) {
639
+ xt(t, e);
640
+ }, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
641
+ function t(r, f, u, y, g, m, x, h) {
642
+ const i = f.append("text").attr("x", u + g / 2).attr("y", y + m / 2 + 5).style("font-color", h).style("text-anchor", "middle").text(r);
643
+ c(i, x);
644
+ }
645
+ n(t, "byText");
646
+ function e(r, f, u, y, g, m, x, h, i) {
647
+ const { taskFontSize: a, taskFontFamily: l } = h, d = r.split(/<br\s*\/?>/gi);
648
+ for (let p = 0; p < d.length; p++) {
649
+ const o = p * a - a * (d.length - 1) / 2, b = f.append("text").attr("x", u + g / 2).attr("y", y).attr("fill", i).style("text-anchor", "middle").style("font-size", a).style("font-family", l);
650
+ b.append("tspan").attr("x", u + g / 2).attr("dy", o).text(d[p]), b.attr("y", y + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), c(b, x);
651
+ }
652
+ }
653
+ n(e, "byTspan");
654
+ function s(r, f, u, y, g, m, x, h) {
655
+ const i = f.append("switch"), l = i.append("foreignObject").attr("x", u).attr("y", y).attr("width", g).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
656
+ l.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), e(r, i, u, y, g, m, x, h), c(l, x);
657
+ }
658
+ n(s, "byFo");
659
+ function c(r, f) {
660
+ for (const u in f)
661
+ u in f && r.attr(u, f[u]);
662
+ }
663
+ return n(c, "_setTextAttrs"), function(r) {
664
+ return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? t : e;
665
+ };
666
+ }(), qt = /* @__PURE__ */ n(function(t) {
667
+ t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
668
+ }, "initGraphics"), j = {
669
+ drawRect: J,
670
+ drawCircle: ot,
671
+ drawSection: Wt,
672
+ drawText: ct,
673
+ drawLabel: zt,
674
+ drawTask: Ot,
675
+ drawBackgroundRect: Yt,
676
+ initGraphics: qt
677
+ }, Xt = /* @__PURE__ */ n(function(t) {
678
+ Object.keys(t).forEach(function(s) {
679
+ $[s] = t[s];
680
+ });
681
+ }, "setConf"), E = {}, W = 0;
682
+ function ut(t) {
683
+ const e = R().journey, s = e.maxLabelWidth;
684
+ W = 0;
685
+ let c = 60;
686
+ Object.keys(E).forEach((r) => {
687
+ const f = E[r].color, u = {
688
+ cx: 20,
689
+ cy: c,
690
+ r: 7,
691
+ fill: f,
692
+ stroke: "#000",
693
+ pos: E[r].position
694
+ };
695
+ j.drawCircle(t, u);
696
+ let y = t.append("text").attr("visibility", "hidden").text(r);
697
+ const g = y.node().getBoundingClientRect().width;
698
+ y.remove();
699
+ let m = [];
700
+ if (g <= s)
701
+ m = [r];
702
+ else {
703
+ const x = r.split(" ");
704
+ let h = "";
705
+ y = t.append("text").attr("visibility", "hidden"), x.forEach((i) => {
706
+ const a = h ? `${h} ${i}` : i;
707
+ if (y.text(a), y.node().getBoundingClientRect().width > s) {
708
+ if (h && m.push(h), h = i, y.text(i), y.node().getBoundingClientRect().width > s) {
709
+ let d = "";
710
+ for (const p of i)
711
+ d += p, y.text(d + "-"), y.node().getBoundingClientRect().width > s && (m.push(d.slice(0, -1) + "-"), d = p);
712
+ h = d;
713
+ }
714
+ } else
715
+ h = a;
716
+ }), h && m.push(h), y.remove();
717
+ }
718
+ m.forEach((x, h) => {
719
+ const i = {
720
+ x: 40,
721
+ y: c + 7 + h * 20,
722
+ fill: "#666",
723
+ text: x,
724
+ textMargin: e.boxTextMargin ?? 5
725
+ }, l = j.drawText(t, i).node().getBoundingClientRect().width;
726
+ l > W && l > e.leftMargin - l && (W = l);
727
+ }), c += Math.max(20, m.length * 20);
728
+ });
729
+ }
730
+ n(ut, "drawActorLegend");
731
+ var $ = R().journey, P = 0, Gt = /* @__PURE__ */ n(function(t, e, s, c) {
732
+ const r = R(), f = r.journey.titleColor, u = r.journey.titleFontSize, y = r.journey.titleFontFamily, g = r.securityLevel;
733
+ let m;
734
+ g === "sandbox" && (m = G("#i" + e));
735
+ const x = g === "sandbox" ? G(m.nodes()[0].contentDocument.body) : G("body");
736
+ S.init();
737
+ const h = x.select("#" + e);
738
+ j.initGraphics(h);
739
+ const i = c.db.getTasks(), a = c.db.getDiagramTitle(), l = c.db.getActors();
740
+ for (const C in E)
741
+ delete E[C];
742
+ let d = 0;
743
+ l.forEach((C) => {
744
+ E[C] = {
745
+ color: $.actorColours[d % $.actorColours.length],
746
+ position: d
747
+ }, d++;
748
+ }), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Ht(h, i, 0);
749
+ const p = S.getBounds();
750
+ a && h.append("text").text(a).attr("x", P).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", f).attr("font-family", y);
751
+ const o = p.stopy - p.starty + 2 * $.diagramMarginY, b = P + p.stopx + 2 * $.diagramMarginX;
752
+ Mt(h, o, b, $.useMaxWidth), h.append("line").attr("x1", P).attr("y1", $.height * 4).attr("x2", b - P - 4).attr("y2", $.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
753
+ const k = a ? 70 : 0;
754
+ h.attr("viewBox", `${p.startx} -25 ${b} ${o + k}`), h.attr("preserveAspectRatio", "xMinYMin meet"), h.attr("height", o + k + 25);
755
+ }, "draw"), S = {
756
+ data: {
757
+ startx: void 0,
758
+ stopx: void 0,
759
+ starty: void 0,
760
+ stopy: void 0
761
+ },
762
+ verticalPos: 0,
763
+ sequenceItems: [],
764
+ init: /* @__PURE__ */ n(function() {
765
+ this.sequenceItems = [], this.data = {
766
+ startx: void 0,
767
+ stopx: void 0,
768
+ starty: void 0,
769
+ stopy: void 0
770
+ }, this.verticalPos = 0;
771
+ }, "init"),
772
+ updateVal: /* @__PURE__ */ n(function(t, e, s, c) {
773
+ t[e] === void 0 ? t[e] = s : t[e] = c(s, t[e]);
774
+ }, "updateVal"),
775
+ updateBounds: /* @__PURE__ */ n(function(t, e, s, c) {
776
+ const r = R().journey, f = this;
777
+ let u = 0;
778
+ function y(g) {
779
+ return /* @__PURE__ */ n(function(x) {
780
+ u++;
781
+ const h = f.sequenceItems.length - u + 1;
782
+ f.updateVal(x, "starty", e - h * r.boxMargin, Math.min), f.updateVal(x, "stopy", c + h * r.boxMargin, Math.max), f.updateVal(S.data, "startx", t - h * r.boxMargin, Math.min), f.updateVal(S.data, "stopx", s + h * r.boxMargin, Math.max), g !== "activation" && (f.updateVal(x, "startx", t - h * r.boxMargin, Math.min), f.updateVal(x, "stopx", s + h * r.boxMargin, Math.max), f.updateVal(S.data, "starty", e - h * r.boxMargin, Math.min), f.updateVal(S.data, "stopy", c + h * r.boxMargin, Math.max));
783
+ }, "updateItemBounds");
784
+ }
785
+ n(y, "updateFn"), this.sequenceItems.forEach(y());
786
+ }, "updateBounds"),
787
+ insert: /* @__PURE__ */ n(function(t, e, s, c) {
788
+ const r = Math.min(t, s), f = Math.max(t, s), u = Math.min(e, c), y = Math.max(e, c);
789
+ this.updateVal(S.data, "startx", r, Math.min), this.updateVal(S.data, "starty", u, Math.min), this.updateVal(S.data, "stopx", f, Math.max), this.updateVal(S.data, "stopy", y, Math.max), this.updateBounds(r, u, f, y);
790
+ }, "insert"),
791
+ bumpVerticalPos: /* @__PURE__ */ n(function(t) {
792
+ this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
793
+ }, "bumpVerticalPos"),
794
+ getVerticalPos: /* @__PURE__ */ n(function() {
795
+ return this.verticalPos;
796
+ }, "getVerticalPos"),
797
+ getBounds: /* @__PURE__ */ n(function() {
798
+ return this.data;
799
+ }, "getBounds")
800
+ }, H = $.sectionFills, st = $.sectionColours, Ht = /* @__PURE__ */ n(function(t, e, s) {
801
+ const c = R().journey;
802
+ let r = "";
803
+ const f = c.height * 2 + c.diagramMarginY, u = s + f;
804
+ let y = 0, g = "#CCC", m = "black", x = 0;
805
+ for (const [h, i] of e.entries()) {
806
+ if (r !== i.section) {
807
+ g = H[y % H.length], x = y % H.length, m = st[y % st.length];
808
+ let l = 0;
809
+ const d = i.section;
810
+ for (let o = h; o < e.length && e[o].section == d; o++)
811
+ l = l + 1;
812
+ const p = {
813
+ x: h * c.taskMargin + h * c.width + P,
814
+ y: 50,
815
+ text: i.section,
816
+ fill: g,
817
+ num: x,
818
+ colour: m,
819
+ taskCount: l
820
+ };
821
+ j.drawSection(t, p, c), r = i.section, y++;
822
+ }
823
+ const a = i.people.reduce((l, d) => (E[d] && (l[d] = E[d]), l), {});
824
+ i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin, 300 + 5 * 30);
825
+ }
826
+ }, "drawTasks"), at = {
827
+ setConf: Xt,
828
+ draw: Gt
829
+ }, ee = {
830
+ parser: Et,
831
+ db: rt,
832
+ renderer: at,
833
+ styles: jt,
834
+ init: /* @__PURE__ */ n((t) => {
835
+ at.setConf(t.journey), rt.clear();
836
+ }, "init")
837
+ };
838
+ export {
839
+ ee as diagram
840
+ };