@marimo-team/frontend 0.13.7-dev19 → 0.13.7-dev2

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 (283) hide show
  1. package/dist/assets/ConnectedDataExplorerComponent-th_i__dG.js +22 -0
  2. package/dist/assets/VegaLite-0KIipZoB.js +11 -0
  3. package/dist/assets/_baseEach-DMa5jqoU.js +1 -0
  4. package/dist/assets/_baseMap-pUcN7Rpu.js +1 -0
  5. package/dist/assets/_baseUniq-BVoEUTG_.js +1 -0
  6. package/dist/assets/_createAggregator-Djppx6_O.js +1 -0
  7. package/dist/assets/{any-language-editor-ahunGrCD.js → any-language-editor-CyITx6h-.js} +1 -3
  8. package/dist/assets/apl-CXdQSnD-.js +1 -1
  9. package/dist/assets/arc-Cuwikxov.js +1 -1
  10. package/dist/assets/architectureDiagram-IEHRJDOE-OoEkDt5O.js +1 -0
  11. package/dist/assets/asciiarmor-D5V0T9Cu.js +1 -1
  12. package/dist/assets/asn1-DWPaVWf6.js +1 -1
  13. package/dist/assets/asterisk-B46aRdXb.js +1 -1
  14. package/dist/assets/blockDiagram-JOT3LUYC-CGnlM4UU.js +1 -0
  15. package/dist/assets/brainfuck-CtZaYBKt.js +1 -1
  16. package/dist/assets/c4Diagram-VJAJSXHY-DcwqEhJp.js +1 -0
  17. package/dist/assets/channel-C3LrtOq9.js +1 -0
  18. package/dist/assets/chunk-4BMEZGHF-DOK1C4SQ.js +1 -0
  19. package/dist/assets/chunk-A2AXSNBT-tcqF3UW3.js +1 -0
  20. package/dist/assets/chunk-AEK57VVT-CMGGH9xn.js +1 -0
  21. package/dist/assets/chunk-D6G4REZN-DXlJF2Bk.js +1 -0
  22. package/dist/assets/chunk-RZ5BOZE2-COQMYHlq.js +1 -0
  23. package/dist/assets/chunk-XZIHB7SX-Bhxm0x2M.js +1 -0
  24. package/dist/assets/{circle-play-B5Mq3TDm.js → circle-play-DfTVgygt.js} +2 -1
  25. package/dist/assets/classDiagram-GIVACNV2-Dx1tK0j4.js +1 -0
  26. package/dist/assets/classDiagram-v2-COTLJTTW-Dx1tK0j4.js +1 -0
  27. package/dist/assets/clike-BgBwzOhw.js +1 -1
  28. package/dist/assets/clojure-DR_hEDJv.js +1 -1
  29. package/dist/assets/clone-C11ag5RZ.js +1 -0
  30. package/dist/assets/cmake-DXn5xaP-.js +1 -1
  31. package/dist/assets/cobol-stawOqaz.js +1 -1
  32. package/dist/assets/coffeescript-BTDxI-eT.js +1 -1
  33. package/dist/assets/colors-bszWmPJw.js +1 -1
  34. package/dist/assets/commonlisp-vq6DHwts.js +1 -1
  35. package/dist/assets/compile-R0u9cqWP.js +1 -0
  36. package/dist/assets/crystal-CRzZ78HM.js +1 -1
  37. package/dist/assets/css-ZjFoif2m.js +1 -1
  38. package/dist/assets/cypher-gJDei3ni.js +1 -1
  39. package/dist/assets/cytoscape.esm-bH-fs5wT.js +9 -0
  40. package/dist/assets/d-BShv7fp-.js +1 -1
  41. package/dist/assets/dagre-OKDRZEBW-CtqjM5h9.js +1 -0
  42. package/dist/assets/data-editor-Bfcrqyi2.js +1 -0
  43. package/dist/assets/diagram-SSKATNLV-DNt52Sk_.js +1 -0
  44. package/dist/assets/diagram-VNBRO52H-xUNKnAoh.js +1 -0
  45. package/dist/assets/diff-UJJ5BM9S.js +1 -1
  46. package/dist/assets/dockerfile-knGOOxt4.js +1 -1
  47. package/dist/assets/dtd-DI9Herc-.js +1 -1
  48. package/dist/assets/dylan-CHJ5qNM_.js +1 -1
  49. package/dist/assets/ebnf-B-Df8AvO.js +1 -1
  50. package/dist/assets/ecl-DPFc0Uaf.js +1 -1
  51. package/dist/assets/edit-page-NmKprqkt.js +8 -0
  52. package/dist/assets/eiffel-DR5c0IrL.js +1 -1
  53. package/dist/assets/elm-D7xaZ7Da.js +1 -1
  54. package/dist/assets/erDiagram-Q7BY3M3F-io1sgtPU.js +1 -0
  55. package/dist/assets/erlang-BuqgqA5h.js +1 -1
  56. package/dist/assets/fcl-CVaBTCzQ.js +1 -1
  57. package/dist/assets/flowDiagram-4HSFHLVR-CAcDVF45.js +1 -0
  58. package/dist/assets/forth-Dri_5nFc.js +1 -1
  59. package/dist/assets/fortran-DL7KluxX.js +1 -1
  60. package/dist/assets/ganttDiagram-APWFNJXF-CCNkQyYO.js +1 -0
  61. package/dist/assets/gas-5kEe4nk0.js +1 -1
  62. package/dist/assets/gherkin-B6X1vGSW.js +1 -1
  63. package/dist/assets/gitGraphDiagram-7IBYFJ6S-S-DIg2KO.js +1 -0
  64. package/dist/assets/graph-CPvBoehR.js +1 -0
  65. package/dist/assets/groovy-DnIzCrpZ.js +1 -1
  66. package/dist/assets/haskell-CmdsSjFB.js +1 -1
  67. package/dist/assets/haxe-D25e-2l-.js +1 -1
  68. package/dist/assets/home-page-DUROE-6l.js +7 -0
  69. package/dist/assets/http-BKJkqRj4.js +1 -1
  70. package/dist/assets/idl-pcmmZuaN.js +1 -1
  71. package/dist/assets/index-1hj486rU.js +1 -0
  72. package/dist/assets/index-33Q7xM_A.css +1 -0
  73. package/dist/assets/index-9Y5po83T.js +1 -0
  74. package/dist/assets/index-B1R-kky3.js +1 -0
  75. package/dist/assets/index-BHjEpXuR.js +1 -0
  76. package/dist/assets/index-BLyYnOxb.js +1 -0
  77. package/dist/assets/index-BVOgGu7j.js +1 -0
  78. package/dist/assets/index-Bi8fVNBD.js +1 -0
  79. package/dist/assets/index-CBRsR4hm.js +1 -0
  80. package/dist/assets/index-CBe39OqR.js +1 -0
  81. package/dist/assets/index-CCmIqGps.js +87 -0
  82. package/dist/assets/index-Cq97_EnG.js +1 -0
  83. package/dist/assets/index-Cv0v8nkj.js +1 -0
  84. package/dist/assets/index-D3r87Dua.js +1 -0
  85. package/dist/assets/index-DTd9oqZ1.js +1 -0
  86. package/dist/assets/index-DeDcyKGD.js +1 -0
  87. package/dist/assets/index-W5H1wa8v.js +1 -0
  88. package/dist/assets/index-g5NcpOqf.js +1 -0
  89. package/dist/assets/index-jkcjZbio.js +1 -0
  90. package/dist/assets/index-pCY6hO1c.js +1 -0
  91. package/dist/assets/infoDiagram-PH2N3AL5-C_3rp1aS.js +1 -0
  92. package/dist/assets/init-DLRA0X12.js +1 -1
  93. package/dist/assets/javascript-D48wDJXV.js +1 -1
  94. package/dist/assets/jinja2-DhgKlfW7.js +1 -1
  95. package/dist/assets/journeyDiagram-U35MCT3I-JTAqngR8.js +1 -0
  96. package/dist/assets/julia-DjdwvFuI.js +1 -1
  97. package/dist/assets/kanban-definition-NDS4AKOZ-CIEmg2CK.js +1 -0
  98. package/dist/assets/katex-Blph-pX_.js +1 -0
  99. package/dist/assets/layout-5_9nD7xG.js +1 -0
  100. package/dist/assets/linear-DtkRsldv.js +1 -0
  101. package/dist/assets/livescript-HO6ttBFx.js +1 -1
  102. package/dist/assets/lua-8DXOpKDz.js +1 -1
  103. package/dist/assets/mathematica-IIbmv7SK.js +1 -1
  104. package/dist/assets/mbox-DoeuZPxA.js +1 -0
  105. package/dist/assets/mermaid-Cuo5gmPJ.js +7 -0
  106. package/dist/assets/mhchem-9pkdwevO.js +1 -0
  107. package/dist/assets/min-DZ6t4OQo.js +1 -0
  108. package/dist/assets/mindmap-definition-ALO5MXBD-BIjqJBz_.js +1 -0
  109. package/dist/assets/mirc-DkvFAiy5.js +1 -1
  110. package/dist/assets/mllike-3c2dg9RT.js +1 -1
  111. package/dist/assets/modelica-DSrSSXCg.js +1 -1
  112. package/dist/assets/mscgen-B2igx18G.js +1 -1
  113. package/dist/assets/mumps-zvxmGV4l.js +1 -1
  114. package/dist/assets/nginx-B4hAVlXN.js +1 -1
  115. package/dist/assets/ntriples-FFvkTduk.js +1 -1
  116. package/dist/assets/octave-C4hdQ5Hf.js +1 -1
  117. package/dist/assets/ordinal-DDUp3AbE.js +1 -1
  118. package/dist/assets/oz-qQq7irPq.js +1 -1
  119. package/dist/assets/pascal-CafrKXZF.js +1 -1
  120. package/dist/assets/perl-tdMlh9QA.js +1 -1
  121. package/dist/assets/pieDiagram-IB7DONF6-Bgy76ci6.js +1 -0
  122. package/dist/assets/pig-CwGJVRC4.js +1 -1
  123. package/dist/assets/powershell-D1ly3AHC.js +1 -1
  124. package/dist/assets/properties-_nPj978X.js +1 -1
  125. package/dist/assets/protobuf-B4y9do6W.js +1 -1
  126. package/dist/assets/pug-_kJOm_E2.js +1 -1
  127. package/dist/assets/puppet-Bc-yJKzi.js +1 -1
  128. package/dist/assets/python-DD-Q2bae.js +1 -1
  129. package/dist/assets/q-B0kTJ4cI.js +1 -1
  130. package/dist/assets/quadrantDiagram-7GDLP6J5-DtmO_lJs.js +1 -0
  131. package/dist/assets/r-BA4EbLKE.js +1 -1
  132. package/dist/assets/radar-MK3ICKWK-CQnq_RTY.js +1 -0
  133. package/dist/assets/range-CtcPcB_L.js +1 -1
  134. package/dist/assets/react-plotly-ytz-JCC5.js +71 -0
  135. package/dist/assets/requirementDiagram-KVF5MWMF-CW5hk-fu.js +1 -0
  136. package/dist/assets/rpm-DI_rRufH.js +1 -1
  137. package/dist/assets/ruby-CR-u2WLS.js +1 -1
  138. package/dist/assets/run-page-DhpeWfS6.js +1 -0
  139. package/dist/assets/sankeyDiagram-QLVOVGJD-DMJOShtL.js +1 -0
  140. package/dist/assets/sas-Bqaci40L.js +1 -1
  141. package/dist/assets/save-worker-CQvBUha3.js +1 -0
  142. package/dist/assets/scheme-qjP0V5Ag.js +1 -1
  143. package/dist/assets/sequenceDiagram-X6HHIX6F-Cs8tv4LH.js +1 -0
  144. package/dist/assets/shell-BLav31RL.js +1 -1
  145. package/dist/assets/sieve-r025o_jW.js +1 -1
  146. package/dist/assets/simple-mode-C3vEBAcb.js +1 -1
  147. package/dist/assets/slides-component-Dfd2iboP.js +1 -0
  148. package/dist/assets/smalltalk-C7J3IyEP.js +1 -1
  149. package/dist/assets/solr-78MBEUkU.js +1 -1
  150. package/dist/assets/sortBy-BKdwAT3U.js +1 -0
  151. package/dist/assets/sparql-BRLJFz69.js +1 -1
  152. package/dist/assets/spreadsheet-CGlWr0eM.js +1 -1
  153. package/dist/assets/sql-B3SPsWL6.js +1 -1
  154. package/dist/assets/stateDiagram-DGXRK772-CvA7Y-cH.js +1 -0
  155. package/dist/assets/stateDiagram-v2-YXO3MK2T-BFZJg-21.js +1 -0
  156. package/dist/assets/step-BwsUM5iJ.js +1 -1
  157. package/dist/assets/stylus-OdhglgkO.js +1 -1
  158. package/dist/assets/swift-B_XXVlXX.js +1 -1
  159. package/dist/assets/tcl-B2fODqDH.js +1 -1
  160. package/dist/assets/terminal-DVzybcfs.css +1 -0
  161. package/dist/assets/terminal-DX8mzLZW.js +1 -0
  162. package/dist/assets/textile-BuVhTOzU.js +1 -1
  163. package/dist/assets/tiddlywiki-BgR6AEZu.js +1 -1
  164. package/dist/assets/tiki-CI-ztowC.js +1 -1
  165. package/dist/assets/time-L5VRVaeJ.js +1 -0
  166. package/dist/assets/timeline-definition-BDJGKUSR-C2OBlRUS.js +1 -0
  167. package/dist/assets/timer-DFzT7np-.js +1 -1
  168. package/dist/assets/toml-BQXy8elZ.js +1 -1
  169. package/dist/assets/tracing-MU76FYLw.js +8 -0
  170. package/dist/assets/transform-DjHZbYKP.js +1 -0
  171. package/dist/assets/tree-CfXwrtHg.js +8 -0
  172. package/dist/assets/troff-Ce85hlLp.js +1 -1
  173. package/dist/assets/ttcn-BxnYHtq8.js +1 -1
  174. package/dist/assets/ttcn-cfg-CKJxb-l2.js +1 -1
  175. package/dist/assets/turtle-BkSuIpt-.js +1 -1
  176. package/dist/assets/useMarimoWebSocket-B5Kqyjii.js +15 -0
  177. package/dist/assets/vb-BHgjm0DN.js +1 -1
  178. package/dist/assets/vbscript-Dawdd5GZ.js +1 -1
  179. package/dist/assets/vega-component-D7BFIY4g.js +1 -0
  180. package/dist/assets/velocity-BdD_26Jv.js +1 -1
  181. package/dist/assets/verilog-B4LBqg_1.js +1 -1
  182. package/dist/assets/vhdl-CWWH2SUo.js +1 -1
  183. package/dist/assets/web-vitals-rCWRSGQR.js +1 -0
  184. package/dist/assets/webidl-CGwyPRYs.js +1 -1
  185. package/dist/assets/worker-DMKWnagd.js +1 -0
  186. package/dist/assets/worker-DXe6aoib.js +1 -0
  187. package/dist/assets/xquery-CVDBqZPY.js +1 -1
  188. package/dist/assets/xychartDiagram-VJFVF3MP-CYdhGX5A.js +1 -0
  189. package/dist/assets/yacas-I8QjZlxf.js +1 -1
  190. package/dist/assets/z80-D8p3gKXp.js +1 -1
  191. package/dist/assets/zoom-COrs4lFh.js +1 -1
  192. package/dist/index.html +2 -2
  193. package/package.json +4 -5
  194. package/dist/assets/ConnectedDataExplorerComponent-Cl3Y-3In.js +0 -19
  195. package/dist/assets/VegaLite-lJVuLWyh.js +0 -189
  196. package/dist/assets/_baseEach-Dv3FcSFb.js +0 -1
  197. package/dist/assets/_baseMap-Cxs5Iniy.js +0 -1
  198. package/dist/assets/_baseUniq-25oY6Jnc.js +0 -1
  199. package/dist/assets/_createAggregator-DsIwf7k0.js +0 -1
  200. package/dist/assets/architectureDiagram-IEHRJDOE-BsNnuxkX.js +0 -36
  201. package/dist/assets/blockDiagram-JOT3LUYC-7y5GLIN0.js +0 -121
  202. package/dist/assets/c4Diagram-VJAJSXHY-Dv9ZP8tq.js +0 -10
  203. package/dist/assets/channel-N4UsiA1r.js +0 -1
  204. package/dist/assets/chunk-4BMEZGHF-DcO2aVFy.js +0 -1
  205. package/dist/assets/chunk-A2AXSNBT-DIHSHJ_a.js +0 -164
  206. package/dist/assets/chunk-AEK57VVT-D5mxaC-m.js +0 -220
  207. package/dist/assets/chunk-D6G4REZN-DKgrdypM.js +0 -1
  208. package/dist/assets/chunk-RZ5BOZE2-DSykW567.js +0 -1
  209. package/dist/assets/chunk-XZIHB7SX-aK3SPkgC.js +0 -1
  210. package/dist/assets/classDiagram-GIVACNV2-D6cq51jv.js +0 -1
  211. package/dist/assets/classDiagram-v2-COTLJTTW-D6cq51jv.js +0 -1
  212. package/dist/assets/clone-CNpfZ5Ai.js +0 -1
  213. package/dist/assets/compile-CuA-dfdV.js +0 -10
  214. package/dist/assets/cytoscape.esm-C5gjFiAL.js +0 -10
  215. package/dist/assets/dagre-OKDRZEBW-BQwRp_k5.js +0 -4
  216. package/dist/assets/data-editor-BEQPYf0v.js +0 -142
  217. package/dist/assets/diagram-SSKATNLV-BgXC4WGs.js +0 -43
  218. package/dist/assets/diagram-VNBRO52H-DGc1hx_7.js +0 -24
  219. package/dist/assets/edit-page-DmE7tWNS.js +0 -134
  220. package/dist/assets/erDiagram-Q7BY3M3F-B77gHNES.js +0 -60
  221. package/dist/assets/flowDiagram-4HSFHLVR-Ci7uC13q.js +0 -161
  222. package/dist/assets/ganttDiagram-APWFNJXF-vNBplgak.js +0 -257
  223. package/dist/assets/gitGraphDiagram-7IBYFJ6S-CjdjX_au.js +0 -65
  224. package/dist/assets/graph-DtezlXC6.js +0 -1
  225. package/dist/assets/home-page-Cbtl5uJx.js +0 -9
  226. package/dist/assets/index-B6CKlH1j.js +0 -19
  227. package/dist/assets/index-BF4ORUkm.js +0 -1
  228. package/dist/assets/index-BFimVYIM.js +0 -7
  229. package/dist/assets/index-BdggHOB9.js +0 -1
  230. package/dist/assets/index-BpwXmvdx.js +0 -1
  231. package/dist/assets/index-BtaSDUVs.js +0 -1
  232. package/dist/assets/index-CGo6Oy-p.js +0 -1
  233. package/dist/assets/index-CSziElQw.css +0 -1
  234. package/dist/assets/index-CdPfsq9L.js +0 -1
  235. package/dist/assets/index-CkcdVyHc.js +0 -1
  236. package/dist/assets/index-ClQAWlJo.js +0 -1
  237. package/dist/assets/index-Cm2pNcGV.js +0 -1
  238. package/dist/assets/index-CrcQnJvd.js +0 -1
  239. package/dist/assets/index-DC2IO0AW.js +0 -1
  240. package/dist/assets/index-DHT3wAiK.js +0 -1
  241. package/dist/assets/index-DyTcCHYa.js +0 -1
  242. package/dist/assets/index-GnhPzzxC.js +0 -1
  243. package/dist/assets/index-QBrbb5HW.js +0 -1
  244. package/dist/assets/index-TSUDS7jM.js +0 -1
  245. package/dist/assets/index-h968mbDY.js +0 -476
  246. package/dist/assets/infoDiagram-PH2N3AL5-DYa5MHk8.js +0 -2
  247. package/dist/assets/journeyDiagram-U35MCT3I-dWJXWJHL.js +0 -138
  248. package/dist/assets/kanban-definition-NDS4AKOZ-Cp3xOibE.js +0 -88
  249. package/dist/assets/katex-BsnJiHtx.js +0 -261
  250. package/dist/assets/layout-Bn5-RP4q.js +0 -1
  251. package/dist/assets/linear-BLTTcXbG.js +0 -1
  252. package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
  253. package/dist/assets/mbox-z_N2Mo3d.js +0 -1
  254. package/dist/assets/mermaid-DUttmi7o.js +0 -152
  255. package/dist/assets/mhchem-C_nT2J_7.js +0 -1
  256. package/dist/assets/min-BYQTqMOO.js +0 -1
  257. package/dist/assets/mindmap-definition-ALO5MXBD-BwXBKAI8.js +0 -95
  258. package/dist/assets/pieDiagram-IB7DONF6-DkFei_KP.js +0 -30
  259. package/dist/assets/quadrantDiagram-7GDLP6J5-DQ8yIvla.js +0 -7
  260. package/dist/assets/radar-MK3ICKWK-ZHiJqOPR.js +0 -126
  261. package/dist/assets/react-plotly-dmPZw-ZZ.js +0 -4074
  262. package/dist/assets/requirementDiagram-KVF5MWMF-GRQRLZM0.js +0 -64
  263. package/dist/assets/run-page-DOL-p6Mu.js +0 -1
  264. package/dist/assets/sankeyDiagram-QLVOVGJD-DQjViyAa.js +0 -10
  265. package/dist/assets/save-worker-D7xNPs7e.js +0 -1
  266. package/dist/assets/sequenceDiagram-X6HHIX6F-BeVDeRTA.js +0 -122
  267. package/dist/assets/slides-component-Dq4GRklQ.js +0 -1
  268. package/dist/assets/sortBy-BqZzwUAG.js +0 -1
  269. package/dist/assets/stateDiagram-DGXRK772-DeLaELEH.js +0 -1
  270. package/dist/assets/stateDiagram-v2-YXO3MK2T-w2134tMr.js +0 -1
  271. package/dist/assets/terminal-DD1Y56E4.js +0 -9
  272. package/dist/assets/terminal-WqMRJt5Z.css +0 -1
  273. package/dist/assets/time-CGPy0Ct0.js +0 -1
  274. package/dist/assets/timeline-definition-BDJGKUSR-CHvF-1hs.js +0 -61
  275. package/dist/assets/tracing-CzMUDszT.js +0 -2
  276. package/dist/assets/transform-Cyp0GDF-.js +0 -1
  277. package/dist/assets/tree-DU4K_FZ5.js +0 -17
  278. package/dist/assets/useMarimoWebSocket-DDdHrl-A.js +0 -27
  279. package/dist/assets/vega-component-CCtWrOHw.js +0 -1
  280. package/dist/assets/web-vitals-Buym0gfC.js +0 -1
  281. package/dist/assets/worker-BWN2kUSa.js +0 -1
  282. package/dist/assets/worker-D-UG5-wL.js +0 -1
  283. package/dist/assets/xychartDiagram-VJFVF3MP-aZIxcUde.js +0 -7
