ranui 0.2.0-alpha.7 → 0.2.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  5. package/dist/arc-D25LhgTs.cjs +1 -0
  6. package/dist/arc-DRPGof21.js +82 -0
  7. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  11. package/dist/array-By5736M5.js +7 -0
  12. package/dist/array-C3cbN3GY.cjs +1 -0
  13. package/dist/arrow-down-Bi5kqUrX.js +12 -0
  14. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  15. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  16. package/dist/builder.d.ts +4 -4
  17. package/dist/builder.js +39 -30
  18. package/dist/builtin-BkM0LLof.js +416 -0
  19. package/dist/button-D0zcnKnG.js +117 -0
  20. package/dist/button.js +1 -1
  21. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  22. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  23. package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
  24. package/dist/card.js +1 -1
  25. package/dist/channel-C9WSNwcS.cjs +1 -0
  26. package/dist/channel-k5-UxdcV.js +5 -0
  27. package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  30. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  31. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  32. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  33. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  34. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  35. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  36. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  37. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  38. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  39. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  40. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  41. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  42. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  43. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  44. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  45. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  46. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  47. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  48. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  49. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  50. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  51. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  52. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  53. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  54. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  55. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  56. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  57. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  58. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  59. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  60. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  61. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  62. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  63. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  64. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  65. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  66. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  67. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  68. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  69. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  70. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  71. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  72. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  73. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  74. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  75. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  76. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  77. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  78. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  79. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  80. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  82. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  83. package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
  84. package/dist/colorpicker.js +1 -1
  85. package/dist/components/colorpicker/index.d.ts +3 -3
  86. package/dist/components/glass/index.d.ts +52 -0
  87. package/dist/components/icon/builtin.d.ts +9 -0
  88. package/dist/components/icon/core-icons.d.ts +13 -0
  89. package/dist/components/icon/index.d.ts +8 -0
  90. package/dist/components/mermaid/index.d.ts +52 -0
  91. package/dist/components/modal/index.d.ts +9 -0
  92. package/dist/components/route/index.d.ts +10 -4
  93. package/dist/components/router/index.d.ts +3 -0
  94. package/dist/content-Rry-U6ir.js +39 -0
  95. package/dist/content.js +5 -0
  96. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  97. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  98. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  99. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  100. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  101. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  102. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  103. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  104. package/dist/dagre-D1-W1tt6.cjs +1 -0
  105. package/dist/dagre-D8GLTwuf.js +1578 -0
  106. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  107. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  108. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  109. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  110. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  111. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  112. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  113. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  114. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  115. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  116. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  117. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  118. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  119. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  120. package/dist/dist-C0Fwsvsq.js +70 -0
  121. package/dist/dist-C20XxSsP.cjs +1 -0
  122. package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
  123. package/dist/dropdown.js +1 -1
  124. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  125. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  126. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  127. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  128. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  129. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  130. package/dist/factory-BkvRcCOx.js +482 -0
  131. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  132. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  133. package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
  134. package/dist/form.js +1 -1
  135. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  136. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  137. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  138. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  139. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  140. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  141. package/dist/glass-Bj1Zf8Hy.js +115 -0
  142. package/dist/glass.js +5 -0
  143. package/dist/graphlib-CCKThIKP.js +1104 -0
  144. package/dist/graphlib-Du-578Js.cjs +1 -0
  145. package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
  146. package/dist/icon.js +4 -3
  147. package/dist/icons.js +5 -0
  148. package/dist/iife/button.iife.js +1 -1
  149. package/dist/iife/card.iife.js +1 -1
  150. package/dist/iife/checkbox.iife.js +1 -1
  151. package/dist/iife/colorpicker.iife.js +2 -2
  152. package/dist/iife/content.iife.js +1 -0
  153. package/dist/iife/dropdown.iife.js +1 -1
  154. package/dist/iife/form.iife.js +1 -1
  155. package/dist/iife/glass.iife.js +1 -0
  156. package/dist/iife/icon.iife.js +1 -1
  157. package/dist/iife/image.iife.js +1 -1
  158. package/dist/iife/input.iife.js +1 -1
  159. package/dist/iife/loading.iife.js +1 -1
  160. package/dist/iife/math.iife.js +14 -14
  161. package/dist/iife/mermaid.iife.js +3535 -0
  162. package/dist/iife/message.iife.js +1 -1
  163. package/dist/iife/modal.iife.js +1 -1
  164. package/dist/iife/player.iife.js +8 -8
  165. package/dist/iife/popover.iife.js +1 -1
  166. package/dist/iife/progress.iife.js +1 -1
  167. package/dist/iife/radar.iife.js +1 -1
  168. package/dist/iife/route.iife.js +1 -1
  169. package/dist/iife/router.iife.js +1 -1
  170. package/dist/iife/scratch.iife.js +1 -1
  171. package/dist/iife/section.iife.js +1 -1
  172. package/dist/iife/select.iife.js +2 -2
  173. package/dist/iife/skeleton.iife.js +1 -1
  174. package/dist/iife/tab.iife.js +1 -1
  175. package/dist/iife/tabpane.iife.js +1 -1
  176. package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
  177. package/dist/image.js +1 -1
  178. package/dist/index.cjs +257 -23
  179. package/dist/index.d.ts +11 -1
  180. package/dist/index.iife.js +3842 -74
  181. package/dist/index.js +86 -78
  182. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  183. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  184. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  185. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  186. package/dist/init-1VpIn1S3.js +16 -0
  187. package/dist/init-CbDwVtpO.cjs +1 -0
  188. package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
  189. package/dist/input.js +1 -1
  190. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  191. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  192. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  193. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  194. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  195. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  196. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  197. package/dist/katex-Pg2EqTH0.js +23485 -0
  198. package/dist/line-BIPmUVxO.js +33 -0
  199. package/dist/line-CAB5QHC6.cjs +1 -0
  200. package/dist/linear-B2AM4ZBe.js +259 -0
  201. package/dist/linear-CSAfNEpl.cjs +1 -0
  202. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  203. package/dist/link.js +1 -1
  204. package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
  205. package/dist/loading.js +1 -1
  206. package/dist/map-BC2bk_rV.cjs +1 -0
  207. package/dist/map-DMSWkcq6.js +208 -0
  208. package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
  209. package/dist/math.js +1 -1
  210. package/dist/mermaid-CMhm7npE.js +261 -0
  211. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  212. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  213. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  214. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  215. package/dist/mermaid.js +5 -0
  216. package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
  217. package/dist/message.js +1 -1
  218. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  219. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  220. package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
  221. package/dist/modal.js +1 -1
  222. package/dist/ordinal-BMN81JG2.js +64 -0
  223. package/dist/ordinal-BplLHIij.cjs +1 -0
  224. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  225. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  226. package/dist/path-Bja5PoYn.js +82 -0
  227. package/dist/path-DmfWsuKi.cjs +1 -0
  228. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  229. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  230. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  231. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  232. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  233. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  234. package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
  235. package/dist/player.js +1 -1
  236. package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
  237. package/dist/popover.js +1 -1
  238. package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
  239. package/dist/progress.js +1 -1
  240. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  241. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  242. package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
  243. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  244. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  245. package/dist/radar.js +1 -1
  246. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  247. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  248. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  249. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  251. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  252. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  253. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  254. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  255. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  256. package/dist/ranui.css +1 -1
  257. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  258. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  259. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  260. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  261. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  262. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  263. package/dist/route-pR5P4ann.js +116 -0
  264. package/dist/route.js +1 -1
  265. package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
  266. package/dist/router.js +1 -1
  267. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  268. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  269. package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
  270. package/dist/scratch.js +1 -1
  271. package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
  272. package/dist/section.js +1 -1
  273. package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
  274. package/dist/select.js +1 -1
  275. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  276. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  277. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  278. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  279. package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
  280. package/dist/skeleton.js +1 -1
  281. package/dist/src-C9EhKhbk.cjs +1 -0
  282. package/dist/src-DtRLxcYO.js +2104 -0
  283. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  284. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  285. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  286. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  287. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  288. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  289. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  290. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  291. package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
  292. package/dist/tab.js +1 -1
  293. package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
  294. package/dist/tabpane.js +1 -1
  295. package/dist/test/unit/icon.builtin.test.d.ts +1 -0
  296. package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
  297. package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
  298. package/dist/test/unit/utils.router.match.test.d.ts +1 -0
  299. package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
  300. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  301. package/dist/theme-switch.js +1 -1
  302. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  303. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  304. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  305. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  306. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  307. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  308. package/dist/utils/builder/core.d.ts +153 -16
  309. package/dist/utils/builder/factory.d.ts +1 -1
  310. package/dist/utils/builder/index.d.ts +3 -3
  311. package/dist/utils/builder/signal.d.ts +93 -64
  312. package/dist/utils/router/index.d.ts +13 -3
  313. package/dist/utils/router.js +95 -54
  314. package/dist/utils/theme.d.ts +1 -1
  315. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  316. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  317. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  318. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  319. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  320. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  321. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  322. package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
  323. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  324. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  325. package/docs/BUILDER.md +383 -0
  326. package/docs/COMPONENTS.md +21 -3
  327. package/package.json +31 -3
  328. package/dist/button-Be_uHDZG.js +0 -117
  329. package/dist/factory-BdsO0dEW.js +0 -165
  330. package/dist/route-MQZpn2BP.js +0 -88
  331. package/dist/signal-CSSZxlK5.js +0 -57
