@elmethis/core 1.0.0-alpha.146 → 1.0.0-alpha.147

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 (340) hide show
  1. package/dist/{Bash-Dgvf3lDU.js → Bash-aFIJDfx0.js} +1 -1
  2. package/dist/{Css-BDTor6my.js → Css-aYNwv_jI.js} +1 -1
  3. package/dist/ElmShikiHighlighter--ESSD5xl.js +7531 -0
  4. package/dist/{Rust-BwuxPQOA.js → Rust-CcTG3HST.js} +1 -1
  5. package/dist/_basePickBy-q3OsvEq8.js +152 -0
  6. package/dist/_baseUniq-DXyFBvJx.js +583 -0
  7. package/dist/abap-BPxeDPn4.js +6 -0
  8. package/dist/actionscript-3-Cjb604Dt.js +6 -0
  9. package/dist/ada-BSgRrxrM.js +6 -0
  10. package/dist/andromeeda-uXNdzNpk.js +4 -0
  11. package/dist/angular-html-Zg5oS4-1.js +32 -0
  12. package/dist/angular-ts-NgJ-y-q8.js +21 -0
  13. package/dist/apache-Cyj7Ib-S.js +6 -0
  14. package/dist/apex-DAAiMqi-.js +6 -0
  15. package/dist/apl-DxZdCuNa.js +16 -0
  16. package/dist/applescript-CroEtIVQ.js +6 -0
  17. package/dist/ara-9AczF2vY.js +6 -0
  18. package/dist/arc-BLiqnhIS.js +83 -0
  19. package/dist/architecture-4AB2E3PP-CJBMa096.js +5 -0
  20. package/dist/architectureDiagram-IEHRJDOE-BmZLGcAR.js +4633 -0
  21. package/dist/asciidoc-raFNDrGb.js +6 -0
  22. package/dist/asm-C8ld_M07.js +6 -0
  23. package/dist/astro-DVLPOVeH.js +16 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-gc4Y_RTq.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-CML1q4Hw.js +6 -0
  28. package/dist/bat-BVW1L4ug.js +6 -0
  29. package/dist/beancount-DYEC72C_.js +6 -0
  30. package/dist/berry-VTah6p7n.js +6 -0
  31. package/dist/bibtex-Bqt_3AVI.js +6 -0
  32. package/dist/bicep-DGk9_2l4.js +6 -0
  33. package/dist/blade-kJIUE9Xv.js +20 -0
  34. package/dist/blockDiagram-JOT3LUYC-CirZxs50.js +2247 -0
  35. package/dist/bsl-tt9CYf2I.js +8 -0
  36. package/dist/c-Cb-M0LQR.js +6 -0
  37. package/dist/c4Diagram-VJAJSXHY-CT04iVyI.js +1581 -0
  38. package/dist/cadence-Di4VMBdJ.js +6 -0
  39. package/dist/cairo-CNbjbPRN.js +8 -0
  40. package/dist/catppuccin-frappe-MQ6irQtC.js +4 -0
  41. package/dist/catppuccin-latte-UMitw0Sv.js +4 -0
  42. package/dist/catppuccin-macchiato-CpTwm6bY.js +4 -0
  43. package/dist/catppuccin-mocha-DAcVHoH1.js +4 -0
  44. package/dist/channel-DJoWX82m.js +5 -0
  45. package/dist/chunk-4BMEZGHF-DbrRFQBV.js +9 -0
  46. package/dist/chunk-A2AXSNBT-8nnxOxzM.js +1372 -0
  47. package/dist/chunk-AEK57VVT-BuA3ibij.js +1415 -0
  48. package/dist/chunk-D6G4REZN-C3CadGUl.js +64 -0
  49. package/dist/chunk-RZ5BOZE2-bPOa0Bzk.js +24 -0
  50. package/dist/chunk-XZIHB7SX-tSNzo5Pm.js +15 -0
  51. package/dist/clarity-WOA8trQj.js +6 -0
  52. package/dist/classDiagram-GIVACNV2-Ikn0C8nj.js +16 -0
  53. package/dist/classDiagram-v2-COTLJTTW-Ikn0C8nj.js +16 -0
  54. package/dist/clojure-r3NcJ8yt.js +6 -0
  55. package/dist/clone-KYMNdRyb.js +8 -0
  56. package/dist/cmake-CQmEhYbr.js +6 -0
  57. package/dist/cobol-DpscMYyB.js +10 -0
  58. package/dist/codeowners-Bt9yU6NX.js +6 -0
  59. package/dist/codeql-2Dcm6WNF.js +6 -0
  60. package/dist/coffee-cT6mLyjo.js +8 -0
  61. package/dist/common-lisp-DuX5KqId.js +6 -0
  62. package/dist/coq-DboLktjX.js +6 -0
  63. package/dist/cpp-Dfuj7FgN.js +18 -0
  64. package/dist/crystal-Cu359yzW.js +18 -0
  65. package/dist/csharp-xQvxkZxj.js +6 -0
  66. package/dist/css-BnL1064W.js +6 -0
  67. package/dist/csv-CmYOceLb.js +6 -0
  68. package/dist/cue-ByErcpN2.js +6 -0
  69. package/dist/cypher-DEVyrV5b.js +6 -0
  70. package/dist/cytoscape.esm-aRg21b6u.js +18120 -0
  71. package/dist/d-CBVqdj3C.js +6 -0
  72. package/dist/dagre-OKDRZEBW-Dd5I26Ao.js +447 -0
  73. package/dist/dark-plus-pUHDTVV0.js +4 -0
  74. package/dist/dart-u2fD-sKr.js +6 -0
  75. package/dist/dax-Crz9Wv4y.js +6 -0
  76. package/dist/desktop-DNXSD5qJ.js +6 -0
  77. package/dist/diagram-SSKATNLV-DZNkfESc.js +221 -0
  78. package/dist/diagram-VNBRO52H-CEw-lSHb.js +126 -0
  79. package/dist/diff-DOdUfPSR.js +6 -0
  80. package/dist/docker-CsHqm9tx.js +6 -0
  81. package/dist/dotenv-BYL4tpZA.js +6 -0
  82. package/dist/dracula-BtZx2Kac.js +4 -0
  83. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  84. package/dist/dream-maker-kevRUHRs.js +6 -0
  85. package/dist/edge-D-R-hhaT.js +12 -0
  86. package/dist/elixir-DuneT2DZ.js +8 -0
  87. package/dist/elm-DdPFQYmH.js +8 -0
  88. package/dist/elmethis.js +11 -11
  89. package/dist/emacs-lisp-Bwasiep6.js +6 -0
  90. package/dist/erDiagram-Q7BY3M3F-Bi-5rbd2.js +841 -0
  91. package/dist/erb-BDkUfiWc.js +10 -0
  92. package/dist/erlang-CxpbZUOc.js +6 -0
  93. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  94. package/dist/everforest-light-BbXl82Em.js +4 -0
  95. package/dist/fennel-B1x5pKr1.js +6 -0
  96. package/dist/fish-BjbXctXH.js +6 -0
  97. package/dist/flowDiagram-4HSFHLVR-Bep2tb38.js +1622 -0
  98. package/dist/fluent-DCuHrNR-.js +6 -0
  99. package/dist/fortran-fixed-form-muAGtm2V.js +8 -0
  100. package/dist/fortran-free-form-Db8k5H7x.js +6 -0
  101. package/dist/fsharp-D3TfYvtR.js +8 -0
  102. package/dist/ganttDiagram-APWFNJXF-MiSNV5UX.js +2493 -0
  103. package/dist/gdresource-C22851qr.js +10 -0
  104. package/dist/gdscript-C-C99PjI.js +6 -0
  105. package/dist/gdshader-0TihrSQl.js +6 -0
  106. package/dist/genie-MtKmcmPo.js +6 -0
  107. package/dist/gherkin-AzJBtK0J.js +6 -0
  108. package/dist/git-commit-Cdscfa4x.js +8 -0
  109. package/dist/git-rebase-BkertWzk.js +8 -0
  110. package/dist/gitGraph-O2Q2CXLX-2aBB3Qlu.js +5 -0
  111. package/dist/gitGraphDiagram-7IBYFJ6S-BeIrUUuR.js +712 -0
  112. package/dist/github-dark-DenFmJkN.js +4 -0
  113. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  114. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  115. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  116. package/dist/github-light-JYsPkUQd.js +4 -0
  117. package/dist/github-light-default-D99KPAby.js +4 -0
  118. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  119. package/dist/gleam-BoJB89vF.js +6 -0
  120. package/dist/glimmer-js-DEzcmBLn.js +14 -0
  121. package/dist/glimmer-ts-CfoDm2Ms.js +14 -0
  122. package/dist/glsl-BcGeWDoy.js +8 -0
  123. package/dist/gnuplot-DgGnPAp8.js +6 -0
  124. package/dist/go-Cw0OOp5U.js +6 -0
  125. package/dist/graph-BN6Ja3dj.js +247 -0
  126. package/dist/graphql-BA9S3A0F.js +14 -0
  127. package/dist/groovy-45PuQEhl.js +6 -0
  128. package/dist/gruvbox-dark-hard-BDGmrmYl.js +4 -0
  129. package/dist/gruvbox-dark-medium-D7OrvcL5.js +4 -0
  130. package/dist/gruvbox-dark-soft-D_75PUdg.js +4 -0
  131. package/dist/gruvbox-light-hard-DhQt1gbs.js +4 -0
  132. package/dist/gruvbox-light-medium-DNXV_Sw8.js +4 -0
  133. package/dist/gruvbox-light-soft-C7ZspGxH.js +4 -0
  134. package/dist/hack-B5c1rmdK.js +10 -0
  135. package/dist/haml-CknjlTyn.js +10 -0
  136. package/dist/handlebars-DxZCQ1Ls.js +14 -0
  137. package/dist/haskell-ClRE648j.js +6 -0
  138. package/dist/haxe-CClgwBXY.js +6 -0
  139. package/dist/hcl-JJeBEFYE.js +6 -0
  140. package/dist/hjson-BollGKL_.js +6 -0
  141. package/dist/hlsl-b3kI2reZ.js +6 -0
  142. package/dist/houston-BDYrDoDW.js +4 -0
  143. package/dist/html-Iy9EJBkL.js +10 -0
  144. package/dist/html-derivative-BfM_d1x5.js +8 -0
  145. package/dist/http-Q-2xEgRf.js +14 -0
  146. package/dist/hxml-C2bnoXd-.js +8 -0
  147. package/dist/hy-S8dYOqS_.js +6 -0
  148. package/dist/imba-DzSSVziz.js +6 -0
  149. package/dist/index-DzMRhuTS.js +17481 -0
  150. package/dist/info-4N47QTOZ-MlaygFtp.js +5 -0
  151. package/dist/infoDiagram-PH2N3AL5-CLDi4hXF.js +22 -0
  152. package/dist/ini-Cw62c0sR.js +6 -0
  153. package/dist/init-DjUOC4st.js +16 -0
  154. package/dist/java-DNw9zkk2.js +6 -0
  155. package/dist/javascript-CXHlxgtu.js +6 -0
  156. package/dist/jinja-D3ov3d_Q.js +11 -0
  157. package/dist/jison-bKZ_ygkY.js +8 -0
  158. package/dist/journeyDiagram-U35MCT3I-DF_hle8P.js +809 -0
  159. package/dist/json-D4cXEhM0.js +6 -0
  160. package/dist/json5-QDX9y-Y9.js +6 -0
  161. package/dist/jsonc-Bph7GQf8.js +6 -0
  162. package/dist/jsonl-CCrMgdQc.js +6 -0
  163. package/dist/jsonnet-SAcLllmN.js +6 -0
  164. package/dist/jssm-f8vsTkbr.js +6 -0
  165. package/dist/jsx-BYrS51r7.js +6 -0
  166. package/dist/julia-k0_CCOLn.js +16 -0
  167. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  168. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  169. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  170. package/dist/kanban-definition-NDS4AKOZ-D2HjB3aQ.js +719 -0
  171. package/dist/kotlin-DZs3CUXT.js +6 -0
  172. package/dist/kusto-gqgW0Ct6.js +6 -0
  173. package/dist/laserwave-6a00oqik.js +4 -0
  174. package/dist/latex-ixPYeODw.js +8 -0
  175. package/dist/layout-eoX7qCNd.js +1325 -0
  176. package/dist/lean-DM2VgJqL.js +6 -0
  177. package/dist/less-I_XXVOZl.js +6 -0
  178. package/dist/light-plus-CZuVqSLX.js +4 -0
  179. package/dist/linear-CjVlzhPx.js +423 -0
  180. package/dist/liquid-DQYM4OUl.js +14 -0
  181. package/dist/llvm-D3Vjgx0u.js +6 -0
  182. package/dist/log-D-MzYv1Z.js +6 -0
  183. package/dist/logo-D1k-IeHX.js +6 -0
  184. package/dist/lua-DcPVWcJ7.js +8 -0
  185. package/dist/luau-B3dL2bb0.js +6 -0
  186. package/dist/make-CR9bkdqJ.js +6 -0
  187. package/dist/markdown-w3MmBOPg.js +6 -0
  188. package/dist/marko-Dou6ix2a.js +14 -0
  189. package/dist/material-theme-D6KBX41T.js +4 -0
  190. package/dist/material-theme-darker-CkRroheE.js +4 -0
  191. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  192. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  193. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  194. package/dist/matlab-Dj6qX5si.js +6 -0
  195. package/dist/mdc-Df47nGTR.js +12 -0
  196. package/dist/mdx-COYqLMfv.js +6 -0
  197. package/dist/mermaid-parser.core-Cnk6H5Tf.js +12836 -0
  198. package/dist/mermaid-qIAHIJes.js +6 -0
  199. package/dist/mermaid.core-CVg1AOGh.js +15467 -0
  200. package/dist/min-dark-C7ak0t6c.js +4 -0
  201. package/dist/min-light-CKFxVcPp.js +4 -0
  202. package/dist/mindmap-definition-ALO5MXBD-RsXchRow.js +3220 -0
  203. package/dist/mipsasm-BJbuoeDX.js +6 -0
  204. package/dist/mojo-BFkEE7I6.js +6 -0
  205. package/dist/monokai-C1KBYcO0.js +4 -0
  206. package/dist/move-DhZIVzw9.js +6 -0
  207. package/dist/narrat-Cru3p5ML.js +6 -0
  208. package/dist/nextflow-JJGGygxI.js +6 -0
  209. package/dist/nginx-Chu4HPUZ.js +8 -0
  210. package/dist/night-owl-Bm2rzalh.js +4 -0
  211. package/dist/nim-m3ClKyoA.js +20 -0
  212. package/dist/nix-DeKhqLCs.js +6 -0
  213. package/dist/nord-CC5OiUXg.js +4 -0
  214. package/dist/nushell-vZ0whCpp.js +6 -0
  215. package/dist/objective-c-DLUrAoO7.js +6 -0
  216. package/dist/objective-cpp-BR9pz3Y7.js +6 -0
  217. package/dist/ocaml-JmaGD6hS.js +6 -0
  218. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  219. package/dist/one-light-D9sNaUtq.js +4 -0
  220. package/dist/ordinal-DfAQgscy.js +61 -0
  221. package/dist/packet-KVYON367-B0ibT50B.js +5 -0
  222. package/dist/pascal-NVmycfDo.js +6 -0
  223. package/dist/perl-Dvb6TR9K.js +16 -0
  224. package/dist/php-CJHnp_ft.js +18 -0
  225. package/dist/pie-R6RNRRYF-eieuCIEv.js +5 -0
  226. package/dist/pieDiagram-IB7DONF6-z3HiYOHT.js +161 -0
  227. package/dist/plastic-CSTz3KZp.js +4 -0
  228. package/dist/plsql-DMWd0imC.js +6 -0
  229. package/dist/po-GS6uwG3N.js +6 -0
  230. package/dist/poimandres-C-VADXHD.js +4 -0
  231. package/dist/polar-kLOnm3TU.js +6 -0
  232. package/dist/postcss-BHhGrjb8.js +6 -0
  233. package/dist/powerquery-CMfeLaGU.js +6 -0
  234. package/dist/powershell-D1mvJxDs.js +6 -0
  235. package/dist/prisma-pUoUFT3i.js +6 -0
  236. package/dist/prolog-DY7WzwMi.js +6 -0
  237. package/dist/proto-CNCp3VWu.js +6 -0
  238. package/dist/pug-CUZjrycK.js +12 -0
  239. package/dist/puppet-B0mgPBqt.js +6 -0
  240. package/dist/purescript-Go548NjJ.js +6 -0
  241. package/dist/python-x6NdgKMy.js +6 -0
  242. package/dist/qml-BZvDVi14.js +8 -0
  243. package/dist/qmldir-BInDYbpo.js +6 -0
  244. package/dist/qss-8QkBlVEn.js +6 -0
  245. package/dist/quadrantDiagram-7GDLP6J5-DKNPBuF7.js +1024 -0
  246. package/dist/r-HSnR3oil.js +6 -0
  247. package/dist/racket-N6wCNCGC.js +6 -0
  248. package/dist/radar-MK3ICKWK-EavvS0dk.js +5 -0
  249. package/dist/raku-DIMO1_4D.js +6 -0
  250. package/dist/razor-B0naKaWH.js +10 -0
  251. package/dist/red-7y8PH7HH.js +4 -0
  252. package/dist/reg-6UpU0EA6.js +6 -0
  253. package/dist/regexp-DHtjPxOp.js +6 -0
  254. package/dist/rel-DBIoUiKW.js +6 -0
  255. package/dist/requirementDiagram-KVF5MWMF-CVtQbDO9.js +851 -0
  256. package/dist/riscv-DpWk9ieM.js +6 -0
  257. package/dist/rose-pine-4uTOzEpE.js +4 -0
  258. package/dist/rose-pine-dawn-GMd81k-m.js +4 -0
  259. package/dist/rose-pine-moon-CIFp_3PJ.js +4 -0
  260. package/dist/rst-B64R6T0G.js +22 -0
  261. package/dist/ruby-DfrpdncG.js +30 -0
  262. package/dist/rust-B-KPd2nT.js +6 -0
  263. package/dist/sankeyDiagram-QLVOVGJD-Bv56p0v8.js +808 -0
  264. package/dist/sas-CJQBty5v.js +8 -0
  265. package/dist/sass-Zos2Blmo.js +6 -0
  266. package/dist/scala-7cAMYIqn.js +6 -0
  267. package/dist/scheme-BQZQETGI.js +6 -0
  268. package/dist/scss-SeF7XgZE.js +8 -0
  269. package/dist/sdbl-67k1U2sQ.js +6 -0
  270. package/dist/sequenceDiagram-X6HHIX6F-B6HsmiCo.js +2281 -0
  271. package/dist/shaderlab-D-UIeqfT.js +8 -0
  272. package/dist/shellscript-DmhSIIKI.js +6 -0
  273. package/dist/shellsession-DJoY56qV.js +8 -0
  274. package/dist/slack-dark-i7wN4OET.js +4 -0
  275. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  276. package/dist/smalltalk-WltKgyq1.js +6 -0
  277. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  278. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  279. package/dist/solarized-light-BheCkDPT.js +4 -0
  280. package/dist/solidity-C04s0Yy3.js +6 -0
  281. package/dist/soy-BLRDPjcE.js +8 -0
  282. package/dist/sparql-DTCaWUmB.js +8 -0
  283. package/dist/splunk-SGh_QiTm.js +6 -0
  284. package/dist/sql-CsvhJWkt.js +6 -0
  285. package/dist/ssh-config-D4I637-k.js +6 -0
  286. package/dist/stata-CoSdWLbd.js +8 -0
  287. package/dist/stateDiagram-DGXRK772-DisyN0eE.js +270 -0
  288. package/dist/stateDiagram-v2-YXO3MK2T-DLdp-rnZ.js +16 -0
  289. package/dist/stylus-C0YS3cII.js +6 -0
  290. package/dist/svelte-D5kfh286.js +14 -0
  291. package/dist/swift-DvTgPjC_.js +6 -0
  292. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  293. package/dist/system-verilog-NDUJ-OOt.js +6 -0
  294. package/dist/systemd-WbxZvB8q.js +6 -0
  295. package/dist/talonscript-CL368eRB.js +6 -0
  296. package/dist/tasl-Dz-WwaLH.js +6 -0
  297. package/dist/tcl-DlZIgGJq.js +6 -0
  298. package/dist/templ-BeQ_faiG.js +12 -0
  299. package/dist/terraform-BlQVOgpk.js +6 -0
  300. package/dist/tex-D5wZQANC.js +8 -0
  301. package/dist/timeline-definition-BDJGKUSR-BXC_uTuM.js +804 -0
  302. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  303. package/dist/toml-DMRYbshZ.js +6 -0
  304. package/dist/ts-tags-BhMM8FHa.js +41 -0
  305. package/dist/tsv-BtvSkaG0.js +6 -0
  306. package/dist/tsx-D0IYuDPS.js +6 -0
  307. package/dist/turtle-p-VV8DEc.js +6 -0
  308. package/dist/twig-B7P5Ovvl.js +18 -0
  309. package/dist/typescript-DKfvlBCw.js +6 -0
  310. package/dist/typespec-CTme0-JL.js +6 -0
  311. package/dist/typst-Dn4vyooU.js +6 -0
  312. package/dist/v-D7ebitkb.js +6 -0
  313. package/dist/vala-TRtLMDHC.js +6 -0
  314. package/dist/vb-B47FrOmA.js +6 -0
  315. package/dist/verilog-B2TLsC4I.js +6 -0
  316. package/dist/vesper-BckBta1U.js +4 -0
  317. package/dist/vhdl-CU5AEtCN.js +6 -0
  318. package/dist/viml-D-fUhqVn.js +6 -0
  319. package/dist/vitesse-black-BoGvW84i.js +4 -0
  320. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  321. package/dist/vitesse-light-CcmG315c.js +4 -0
  322. package/dist/vue-CdwmeZFh.js +31 -0
  323. package/dist/vue-html-C-PRGoQQ.js +10 -0
  324. package/dist/vyper-C03y8CZF.js +6 -0
  325. package/dist/wasm-Bq8UuFo1.js +6 -0
  326. package/dist/wasm-DQxwEHae.js +7 -0
  327. package/dist/wenyan-DZPWEYbu.js +6 -0
  328. package/dist/wgsl-De1GPYf9.js +6 -0
  329. package/dist/wikitext-C-THcCj2.js +6 -0
  330. package/dist/wit-BanP67gl.js +6 -0
  331. package/dist/wolfram-CUT_U39K.js +6 -0
  332. package/dist/xml-jRL-qgj-.js +8 -0
  333. package/dist/xsl-CZWICAVO.js +8 -0
  334. package/dist/xychartDiagram-VJFVF3MP-CkPa_K58.js +1304 -0
  335. package/dist/yaml-DcQhbMrL.js +6 -0
  336. package/dist/zenscript-8JCzLCTe.js +6 -0
  337. package/dist/zig-DhdgDxkm.js +6 -0
  338. package/package.json +2 -4
  339. package/dist/ElmShikiHighlighter-B6syB4ax.js +0 -44
  340. package/dist/index-BFwE0btN.js +0 -3523
