@sme.up/ketchup2 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,883 @@
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, b as o, c as s, v as c } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
+ import { h as l, p as u } from "./src-BQiFKP24.js";
3
+ import { t as d } from "./arc-Klgb378K.js";
4
+ import { t as f } from "./chunk-FMBD7UC4-RRSc9jqt.js";
5
+ import { a as p, n as m, o as h, s as g } from "./chunk-YZCP3GAM-D6P3SWmL.js";
6
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.mjs
7
+ var _ = (function() {
8
+ var e = /* @__PURE__ */ l(function(e, t, n, r) {
9
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
10
+ return n;
11
+ }, "o"), t = [
12
+ 6,
13
+ 8,
14
+ 10,
15
+ 11,
16
+ 12,
17
+ 14,
18
+ 16,
19
+ 17,
20
+ 18
21
+ ], n = [1, 9], r = [1, 10], i = [1, 11], a = [1, 12], o = [1, 13], s = [1, 14], c = {
22
+ trace: /* @__PURE__ */ l(function() {}, "trace"),
23
+ yy: {},
24
+ symbols_: {
25
+ error: 2,
26
+ start: 3,
27
+ journey: 4,
28
+ document: 5,
29
+ EOF: 6,
30
+ line: 7,
31
+ SPACE: 8,
32
+ statement: 9,
33
+ NEWLINE: 10,
34
+ title: 11,
35
+ acc_title: 12,
36
+ acc_title_value: 13,
37
+ acc_descr: 14,
38
+ acc_descr_value: 15,
39
+ acc_descr_multiline_value: 16,
40
+ section: 17,
41
+ taskName: 18,
42
+ taskData: 19,
43
+ $accept: 0,
44
+ $end: 1
45
+ },
46
+ terminals_: {
47
+ 2: "error",
48
+ 4: "journey",
49
+ 6: "EOF",
50
+ 8: "SPACE",
51
+ 10: "NEWLINE",
52
+ 11: "title",
53
+ 12: "acc_title",
54
+ 13: "acc_title_value",
55
+ 14: "acc_descr",
56
+ 15: "acc_descr_value",
57
+ 16: "acc_descr_multiline_value",
58
+ 17: "section",
59
+ 18: "taskName",
60
+ 19: "taskData"
61
+ },
62
+ productions_: [
63
+ 0,
64
+ [3, 3],
65
+ [5, 0],
66
+ [5, 2],
67
+ [7, 2],
68
+ [7, 1],
69
+ [7, 1],
70
+ [7, 1],
71
+ [9, 1],
72
+ [9, 2],
73
+ [9, 2],
74
+ [9, 1],
75
+ [9, 1],
76
+ [9, 2]
77
+ ],
78
+ performAction: /* @__PURE__ */ l(function(e, t, n, r, i, a, o) {
79
+ var s = a.length - 1;
80
+ switch (i) {
81
+ case 1: return a[s - 1];
82
+ case 2:
83
+ this.$ = [];
84
+ break;
85
+ case 3:
86
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
87
+ break;
88
+ case 4:
89
+ case 5:
90
+ this.$ = a[s];
91
+ break;
92
+ case 6:
93
+ case 7:
94
+ this.$ = [];
95
+ break;
96
+ case 8:
97
+ r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
98
+ break;
99
+ case 9:
100
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
101
+ break;
102
+ case 10:
103
+ case 11:
104
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
105
+ break;
106
+ case 12:
107
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
108
+ break;
109
+ case 13:
110
+ r.addTask(a[s - 1], a[s]), this.$ = "task";
111
+ break;
112
+ }
113
+ }, "anonymous"),
114
+ table: [
115
+ {
116
+ 3: 1,
117
+ 4: [1, 2]
118
+ },
119
+ { 1: [3] },
120
+ e(t, [2, 2], { 5: 3 }),
121
+ {
122
+ 6: [1, 4],
123
+ 7: 5,
124
+ 8: [1, 6],
125
+ 9: 7,
126
+ 10: [1, 8],
127
+ 11: n,
128
+ 12: r,
129
+ 14: i,
130
+ 16: a,
131
+ 17: o,
132
+ 18: s
133
+ },
134
+ e(t, [2, 7], { 1: [2, 1] }),
135
+ e(t, [2, 3]),
136
+ {
137
+ 9: 15,
138
+ 11: n,
139
+ 12: r,
140
+ 14: i,
141
+ 16: a,
142
+ 17: o,
143
+ 18: s
144
+ },
145
+ e(t, [2, 5]),
146
+ e(t, [2, 6]),
147
+ e(t, [2, 8]),
148
+ { 13: [1, 16] },
149
+ { 15: [1, 17] },
150
+ e(t, [2, 11]),
151
+ e(t, [2, 12]),
152
+ { 19: [1, 18] },
153
+ e(t, [2, 4]),
154
+ e(t, [2, 9]),
155
+ e(t, [2, 10]),
156
+ e(t, [2, 13])
157
+ ],
158
+ defaultActions: {},
159
+ parseError: /* @__PURE__ */ l(function(e, t) {
160
+ if (t.recoverable) this.trace(e);
161
+ else {
162
+ var n = Error(e);
163
+ throw n.hash = t, n;
164
+ }
165
+ }, "parseError"),
166
+ parse: /* @__PURE__ */ l(function(e) {
167
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, u = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
168
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
169
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
170
+ var v = h.yylloc;
171
+ a.push(v);
172
+ var y = h.options && h.options.ranges;
173
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
174
+ function b(e) {
175
+ n.length -= 2 * e, i.length -= e, a.length -= e;
176
+ }
177
+ l(b, "popStack");
178
+ function x() {
179
+ var e = r.pop() || h.lex() || p;
180
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
181
+ }
182
+ l(x, "lex");
183
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
184
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
185
+ var M = "";
186
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
187
+ M = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
188
+ text: h.match,
189
+ token: this.terminals_[S] || S,
190
+ line: h.yylineno,
191
+ loc: v,
192
+ expected: j
193
+ });
194
+ }
195
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
196
+ switch (T[0]) {
197
+ case 1:
198
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, d > 0 && d--);
199
+ break;
200
+ case 2:
201
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
202
+ first_line: a[a.length - (k || 1)].first_line,
203
+ last_line: a[a.length - 1].last_line,
204
+ first_column: a[a.length - (k || 1)].first_column,
205
+ last_column: a[a.length - 1].last_column
206
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
207
+ s,
208
+ u,
209
+ c,
210
+ g.yy,
211
+ T[1],
212
+ i,
213
+ a
214
+ ].concat(m)), E !== void 0) return E;
215
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
216
+ break;
217
+ case 3: return !0;
218
+ }
219
+ }
220
+ return !0;
221
+ }, "parse")
222
+ };
223
+ c.lexer = /* @__PURE__ */ (function() {
224
+ return {
225
+ EOF: 1,
226
+ parseError: /* @__PURE__ */ l(function(e, t) {
227
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
228
+ else throw Error(e);
229
+ }, "parseError"),
230
+ setInput: /* @__PURE__ */ l(function(e, t) {
231
+ return this.yy = t || 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 = {
232
+ first_line: 1,
233
+ first_column: 0,
234
+ last_line: 1,
235
+ last_column: 0
236
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
237
+ }, "setInput"),
238
+ input: /* @__PURE__ */ l(function() {
239
+ var e = this._input[0];
240
+ 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;
241
+ }, "input"),
242
+ unput: /* @__PURE__ */ l(function(e) {
243
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
244
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
245
+ var r = this.match.split(/(?:\r\n?|\n)/g);
246
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
247
+ var i = this.yylloc.range;
248
+ return this.yylloc = {
249
+ first_line: this.yylloc.first_line,
250
+ last_line: this.yylineno + 1,
251
+ first_column: this.yylloc.first_column,
252
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
253
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
254
+ }, "unput"),
255
+ more: /* @__PURE__ */ l(function() {
256
+ return this._more = !0, this;
257
+ }, "more"),
258
+ reject: /* @__PURE__ */ l(function() {
259
+ if (this.options.backtrack_lexer) this._backtrack = !0;
260
+ 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).\n" + this.showPosition(), {
261
+ text: "",
262
+ token: null,
263
+ line: this.yylineno
264
+ });
265
+ return this;
266
+ }, "reject"),
267
+ less: /* @__PURE__ */ l(function(e) {
268
+ this.unput(this.match.slice(e));
269
+ }, "less"),
270
+ pastInput: /* @__PURE__ */ l(function() {
271
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
272
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
273
+ }, "pastInput"),
274
+ upcomingInput: /* @__PURE__ */ l(function() {
275
+ var e = this.match;
276
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
277
+ }, "upcomingInput"),
278
+ showPosition: /* @__PURE__ */ l(function() {
279
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
280
+ return e + this.upcomingInput() + "\n" + t + "^";
281
+ }, "showPosition"),
282
+ test_match: /* @__PURE__ */ l(function(e, t) {
283
+ var n, r, i;
284
+ if (this.options.backtrack_lexer && (i = {
285
+ yylineno: this.yylineno,
286
+ yylloc: {
287
+ first_line: this.yylloc.first_line,
288
+ last_line: this.last_line,
289
+ first_column: this.yylloc.first_column,
290
+ last_column: this.yylloc.last_column
291
+ },
292
+ yytext: this.yytext,
293
+ match: this.match,
294
+ matches: this.matches,
295
+ matched: this.matched,
296
+ yyleng: this.yyleng,
297
+ offset: this.offset,
298
+ _more: this._more,
299
+ _input: this._input,
300
+ yy: this.yy,
301
+ conditionStack: this.conditionStack.slice(0),
302
+ done: this.done
303
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
304
+ first_line: this.yylloc.last_line,
305
+ last_line: this.yylineno + 1,
306
+ first_column: this.yylloc.last_column,
307
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
308
+ }, 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], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
309
+ if (this._backtrack) {
310
+ for (var a in i) this[a] = i[a];
311
+ return !1;
312
+ }
313
+ return !1;
314
+ }, "test_match"),
315
+ next: /* @__PURE__ */ l(function() {
316
+ if (this.done) return this.EOF;
317
+ this._input || (this.done = !0);
318
+ var e, t, n, r;
319
+ this._more || (this.yytext = "", this.match = "");
320
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
321
+ if (t = n, r = a, this.options.backtrack_lexer) {
322
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
323
+ if (this._backtrack) {
324
+ t = !1;
325
+ continue;
326
+ } else return !1;
327
+ } else if (!this.options.flex) break;
328
+ }
329
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
330
+ text: "",
331
+ token: null,
332
+ line: this.yylineno
333
+ });
334
+ }, "next"),
335
+ lex: /* @__PURE__ */ l(function() {
336
+ return this.next() || this.lex();
337
+ }, "lex"),
338
+ begin: /* @__PURE__ */ l(function(e) {
339
+ this.conditionStack.push(e);
340
+ }, "begin"),
341
+ popState: /* @__PURE__ */ l(function() {
342
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
343
+ }, "popState"),
344
+ _currentRules: /* @__PURE__ */ l(function() {
345
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
346
+ }, "_currentRules"),
347
+ topState: /* @__PURE__ */ l(function(e) {
348
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
349
+ }, "topState"),
350
+ pushState: /* @__PURE__ */ l(function(e) {
351
+ this.begin(e);
352
+ }, "pushState"),
353
+ stateStackSize: /* @__PURE__ */ l(function() {
354
+ return this.conditionStack.length;
355
+ }, "stateStackSize"),
356
+ options: { "case-insensitive": !0 },
357
+ performAction: /* @__PURE__ */ l(function(e, t, n, r) {
358
+ switch (n) {
359
+ case 0: break;
360
+ case 1: break;
361
+ case 2: return 10;
362
+ case 3: break;
363
+ case 4: break;
364
+ case 5: return 4;
365
+ case 6: return 11;
366
+ case 7: return this.begin("acc_title"), 12;
367
+ case 8: return this.popState(), "acc_title_value";
368
+ case 9: return this.begin("acc_descr"), 14;
369
+ case 10: return this.popState(), "acc_descr_value";
370
+ case 11:
371
+ this.begin("acc_descr_multiline");
372
+ break;
373
+ case 12:
374
+ this.popState();
375
+ break;
376
+ case 13: return "acc_descr_multiline_value";
377
+ case 14: return 17;
378
+ case 15: return 18;
379
+ case 16: return 19;
380
+ case 17: return ":";
381
+ case 18: return 6;
382
+ case 19: return "INVALID";
383
+ }
384
+ }, "anonymous"),
385
+ rules: [
386
+ /^(?:%(?!\{)[^\n]*)/i,
387
+ /^(?:[^\}]%%[^\n]*)/i,
388
+ /^(?:[\n]+)/i,
389
+ /^(?:\s+)/i,
390
+ /^(?:#[^\n]*)/i,
391
+ /^(?:journey\b)/i,
392
+ /^(?:title\s[^#\n;]+)/i,
393
+ /^(?:accTitle\s*:\s*)/i,
394
+ /^(?:(?!\n||)*[^\n]*)/i,
395
+ /^(?:accDescr\s*:\s*)/i,
396
+ /^(?:(?!\n||)*[^\n]*)/i,
397
+ /^(?:accDescr\s*\{\s*)/i,
398
+ /^(?:[\}])/i,
399
+ /^(?:[^\}]*)/i,
400
+ /^(?:section\s[^#:\n;]+)/i,
401
+ /^(?:[^#:\n;]+)/i,
402
+ /^(?::[^#\n;]+)/i,
403
+ /^(?::)/i,
404
+ /^(?:$)/i,
405
+ /^(?:.)/i
406
+ ],
407
+ conditions: {
408
+ acc_descr_multiline: {
409
+ rules: [12, 13],
410
+ inclusive: !1
411
+ },
412
+ acc_descr: {
413
+ rules: [10],
414
+ inclusive: !1
415
+ },
416
+ acc_title: {
417
+ rules: [8],
418
+ inclusive: !1
419
+ },
420
+ INITIAL: {
421
+ rules: [
422
+ 0,
423
+ 1,
424
+ 2,
425
+ 3,
426
+ 4,
427
+ 5,
428
+ 6,
429
+ 7,
430
+ 9,
431
+ 11,
432
+ 14,
433
+ 15,
434
+ 16,
435
+ 17,
436
+ 18,
437
+ 19
438
+ ],
439
+ inclusive: !0
440
+ }
441
+ }
442
+ };
443
+ })();
444
+ function u() {
445
+ this.yy = {};
446
+ }
447
+ return l(u, "Parser"), u.prototype = c, c.Parser = u, new u();
448
+ })();
449
+ _.parser = _;
450
+ var v = _, y = "", b = [], x = [], S = [], C = /* @__PURE__ */ l(function() {
451
+ b.length = 0, x.length = 0, y = "", S.length = 0, a();
452
+ }, "clear"), w = /* @__PURE__ */ l(function(e) {
453
+ y = e, b.push(e);
454
+ }, "addSection"), T = /* @__PURE__ */ l(function() {
455
+ return b;
456
+ }, "getSections"), E = /* @__PURE__ */ l(function() {
457
+ let e = A(), t = 0;
458
+ for (; !e && t < 100;) e = A(), t++;
459
+ return x.push(...S), x;
460
+ }, "getTasks"), D = /* @__PURE__ */ l(function() {
461
+ let e = [];
462
+ return x.forEach((t) => {
463
+ t.people && e.push(...t.people);
464
+ }), [...new Set(e)].sort();
465
+ }, "updateActors"), O = /* @__PURE__ */ l(function(e, t) {
466
+ let n = t.substr(1).split(":"), r = 0, i = [];
467
+ n.length === 1 ? (r = Number(n[0]), i = []) : (r = Number(n[0]), i = n[1].split(","));
468
+ let a = i.map((e) => e.trim()), o = {
469
+ section: y,
470
+ type: y,
471
+ people: a,
472
+ task: e,
473
+ score: r
474
+ };
475
+ S.push(o);
476
+ }, "addTask"), k = /* @__PURE__ */ l(function(e) {
477
+ let t = {
478
+ section: y,
479
+ type: y,
480
+ description: e,
481
+ task: e,
482
+ classes: []
483
+ };
484
+ x.push(t);
485
+ }, "addTaskOrg"), A = /* @__PURE__ */ l(function() {
486
+ let e = /* @__PURE__ */ l(function(e) {
487
+ return S[e].processed;
488
+ }, "compileTask"), t = !0;
489
+ for (let [n, r] of S.entries()) e(n), t &&= r.processed;
490
+ return t;
491
+ }, "compileTasks"), j = {
492
+ getConfig: /* @__PURE__ */ l(() => o().journey, "getConfig"),
493
+ clear: C,
494
+ setDiagramTitle: r,
495
+ getDiagramTitle: t,
496
+ setAccTitle: n,
497
+ getAccTitle: c,
498
+ setAccDescription: e,
499
+ getAccDescription: i,
500
+ addSection: w,
501
+ getSections: T,
502
+ getTasks: E,
503
+ addTask: O,
504
+ addTaskOrg: k,
505
+ getActors: /* @__PURE__ */ l(function() {
506
+ return D();
507
+ }, "getActors")
508
+ }, M = /* @__PURE__ */ l((e) => `.label {
509
+ font-family: ${e.fontFamily};
510
+ color: ${e.textColor};
511
+ }
512
+ .mouth {
513
+ stroke: #666;
514
+ }
515
+
516
+ line {
517
+ stroke: ${e.textColor}
518
+ }
519
+
520
+ .legend {
521
+ fill: ${e.textColor};
522
+ font-family: ${e.fontFamily};
523
+ }
524
+
525
+ .label text {
526
+ fill: #333;
527
+ }
528
+ .label {
529
+ color: ${e.textColor}
530
+ }
531
+
532
+ .face {
533
+ ${e.faceColor ? `fill: ${e.faceColor}` : "fill: #FFF8DC"};
534
+ stroke: #999;
535
+ }
536
+
537
+ .node rect,
538
+ .node circle,
539
+ .node ellipse,
540
+ .node polygon,
541
+ .node path {
542
+ fill: ${e.mainBkg};
543
+ stroke: ${e.nodeBorder};
544
+ stroke-width: 1px;
545
+ }
546
+
547
+ .node .label {
548
+ text-align: center;
549
+ }
550
+ .node.clickable {
551
+ cursor: pointer;
552
+ }
553
+
554
+ .arrowheadPath {
555
+ fill: ${e.arrowheadColor};
556
+ }
557
+
558
+ .edgePath .path {
559
+ stroke: ${e.lineColor};
560
+ stroke-width: 1.5px;
561
+ }
562
+
563
+ .flowchart-link {
564
+ stroke: ${e.lineColor};
565
+ fill: none;
566
+ }
567
+
568
+ .edgeLabel {
569
+ background-color: ${e.edgeLabelBackground};
570
+ rect {
571
+ opacity: 0.5;
572
+ }
573
+ text-align: center;
574
+ }
575
+
576
+ .cluster rect {
577
+ }
578
+
579
+ .cluster text {
580
+ fill: ${e.titleColor};
581
+ }
582
+
583
+ div.mermaidTooltip {
584
+ position: absolute;
585
+ text-align: center;
586
+ max-width: 200px;
587
+ padding: 2px;
588
+ font-family: ${e.fontFamily};
589
+ font-size: 12px;
590
+ background: ${e.tertiaryColor};
591
+ border: 1px solid ${e.border2};
592
+ border-radius: 2px;
593
+ pointer-events: none;
594
+ z-index: 100;
595
+ }
596
+
597
+ .task-type-0, .section-type-0 {
598
+ ${e.fillType0 ? `fill: ${e.fillType0}` : ""};
599
+ }
600
+ .task-type-1, .section-type-1 {
601
+ ${e.fillType0 ? `fill: ${e.fillType1}` : ""};
602
+ }
603
+ .task-type-2, .section-type-2 {
604
+ ${e.fillType0 ? `fill: ${e.fillType2}` : ""};
605
+ }
606
+ .task-type-3, .section-type-3 {
607
+ ${e.fillType0 ? `fill: ${e.fillType3}` : ""};
608
+ }
609
+ .task-type-4, .section-type-4 {
610
+ ${e.fillType0 ? `fill: ${e.fillType4}` : ""};
611
+ }
612
+ .task-type-5, .section-type-5 {
613
+ ${e.fillType0 ? `fill: ${e.fillType5}` : ""};
614
+ }
615
+ .task-type-6, .section-type-6 {
616
+ ${e.fillType0 ? `fill: ${e.fillType6}` : ""};
617
+ }
618
+ .task-type-7, .section-type-7 {
619
+ ${e.fillType0 ? `fill: ${e.fillType7}` : ""};
620
+ }
621
+
622
+ .actor-0 {
623
+ ${e.actor0 ? `fill: ${e.actor0}` : ""};
624
+ }
625
+ .actor-1 {
626
+ ${e.actor1 ? `fill: ${e.actor1}` : ""};
627
+ }
628
+ .actor-2 {
629
+ ${e.actor2 ? `fill: ${e.actor2}` : ""};
630
+ }
631
+ .actor-3 {
632
+ ${e.actor3 ? `fill: ${e.actor3}` : ""};
633
+ }
634
+ .actor-4 {
635
+ ${e.actor4 ? `fill: ${e.actor4}` : ""};
636
+ }
637
+ .actor-5 {
638
+ ${e.actor5 ? `fill: ${e.actor5}` : ""};
639
+ }
640
+ ${f()}
641
+ `, "getStyles"), N = /* @__PURE__ */ l(function(e, t) {
642
+ return p(e, t);
643
+ }, "drawRect"), P = /* @__PURE__ */ l(function(e, t) {
644
+ let n = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = e.append("g");
645
+ r.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"), r.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");
646
+ function i(e) {
647
+ let n = d().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
648
+ e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
649
+ }
650
+ l(i, "smile");
651
+ function a(e) {
652
+ let n = d().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
653
+ e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
654
+ }
655
+ l(a, "sad");
656
+ function o(e) {
657
+ e.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");
658
+ }
659
+ return l(o, "ambivalent"), t.score > 3 ? i(r) : t.score < 3 ? a(r) : o(r), n;
660
+ }, "drawFace"), F = /* @__PURE__ */ l(function(e, t) {
661
+ let n = e.append("circle");
662
+ return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
663
+ }, "drawCircle"), I = /* @__PURE__ */ l(function(e, t) {
664
+ return h(e, t);
665
+ }, "drawText"), L = /* @__PURE__ */ l(function(e, t) {
666
+ function n(e, t, n, r, i) {
667
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
668
+ }
669
+ l(n, "genPoints");
670
+ let r = e.append("polygon");
671
+ r.attr("points", n(t.x, t.y, 50, 20, 7)), r.attr("class", "labelBox"), t.y += t.labelMargin, t.x += .5 * t.labelMargin, I(e, t);
672
+ }, "drawLabel"), R = /* @__PURE__ */ l(function(e, t, n) {
673
+ let r = e.append("g"), i = g();
674
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width * t.taskCount + n.diagramMarginX * (t.taskCount - 1), i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, N(r, i), H(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
675
+ }, "drawSection"), z = -1, B = /* @__PURE__ */ l(function(e, t, n, r) {
676
+ let i = t.x + n.width / 2, a = e.append("g");
677
+ z++, a.append("line").attr("id", r + "-task" + z).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"), P(a, {
678
+ cx: i,
679
+ cy: 300 + (5 - t.score) * 30,
680
+ score: t.score
681
+ });
682
+ let o = g();
683
+ o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, N(a, o);
684
+ let s = t.x + 14;
685
+ t.people.forEach((e) => {
686
+ let n = t.actors[e].color;
687
+ F(a, {
688
+ cx: s,
689
+ cy: t.y,
690
+ r: 7,
691
+ fill: n,
692
+ stroke: "#000",
693
+ title: e,
694
+ pos: t.actors[e].position
695
+ }), s += 10;
696
+ }), H(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
697
+ }, "drawTask"), V = /* @__PURE__ */ l(function(e, t) {
698
+ m(e, t);
699
+ }, "drawBackgroundRect"), H = /* @__PURE__ */ (function() {
700
+ function e(e, t, n, i, a, o, s, c) {
701
+ r(t.append("text").attr("x", n + a / 2).attr("y", i + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
702
+ }
703
+ l(e, "byText");
704
+ function t(e, t, n, i, a, o, s, c, l) {
705
+ let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
706
+ for (let e = 0; e < f.length; e++) {
707
+ let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", i).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
708
+ p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", i + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(p, s);
709
+ }
710
+ }
711
+ l(t, "byTspan");
712
+ function n(e, n, i, a, o, s, c, l) {
713
+ let u = n.append("switch"), d = u.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
714
+ d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, i, a, o, s, c, l), r(d, c);
715
+ }
716
+ l(n, "byFo");
717
+ function r(e, t) {
718
+ for (let n in t) n in t && e.attr(n, t[n]);
719
+ }
720
+ return l(r, "_setTextAttrs"), function(r) {
721
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
722
+ };
723
+ })(), U = {
724
+ drawRect: N,
725
+ drawCircle: F,
726
+ drawSection: R,
727
+ drawText: I,
728
+ drawLabel: L,
729
+ drawTask: B,
730
+ drawBackgroundRect: V,
731
+ initGraphics: /* @__PURE__ */ l(function(e, t) {
732
+ z = -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");
733
+ }, "initGraphics")
734
+ }, W = /* @__PURE__ */ l(function(e) {
735
+ Object.keys(e).forEach(function(t) {
736
+ J[t] = e[t];
737
+ });
738
+ }, "setConf"), G = {}, K = 0;
739
+ function q(e) {
740
+ let t = o().journey, n = t.maxLabelWidth;
741
+ K = 0;
742
+ let r = 60;
743
+ Object.keys(G).forEach((i) => {
744
+ let a = G[i].color, o = {
745
+ cx: 20,
746
+ cy: r,
747
+ r: 7,
748
+ fill: a,
749
+ stroke: "#000",
750
+ pos: G[i].position
751
+ };
752
+ U.drawCircle(e, o);
753
+ let s = e.append("text").attr("visibility", "hidden").text(i), c = s.node().getBoundingClientRect().width;
754
+ s.remove();
755
+ let l = [];
756
+ if (c <= n) l = [i];
757
+ else {
758
+ let t = i.split(" "), r = "";
759
+ s = e.append("text").attr("visibility", "hidden"), t.forEach((e) => {
760
+ let t = r ? `${r} ${e}` : e;
761
+ if (s.text(t), s.node().getBoundingClientRect().width > n) {
762
+ if (r && l.push(r), r = e, s.text(e), s.node().getBoundingClientRect().width > n) {
763
+ let t = "";
764
+ for (let r of e) t += r, s.text(t + "-"), s.node().getBoundingClientRect().width > n && (l.push(t.slice(0, -1) + "-"), t = r);
765
+ r = t;
766
+ }
767
+ } else r = t;
768
+ }), r && l.push(r), s.remove();
769
+ }
770
+ l.forEach((n, i) => {
771
+ let a = {
772
+ x: 40,
773
+ y: r + 7 + i * 20,
774
+ fill: "#666",
775
+ text: n,
776
+ textMargin: t.boxTextMargin ?? 5
777
+ }, o = U.drawText(e, a).node().getBoundingClientRect().width;
778
+ o > K && o > t.leftMargin - o && (K = o);
779
+ }), r += Math.max(20, l.length * 20);
780
+ });
781
+ }
782
+ l(q, "drawActorLegend");
783
+ var J = o().journey, Y = 0, ee = /* @__PURE__ */ l(function(e, t, n, r) {
784
+ let i = o(), a = i.journey.titleColor, c = i.journey.titleFontSize, l = i.journey.titleFontFamily, d = i.securityLevel, f;
785
+ d === "sandbox" && (f = u("#i" + t));
786
+ let p = u(d === "sandbox" ? f.nodes()[0].contentDocument.body : "body");
787
+ X.init();
788
+ let m = p.select("#" + t);
789
+ U.initGraphics(m, t);
790
+ let h = r.db.getTasks(), g = r.db.getDiagramTitle(), _ = r.db.getActors();
791
+ for (let e in G) delete G[e];
792
+ let v = 0;
793
+ _.forEach((e) => {
794
+ G[e] = {
795
+ color: J.actorColours[v % J.actorColours.length],
796
+ position: v
797
+ }, v++;
798
+ }), q(m), Y = J.leftMargin + K, X.insert(0, 0, Y, Object.keys(G).length * 50), te(m, h, 0, t);
799
+ let y = X.getBounds();
800
+ g && m.append("text").text(g).attr("x", Y).attr("font-size", c).attr("font-weight", "bold").attr("y", 25).attr("fill", a).attr("font-family", l);
801
+ let b = y.stopy - y.starty + 2 * J.diagramMarginY, x = Y + y.stopx + 2 * J.diagramMarginX;
802
+ s(m, b, x, J.useMaxWidth), m.append("line").attr("x1", Y).attr("y1", J.height * 4).attr("x2", x - Y - 4).attr("y2", J.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + t + "-arrowhead)");
803
+ let S = g ? 70 : 0;
804
+ m.attr("viewBox", `${y.startx} -25 ${x} ${b + S}`), m.attr("preserveAspectRatio", "xMinYMin meet"), m.attr("height", b + S + 25);
805
+ }, "draw"), X = {
806
+ data: {
807
+ startx: void 0,
808
+ stopx: void 0,
809
+ starty: void 0,
810
+ stopy: void 0
811
+ },
812
+ verticalPos: 0,
813
+ sequenceItems: [],
814
+ init: /* @__PURE__ */ l(function() {
815
+ this.sequenceItems = [], this.data = {
816
+ startx: void 0,
817
+ stopx: void 0,
818
+ starty: void 0,
819
+ stopy: void 0
820
+ }, this.verticalPos = 0;
821
+ }, "init"),
822
+ updateVal: /* @__PURE__ */ l(function(e, t, n, r) {
823
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
824
+ }, "updateVal"),
825
+ updateBounds: /* @__PURE__ */ l(function(e, t, n, r) {
826
+ let i = o().journey, a = this, s = 0;
827
+ function c(o) {
828
+ return /* @__PURE__ */ l(function(c) {
829
+ s++;
830
+ let l = a.sequenceItems.length - s + 1;
831
+ a.updateVal(c, "starty", t - l * i.boxMargin, Math.min), a.updateVal(c, "stopy", r + l * i.boxMargin, Math.max), a.updateVal(X.data, "startx", e - l * i.boxMargin, Math.min), a.updateVal(X.data, "stopx", n + l * i.boxMargin, Math.max), o !== "activation" && (a.updateVal(c, "startx", e - l * i.boxMargin, Math.min), a.updateVal(c, "stopx", n + l * i.boxMargin, Math.max), a.updateVal(X.data, "starty", t - l * i.boxMargin, Math.min), a.updateVal(X.data, "stopy", r + l * i.boxMargin, Math.max));
832
+ }, "updateItemBounds");
833
+ }
834
+ l(c, "updateFn"), this.sequenceItems.forEach(c());
835
+ }, "updateBounds"),
836
+ insert: /* @__PURE__ */ l(function(e, t, n, r) {
837
+ let i = Math.min(e, n), a = Math.max(e, n), o = Math.min(t, r), s = Math.max(t, r);
838
+ this.updateVal(X.data, "startx", i, Math.min), this.updateVal(X.data, "starty", o, Math.min), this.updateVal(X.data, "stopx", a, Math.max), this.updateVal(X.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
839
+ }, "insert"),
840
+ bumpVerticalPos: /* @__PURE__ */ l(function(e) {
841
+ this.verticalPos += e, this.data.stopy = this.verticalPos;
842
+ }, "bumpVerticalPos"),
843
+ getVerticalPos: /* @__PURE__ */ l(function() {
844
+ return this.verticalPos;
845
+ }, "getVerticalPos"),
846
+ getBounds: /* @__PURE__ */ l(function() {
847
+ return this.data;
848
+ }, "getBounds")
849
+ }, Z = J.sectionFills, Q = J.sectionColours, te = /* @__PURE__ */ l(function(e, t, n, r) {
850
+ let i = o().journey, a = "", s = n + (i.height * 2 + i.diagramMarginY), c = 0, l = "#CCC", u = "black", d = 0;
851
+ for (let [n, o] of t.entries()) {
852
+ if (a !== o.section) {
853
+ l = Z[c % Z.length], d = c % Z.length, u = Q[c % Q.length];
854
+ let r = 0, s = o.section;
855
+ for (let e = n; e < t.length && t[e].section == s; e++) r += 1;
856
+ let f = {
857
+ x: n * i.taskMargin + n * i.width + Y,
858
+ y: 50,
859
+ text: o.section,
860
+ fill: l,
861
+ num: d,
862
+ colour: u,
863
+ taskCount: r
864
+ };
865
+ U.drawSection(e, f, i), a = o.section, c++;
866
+ }
867
+ let f = o.people.reduce((e, t) => (G[t] && (e[t] = G[t]), e), {});
868
+ o.x = n * i.taskMargin + n * i.width + Y, o.y = s, o.width = i.diagramMarginX, o.height = i.diagramMarginY, o.colour = u, o.fill = l, o.num = d, o.actors = f, U.drawTask(e, o, i, r), X.insert(o.x, o.y, o.x + o.width + i.taskMargin, 450);
869
+ }
870
+ }, "drawTasks"), $ = {
871
+ setConf: W,
872
+ draw: ee
873
+ }, ne = {
874
+ parser: v,
875
+ db: j,
876
+ renderer: $,
877
+ styles: M,
878
+ init: /* @__PURE__ */ l((e) => {
879
+ $.setConf(e.journey), j.clear();
880
+ }, "init")
881
+ };
882
+ //#endregion
883
+ export { ne as diagram };