@@ -1,2 +0,0 @@
1
- import{_ as a,l as e,I as s,d as p,K as n}from"./mermaid-DUttmi7o.js";import{p as m}from"./radar-MK3ICKWK-ZHiJqOPR.js";import"./index-h968mbDY.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";import"./_baseEach-Dv3FcSFb.js";import"./_baseUniq-25oY6Jnc.js";import"./min-BYQTqMOO.js";import"./_baseMap-Cxs5Iniy.js";import"./clone-CNpfZ5Ai.js";import"./_createAggregator-DsIwf7k0.js";var d={parse:a(async r=>{const t=await m("info",r);e.debug(t)},"parse")},g={version:n.version},v={parser:d,db:{getVersion:a(()=>g.version,"getVersion")},renderer:{draw:a((r,t,i)=>{e.debug(`rendering info diagram
2
- `+r);const o=s(t);p(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw")}};export{v as diagram};
@@ -1,138 +0,0 @@
1
- import{a as ut,g as J,f as pt,d as yt}from"./chunk-D6G4REZN-DKgrdypM.js";import{_ as s,g as dt,s as ft,a as gt,b as mt,q as xt,p as kt,c as A,d as _t,y as bt}from"./mermaid-DUttmi7o.js";import{s as K}from"./transform-Cyp0GDF-.js";import{d as Q}from"./arc-Cuwikxov.js";import"./index-h968mbDY.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var z=function(){var t=s(function(n,p,a,u){for(a=a||{},u=n.length;u--;a[n[u]]=p);return a},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],l=[1,10],i=[1,11],o=[1,12],h=[1,13],d=[1,14],y={trace:s(function(){},"trace"),yy:{},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},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"},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]],performAction:s(function(n,p,a,u,f,c,v){var x=c.length-1;switch(f){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:u.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:u.addTask(c[x-1],c[x]),this.$="task"}},"anonymous"),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:r,12:l,14:i,16:o,17:h,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:l,14:i,16:o,17:h,18:d},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])],defaultActions:{},parseError:s(function(n,p){if(!p.recoverable){var a=new Error(n);throw a.hash=p,a}this.trace(n)},"parseError"),parse:s(function(n){var p=this,a=[0],u=[],f=[null],c=[],v=this.table,x="",L=0,X=0,lt=c.slice.call(arguments,1),k=Object.create(this.lexer),M={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(M.yy[N]=this.yy[N]);k.setInput(n,M.yy),M.yy.lexer=k,M.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var R=k.yylloc;c.push(R);var ht=k.options&&k.options.ranges;function G(){var w;return typeof(w=u.pop()||k.lex()||1)!="number"&&(w instanceof Array&&(w=(u=w).pop()),w=p.symbols_[w]||w),w}typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(w){a.length=a.length-2*w,f.length=f.length-w,c.length=c.length-w},"popStack"),s(G,"lex");for(var _,E,b,U,O,T,H,B,P={};;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:(_==null&&(_=G()),b=v[E]&&v[E][_]),b===void 0||!b.length||!b[0]){var Z="";for(O in B=[],v[E])this.terminals_[O]&&O>2&&B.push("'"+this.terminals_[O]+"'");Z=k.showPosition?"Parse error on line "+(L+1)+`:
2
- `+k.showPosition()+`
3
- Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(L+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:R,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(k.yytext),c.push(k.yylloc),a.push(b[1]),_=null,X=k.yyleng,x=k.yytext,L=k.yylineno,R=k.yylloc;break;case 2:if(T=this.productions_[b[1]][1],P.$=f[f.length-T],P._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},ht&&(P._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),(U=this.performAction.apply(P,[x,X,L,M.yy,b[1],f,c].concat(lt)))!==void 0)return U;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),c=c.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),f.push(P.$),c.push(P._$),H=v[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},m=function(){return{EOF:1,parseError:s(function(n,p){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,p)},"parseError"),setInput:s(function(n,p){return this.yy=p||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:s(function(n){var p=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(n){this.unput(this.match.slice(n))},"less"),pastInput:s(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var n=this.pastInput(),p=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+p+"^"},"showPosition"),test_match:s(function(n,p){var a,u,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),(u=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var c in f)this[c]=f[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var n,p,a,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),c=0;c<f.length;c++)if((a=this._input.match(this.rules[f[c]]))&&(!p||a[0].length>p[0].length)){if(p=a,u=c,this.options.backtrack_lexer){if((n=this.test_match(a,f[c]))!==!1)return n;if(this._backtrack){p=!1;continue}return!1}if(!this.options.flex)break}return p?(n=this.test_match(p,f[u]))!==!1&&n:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,p,a,u){switch(a){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),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],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}}}}();function g(){this.yy={}}return y.lexer=m,s(g,"Parser"),g.prototype=y,y.Parser=g,new g}();z.parser=z;var wt=z,C="",Y=[],j=[],V=[],$t=s(function(){Y.length=0,j.length=0,C="",V.length=0,bt()},"clear"),vt=s(function(t){C=t,Y.push(t)},"addSection"),Tt=s(function(){return Y},"getSections"),St=s(function(){let t=tt(),e=0;for(;!t&&e<100;)t=tt(),e++;return j.push(...V),j},"getTasks"),Mt=s(function(){const t=[];return j.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),Et=s(function(t,e){const r=e.substr(1).split(":");let l=0,i=[];r.length===1?(l=Number(r[0]),i=[]):(l=Number(r[0]),i=r[1].split(","));const o=i.map(d=>d.trim()),h={section:C,type:C,people:o,task:t,score:l};V.push(h)},"addTask"),At=s(function(t){const e={section:C,type:C,description:t,task:t,classes:[]};j.push(e)},"addTaskOrg"),tt=s(function(){const t=s(function(r){return V[r].processed},"compileTask");let e=!0;for(const[r,l]of V.entries())t(r),e=e&&l.processed;return e},"compileTasks"),It=s(function(){return Mt()},"getActors"),et={getConfig:s(()=>A().journey,"getConfig"),clear:$t,setDiagramTitle:kt,getDiagramTitle:xt,setAccTitle:mt,getAccTitle:gt,setAccDescription:ft,getAccDescription:dt,addSection:vt,getSections:Tt,getTasks:St,addTask:Et,addTaskOrg:At,getActors:It},Pt=s(t=>`.label {
7
- font-family: ${t.fontFamily};
8
- color: ${t.textColor};
9
- }
10
- .mouth {
11
- stroke: #666;
12
- }
13
-
14
- line {
15
- stroke: ${t.textColor}
16
- }
17
-
18
- .legend {
19
- fill: ${t.textColor};
20
- font-family: ${t.fontFamily};
21
- }
22
-
23
- .label text {
24
- fill: #333;
25
- }
26
- .label {
27
- color: ${t.textColor}
28
- }
29
-
30
- .face {
31
- ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
- stroke: #999;
33
- }
34
-
35
- .node rect,
36
- .node circle,
37
- .node ellipse,
38
- .node polygon,
39
- .node path {
40
- fill: ${t.mainBkg};
41
- stroke: ${t.nodeBorder};
42
- stroke-width: 1px;
43
- }
44
-
45
- .node .label {
46
- text-align: center;
47
- }
48
- .node.clickable {
49
- cursor: pointer;
50
- }
51
-
52
- .arrowheadPath {
53
- fill: ${t.arrowheadColor};
54
- }
55
-
56
- .edgePath .path {
57
- stroke: ${t.lineColor};
58
- stroke-width: 1.5px;
59
- }
60
-
61
- .flowchart-link {
62
- stroke: ${t.lineColor};
63
- fill: none;
64
- }
65
-
66
- .edgeLabel {
67
- background-color: ${t.edgeLabelBackground};
68
- rect {
69
- opacity: 0.5;
70
- }
71
- text-align: center;
72
- }
73
-
74
- .cluster rect {
75
- }
76
-
77
- .cluster text {
78
- fill: ${t.titleColor};
79
- }
80
-
81
- div.mermaidTooltip {
82
- position: absolute;
83
- text-align: center;
84
- max-width: 200px;
85
- padding: 2px;
86
- font-family: ${t.fontFamily};
87
- font-size: 12px;
88
- background: ${t.tertiaryColor};
89
- border: 1px solid ${t.border2};
90
- border-radius: 2px;
91
- pointer-events: none;
92
- z-index: 100;
93
- }
94
-
95
- .task-type-0, .section-type-0 {
96
- ${t.fillType0?`fill: ${t.fillType0}`:""};
97
- }
98
- .task-type-1, .section-type-1 {
99
- ${t.fillType0?`fill: ${t.fillType1}`:""};
100
- }
101
- .task-type-2, .section-type-2 {
102
- ${t.fillType0?`fill: ${t.fillType2}`:""};
103
- }
104
- .task-type-3, .section-type-3 {
105
- ${t.fillType0?`fill: ${t.fillType3}`:""};
106
- }
107
- .task-type-4, .section-type-4 {
108
- ${t.fillType0?`fill: ${t.fillType4}`:""};
109
- }
110
- .task-type-5, .section-type-5 {
111
- ${t.fillType0?`fill: ${t.fillType5}`:""};
112
- }
113
- .task-type-6, .section-type-6 {
114
- ${t.fillType0?`fill: ${t.fillType6}`:""};
115
- }
116
- .task-type-7, .section-type-7 {
117
- ${t.fillType0?`fill: ${t.fillType7}`:""};
118
- }
119
-
120
- .actor-0 {
121
- ${t.actor0?`fill: ${t.actor0}`:""};
122
- }
123
- .actor-1 {
124
- ${t.actor1?`fill: ${t.actor1}`:""};
125
- }
126
- .actor-2 {
127
- ${t.actor2?`fill: ${t.actor2}`:""};
128
- }
129
- .actor-3 {
130
- ${t.actor3?`fill: ${t.actor3}`:""};
131
- }
132
- .actor-4 {
133
- ${t.actor4?`fill: ${t.actor4}`:""};
134
- }
135
- .actor-5 {
136
- ${t.actor5?`fill: ${t.actor5}`:""};
137
- }
138
- `,"getStyles"),q=s(function(t,e){return yt(t,e)},"drawRect"),Ct=s(function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function o(y){const m=Q().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function h(y){const m=Q().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function d(y){y.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")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s(o,"smile"),s(h,"sad"),s(d,"ambivalent"),e.score>3?o(i):e.score<3?h(i):d(i),l},"drawFace"),nt=s(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),it=s(function(t,e){return pt(t,e)},"drawText"),jt=s(function(t,e){function r(i,o,h,d,y){return i+","+o+" "+(i+h)+","+o+" "+(i+h)+","+(o+d-y)+" "+(i+h-1.2*y)+","+(o+d)+" "+i+","+(o+d)}s(r,"genPoints");const l=t.append("polygon");l.attr("points",r(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,it(t,e)},"drawLabel"),Vt=s(function(t,e,r){const l=t.append("g"),i=J();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,q(l,i),at(r)(e.text,l,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),st=-1,Ft=s(function(t,e,r){const l=e.x+r.width/2,i=t.append("g");st++,i.append("line").attr("id","task"+st).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ct(i,{cx:l,cy:300+30*(5-e.score),score:e.score});const o=J();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,q(i,o);let h=e.x+14;e.people.forEach(d=>{const y=e.actors[d].color,m={cx:h,cy:e.y,r:7,fill:y,stroke:"#000",title:d,pos:e.actors[d].position};nt(i,m),h+=10}),at(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),Lt=s(function(t,e){ut(t,e)},"drawBackgroundRect"),at=function(){function t(i,o,h,d,y,m,g,n){l(o.append("text").attr("x",h+y/2).attr("y",d+m/2+5).style("font-color",n).style("text-anchor","middle").text(i),g)}function e(i,o,h,d,y,m,g,n,p){const{taskFontSize:a,taskFontFamily:u}=n,f=i.split(/<br\s*\/?>/gi);for(let c=0;c<f.length;c++){const v=c*a-a*(f.length-1)/2,x=o.append("text").attr("x",h+y/2).attr("y",d).attr("fill",p).style("text-anchor","middle").style("font-size",a).style("font-family",u);x.append("tspan").attr("x",h+y/2).attr("dy",v).text(f[c]),x.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(x,g)}}function r(i,o,h,d,y,m,g,n){const p=o.append("switch"),a=p.append("foreignObject").attr("x",h).attr("y",d).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,p,h,d,y,m,g,n),l(a,g)}function l(i,o){for(const h in o)h in o&&i.attr(h,o[h])}return s(t,"byText"),s(e,"byTspan"),s(r,"byFo"),s(l,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}}(),F={drawRect:q,drawCircle:nt,drawSection:Vt,drawText:it,drawLabel:jt,drawTask:Ft,drawBackgroundRect:Lt,initGraphics:s(function(t){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")},"initGraphics")},Ot=s(function(t){Object.keys(t).forEach(function(e){D[e]=t[e]})},"setConf"),S={};function rt(t){const e=A().journey;let r=60;Object.keys(S).forEach(l=>{const i=S[l].color,o={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:S[l].position};F.drawCircle(t,o);const h={x:40,y:r+7,fill:"#666",text:l,textMargin:5|e.boxTextMargin};F.drawText(t,h),r+=20})}s(rt,"drawActorLegend");var D=A().journey,I=D.leftMargin,Bt=s(function(t,e,r,l){const i=A().journey,o=A().securityLevel;let h;o==="sandbox"&&(h=K("#i"+e));const d=K(o==="sandbox"?h.nodes()[0].contentDocument.body:"body");$.init();const y=d.select("#"+e);F.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),n=l.db.getActors();for(const v in S)delete S[v];let p=0;n.forEach(v=>{S[v]={color:i.actorColours[p%i.actorColours.length],position:p},p++}),rt(y),$.insert(0,0,I,50*Object.keys(S).length),Dt(y,m,0);const a=$.getBounds();g&&y.append("text").text(g).attr("x",I).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const u=a.stopy-a.starty+2*i.diagramMarginY,f=I+a.stopx+2*i.diagramMarginX;_t(y,u,f,i.useMaxWidth),y.append("line").attr("x1",I).attr("y1",4*i.height).attr("x2",f-I-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const c=g?70:0;y.attr("viewBox",`${a.startx} -25 ${f} ${u+c}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",u+c+25)},"draw"),$={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,r,l){t[e]===void 0?t[e]=r:t[e]=l(r,t[e])},"updateVal"),updateBounds:s(function(t,e,r,l){const i=A().journey,o=this;let h=0;function d(y){return s(function(m){h++;const g=o.sequenceItems.length-h+1;o.updateVal(m,"starty",e-g*i.boxMargin,Math.min),o.updateVal(m,"stopy",l+g*i.boxMargin,Math.max),o.updateVal($.data,"startx",t-g*i.boxMargin,Math.min),o.updateVal($.data,"stopx",r+g*i.boxMargin,Math.max),y!=="activation"&&(o.updateVal(m,"startx",t-g*i.boxMargin,Math.min),o.updateVal(m,"stopx",r+g*i.boxMargin,Math.max),o.updateVal($.data,"starty",e-g*i.boxMargin,Math.min),o.updateVal($.data,"stopy",l+g*i.boxMargin,Math.max))},"updateItemBounds")}s(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:s(function(t,e,r,l){const i=Math.min(t,r),o=Math.max(t,r),h=Math.min(e,l),d=Math.max(e,l);this.updateVal($.data,"startx",i,Math.min),this.updateVal($.data,"starty",h,Math.min),this.updateVal($.data,"stopx",o,Math.max),this.updateVal($.data,"stopy",d,Math.max),this.updateBounds(i,h,o,d)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},W=D.sectionFills,ot=D.sectionColours,Dt=s(function(t,e,r){const l=A().journey;let i="";const o=r+(2*l.height+l.diagramMarginY);let h=0,d="#CCC",y="black",m=0;for(const[g,n]of e.entries()){if(i!==n.section){d=W[h%W.length],m=h%W.length,y=ot[h%ot.length];let a=0;const u=n.section;for(let c=g;c<e.length&&e[c].section==u;c++)a+=1;const f={x:g*l.taskMargin+g*l.width+I,y:50,text:n.section,fill:d,num:m,colour:y,taskCount:a};F.drawSection(t,f,l),i=n.section,h++}const p=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=g*l.taskMargin+g*l.width+I,n.y=o,n.width=l.diagramMarginX,n.height=l.diagramMarginY,n.colour=y,n.fill=d,n.num=m,n.actors=p,F.drawTask(t,n,l),$.insert(n.x,n.y,n.x+n.width+l.taskMargin,450)}},"drawTasks"),ct={setConf:Ot,draw:Bt},Nt={parser:wt,db:et,renderer:ct,styles:Pt,init:s(t=>{ct.setConf(t.journey),et.clear()},"init")};export{Nt as diagram};
@@ -1,88 +0,0 @@
1
- import{_ as a,l as V,c as W,I as gt,Y as ut,$ as dt,a0 as pt,S as yt,G as K,h as B,t as ft,J as mt,T as bt,V as rt,W as at}from"./mermaid-DUttmi7o.js";import"./index-h968mbDY.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";var q=function(){var t=a(function(e,l,r,o){for(r=r||{},o=e.length;o--;r[e[o]]=l);return r},"o"),d=[1,4],u=[1,13],s=[1,12],f=[1,15],p=[1,16],g=[1,20],y=[1,19],D=[6,7,8],v=[1,26],N=[1,24],A=[1,25],i=[6,7,11],G=[1,31],L=[6,7,11,24],F=[1,6,13,16,17,20,23],U=[1,35],M=[1,36],w=[1,6,7,11,13,16,17,20,23],E=[1,38],I={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(e,l,r,o,h,n,j){var c=n.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[c-1].id),o.addNode(n[c-2].length,n[c-1].id,n[c-1].descr,n[c-1].type,n[c]);break;case 16:o.getLogger().info("Node: ",n[c].id),o.addNode(n[c-1].length,n[c].id,n[c].descr,n[c].type);break;case 17:o.getLogger().trace("Icon: ",n[c]),o.decorateNode({icon:n[c]});break;case 18:case 23:o.decorateNode({class:n[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",n[c-1].id),o.addNode(0,n[c-1].id,n[c-1].descr,n[c-1].type,n[c]);break;case 21:o.getLogger().trace("Node: ",n[c].id),o.addNode(0,n[c].id,n[c].descr,n[c].type);break;case 22:o.decorateNode({icon:n[c]});break;case 27:o.getLogger().trace("node found ..",n[c-2]),this.$={id:n[c-1],descr:n[c-1],type:o.getType(n[c-2],n[c])};break;case 28:this.$={id:n[c],descr:n[c],type:0};break;case 29:o.getLogger().trace("node found ..",n[c-3]),this.$={id:n[c-3],descr:n[c-1],type:o.getType(n[c-2],n[c])};break;case 30:this.$=n[c-1]+n[c];break;case 31:this.$=n[c]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:u,7:[1,10],9:9,12:11,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},t(D,[2,3]),{1:[2,2]},t(D,[2,4]),t(D,[2,5]),{1:[2,6],6:u,12:21,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},{6:u,9:22,12:11,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},{6:v,7:N,10:23,11:A},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:g,23:y}),t(i,[2,19]),t(i,[2,21],{15:30,24:G}),t(i,[2,22]),t(i,[2,23]),t(L,[2,25]),t(L,[2,26]),t(L,[2,28],{20:[1,32]}),{21:[1,33]},{6:v,7:N,10:34,11:A},{1:[2,7],6:u,12:21,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},t(F,[2,14],{7:U,11:M}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(i,[2,16],{15:37,24:G}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:E}),t(L,[2,31]),{21:[1,39]},{22:[1,40]},t(F,[2,13],{7:U,11:M}),t(w,[2,11]),t(w,[2,12]),t(i,[2,15],{24:E}),t(L,[2,30]),{22:[1,41]},t(L,[2,27]),t(L,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(e,l){if(!l.recoverable){var r=new Error(e);throw r.hash=l,r}this.trace(e)},"parseError"),parse:a(function(e){var l=this,r=[0],o=[],h=[null],n=[],j=this.table,c="",H=0,et=0,lt=n.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(T.yy[Y]=this.yy[Y]);b.setInput(e,T.yy),T.yy.lexer=b,T.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var J=b.yylloc;n.push(J);var ht=b.options&&b.options.ranges;function nt(){var S;return typeof(S=o.pop()||b.lex()||1)!="number"&&(S instanceof Array&&(S=(o=S).pop()),S=l.symbols_[S]||S),S}typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a(function(S){r.length=r.length-2*S,h.length=h.length-S,n.length=n.length-S},"popStack"),a(nt,"lex");for(var _,R,k,it,z,C,st,X,P={};;){if(R=r[r.length-1],this.defaultActions[R]?k=this.defaultActions[R]:(_==null&&(_=nt()),k=j[R]&&j[R][_]),k===void 0||!k.length||!k[0]){var ot="";for(z in X=[],j[R])this.terminals_[z]&&z>2&&X.push("'"+this.terminals_[z]+"'");ot=b.showPosition?"Parse error on line "+(H+1)+`:
2
- `+b.showPosition()+`
3
- Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(H+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(ot,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:J,expected:X})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+_);switch(k[0]){case 1:r.push(_),h.push(b.yytext),n.push(b.yylloc),r.push(k[1]),_=null,et=b.yyleng,c=b.yytext,H=b.yylineno,J=b.yylloc;break;case 2:if(C=this.productions_[k[1]][1],P.$=h[h.length-C],P._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},ht&&(P._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),(it=this.performAction.apply(P,[c,et,H,T.yy,k[1],h,n].concat(lt)))!==void 0)return it;C&&(r=r.slice(0,-1*C*2),h=h.slice(0,-1*C),n=n.slice(0,-1*C)),r.push(this.productions_[k[1]][0]),h.push(P.$),n.push(P._$),st=j[r[r.length-2]][r[r.length-1]],r.push(st);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:a(function(e,l){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,l)},"parseError"),setInput:a(function(e,l){return this.yy=l||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:a(function(e){var l=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===o.length?this.yylloc.first_column:0)+o[o.length-r.length].length-r[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:a(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var e=this.pastInput(),l=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
5
- `+l+"^"},"showPosition"),test_match:a(function(e,l){var r,o,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),(o=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var n in h)this[n]=h[n];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;var e,l,r,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),n=0;n<h.length;n++)if((r=this._input.match(this.rules[h[n]]))&&(!l||r[0].length>l[0].length)){if(l=r,o=n,this.options.backtrack_lexer){if((e=this.test_match(r,h[n]))!==!1)return e;if(this._backtrack){l=!1;continue}return!1}if(!this.options.flex)break}return l?(e=this.test_match(l,h[o]))!==!1&&e:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var e=this.next();return e||this.lex()},"lex"),begin:a(function(e){this.conditionStack.push(e)},"begin"),popState:a(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:a(function(e){this.begin(e)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(e,l,r,o){switch(r){case 0:return this.pushState("shapeData"),l.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const h=/\n\s*/g;return l.yytext=l.yytext.replace(h,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return e.getLogger().trace("Found comment",l.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",l.yytext),"NODE_DESCR";case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",l.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return e.getLogger().trace("Long description:",l.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}}();function $(){this.yy={}}return I.lexer=O,a($,"Parser"),$.prototype=I,I.Parser=$,new $}();q.parser=q;var Et=q,x=[],Q=[],Z=0,tt={},_t=a(()=>{x=[],Q=[],Z=0,tt={}},"clear"),kt=a(t=>{if(x.length===0)return null;const d=x[0].level;let u=null;for(let s=x.length-1;s>=0;s--)if(x[s].level!==d||u||(u=x[s]),x[s].level<d)throw new Error('Items without section detected, found section ("'+x[s].label+'")');return t===(u==null?void 0:u.level)?null:u},"getSection"),ct=a(function(){return Q},"getSections"),St=a(function(){const t=[],d=ct(),u=W();for(const s of d){const f={id:s.id,label:B(s.label??"",u),isGroup:!0,ticket:s.ticket,shape:"kanbanSection",level:s.level,look:u.look};t.push(f);const p=x.filter(g=>g.parentId===s.id);for(const g of p){const y={id:g.id,parentId:s.id,label:B(g.label??"",u),isGroup:!1,ticket:g==null?void 0:g.ticket,priority:g==null?void 0:g.priority,assigned:g==null?void 0:g.assigned,icon:g==null?void 0:g.icon,shape:"kanbanItem",level:g.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(y)}}return{nodes:t,edges:[],other:{},config:W()}},"getData"),xt=a((t,d,u,s,f)=>{var v,N;const p=W();let g=((v=p.mindmap)==null?void 0:v.padding)??K.mindmap.padding;switch(s){case m.ROUNDED_RECT:case m.RECT:case m.HEXAGON:g*=2}const y={id:B(d,p)||"kbn"+Z++,level:t,label:B(u,p),width:((N=p.mindmap)==null?void 0:N.maxNodeWidth)??K.mindmap.maxNodeWidth,padding:g,isGroup:!1};if(f!==void 0){let A;A=f.includes(`
7
- `)?f+`
8
- `:`{
9
- `+f+`
10
- }`;const i=ft(A,{schema:mt});if(i.shape&&(i.shape!==i.shape.toLowerCase()||i.shape.includes("_")))throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);i!=null&&i.shape&&i.shape==="kanbanItem"&&(y.shape=i==null?void 0:i.shape),i!=null&&i.label&&(y.label=i==null?void 0:i.label),i!=null&&i.icon&&(y.icon=i==null?void 0:i.icon.toString()),i!=null&&i.assigned&&(y.assigned=i==null?void 0:i.assigned.toString()),i!=null&&i.ticket&&(y.ticket=i==null?void 0:i.ticket.toString()),i!=null&&i.priority&&(y.priority=i==null?void 0:i.priority)}const D=kt(t);D?y.parentId=D.id||"kbn"+Z++:Q.push(y),x.push(y)},"addNode"),m={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Nt={clear:_t,addNode:xt,getSections:ct,getData:St,nodeType:m,getType:a((t,d)=>{switch(V.debug("In get type",t,d),t){case"[":return m.RECT;case"(":return d===")"?m.ROUNDED_RECT:m.CLOUD;case"((":return m.CIRCLE;case")":return m.CLOUD;case"))":return m.BANG;case"{{":return m.HEXAGON;default:return m.DEFAULT}},"getType"),setElementForId:a((t,d)=>{tt[t]=d},"setElementForId"),decorateNode:a(t=>{if(!t)return;const d=W(),u=x[x.length-1];t.icon&&(u.icon=B(t.icon,d)),t.class&&(u.cssClasses=B(t.class,d))},"decorateNode"),type2Str:a(t=>{switch(t){case m.DEFAULT:return"no-border";case m.RECT:return"rect";case m.ROUNDED_RECT:return"rounded-rect";case m.CIRCLE:return"circle";case m.CLOUD:return"cloud";case m.BANG:return"bang";case m.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:a(()=>V,"getLogger"),getElementById:a(t=>tt[t],"getElementById")},Lt={draw:a(async(t,d,u,s)=>{var L,F,U,M,w;V.debug(`Rendering kanban diagram
11
- `+t);const f=s.db.getData(),p=W();p.htmlLabels=!1;const g=gt(d),y=g.append("g");y.attr("class","sections");const D=g.append("g");D.attr("class","items");const v=f.nodes.filter(E=>E.isGroup);let N=0;const A=[];let i=25;for(const E of v){const I=((L=p==null?void 0:p.kanban)==null?void 0:L.sectionWidth)||200;N+=1,E.x=I*N+10*(N-1)/2,E.width=I,E.y=0,E.height=3*I,E.rx=5,E.ry=5,E.cssClasses=E.cssClasses+" section-"+N;const O=await ut(y,E);i=Math.max(i,(F=O==null?void 0:O.labelBBox)==null?void 0:F.height),A.push(O)}let G=0;for(const E of v){const I=A[G];G+=1;const O=((U=p==null?void 0:p.kanban)==null?void 0:U.sectionWidth)||200,$=3*-O/2+i;let e=$;const l=f.nodes.filter(h=>h.parentId===E.id);for(const h of l){if(h.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");h.x=E.x,h.width=O-15;const n=(await dt(D,h,{config:p})).node().getBBox();h.y=e+n.height/2,await pt(h),e=h.y+n.height/2+5}const r=I.cluster.select("rect"),o=Math.max(e-$+30,50)+(i-25);r.attr("height",o)}yt(void 0,g,((M=p.mindmap)==null?void 0:M.padding)??K.kanban.padding,((w=p.mindmap)==null?void 0:w.useMaxWidth)??K.kanban.useMaxWidth)},"draw")},Dt=a(t=>{let d="";for(let s=0;s<t.THEME_COLOR_LIMIT;s++)t["lineColor"+s]=t["lineColor"+s]||t["cScaleInv"+s],bt(t["lineColor"+s])?t["lineColor"+s]=rt(t["lineColor"+s],20):t["lineColor"+s]=at(t["lineColor"+s],20);const u=a((s,f)=>t.darkMode?at(s,f):rt(s,f),"adjuster");for(let s=0;s<t.THEME_COLOR_LIMIT;s++){const f=""+(17-3*s);d+=`
12
- .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
13
- fill: ${u(t["cScale"+s],10)};
14
- stroke: ${u(t["cScale"+s],10)};
15
-
16
- }
17
- .section-${s-1} text {
18
- fill: ${t["cScaleLabel"+s]};
19
- }
20
- .node-icon-${s-1} {
21
- font-size: 40px;
22
- color: ${t["cScaleLabel"+s]};
23
- }
24
- .section-edge-${s-1}{
25
- stroke: ${t["cScale"+s]};
26
- }
27
- .edge-depth-${s-1}{
28
- stroke-width: ${f};
29
- }
30
- .section-${s-1} line {
31
- stroke: ${t["cScaleInv"+s]} ;
32
- stroke-width: 3;
33
- }
34
-
35
- .disabled, .disabled circle, .disabled text {
36
- fill: lightgray;
37
- }
38
- .disabled text {
39
- fill: #efefef;
40
- }
41
-
42
- .node rect,
43
- .node circle,
44
- .node ellipse,
45
- .node polygon,
46
- .node path {
47
- fill: ${t.background};
48
- stroke: ${t.nodeBorder};
49
- stroke-width: 1px;
50
- }
51
-
52
- .kanban-ticket-link {
53
- fill: ${t.background};
54
- stroke: ${t.nodeBorder};
55
- text-decoration: underline;
56
- }
57
- `}return d},"genSections"),It={db:Nt,renderer:Lt,parser:Et,styles:a(t=>`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${Dt(t)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${t.git0};
64
- }
65
- .section-root text {
66
- fill: ${t.gitBranchLabel0};
67
- }
68
- .icon-container {
69
- height:100%;
70
- display: flex;
71
- justify-content: center;
72
- align-items: center;
73
- }
74
- .edge {
75
- fill: none;
76
- }
77
- .cluster-label, .label {
78
- color: ${t.textColor};
79
- fill: ${t.textColor};
80
- }
81
- .kanban-label {
82
- dy: 1em;
83
- alignment-baseline: middle;
84
- text-anchor: middle;
85
- dominant-baseline: middle;
86
- text-align: center;
87
- }
88
- `,"getStyles")};export{It as diagram};