@@ -0,0 +1,809 @@
1
+ import { a as ft, g as at, f as gt, d as mt } from "./chunk-D6G4REZN-C3CadGUl.js";
2
+ import { _ as i, g as xt, s as kt, a as _t, b as vt, t as bt, q as wt, c as A, d as W, e as Tt, z as St } from "./mermaid.core-CVg1AOGh.js";
3
+ import { d as tt } from "./arc-BLiqnhIS.js";
4
+ var H = function() {
5
+ var t = /* @__PURE__ */ i(function(g, r, a, l) {
6
+ for (a = a || {}, l = g.length; l--; a[g[l]] = r) ;
7
+ return a;
8
+ }, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], n = [1, 9], c = [1, 10], s = [1, 11], u = [1, 12], h = [1, 13], p = [1, 14], d = {
9
+ trace: /* @__PURE__ */ i(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ 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 },
13
+ 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" },
14
+ 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]],
15
+ performAction: /* @__PURE__ */ i(function(r, a, l, y, f, o, S) {
16
+ var _ = o.length - 1;
17
+ switch (f) {
18
+ case 1:
19
+ return o[_ - 1];
20
+ case 2:
21
+ this.$ = [];
22
+ break;
23
+ case 3:
24
+ o[_ - 1].push(o[_]), this.$ = o[_ - 1];
25
+ break;
26
+ case 4:
27
+ case 5:
28
+ this.$ = o[_];
29
+ break;
30
+ case 6:
31
+ case 7:
32
+ this.$ = [];
33
+ break;
34
+ case 8:
35
+ y.setDiagramTitle(o[_].substr(6)), this.$ = o[_].substr(6);
36
+ break;
37
+ case 9:
38
+ this.$ = o[_].trim(), y.setAccTitle(this.$);
39
+ break;
40
+ case 10:
41
+ case 11:
42
+ this.$ = o[_].trim(), y.setAccDescription(this.$);
43
+ break;
44
+ case 12:
45
+ y.addSection(o[_].substr(8)), this.$ = o[_].substr(8);
46
+ break;
47
+ case 13:
48
+ y.addTask(o[_ - 1], o[_]), this.$ = "task";
49
+ break;
50
+ }
51
+ }, "anonymous"),
52
+ 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: n, 12: c, 14: s, 16: u, 17: h, 18: p }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: n, 12: c, 14: s, 16: u, 17: h, 18: p }, 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])],
53
+ defaultActions: {},
54
+ parseError: /* @__PURE__ */ i(function(r, a) {
55
+ if (a.recoverable)
56
+ this.trace(r);
57
+ else {
58
+ var l = new Error(r);
59
+ throw l.hash = a, l;
60
+ }
61
+ }, "parseError"),
62
+ parse: /* @__PURE__ */ i(function(r) {
63
+ var a = this, l = [0], y = [], f = [null], o = [], S = this.table, _ = "", B = 0, J = 0, ut = 2, K = 1, yt = o.slice.call(arguments, 1), k = Object.create(this.lexer), E = { yy: {} };
64
+ for (var O in this.yy)
65
+ Object.prototype.hasOwnProperty.call(this.yy, O) && (E.yy[O] = this.yy[O]);
66
+ k.setInput(r, E.yy), E.yy.lexer = k, E.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
67
+ var Y = k.yylloc;
68
+ o.push(Y);
69
+ var dt = k.options && k.options.ranges;
70
+ typeof E.yy.parseError == "function" ? this.parseError = E.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
71
+ function pt(b) {
72
+ l.length = l.length - 2 * b, f.length = f.length - b, o.length = o.length - b;
73
+ }
74
+ i(pt, "popStack");
75
+ function Q() {
76
+ var b;
77
+ return b = y.pop() || k.lex() || K, typeof b != "number" && (b instanceof Array && (y = b, b = y.pop()), b = a.symbols_[b] || b), b;
78
+ }
79
+ i(Q, "lex");
80
+ for (var v, P, w, q, C = {}, N, $, D, j; ; ) {
81
+ if (P = l[l.length - 1], this.defaultActions[P] ? w = this.defaultActions[P] : ((v === null || typeof v > "u") && (v = Q()), w = S[P] && S[P][v]), typeof w > "u" || !w.length || !w[0]) {
82
+ var G = "";
83
+ j = [];
84
+ for (N in S[P])
85
+ this.terminals_[N] && N > ut && j.push("'" + this.terminals_[N] + "'");
86
+ k.showPosition ? G = "Parse error on line " + (B + 1) + `:
87
+ ` + k.showPosition() + `
88
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : G = "Parse error on line " + (B + 1) + ": Unexpected " + (v == K ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(G, {
89
+ text: k.match,
90
+ token: this.terminals_[v] || v,
91
+ line: k.yylineno,
92
+ loc: Y,
93
+ expected: j
94
+ });
95
+ }
96
+ if (w[0] instanceof Array && w.length > 1)
97
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + v);
98
+ switch (w[0]) {
99
+ case 1:
100
+ l.push(v), f.push(k.yytext), o.push(k.yylloc), l.push(w[1]), v = null, J = k.yyleng, _ = k.yytext, B = k.yylineno, Y = k.yylloc;
101
+ break;
102
+ case 2:
103
+ if ($ = this.productions_[w[1]][1], C.$ = f[f.length - $], C._$ = {
104
+ first_line: o[o.length - ($ || 1)].first_line,
105
+ last_line: o[o.length - 1].last_line,
106
+ first_column: o[o.length - ($ || 1)].first_column,
107
+ last_column: o[o.length - 1].last_column
108
+ }, dt && (C._$.range = [
109
+ o[o.length - ($ || 1)].range[0],
110
+ o[o.length - 1].range[1]
111
+ ]), q = this.performAction.apply(C, [
112
+ _,
113
+ J,
114
+ B,
115
+ E.yy,
116
+ w[1],
117
+ f,
118
+ o
119
+ ].concat(yt)), typeof q < "u")
120
+ return q;
121
+ $ && (l = l.slice(0, -1 * $ * 2), f = f.slice(0, -1 * $), o = o.slice(0, -1 * $)), l.push(this.productions_[w[1]][0]), f.push(C.$), o.push(C._$), D = S[l[l.length - 2]][l[l.length - 1]], l.push(D);
122
+ break;
123
+ case 3:
124
+ return !0;
125
+ }
126
+ }
127
+ return !0;
128
+ }, "parse")
129
+ }, x = /* @__PURE__ */ function() {
130
+ var g = {
131
+ EOF: 1,
132
+ parseError: /* @__PURE__ */ i(function(a, l) {
133
+ if (this.yy.parser)
134
+ this.yy.parser.parseError(a, l);
135
+ else
136
+ throw new Error(a);
137
+ }, "parseError"),
138
+ // resets the lexer, sets new input
139
+ setInput: /* @__PURE__ */ i(function(r, a) {
140
+ return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
141
+ first_line: 1,
142
+ first_column: 0,
143
+ last_line: 1,
144
+ last_column: 0
145
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
146
+ }, "setInput"),
147
+ // consumes and returns one char from the input
148
+ input: /* @__PURE__ */ i(function() {
149
+ var r = this._input[0];
150
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
151
+ var a = r.match(/(?:\r\n?|\n).*/g);
152
+ 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), r;
153
+ }, "input"),
154
+ // unshifts one char (or a string) into the input
155
+ unput: /* @__PURE__ */ i(function(r) {
156
+ var a = r.length, l = r.split(/(?:\r\n?|\n)/g);
157
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
158
+ var y = this.match.split(/(?:\r\n?|\n)/g);
159
+ 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);
160
+ var f = this.yylloc.range;
161
+ return this.yylloc = {
162
+ first_line: this.yylloc.first_line,
163
+ last_line: this.yylineno + 1,
164
+ first_column: this.yylloc.first_column,
165
+ last_column: l ? (l.length === y.length ? this.yylloc.first_column : 0) + y[y.length - l.length].length - l[0].length : this.yylloc.first_column - a
166
+ }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
167
+ }, "unput"),
168
+ // When called from action, caches matched text and appends it on next action
169
+ more: /* @__PURE__ */ i(function() {
170
+ return this._more = !0, this;
171
+ }, "more"),
172
+ // 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.
173
+ reject: /* @__PURE__ */ i(function() {
174
+ if (this.options.backtrack_lexer)
175
+ this._backtrack = !0;
176
+ else
177
+ 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).
178
+ ` + this.showPosition(), {
179
+ text: "",
180
+ token: null,
181
+ line: this.yylineno
182
+ });
183
+ return this;
184
+ }, "reject"),
185
+ // retain first n characters of the match
186
+ less: /* @__PURE__ */ i(function(r) {
187
+ this.unput(this.match.slice(r));
188
+ }, "less"),
189
+ // displays already matched input, i.e. for error messages
190
+ pastInput: /* @__PURE__ */ i(function() {
191
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
192
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
193
+ }, "pastInput"),
194
+ // displays upcoming input, i.e. for error messages
195
+ upcomingInput: /* @__PURE__ */ i(function() {
196
+ var r = this.match;
197
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
198
+ }, "upcomingInput"),
199
+ // displays the character position where the lexing error occurred, i.e. for error messages
200
+ showPosition: /* @__PURE__ */ i(function() {
201
+ var r = this.pastInput(), a = new Array(r.length + 1).join("-");
202
+ return r + this.upcomingInput() + `
203
+ ` + a + "^";
204
+ }, "showPosition"),
205
+ // test the lexed token: return FALSE when not a match, otherwise return token
206
+ test_match: /* @__PURE__ */ i(function(r, a) {
207
+ var l, y, f;
208
+ if (this.options.backtrack_lexer && (f = {
209
+ yylineno: this.yylineno,
210
+ yylloc: {
211
+ first_line: this.yylloc.first_line,
212
+ last_line: this.last_line,
213
+ first_column: this.yylloc.first_column,
214
+ last_column: this.yylloc.last_column
215
+ },
216
+ yytext: this.yytext,
217
+ match: this.match,
218
+ matches: this.matches,
219
+ matched: this.matched,
220
+ yyleng: this.yyleng,
221
+ offset: this.offset,
222
+ _more: this._more,
223
+ _input: this._input,
224
+ yy: this.yy,
225
+ conditionStack: this.conditionStack.slice(0),
226
+ done: this.done
227
+ }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), y = r[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
228
+ first_line: this.yylloc.last_line,
229
+ last_line: this.yylineno + 1,
230
+ first_column: this.yylloc.last_column,
231
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
232
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
233
+ return l;
234
+ if (this._backtrack) {
235
+ for (var o in f)
236
+ this[o] = f[o];
237
+ return !1;
238
+ }
239
+ return !1;
240
+ }, "test_match"),
241
+ // return next match in input
242
+ next: /* @__PURE__ */ i(function() {
243
+ if (this.done)
244
+ return this.EOF;
245
+ this._input || (this.done = !0);
246
+ var r, a, l, y;
247
+ this._more || (this.yytext = "", this.match = "");
248
+ for (var f = this._currentRules(), o = 0; o < f.length; o++)
249
+ if (l = this._input.match(this.rules[f[o]]), l && (!a || l[0].length > a[0].length)) {
250
+ if (a = l, y = o, this.options.backtrack_lexer) {
251
+ if (r = this.test_match(l, f[o]), r !== !1)
252
+ return r;
253
+ if (this._backtrack) {
254
+ a = !1;
255
+ continue;
256
+ } else
257
+ return !1;
258
+ } else if (!this.options.flex)
259
+ break;
260
+ }
261
+ return a ? (r = this.test_match(a, f[y]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
262
+ ` + this.showPosition(), {
263
+ text: "",
264
+ token: null,
265
+ line: this.yylineno
266
+ });
267
+ }, "next"),
268
+ // return next match that has a token
269
+ lex: /* @__PURE__ */ i(function() {
270
+ var a = this.next();
271
+ return a || this.lex();
272
+ }, "lex"),
273
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
274
+ begin: /* @__PURE__ */ i(function(a) {
275
+ this.conditionStack.push(a);
276
+ }, "begin"),
277
+ // pop the previously active lexer condition state off the condition stack
278
+ popState: /* @__PURE__ */ i(function() {
279
+ var a = this.conditionStack.length - 1;
280
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
281
+ }, "popState"),
282
+ // produce the lexer rule set which is active for the currently active lexer condition state
283
+ _currentRules: /* @__PURE__ */ i(function() {
284
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
285
+ }, "_currentRules"),
286
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
287
+ topState: /* @__PURE__ */ i(function(a) {
288
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
289
+ }, "topState"),
290
+ // alias for begin(condition)
291
+ pushState: /* @__PURE__ */ i(function(a) {
292
+ this.begin(a);
293
+ }, "pushState"),
294
+ // return the number of states currently on the stack
295
+ stateStackSize: /* @__PURE__ */ i(function() {
296
+ return this.conditionStack.length;
297
+ }, "stateStackSize"),
298
+ options: { "case-insensitive": !0 },
299
+ performAction: /* @__PURE__ */ i(function(a, l, y, f) {
300
+ switch (y) {
301
+ case 0:
302
+ break;
303
+ case 1:
304
+ break;
305
+ case 2:
306
+ return 10;
307
+ case 3:
308
+ break;
309
+ case 4:
310
+ break;
311
+ case 5:
312
+ return 4;
313
+ case 6:
314
+ return 11;
315
+ case 7:
316
+ return this.begin("acc_title"), 12;
317
+ case 8:
318
+ return this.popState(), "acc_title_value";
319
+ case 9:
320
+ return this.begin("acc_descr"), 14;
321
+ case 10:
322
+ return this.popState(), "acc_descr_value";
323
+ case 11:
324
+ this.begin("acc_descr_multiline");
325
+ break;
326
+ case 12:
327
+ this.popState();
328
+ break;
329
+ case 13:
330
+ return "acc_descr_multiline_value";
331
+ case 14:
332
+ return 17;
333
+ case 15:
334
+ return 18;
335
+ case 16:
336
+ return 19;
337
+ case 17:
338
+ return ":";
339
+ case 18:
340
+ return 6;
341
+ case 19:
342
+ return "INVALID";
343
+ }
344
+ }, "anonymous"),
345
+ 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],
346
+ 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 } }
347
+ };
348
+ return g;
349
+ }();
350
+ d.lexer = x;
351
+ function m() {
352
+ this.yy = {};
353
+ }
354
+ return i(m, "Parser"), m.prototype = d, d.Parser = m, new m();
355
+ }();
356
+ H.parser = H;
357
+ var $t = H, V = "", U = [], F = [], R = [], Mt = /* @__PURE__ */ i(function() {
358
+ U.length = 0, F.length = 0, V = "", R.length = 0, St();
359
+ }, "clear"), Et = /* @__PURE__ */ i(function(t) {
360
+ V = t, U.push(t);
361
+ }, "addSection"), Pt = /* @__PURE__ */ i(function() {
362
+ return U;
363
+ }, "getSections"), It = /* @__PURE__ */ i(function() {
364
+ let t = et();
365
+ const e = 100;
366
+ let n = 0;
367
+ for (; !t && n < e; )
368
+ t = et(), n++;
369
+ return F.push(...R), F;
370
+ }, "getTasks"), At = /* @__PURE__ */ i(function() {
371
+ const t = [];
372
+ return F.forEach((n) => {
373
+ n.people && t.push(...n.people);
374
+ }), [...new Set(t)].sort();
375
+ }, "updateActors"), Ct = /* @__PURE__ */ i(function(t, e) {
376
+ const n = e.substr(1).split(":");
377
+ let c = 0, s = [];
378
+ n.length === 1 ? (c = Number(n[0]), s = []) : (c = Number(n[0]), s = n[1].split(","));
379
+ const u = s.map((p) => p.trim()), h = {
380
+ section: V,
381
+ type: V,
382
+ people: u,
383
+ task: t,
384
+ score: c
385
+ };
386
+ R.push(h);
387
+ }, "addTask"), Vt = /* @__PURE__ */ i(function(t) {
388
+ const e = {
389
+ section: V,
390
+ type: V,
391
+ description: t,
392
+ task: t,
393
+ classes: []
394
+ };
395
+ F.push(e);
396
+ }, "addTaskOrg"), et = /* @__PURE__ */ i(function() {
397
+ const t = /* @__PURE__ */ i(function(n) {
398
+ return R[n].processed;
399
+ }, "compileTask");
400
+ let e = !0;
401
+ for (const [n, c] of R.entries())
402
+ t(n), e = e && c.processed;
403
+ return e;
404
+ }, "compileTasks"), Ft = /* @__PURE__ */ i(function() {
405
+ return At();
406
+ }, "getActors"), rt = {
407
+ getConfig: /* @__PURE__ */ i(() => A().journey, "getConfig"),
408
+ clear: Mt,
409
+ setDiagramTitle: wt,
410
+ getDiagramTitle: bt,
411
+ setAccTitle: vt,
412
+ getAccTitle: _t,
413
+ setAccDescription: kt,
414
+ getAccDescription: xt,
415
+ addSection: Et,
416
+ getSections: Pt,
417
+ getTasks: It,
418
+ addTask: Ct,
419
+ addTaskOrg: Vt,
420
+ getActors: Ft
421
+ }, Rt = /* @__PURE__ */ i((t) => `.label {
422
+ font-family: ${t.fontFamily};
423
+ color: ${t.textColor};
424
+ }
425
+ .mouth {
426
+ stroke: #666;
427
+ }
428
+
429
+ line {
430
+ stroke: ${t.textColor}
431
+ }
432
+
433
+ .legend {
434
+ fill: ${t.textColor};
435
+ font-family: ${t.fontFamily};
436
+ }
437
+
438
+ .label text {
439
+ fill: #333;
440
+ }
441
+ .label {
442
+ color: ${t.textColor}
443
+ }
444
+
445
+ .face {
446
+ ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
447
+ stroke: #999;
448
+ }
449
+
450
+ .node rect,
451
+ .node circle,
452
+ .node ellipse,
453
+ .node polygon,
454
+ .node path {
455
+ fill: ${t.mainBkg};
456
+ stroke: ${t.nodeBorder};
457
+ stroke-width: 1px;
458
+ }
459
+
460
+ .node .label {
461
+ text-align: center;
462
+ }
463
+ .node.clickable {
464
+ cursor: pointer;
465
+ }
466
+
467
+ .arrowheadPath {
468
+ fill: ${t.arrowheadColor};
469
+ }
470
+
471
+ .edgePath .path {
472
+ stroke: ${t.lineColor};
473
+ stroke-width: 1.5px;
474
+ }
475
+
476
+ .flowchart-link {
477
+ stroke: ${t.lineColor};
478
+ fill: none;
479
+ }
480
+
481
+ .edgeLabel {
482
+ background-color: ${t.edgeLabelBackground};
483
+ rect {
484
+ opacity: 0.5;
485
+ }
486
+ text-align: center;
487
+ }
488
+
489
+ .cluster rect {
490
+ }
491
+
492
+ .cluster text {
493
+ fill: ${t.titleColor};
494
+ }
495
+
496
+ div.mermaidTooltip {
497
+ position: absolute;
498
+ text-align: center;
499
+ max-width: 200px;
500
+ padding: 2px;
501
+ font-family: ${t.fontFamily};
502
+ font-size: 12px;
503
+ background: ${t.tertiaryColor};
504
+ border: 1px solid ${t.border2};
505
+ border-radius: 2px;
506
+ pointer-events: none;
507
+ z-index: 100;
508
+ }
509
+
510
+ .task-type-0, .section-type-0 {
511
+ ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
512
+ }
513
+ .task-type-1, .section-type-1 {
514
+ ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
515
+ }
516
+ .task-type-2, .section-type-2 {
517
+ ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
518
+ }
519
+ .task-type-3, .section-type-3 {
520
+ ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
521
+ }
522
+ .task-type-4, .section-type-4 {
523
+ ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
524
+ }
525
+ .task-type-5, .section-type-5 {
526
+ ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
527
+ }
528
+ .task-type-6, .section-type-6 {
529
+ ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
530
+ }
531
+ .task-type-7, .section-type-7 {
532
+ ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
533
+ }
534
+
535
+ .actor-0 {
536
+ ${t.actor0 ? `fill: ${t.actor0}` : ""};
537
+ }
538
+ .actor-1 {
539
+ ${t.actor1 ? `fill: ${t.actor1}` : ""};
540
+ }
541
+ .actor-2 {
542
+ ${t.actor2 ? `fill: ${t.actor2}` : ""};
543
+ }
544
+ .actor-3 {
545
+ ${t.actor3 ? `fill: ${t.actor3}` : ""};
546
+ }
547
+ .actor-4 {
548
+ ${t.actor4 ? `fill: ${t.actor4}` : ""};
549
+ }
550
+ .actor-5 {
551
+ ${t.actor5 ? `fill: ${t.actor5}` : ""};
552
+ }
553
+ `, "getStyles"), Lt = Rt, Z = /* @__PURE__ */ i(function(t, e) {
554
+ return mt(t, e);
555
+ }, "drawRect"), Bt = /* @__PURE__ */ i(function(t, e) {
556
+ 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"), s = t.append("g");
557
+ s.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"), s.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");
558
+ function u(d) {
559
+ const x = tt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
560
+ d.append("path").attr("class", "mouth").attr("d", x).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
561
+ }
562
+ i(u, "smile");
563
+ function h(d) {
564
+ const x = tt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
565
+ d.append("path").attr("class", "mouth").attr("d", x).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
566
+ }
567
+ i(h, "sad");
568
+ function p(d) {
569
+ d.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");
570
+ }
571
+ return i(p, "ambivalent"), e.score > 3 ? u(s) : e.score < 3 ? h(s) : p(s), c;
572
+ }, "drawFace"), lt = /* @__PURE__ */ i(function(t, e) {
573
+ const n = t.append("circle");
574
+ return n.attr("cx", e.cx), n.attr("cy", e.cy), n.attr("class", "actor-" + e.pos), n.attr("fill", e.fill), n.attr("stroke", e.stroke), n.attr("r", e.r), n.class !== void 0 && n.attr("class", n.class), e.title !== void 0 && n.append("title").text(e.title), n;
575
+ }, "drawCircle"), ot = /* @__PURE__ */ i(function(t, e) {
576
+ return gt(t, e);
577
+ }, "drawText"), Nt = /* @__PURE__ */ i(function(t, e) {
578
+ function n(s, u, h, p, d) {
579
+ return s + "," + u + " " + (s + h) + "," + u + " " + (s + h) + "," + (u + p - d) + " " + (s + h - d * 1.2) + "," + (u + p) + " " + s + "," + (u + p);
580
+ }
581
+ i(n, "genPoints");
582
+ const c = t.append("polygon");
583
+ c.attr("points", n(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, ot(t, e);
584
+ }, "drawLabel"), jt = /* @__PURE__ */ i(function(t, e, n) {
585
+ const c = t.append("g"), s = at();
586
+ s.x = e.x, s.y = e.y, s.fill = e.fill, s.width = n.width * e.taskCount + // width of the tasks
587
+ n.diagramMarginX * (e.taskCount - 1), s.height = n.height, s.class = "journey-section section-type-" + e.num, s.rx = 3, s.ry = 3, Z(c, s), ct(n)(
588
+ e.text,
589
+ c,
590
+ s.x,
591
+ s.y,
592
+ s.width,
593
+ s.height,
594
+ { class: "journey-section section-type-" + e.num },
595
+ n,
596
+ e.colour
597
+ );
598
+ }, "drawSection"), st = -1, zt = /* @__PURE__ */ i(function(t, e, n) {
599
+ const c = e.x + n.width / 2, s = t.append("g");
600
+ st++;
601
+ const u = 300 + 5 * 30;
602
+ s.append("line").attr("id", "task" + st).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", u).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Bt(s, {
603
+ cx: c,
604
+ cy: 300 + (5 - e.score) * 30,
605
+ score: e.score
606
+ });
607
+ const h = at();
608
+ h.x = e.x, h.y = e.y, h.fill = e.fill, h.width = n.width, h.height = n.height, h.class = "task task-type-" + e.num, h.rx = 3, h.ry = 3, Z(s, h);
609
+ let p = e.x + 14;
610
+ e.people.forEach((d) => {
611
+ const x = e.actors[d].color, m = {
612
+ cx: p,
613
+ cy: e.y,
614
+ r: 7,
615
+ fill: x,
616
+ stroke: "#000",
617
+ title: d,
618
+ pos: e.actors[d].position
619
+ };
620
+ lt(s, m), p += 10;
621
+ }), ct(n)(
622
+ e.task,
623
+ s,
624
+ h.x,
625
+ h.y,
626
+ h.width,
627
+ h.height,
628
+ { class: "task" },
629
+ n,
630
+ e.colour
631
+ );
632
+ }, "drawTask"), Ot = /* @__PURE__ */ i(function(t, e) {
633
+ ft(t, e);
634
+ }, "drawBackgroundRect"), ct = /* @__PURE__ */ function() {
635
+ function t(s, u, h, p, d, x, m, g) {
636
+ const r = u.append("text").attr("x", h + d / 2).attr("y", p + x / 2 + 5).style("font-color", g).style("text-anchor", "middle").text(s);
637
+ c(r, m);
638
+ }
639
+ i(t, "byText");
640
+ function e(s, u, h, p, d, x, m, g, r) {
641
+ const { taskFontSize: a, taskFontFamily: l } = g, y = s.split(/<br\s*\/?>/gi);
642
+ for (let f = 0; f < y.length; f++) {
643
+ const o = f * a - a * (y.length - 1) / 2, S = u.append("text").attr("x", h + d / 2).attr("y", p).attr("fill", r).style("text-anchor", "middle").style("font-size", a).style("font-family", l);
644
+ S.append("tspan").attr("x", h + d / 2).attr("dy", o).text(y[f]), S.attr("y", p + x / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), c(S, m);
645
+ }
646
+ }
647
+ i(e, "byTspan");
648
+ function n(s, u, h, p, d, x, m, g) {
649
+ const r = u.append("switch"), l = r.append("foreignObject").attr("x", h).attr("y", p).attr("width", d).attr("height", x).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
650
+ l.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, r, h, p, d, x, m, g), c(l, m);
651
+ }
652
+ i(n, "byFo");
653
+ function c(s, u) {
654
+ for (const h in u)
655
+ h in u && s.attr(h, u[h]);
656
+ }
657
+ return i(c, "_setTextAttrs"), function(s) {
658
+ return s.textPlacement === "fo" ? n : s.textPlacement === "old" ? t : e;
659
+ };
660
+ }(), Yt = /* @__PURE__ */ i(function(t) {
661
+ 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");
662
+ }, "initGraphics"), L = {
663
+ drawRect: Z,
664
+ drawCircle: lt,
665
+ drawSection: jt,
666
+ drawText: ot,
667
+ drawLabel: Nt,
668
+ drawTask: zt,
669
+ drawBackgroundRect: Ot,
670
+ initGraphics: Yt
671
+ }, qt = /* @__PURE__ */ i(function(t) {
672
+ Object.keys(t).forEach(function(n) {
673
+ z[n] = t[n];
674
+ });
675
+ }, "setConf"), M = {};
676
+ function ht(t) {
677
+ const e = A().journey;
678
+ let n = 60;
679
+ Object.keys(M).forEach((c) => {
680
+ const s = M[c].color, u = {
681
+ cx: 20,
682
+ cy: n,
683
+ r: 7,
684
+ fill: s,
685
+ stroke: "#000",
686
+ pos: M[c].position
687
+ };
688
+ L.drawCircle(t, u);
689
+ const h = {
690
+ x: 40,
691
+ y: n + 7,
692
+ fill: "#666",
693
+ text: c,
694
+ textMargin: e.boxTextMargin | 5
695
+ };
696
+ L.drawText(t, h), n += 20;
697
+ });
698
+ }
699
+ i(ht, "drawActorLegend");
700
+ var z = A().journey, I = z.leftMargin, Gt = /* @__PURE__ */ i(function(t, e, n, c) {
701
+ const s = A().journey, u = A().securityLevel;
702
+ let h;
703
+ u === "sandbox" && (h = W("#i" + e));
704
+ const p = u === "sandbox" ? W(h.nodes()[0].contentDocument.body) : W("body");
705
+ T.init();
706
+ const d = p.select("#" + e);
707
+ L.initGraphics(d);
708
+ const x = c.db.getTasks(), m = c.db.getDiagramTitle(), g = c.db.getActors();
709
+ for (const o in M)
710
+ delete M[o];
711
+ let r = 0;
712
+ g.forEach((o) => {
713
+ M[o] = {
714
+ color: s.actorColours[r % s.actorColours.length],
715
+ position: r
716
+ }, r++;
717
+ }), ht(d), T.insert(0, 0, I, Object.keys(M).length * 50), Wt(d, x, 0);
718
+ const a = T.getBounds();
719
+ m && d.append("text").text(m).attr("x", I).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25);
720
+ const l = a.stopy - a.starty + 2 * s.diagramMarginY, y = I + a.stopx + 2 * s.diagramMarginX;
721
+ Tt(d, l, y, s.useMaxWidth), d.append("line").attr("x1", I).attr("y1", s.height * 4).attr("x2", y - I - 4).attr("y2", s.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
722
+ const f = m ? 70 : 0;
723
+ d.attr("viewBox", `${a.startx} -25 ${y} ${l + f}`), d.attr("preserveAspectRatio", "xMinYMin meet"), d.attr("height", l + f + 25);
724
+ }, "draw"), T = {
725
+ data: {
726
+ startx: void 0,
727
+ stopx: void 0,
728
+ starty: void 0,
729
+ stopy: void 0
730
+ },
731
+ verticalPos: 0,
732
+ sequenceItems: [],
733
+ init: /* @__PURE__ */ i(function() {
734
+ this.sequenceItems = [], this.data = {
735
+ startx: void 0,
736
+ stopx: void 0,
737
+ starty: void 0,
738
+ stopy: void 0
739
+ }, this.verticalPos = 0;
740
+ }, "init"),
741
+ updateVal: /* @__PURE__ */ i(function(t, e, n, c) {
742
+ t[e] === void 0 ? t[e] = n : t[e] = c(n, t[e]);
743
+ }, "updateVal"),
744
+ updateBounds: /* @__PURE__ */ i(function(t, e, n, c) {
745
+ const s = A().journey, u = this;
746
+ let h = 0;
747
+ function p(d) {
748
+ return /* @__PURE__ */ i(function(m) {
749
+ h++;
750
+ const g = u.sequenceItems.length - h + 1;
751
+ u.updateVal(m, "starty", e - g * s.boxMargin, Math.min), u.updateVal(m, "stopy", c + g * s.boxMargin, Math.max), u.updateVal(T.data, "startx", t - g * s.boxMargin, Math.min), u.updateVal(T.data, "stopx", n + g * s.boxMargin, Math.max), d !== "activation" && (u.updateVal(m, "startx", t - g * s.boxMargin, Math.min), u.updateVal(m, "stopx", n + g * s.boxMargin, Math.max), u.updateVal(T.data, "starty", e - g * s.boxMargin, Math.min), u.updateVal(T.data, "stopy", c + g * s.boxMargin, Math.max));
752
+ }, "updateItemBounds");
753
+ }
754
+ i(p, "updateFn"), this.sequenceItems.forEach(p());
755
+ }, "updateBounds"),
756
+ insert: /* @__PURE__ */ i(function(t, e, n, c) {
757
+ const s = Math.min(t, n), u = Math.max(t, n), h = Math.min(e, c), p = Math.max(e, c);
758
+ this.updateVal(T.data, "startx", s, Math.min), this.updateVal(T.data, "starty", h, Math.min), this.updateVal(T.data, "stopx", u, Math.max), this.updateVal(T.data, "stopy", p, Math.max), this.updateBounds(s, h, u, p);
759
+ }, "insert"),
760
+ bumpVerticalPos: /* @__PURE__ */ i(function(t) {
761
+ this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
762
+ }, "bumpVerticalPos"),
763
+ getVerticalPos: /* @__PURE__ */ i(function() {
764
+ return this.verticalPos;
765
+ }, "getVerticalPos"),
766
+ getBounds: /* @__PURE__ */ i(function() {
767
+ return this.data;
768
+ }, "getBounds")
769
+ }, X = z.sectionFills, it = z.sectionColours, Wt = /* @__PURE__ */ i(function(t, e, n) {
770
+ const c = A().journey;
771
+ let s = "";
772
+ const u = c.height * 2 + c.diagramMarginY, h = n + u;
773
+ let p = 0, d = "#CCC", x = "black", m = 0;
774
+ for (const [g, r] of e.entries()) {
775
+ if (s !== r.section) {
776
+ d = X[p % X.length], m = p % X.length, x = it[p % it.length];
777
+ let l = 0;
778
+ const y = r.section;
779
+ for (let o = g; o < e.length && e[o].section == y; o++)
780
+ l = l + 1;
781
+ const f = {
782
+ x: g * c.taskMargin + g * c.width + I,
783
+ y: 50,
784
+ text: r.section,
785
+ fill: d,
786
+ num: m,
787
+ colour: x,
788
+ taskCount: l
789
+ };
790
+ L.drawSection(t, f, c), s = r.section, p++;
791
+ }
792
+ const a = r.people.reduce((l, y) => (M[y] && (l[y] = M[y]), l), {});
793
+ r.x = g * c.taskMargin + g * c.width + I, r.y = h, r.width = c.diagramMarginX, r.height = c.diagramMarginY, r.colour = x, r.fill = d, r.num = m, r.actors = a, L.drawTask(t, r, c), T.insert(r.x, r.y, r.x + r.width + c.taskMargin, 300 + 5 * 30);
794
+ }
795
+ }, "drawTasks"), nt = {
796
+ setConf: qt,
797
+ draw: Gt
798
+ }, Zt = {
799
+ parser: $t,
800
+ db: rt,
801
+ renderer: nt,
802
+ styles: Lt,
803
+ init: /* @__PURE__ */ i((t) => {
804
+ nt.setConf(t.journey), rt.clear();
805
+ }, "init")
806
+ };
807
+ export {
808
+ Zt as diagram
809
+ };