@@ -0,0 +1,139 @@
1
+ const a=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),Z=require("./src-C9EhKhbk.cjs"),v=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),rt=require("./arc-D25LhgTs.cjs"),gt=require("./chunk-5VM5RSS4-DudUFQ_Z.cjs"),q=require("./chunk-32BRIVSS-BXVdG_nV.cjs");var J=(function(){var e=a.__name(function(r,n,s,o){for(s=s||{},o=r.length;o--;s[r[o]]=n);return s},"o"),t=[6,8,10,11,12,14,16,17,18],l=[1,9],y=[1,10],i=[1,11],c=[1,12],h=[1,13],d=[1,14],_={trace:a.__name(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:a.__name(function(n,s,o,f,p,u,k){var m=u.length-1;switch(p){case 1:return u[m-1];case 2:this.$=[];break;case 3:u[m-1].push(u[m]),this.$=u[m-1];break;case 4:case 5:this.$=u[m];break;case 6:case 7:this.$=[];break;case 8:f.setDiagramTitle(u[m].substr(6)),this.$=u[m].substr(6);break;case 9:this.$=u[m].trim(),f.setAccTitle(this.$);break;case 10:case 11:this.$=u[m].trim(),f.setAccDescription(this.$);break;case 12:f.addSection(u[m].substr(8)),this.$=u[m].substr(8);break;case 13:f.addTask(u[m-1],u[m]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:l,12:y,14:i,16:c,17:h,18:d},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:l,12:y,14:i,16:c,17:h,18:d},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:a.__name(function(n,s){if(s.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=s,o}},"parseError"),parse:a.__name(function(n){var s=this,o=[0],f=[],p=[null],u=[],k=this.table,m="",P=0,R=0,tt=0,yt=2,et=1,ft=u.slice.call(arguments,1),x=Object.create(this.lexer),A={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(A.yy[W]=this.yy[W]);x.setInput(n,A.yy),A.yy.lexer=x,A.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var O=x.yylloc;u.push(O);var pt=x.options&&x.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(T){o.length=o.length-2*T,p.length=p.length-T,u.length=u.length-T}a.__name(_t,"popStack");function nt(){var T=f.pop()||x.lex()||et;return typeof T!="number"&&(T instanceof Array&&(f=T,T=f.pop()),T=s.symbols_[T]||T),T}a.__name(nt,"lex");for(var b,X,I,w,G,V={},N,M,it,z;;){if(I=o[o.length-1],this.defaultActions[I]?w=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=nt()),w=k[I]&&k[I][b]),typeof w>"u"||!w.length||!w[0]){var U="";z=[];for(N in k[I])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");x.showPosition?U="Parse error on line "+(P+1)+`:
2
+ `+x.showPosition()+`
3
+ Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":U="Parse error on line "+(P+1)+": Unexpected "+(b==et?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(U,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:O,expected:z})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(w[0]){case 1:o.push(b),p.push(x.yytext),u.push(x.yylloc),o.push(w[1]),b=null,X?(b=X,X=null):(R=x.yyleng,m=x.yytext,P=x.yylineno,O=x.yylloc,tt>0&&tt--);break;case 2:if(M=this.productions_[w[1]][1],V.$=p[p.length-M],V._$={first_line:u[u.length-(M||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(M||1)].first_column,last_column:u[u.length-1].last_column},pt&&(V._$.range=[u[u.length-(M||1)].range[0],u[u.length-1].range[1]]),G=this.performAction.apply(V,[m,R,P,A.yy,w[1],p,u].concat(ft)),typeof G<"u")return G;M&&(o=o.slice(0,-1*M*2),p=p.slice(0,-1*M),u=u.slice(0,-1*M)),o.push(this.productions_[w[1]][0]),p.push(V.$),u.push(V._$),it=k[o[o.length-2]][o[o.length-1]],o.push(it);break;case 3:return!0}}return!0},"parse")};_.lexer=(function(){return{EOF:1,parseError:a.__name(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:a.__name(function(r,n){return this.yy=n||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={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.__name(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.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),r},"input"),unput:a.__name(function(r){var n=r.length,s=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),s.length-1&&(this.yylineno-=s.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:s?(s.length===o.length?this.yylloc.first_column:0)+o[o.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:a.__name(function(r,n){var s,o,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))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(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+r[0].length},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],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var p in f)this[p]=f[p];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,s,o;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length;p++)if(s=this._input.match(this.rules[f[p]]),s&&(!n||s[0].length>n[0].length)){if(n=s,o=p,this.options.backtrack_lexer){if(r=this.test_match(s,f[p]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,f[o]),r!==!1?r:!1):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.__name(function(){var n=this.next();return n||this.lex()},"lex"),begin:a.__name(function(n){this.conditionStack.push(n)},"begin"),popState:a.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(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.__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:a.__name(function(n){this.begin(n)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(n,s,o,f){switch(o){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;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 a.__name(g,"Parser"),g.prototype=_,_.Parser=g,new g})();J.parser=J;var mt=J,F="",Q=[],B=[],L=[],xt=a.__name(function(){Q.length=0,B.length=0,F="",L.length=0,v.clear()},"clear"),kt=a.__name(function(e){F=e,Q.push(e)},"addSection"),bt=a.__name(function(){return Q},"getSections"),vt=a.__name(function(){let e=at();const t=100;let l=0;for(;!e&&l<t;)e=at(),l++;return B.push(...L),B},"getTasks"),wt=a.__name(function(){const e=[];return B.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},"updateActors"),Tt=a.__name(function(e,t){const l=t.substr(1).split(":");let y=0,i=[];l.length===1?(y=Number(l[0]),i=[]):(y=Number(l[0]),i=l[1].split(","));const c=i.map(d=>d.trim()),h={section:F,type:F,people:c,task:e,score:y};L.push(h)},"addTask"),St=a.__name(function(e){const t={section:F,type:F,description:e,task:e,classes:[]};B.push(t)},"addTaskOrg"),at=a.__name(function(){const e=a.__name(function(l){return L[l].processed},"compileTask");let t=!0;for(const[l,y]of L.entries())e(l),t=t&&y.processed;return t},"compileTasks"),st={getConfig:a.__name(()=>v.getConfig2().journey,"getConfig"),clear:xt,setDiagramTitle:v.setDiagramTitle,getDiagramTitle:v.getDiagramTitle,setAccTitle:v.setAccTitle,getAccTitle:v.getAccTitle,setAccDescription:v.setAccDescription,getAccDescription:v.getAccDescription,addSection:kt,getSections:bt,getTasks:vt,addTask:Tt,addTaskOrg:St,getActors:a.__name(function(){return wt()},"getActors")},$t=a.__name(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.textColor};
9
+ }
10
+ .mouth {
11
+ stroke: #666;
12
+ }
13
+
14
+ line {
15
+ stroke: ${e.textColor}
16
+ }
17
+
18
+ .legend {
19
+ fill: ${e.textColor};
20
+ font-family: ${e.fontFamily};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${e.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${e.faceColor?`fill: ${e.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: ${e.mainBkg};
41
+ stroke: ${e.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: ${e.arrowheadColor};
54
+ }
55
+
56
+ .edgePath .path {
57
+ stroke: ${e.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${e.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${e.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${e.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: ${e.fontFamily};
87
+ font-size: 12px;
88
+ background: ${e.tertiaryColor};
89
+ border: 1px solid ${e.border2};
90
+ border-radius: 2px;
91
+ pointer-events: none;
92
+ z-index: 100;
93
+ }
94
+
95
+ .task-type-0, .section-type-0 {
96
+ ${e.fillType0?`fill: ${e.fillType0}`:""};
97
+ }
98
+ .task-type-1, .section-type-1 {
99
+ ${e.fillType0?`fill: ${e.fillType1}`:""};
100
+ }
101
+ .task-type-2, .section-type-2 {
102
+ ${e.fillType0?`fill: ${e.fillType2}`:""};
103
+ }
104
+ .task-type-3, .section-type-3 {
105
+ ${e.fillType0?`fill: ${e.fillType3}`:""};
106
+ }
107
+ .task-type-4, .section-type-4 {
108
+ ${e.fillType0?`fill: ${e.fillType4}`:""};
109
+ }
110
+ .task-type-5, .section-type-5 {
111
+ ${e.fillType0?`fill: ${e.fillType5}`:""};
112
+ }
113
+ .task-type-6, .section-type-6 {
114
+ ${e.fillType0?`fill: ${e.fillType6}`:""};
115
+ }
116
+ .task-type-7, .section-type-7 {
117
+ ${e.fillType0?`fill: ${e.fillType7}`:""};
118
+ }
119
+
120
+ .actor-0 {
121
+ ${e.actor0?`fill: ${e.actor0}`:""};
122
+ }
123
+ .actor-1 {
124
+ ${e.actor1?`fill: ${e.actor1}`:""};
125
+ }
126
+ .actor-2 {
127
+ ${e.actor2?`fill: ${e.actor2}`:""};
128
+ }
129
+ .actor-3 {
130
+ ${e.actor3?`fill: ${e.actor3}`:""};
131
+ }
132
+ .actor-4 {
133
+ ${e.actor4?`fill: ${e.actor4}`:""};
134
+ }
135
+ .actor-5 {
136
+ ${e.actor5?`fill: ${e.actor5}`:""};
137
+ }
138
+ ${gt.getIconStyles()}
139
+ `,"getStyles"),D=a.__name(function(e,t){return q.drawRect(e,t)},"drawRect"),Mt=a.__name(function(e,t){const y=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function c(_){const g=rt.arc_default().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}a.__name(c,"smile");function h(_){const g=rt.arc_default().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}a.__name(h,"sad");function d(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.__name(d,"ambivalent"),t.score>3?c(i):t.score<3?h(i):d(i),y},"drawFace"),ct=a.__name(function(e,t){const l=e.append("circle");return l.attr("cx",t.cx),l.attr("cy",t.cy),l.attr("class","actor-"+t.pos),l.attr("fill",t.fill),l.attr("stroke",t.stroke),l.attr("r",t.r),l.class!==void 0&&l.attr("class",l.class),t.title!==void 0&&l.append("title").text(t.title),l},"drawCircle"),ht=a.__name(function(e,t){return q.drawText(e,t)},"drawText"),Ct=a.__name(function(e,t){function l(i,c,h,d,_){return i+","+c+" "+(i+h)+","+c+" "+(i+h)+","+(c+d-_)+" "+(i+h-_*1.2)+","+(c+d)+" "+i+","+(c+d)}a.__name(l,"genPoints");const y=e.append("polygon");y.attr("points",l(t.x,t.y,50,20,7)),y.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ht(e,t)},"drawLabel"),Et=a.__name(function(e,t,l){const y=e.append("g"),i=q.getNoteRect();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=l.width*t.taskCount+l.diagramMarginX*(t.taskCount-1),i.height=l.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,D(y,i),ut(l)(t.text,y,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},l,t.colour)},"drawSection"),K=-1,Pt=a.__name(function(e,t,l,y){const i=t.x+l.width/2,c=e.append("g");K++,c.append("line").attr("id",y+"-task"+K).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Mt(c,{cx:i,cy:300+(5-t.score)*30,score:t.score});const h=q.getNoteRect();h.x=t.x,h.y=t.y,h.fill=t.fill,h.width=l.width,h.height=l.height,h.class="task task-type-"+t.num,h.rx=3,h.ry=3,D(c,h);let d=t.x+14;t.people.forEach(_=>{const g=t.actors[_].color,r={cx:d,cy:t.y,r:7,fill:g,stroke:"#000",title:_,pos:t.actors[_].position};ct(c,r),d+=10}),ut(l)(t.task,c,h.x,h.y,h.width,h.height,{class:"task"},l,t.colour)},"drawTask"),At=a.__name(function(e,t){q.drawBackgroundRect(e,t)},"drawBackgroundRect"),ut=(function(){function e(i,c,h,d,_,g,r,n){y(c.append("text").attr("x",h+_/2).attr("y",d+g/2+5).style("font-color",n).style("text-anchor","middle").text(i),r)}a.__name(e,"byText");function t(i,c,h,d,_,g,r,n,s){const{taskFontSize:o,taskFontFamily:f}=n,p=i.split(/<br\s*\/?>/gi);for(let u=0;u<p.length;u++){const k=u*o-o*(p.length-1)/2,m=c.append("text").attr("x",h+_/2).attr("y",d).attr("fill",s).style("text-anchor","middle").style("font-size",o).style("font-family",f);m.append("tspan").attr("x",h+_/2).attr("dy",k).text(p[u]),m.attr("y",d+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),y(m,r)}}a.__name(t,"byTspan");function l(i,c,h,d,_,g,r,n){const s=c.append("switch"),o=s.append("foreignObject").attr("x",h).attr("y",d).attr("width",_).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");o.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,s,h,d,_,g,r,n),y(o,r)}a.__name(l,"byFo");function y(i,c){for(const h in c)h in c&&i.attr(h,c[h])}return a.__name(y,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?l:i.textPlacement==="old"?e:t}})(),j={drawRect:D,drawCircle:ct,drawSection:Et,drawText:ht,drawLabel:Ct,drawTask:Pt,drawBackgroundRect:At,initGraphics:a.__name(function(e,t){K=-1,e.append("defs").append("marker").attr("id",t+"-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")},It=a.__name(function(e){Object.keys(e).forEach(function(t){$[t]=e[t]})},"setConf"),C={},Y=0;function dt(e){const t=v.getConfig2().journey,l=t.maxLabelWidth;Y=0;let y=60;Object.keys(C).forEach(i=>{const c=C[i].color,h={cx:20,cy:y,r:7,fill:c,stroke:"#000",pos:C[i].position};j.drawCircle(e,h);let d=e.append("text").attr("visibility","hidden").text(i);const _=d.node().getBoundingClientRect().width;d.remove();let g=[];if(_<=l)g=[i];else{const r=i.split(" ");let n="";d=e.append("text").attr("visibility","hidden"),r.forEach(s=>{const o=n?`${n} ${s}`:s;if(d.text(o),d.node().getBoundingClientRect().width>l){if(n&&g.push(n),n=s,d.text(s),d.node().getBoundingClientRect().width>l){let f="";for(const p of s)f+=p,d.text(f+"-"),d.node().getBoundingClientRect().width>l&&(g.push(f.slice(0,-1)+"-"),f=p);n=f}}else n=o}),n&&g.push(n),d.remove()}g.forEach((r,n)=>{const s={x:40,y:y+7+n*20,fill:"#666",text:r,textMargin:t.boxTextMargin??5},o=j.drawText(e,s).node().getBoundingClientRect().width;o>Y&&o>t.leftMargin-o&&(Y=o)}),y+=Math.max(20,g.length*20)})}a.__name(dt,"drawActorLegend");var $=v.getConfig2().journey,E=0,Rt=a.__name(function(e,t,l,y){const i=v.getConfig2(),c=i.journey.titleColor,h=i.journey.titleFontSize,d=i.journey.titleFontFamily,_=i.securityLevel;let g;_==="sandbox"&&(g=Z.select_default("#i"+t));const r=_==="sandbox"?Z.select_default(g.nodes()[0].contentDocument.body):Z.select_default("body");S.init();const n=r.select("#"+t);j.initGraphics(n,t);const s=y.db.getTasks(),o=y.db.getDiagramTitle(),f=y.db.getActors();for(const R in C)delete C[R];let p=0;f.forEach(R=>{C[R]={color:$.actorColours[p%$.actorColours.length],position:p},p++}),dt(n),E=$.leftMargin+Y,S.insert(0,0,E,Object.keys(C).length*50),Vt(n,s,0,t);const u=S.getBounds();o&&n.append("text").text(o).attr("x",E).attr("font-size",h).attr("font-weight","bold").attr("y",25).attr("fill",c).attr("font-family",d);const k=u.stopy-u.starty+2*$.diagramMarginY,m=E+u.stopx+2*$.diagramMarginX;v.configureSvgSize(n,k,m,$.useMaxWidth),n.append("line").attr("x1",E).attr("y1",$.height*4).attr("x2",m-E-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+t+"-arrowhead)");const P=o?70:0;n.attr("viewBox",`${u.startx} -25 ${m} ${k+P}`),n.attr("preserveAspectRatio","xMinYMin meet"),n.attr("height",k+P+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:a.__name(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:a.__name(function(e,t,l,y){e[t]===void 0?e[t]=l:e[t]=y(l,e[t])},"updateVal"),updateBounds:a.__name(function(e,t,l,y){const i=v.getConfig2().journey,c=this;let h=0;function d(_){return a.__name(function(r){h++;const n=c.sequenceItems.length-h+1;c.updateVal(r,"starty",t-n*i.boxMargin,Math.min),c.updateVal(r,"stopy",y+n*i.boxMargin,Math.max),c.updateVal(S.data,"startx",e-n*i.boxMargin,Math.min),c.updateVal(S.data,"stopx",l+n*i.boxMargin,Math.max),_!=="activation"&&(c.updateVal(r,"startx",e-n*i.boxMargin,Math.min),c.updateVal(r,"stopx",l+n*i.boxMargin,Math.max),c.updateVal(S.data,"starty",t-n*i.boxMargin,Math.min),c.updateVal(S.data,"stopy",y+n*i.boxMargin,Math.max))},"updateItemBounds")}a.__name(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:a.__name(function(e,t,l,y){const i=Math.min(e,l),c=Math.max(e,l),h=Math.min(t,y),d=Math.max(t,y);this.updateVal(S.data,"startx",i,Math.min),this.updateVal(S.data,"starty",h,Math.min),this.updateVal(S.data,"stopx",c,Math.max),this.updateVal(S.data,"stopy",d,Math.max),this.updateBounds(i,h,c,d)},"insert"),bumpVerticalPos:a.__name(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:a.__name(function(){return this.verticalPos},"getVerticalPos"),getBounds:a.__name(function(){return this.data},"getBounds")},H=$.sectionFills,lt=$.sectionColours,Vt=a.__name(function(e,t,l,y){const i=v.getConfig2().journey;let c="";const h=l+(i.height*2+i.diagramMarginY);let d=0,_="#CCC",g="black",r=0;for(const[n,s]of t.entries()){if(c!==s.section){_=H[d%H.length],r=d%H.length,g=lt[d%lt.length];let f=0;const p=s.section;for(let k=n;k<t.length&&t[k].section==p;k++)f=f+1;const u={x:n*i.taskMargin+n*i.width+E,y:50,text:s.section,fill:_,num:r,colour:g,taskCount:f};j.drawSection(e,u,i),c=s.section,d++}const o=s.people.reduce((f,p)=>(C[p]&&(f[p]=C[p]),f),{});s.x=n*i.taskMargin+n*i.width+E,s.y=h,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=g,s.fill=_,s.num=r,s.actors=o,j.drawTask(e,s,i,y),S.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),ot={setConf:It,draw:Rt},Ft={parser:mt,db:st,renderer:ot,styles:$t,init:a.__name(e=>{ot.setConf(e.journey),st.clear()},"init")};exports.diagram=Ft;
@@ -0,0 +1,89 @@
1
+ const r=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),Q=require("./src-C9EhKhbk.cjs"),p=require("./chunk-WYO6CB5R-u4mJNOcO.cjs");require("./chunk-ICXQ74PX-BbT9JaEW.cjs");const pe=require("./chunk-VAUOI2AC-DfQf5L2_.cjs");require("./chunk-HOUHSVGY-BGB3dOvI.cjs");require("./chunk-Q4XR5HBZ-aBnPq509.cjs");const fe=require("./chunk-5VM5RSS4-DudUFQ_Z.cjs");require("./chunk-OGEWGWER-DX8sW1dT.cjs");require("./chunk-C7G6YPKG-CKEeW9TM.cjs");const J=require("./chunk-ZGVPDNZ5-Cw5_HJba.cjs"),ce=require("./chunk-ZIRB5QZD-aLu-4ITN.cjs");var $=(function(){var e=r.__name(function(i,t,o,c){for(o=o||{},c=i.length;c--;o[i[c]]=t);return o},"o"),g=[1,4],f=[1,13],s=[1,12],d=[1,15],b=[1,16],S=[1,20],h=[1,19],v=[6,7,8],C=[1,26],u=[1,24],R=[1,25],N=[6,7,11],V=[1,31],O=[6,7,11,24],_=[1,6,13,16,17,20,23],w=[1,35],T=[1,36],A=[1,6,7,11,13,16,17,20,23],q=[1,38],F={trace:r.__name(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:r.__name(function(t,o,c,l,m,n,M){var a=n.length-1;switch(m){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[a-1].id),l.addNode(n[a-2].length,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 16:l.getLogger().info("Node: ",n[a].id),l.addNode(n[a-1].length,n[a].id,n[a].descr,n[a].type);break;case 17:l.getLogger().trace("Icon: ",n[a]),l.decorateNode({icon:n[a]});break;case 18:case 23:l.decorateNode({class:n[a]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[a-1].id),l.addNode(0,n[a-1].id,n[a-1].descr,n[a-1].type,n[a]);break;case 21:l.getLogger().trace("Node: ",n[a].id),l.addNode(0,n[a].id,n[a].descr,n[a].type);break;case 22:l.decorateNode({icon:n[a]});break;case 27:l.getLogger().trace("node found ..",n[a-2]),this.$={id:n[a-1],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 28:this.$={id:n[a],descr:n[a],type:0};break;case 29:l.getLogger().trace("node found ..",n[a-3]),this.$={id:n[a-3],descr:n[a-1],type:l.getType(n[a-2],n[a])};break;case 30:this.$=n[a-1]+n[a];break;case 31:this.$=n[a];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:f,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(v,[2,3]),{1:[2,2]},e(v,[2,4]),e(v,[2,5]),{1:[2,6],6:f,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:f,9:22,12:11,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},{6:C,7:u,10:23,11:R},e(N,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),e(N,[2,19]),e(N,[2,21],{15:30,24:V}),e(N,[2,22]),e(N,[2,23]),e(O,[2,25]),e(O,[2,26]),e(O,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:u,10:34,11:R},{1:[2,7],6:f,12:21,13:s,14:14,16:d,17:b,18:17,19:18,20:S,23:h},e(_,[2,14],{7:w,11:T}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(N,[2,16],{15:37,24:V}),e(N,[2,17]),e(N,[2,18]),e(N,[2,20],{24:q}),e(O,[2,31]),{21:[1,39]},{22:[1,40]},e(_,[2,13],{7:w,11:T}),e(A,[2,11]),e(A,[2,12]),e(N,[2,15],{24:q}),e(O,[2,30]),{22:[1,41]},e(O,[2,27]),e(O,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:r.__name(function(t,o){if(o.recoverable)this.trace(t);else{var c=new Error(t);throw c.hash=o,c}},"parseError"),parse:r.__name(function(t){var o=this,c=[0],l=[],m=[null],n=[],M=this.table,a="",U=0,ie=0,se=0,he=2,re=1,ue=n.slice.call(arguments,1),k=Object.create(this.lexer),P={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(P.yy[W]=this.yy[W]);k.setInput(t,P.yy),P.yy.lexer=k,P.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Y=k.yylloc;n.push(Y);var ge=k.options&&k.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(D){c.length=c.length-2*D,m.length=m.length-D,n.length=n.length-D}r.__name(de,"popStack");function ae(){var D=l.pop()||k.lex()||re;return typeof D!="number"&&(D instanceof Array&&(l=D,D=l.pop()),D=o.symbols_[D]||D),D}r.__name(ae,"lex");for(var E,Z,B,x,X,j={},H,I,oe,z;;){if(B=c[c.length-1],this.defaultActions[B]?x=this.defaultActions[B]:((E===null||typeof E>"u")&&(E=ae()),x=M[B]&&M[B][E]),typeof x>"u"||!x.length||!x[0]){var K="";z=[];for(H in M[B])this.terminals_[H]&&H>he&&z.push("'"+this.terminals_[H]+"'");k.showPosition?K="Parse error on line "+(U+1)+`:
2
+ `+k.showPosition()+`
3
+ Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":K="Parse error on line "+(U+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(K,{text:k.match,token:this.terminals_[E]||E,line:k.yylineno,loc:Y,expected:z})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+E);switch(x[0]){case 1:c.push(E),m.push(k.yytext),n.push(k.yylloc),c.push(x[1]),E=null,Z?(E=Z,Z=null):(ie=k.yyleng,a=k.yytext,U=k.yylineno,Y=k.yylloc,se>0&&se--);break;case 2:if(I=this.productions_[x[1]][1],j.$=m[m.length-I],j._$={first_line:n[n.length-(I||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(I||1)].first_column,last_column:n[n.length-1].last_column},ge&&(j._$.range=[n[n.length-(I||1)].range[0],n[n.length-1].range[1]]),X=this.performAction.apply(j,[a,ie,U,P.yy,x[1],m,n].concat(ue)),typeof X<"u")return X;I&&(c=c.slice(0,-1*I*2),m=m.slice(0,-1*I),n=n.slice(0,-1*I)),c.push(this.productions_[x[1]][0]),m.push(j.$),n.push(j._$),oe=M[c[c.length-2]][c[c.length-1]],c.push(oe);break;case 3:return!0}}return!0},"parse")};F.lexer=(function(){return{EOF:1,parseError:r.__name(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:r.__name(function(i,t){return this.yy=t||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={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:r.__name(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},"input"),unput:r.__name(function(i){var t=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var c=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),o.length-1&&(this.yylineno-=o.length-1);var l=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r.__name(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r.__name(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var i=this.pastInput(),t=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+t+"^"},"showPosition"),test_match:r.__name(function(i,t){var o,c,l;if(this.options.backtrack_lexer&&(l={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&&(l.yylloc.range=this.yylloc.range.slice(0))),c=i[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var m in l)this[m]=l[m];return!1}return!1},"test_match"),next:r.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,t,o,c;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),m=0;m<l.length;m++)if(o=this._input.match(this.rules[l[m]]),o&&(!t||o[0].length>t[0].length)){if(t=o,c=m,this.options.backtrack_lexer){if(i=this.test_match(o,l[m]),i!==!1)return i;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(i=this.test_match(t,l[c]),i!==!1?i:!1):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:r.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:r.__name(function(t){this.conditionStack.push(t)},"begin"),popState:r.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__name(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:r.__name(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r.__name(function(t){this.begin(t)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(t,o,c,l){switch(c){case 0:return this.pushState("shapeData"),o.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return o.yytext=o.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",o.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;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 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:return t.getLogger().trace("Long description:",o.yytext),21;case 42:return t.getLogger().trace("Long description:",o.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 G(){this.yy={}}return r.__name(G,"Parser"),G.prototype=F,F.Parser=G,new G})();$.parser=$;var _e=$,L=[],ne=[],ee=0,te={},me=r.__name(()=>{L=[],ne=[],ee=0,te={}},"clear"),ye=r.__name(e=>{if(L.length===0)return null;const g=L[0].level;let f=null;for(let s=L.length-1;s>=0;s--)if(L[s].level===g&&!f&&(f=L[s]),L[s].level<g)throw new Error('Items without section detected, found section ("'+L[s].label+'")');return e===f?.level?null:f},"getSection"),le=r.__name(function(){return ne},"getSections"),be=r.__name(function(){const e=[],g=[],f=le(),s=p.getConfig2();for(const d of f){const b={id:d.id,label:p.sanitizeText(d.label??"",s),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:s.look};g.push(b);const S=L.filter(h=>h.parentId===d.id);for(const h of S){const v={id:h.id,parentId:d.id,label:p.sanitizeText(h.label??"",s),labelType:"markdown",isGroup:!1,ticket:h?.ticket,priority:h?.priority,assigned:h?.assigned,icon:h?.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};g.push(v)}}return{nodes:g,edges:e,other:{},config:p.getConfig2()}},"getData"),ke=r.__name((e,g,f,s,d)=>{const b=p.getConfig2();let S=b.mindmap?.padding??p.defaultConfig_default.mindmap.padding;switch(s){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:S*=2}const h={id:p.sanitizeText(g,b)||"kbn"+ee++,level:e,label:p.sanitizeText(f,b),width:b.mindmap?.maxNodeWidth??p.defaultConfig_default.mindmap.maxNodeWidth,padding:S,isGroup:!1};if(d!==void 0){let C;d.includes(`
7
+ `)?C=d+`
8
+ `:C=`{
9
+ `+d+`
10
+ }`;const u=ce.load(C,{schema:ce.JSON_SCHEMA});if(u.shape&&(u.shape!==u.shape.toLowerCase()||u.shape.includes("_")))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);u?.shape&&u.shape==="kanbanItem"&&(h.shape=u?.shape),u?.label&&(h.label=u?.label),u?.icon&&(h.icon=u?.icon.toString()),u?.assigned&&(h.assigned=u?.assigned.toString()),u?.ticket&&(h.ticket=u?.ticket.toString()),u?.priority&&(h.priority=u?.priority)}const v=ye(e);v?h.parentId=v.id||"kbn"+ee++:ne.push(h),L.push(h)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ee={clear:me,addNode:ke,getSections:le,getData:be,nodeType:y,getType:r.__name((e,g)=>{switch(Q.log.debug("In get type",e,g),e){case"[":return y.RECT;case"(":return g===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),setElementForId:r.__name((e,g)=>{te[e]=g},"setElementForId"),decorateNode:r.__name(e=>{if(!e)return;const g=p.getConfig2(),f=L[L.length-1];e.icon&&(f.icon=p.sanitizeText(e.icon,g)),e.class&&(f.cssClasses=p.sanitizeText(e.class,g))},"decorateNode"),type2Str:r.__name(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:r.__name(()=>Q.log,"getLogger"),getElementById:r.__name(e=>te[e],"getElementById")},Se={draw:r.__name(async(e,g,f,s)=>{Q.log.debug(`Rendering kanban diagram
11
+ `+e);const d=s.db.getData(),b=p.getConfig2();b.htmlLabels=!1;const S=pe.selectSvgElement(g);for(const _ of d.nodes)_.domId=`${g}-${_.id}`;const h=S.append("g");h.attr("class","sections");const v=S.append("g");v.attr("class","items");const C=d.nodes.filter(_=>_.isGroup);let u=0;const R=10,N=[];let V=25;for(const _ of C){const w=b?.kanban?.sectionWidth||200;u=u+1,_.x=w*u+(u-1)*R/2,_.width=w,_.y=0,_.height=w*3,_.rx=5,_.ry=5,_.cssClasses=_.cssClasses+" section-"+u;const T=await J.insertCluster(h,_);V=Math.max(V,T?.labelBBox?.height),N.push(T)}let O=0;for(const _ of C){const w=N[O];O=O+1;const T=b?.kanban?.sectionWidth||200,A=-T*3/2+V;let q=A;const F=d.nodes.filter(t=>t.parentId===_.id);for(const t of F){if(t.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");t.x=_.x,t.width=T-1.5*R;const o=(await J.insertNode(v,t,{config:b})).node().getBBox();t.y=q+o.height/2,await J.positionNode(t),q=t.y+o.height/2+R/2}const G=w.cluster.select("rect"),i=Math.max(q-A+3*R,50)+(V-25);G.attr("height",i)}p.setupGraphViewbox(void 0,S,b.mindmap?.padding??p.defaultConfig_default.kanban.padding,b.mindmap?.useMaxWidth??p.defaultConfig_default.kanban.useMaxWidth)},"draw")},Ne=r.__name(e=>{let g="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)e["lineColor"+s]=e["lineColor"+s]||e["cScaleInv"+s],p.isDark(e["lineColor"+s])?e["lineColor"+s]=p.lighten(e["lineColor"+s],20):e["lineColor"+s]=p.darken(e["lineColor"+s],20);const f=r.__name((s,d)=>e.darkMode?p.darken(s,d):p.lighten(s,d),"adjuster");for(let s=0;s<e.THEME_COLOR_LIMIT;s++){const d=""+(17-3*s);g+=`
12
+ .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
13
+ fill: ${f(e["cScale"+s],10)};
14
+ stroke: ${f(e["cScale"+s],10)};
15
+
16
+ }
17
+ .section-${s-1} text {
18
+ fill: ${e["cScaleLabel"+s]};
19
+ }
20
+ .node-icon-${s-1} {
21
+ font-size: 40px;
22
+ color: ${e["cScaleLabel"+s]};
23
+ }
24
+ .section-edge-${s-1}{
25
+ stroke: ${e["cScale"+s]};
26
+ }
27
+ .edge-depth-${s-1}{
28
+ stroke-width: ${d};
29
+ }
30
+ .section-${s-1} line {
31
+ stroke: ${e["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: ${e.background};
48
+ stroke: ${e.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${e.background};
54
+ stroke: ${e.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return g},"genSections"),xe={db:Ee,renderer:Se,parser:_e,styles:r.__name(e=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${Ne(e)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${e.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${e.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: ${e.textColor};
79
+ fill: ${e.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
+ ${fe.getIconStyles()}
89
+ `,"getStyles")};exports.diagram=xe;