@sme.up/ketchup2 2.0.0-alpha.2 → 2.1.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 (398) 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-JSjagcXX.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/imageListAssets.d.ts +3 -1
  10. package/dist/assets/imageListAssets.d.ts.map +1 -1
  11. package/dist/assets/svg/chevron_down.svg +1 -0
  12. package/dist/assets/svg/error_outline.svg +1 -0
  13. package/dist/assets/svg/warning_outline.svg +1 -0
  14. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  15. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  16. package/dist/basic-components/list/list-types.d.ts +0 -1
  17. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  18. package/dist/basic-components/list/list.d.ts.map +1 -1
  19. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  20. package/dist/basic-components/select/select.d.ts.map +1 -1
  21. package/dist/basic-components/text-editor/text-editor-utils.d.ts +1 -1
  22. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  23. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  24. package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
  25. package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
  26. package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
  27. package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
  28. package/dist/channel-BY9Lkyz7.cjs +1 -0
  29. package/dist/channel-BqNr2cYO.js +5 -0
  30. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  31. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  32. package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
  33. package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
  34. package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
  35. package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
  36. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  37. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  38. package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
  39. package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
  40. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  41. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  42. package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
  43. package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
  44. package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
  45. package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
  46. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  47. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  48. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  49. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  50. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  51. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  52. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  53. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  54. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  55. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  56. package/dist/chunk-D-IZpNpi.cjs +1 -0
  57. package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
  58. package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
  59. package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
  60. package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
  61. package/dist/{chunk-FMBD7UC4-Bbe5VHO3.cjs → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -2
  62. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  63. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  64. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  65. package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
  66. package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
  67. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  68. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  69. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  70. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  71. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  72. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  73. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  74. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  75. package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
  76. package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
  77. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  78. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  79. package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
  80. package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
  81. package/dist/chunk-WQLz0Won.js +20 -0
  82. package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
  83. package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
  84. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  85. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  86. package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
  87. package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
  88. package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
  89. package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
  90. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
  91. package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
  92. package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
  93. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
  94. package/dist/clone-Dn__H8fX.js +8 -0
  95. package/dist/clone-lShkT11Q.cjs +1 -0
  96. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  97. package/dist/components/box-list/box-list-types.d.ts +1 -0
  98. package/dist/components/box-list/box-list-types.d.ts.map +1 -1
  99. package/dist/components/box-list/box-list.d.ts.map +1 -1
  100. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  101. package/dist/components/field/field-types.d.ts +1 -1
  102. package/dist/components/field/field-types.d.ts.map +1 -1
  103. package/dist/components/htm/htm-types.d.ts +4 -0
  104. package/dist/components/htm/htm-types.d.ts.map +1 -1
  105. package/dist/components/htm/htm.d.ts.map +1 -1
  106. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  107. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  108. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  109. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  110. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  111. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  112. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  113. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  114. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  115. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  116. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +15 -0
  117. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  119. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  120. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  121. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  122. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  123. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  124. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  125. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  126. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  127. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  128. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +1 -1
  129. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  130. package/dist/components/image-list/components/strip-child-popup.d.ts.map +1 -1
  131. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/strip-overflow-button.d.ts.map +1 -1
  133. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  134. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  135. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  136. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  137. package/dist/components/image-list/image-list-context.d.ts +5 -2
  138. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  139. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  140. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  141. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  142. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  143. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  144. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  145. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  146. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  147. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  148. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  149. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  150. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  151. package/dist/components/image-list/image-list-types.d.ts +50 -2
  152. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  153. package/dist/components/image-list/image-list-utils.d.ts +54 -2
  154. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  155. package/dist/components/image-list/image-list.d.ts +1 -1
  156. package/dist/components/image-list/image-list.d.ts.map +1 -1
  157. package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
  158. package/dist/components/tooltip/tooltip-utils.d.ts.map +1 -1
  159. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  160. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  161. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  162. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  163. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  164. package/dist/dagre-BjnWDdkw.cjs +1 -0
  165. package/dist/dagre-DVLnxd7n.js +1606 -0
  166. package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
  167. package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
  168. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  169. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  170. package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
  171. package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
  172. package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
  173. package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
  174. package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
  175. package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
  176. package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
  177. package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
  178. package/dist/dist-BgvMZbfo.cjs +1 -0
  179. package/dist/dist-DL30VIBI.js +60 -0
  180. package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
  181. package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
  182. package/dist/flatten-BE1bWL-7.js +40 -0
  183. package/dist/flatten-DxvYSoR8.cjs +1 -0
  184. package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
  185. package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
  186. package/dist/functional-components/action/action-types.d.ts +70 -0
  187. package/dist/functional-components/action/action-types.d.ts.map +1 -0
  188. package/dist/functional-components/action/action-utils.d.ts +5 -0
  189. package/dist/functional-components/action/action-utils.d.ts.map +1 -0
  190. package/dist/functional-components/action/action.d.ts +3 -0
  191. package/dist/functional-components/action/action.d.ts.map +1 -0
  192. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  193. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  194. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +1 -1
  195. package/dist/functional-components/gantt/gantt-assets.d.ts +4 -0
  196. package/dist/functional-components/gantt/gantt-assets.d.ts.map +1 -1
  197. package/dist/functional-components/gantt/gantt.d.ts.map +1 -1
  198. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts +17 -0
  199. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  200. package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
  201. package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
  202. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  203. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  204. package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
  205. package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
  206. package/dist/graphlib-Cpifseqb.js +373 -0
  207. package/dist/graphlib-HdfvGLpV.cjs +1 -0
  208. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  209. package/dist/identity-KQSjemTb.cjs +1 -0
  210. package/dist/identity-g0dsMjx7.js +393 -0
  211. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  212. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  213. package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
  214. package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
  215. package/dist/init-B2MubQrj.cjs +1 -0
  216. package/dist/init-BO60vQHJ.js +15 -0
  217. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  218. package/dist/isEmpty-RwX-oIQS.js +35 -0
  219. package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
  220. package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
  221. package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
  222. package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
  223. package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
  224. package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
  225. package/dist/katex-Du5WiYIy.js +22000 -0
  226. package/dist/katex-SAH56fvc.cjs +257 -0
  227. package/dist/ketchup2.cjs.js +190 -1
  228. package/dist/ketchup2.css +2 -1
  229. package/dist/ketchup2.es.js +132419 -52
  230. package/dist/line-BbHmiwbs.cjs +1 -0
  231. package/dist/line-JyRBGWft.js +34 -0
  232. package/dist/linear-BsPvNLJv.js +289 -0
  233. package/dist/linear-CxHa1DsM.cjs +1 -0
  234. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  235. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  236. package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
  237. package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
  238. package/dist/ordinal-C-VoL0XF.js +65 -0
  239. package/dist/ordinal-Civr0hZL.cjs +1 -0
  240. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  241. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  242. package/dist/path-Civic7PQ.cjs +1 -0
  243. package/dist/path-CvfwEr8y.js +85 -0
  244. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  245. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  246. package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
  247. package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
  248. package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
  249. package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
  250. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  251. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  252. package/dist/reduce-B7WW9rkU.cjs +1 -0
  253. package/dist/reduce-DNnkcf3M.js +532 -0
  254. package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
  255. package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
  256. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  257. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  258. package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
  259. package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
  260. package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
  261. package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
  262. package/dist/src-BQiFKP24.js +2146 -0
  263. package/dist/src-DFxq-N5I.cjs +1 -0
  264. package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
  265. package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
  266. package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
  267. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
  268. package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
  269. package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
  270. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  271. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  272. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  273. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  274. package/dist/utils/translation.d.ts.map +1 -1
  275. package/dist/v4-6yr83DbP.cjs +1 -0
  276. package/dist/v4-BR71w5_q.js +33 -0
  277. package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
  278. package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
  279. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  280. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  281. package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
  282. package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
  283. package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
  284. package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
  285. package/package.json +31 -31
  286. package/dist/_basePickBy-DGJmMScd.cjs +0 -1
  287. package/dist/_basePickBy-PX1Y-d1V.js +0 -151
  288. package/dist/_baseUniq-DcRTQJQN.cjs +0 -1
  289. package/dist/_baseUniq-DwOD2Otm.js +0 -614
  290. package/dist/arc-BsWNnd73.js +0 -83
  291. package/dist/arc-DBV_HLQY.cjs +0 -1
  292. package/dist/architecture-7HQA4BMR-CFSh30qd.js +0 -6
  293. package/dist/architecture-7HQA4BMR-lBVp8HRs.cjs +0 -1
  294. package/dist/architectureDiagram-VXUJARFQ-Bc0s-J3p.cjs +0 -36
  295. package/dist/architectureDiagram-VXUJARFQ-CMUHe_r-.js +0 -4661
  296. package/dist/blockDiagram-VD42YOAC-C_oUXbzO.cjs +0 -122
  297. package/dist/blockDiagram-VD42YOAC-IY9o9LbQ.js +0 -2256
  298. package/dist/c4Diagram-YG6GDRKO-CqZ8ZT08.cjs +0 -10
  299. package/dist/c4Diagram-YG6GDRKO-DJxkbTo5.js +0 -1580
  300. package/dist/channel-BkvCKlJ6.js +0 -5
  301. package/dist/channel-CswPsSpD.cjs +0 -1
  302. package/dist/chunk-4BX2VUAB-CYIF37mc.js +0 -8
  303. package/dist/chunk-4BX2VUAB-gEHSzd7y.cjs +0 -1
  304. package/dist/chunk-55IACEB6-BHAHwp5q.js +0 -8
  305. package/dist/chunk-55IACEB6-_lyvFxBQ.cjs +0 -1
  306. package/dist/chunk-B4BG7PRW-B8r_ephc.js +0 -1375
  307. package/dist/chunk-B4BG7PRW-BS27R9kc.cjs +0 -165
  308. package/dist/chunk-DI55MBZ5-Bm2YZ5i9.cjs +0 -220
  309. package/dist/chunk-DI55MBZ5-hEyGllSh.js +0 -1370
  310. package/dist/chunk-FMBD7UC4-D7nrDShK.js +0 -19
  311. package/dist/chunk-QN33PNHL-BgJe6Xfg.cjs +0 -1
  312. package/dist/chunk-QN33PNHL-rrJh01ga.js +0 -19
  313. package/dist/chunk-QZHKN3VN-BmAbl_2n.js +0 -15
  314. package/dist/chunk-QZHKN3VN-BrAhTHYa.cjs +0 -1
  315. package/dist/chunk-TZMSLE5B-BE-7S1wa.js +0 -64
  316. package/dist/chunk-TZMSLE5B-BHB7-VQp.cjs +0 -1
  317. package/dist/classDiagram-2ON5EDUG-CebcMRVR.cjs +0 -1
  318. package/dist/classDiagram-2ON5EDUG-D3F1RaIQ.js +0 -16
  319. package/dist/classDiagram-v2-WZHVMYZB-CebcMRVR.cjs +0 -1
  320. package/dist/classDiagram-v2-WZHVMYZB-D3F1RaIQ.js +0 -16
  321. package/dist/clone-BDgl72Aq.cjs +0 -1
  322. package/dist/clone-C_aDFxlO.js +0 -8
  323. package/dist/cose-bilkent-S5V4N54A-D3wiY3iN.cjs +0 -1
  324. package/dist/cose-bilkent-S5V4N54A-D5AClp5l.js +0 -2608
  325. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  326. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  327. package/dist/dagre-6UL2VRFP-CypqseiV.cjs +0 -4
  328. package/dist/dagre-6UL2VRFP-DMO4JOci.js +0 -444
  329. package/dist/defaultLocale-D7EN2tov.js +0 -171
  330. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  331. package/dist/diagram-PSM6KHXK-BDoLsIhn.cjs +0 -24
  332. package/dist/diagram-PSM6KHXK-cFCqdUIB.js +0 -531
  333. package/dist/diagram-QEK2KX5R-Cc5PUDIg.cjs +0 -43
  334. package/dist/diagram-QEK2KX5R-Cu_E8La-.js +0 -217
  335. package/dist/diagram-S2PKOQOG-CGnbJJ6_.cjs +0 -24
  336. package/dist/diagram-S2PKOQOG-Cz6p6CDp.js +0 -142
  337. package/dist/erDiagram-Q2GNP2WA-C4LFQCJ0.cjs +0 -60
  338. package/dist/erDiagram-Q2GNP2WA-DvfsJLvg.js +0 -841
  339. package/dist/flowDiagram-NV44I4VS-CeKGu9EW.js +0 -1620
  340. package/dist/flowDiagram-NV44I4VS-D5y8Cy09.cjs +0 -162
  341. package/dist/ganttDiagram-JELNMOA3-BSy5awHh.cjs +0 -267
  342. package/dist/ganttDiagram-JELNMOA3-Dr4U9R4y.js +0 -2670
  343. package/dist/gitGraph-G5XIXVHT-CO3K0I5T.js +0 -6
  344. package/dist/gitGraph-G5XIXVHT-Ca7V3WsM.cjs +0 -1
  345. package/dist/gitGraphDiagram-V2S2FVAM-1QBHZeWE.js +0 -699
  346. package/dist/gitGraphDiagram-V2S2FVAM-OiapaYQL.cjs +0 -65
  347. package/dist/graph-Jks8K00w.cjs +0 -1
  348. package/dist/graph-zNBt93GG.js +0 -247
  349. package/dist/index-D_QdHvga.js +0 -132342
  350. package/dist/index-DrE_PcNC.cjs +0 -390
  351. package/dist/info-VBDWY6EO-0Eh7RJSD.js +0 -6
  352. package/dist/info-VBDWY6EO-BUpod63m.cjs +0 -1
  353. package/dist/infoDiagram-HS3SLOUP-DQPTM4yd.cjs +0 -2
  354. package/dist/infoDiagram-HS3SLOUP-y4B3rGEI.js +0 -24
  355. package/dist/init-CHZsXQcr.cjs +0 -1
  356. package/dist/init-DjUOC4st.js +0 -16
  357. package/dist/journeyDiagram-XKPGCS4Q-BA6dU3fB.js +0 -834
  358. package/dist/journeyDiagram-XKPGCS4Q-CgX1uRWQ.cjs +0 -139
  359. package/dist/kanban-definition-3W4ZIXB7-CCcUvQw2.js +0 -719
  360. package/dist/kanban-definition-3W4ZIXB7-CLsSK820.cjs +0 -89
  361. package/dist/katex-C2g-EhzP.cjs +0 -261
  362. package/dist/katex-CUSbq6rG.js +0 -11692
  363. package/dist/layout-DQY8NU7r.cjs +0 -1
  364. package/dist/layout-DhDJaAGH.js +0 -1335
  365. package/dist/linear-BxHQa2UM.js +0 -259
  366. package/dist/linear-DFPXnk9z.cjs +0 -1
  367. package/dist/mermaid-parser.core-BLQ9Ldcb.cjs +0 -160
  368. package/dist/mermaid-parser.core-Bny4tLBT.js +0 -17907
  369. package/dist/mindmap-definition-VGOIOE7T-Bw0Ttp1K.cjs +0 -68
  370. package/dist/mindmap-definition-VGOIOE7T-DWETxOzy.js +0 -758
  371. package/dist/ordinal-B6-f3MAq.js +0 -61
  372. package/dist/ordinal-CagbB1m8.cjs +0 -1
  373. package/dist/packet-DYOGHKS2-A2xNn9e2.cjs +0 -1
  374. package/dist/packet-DYOGHKS2-C9WC8eNb.js +0 -6
  375. package/dist/pie-VRWISCQL-BafPWeA1.cjs +0 -1
  376. package/dist/pie-VRWISCQL-vKJ8WC8d.js +0 -6
  377. package/dist/pieDiagram-ADFJNKIX-BdsfNh69.js +0 -161
  378. package/dist/pieDiagram-ADFJNKIX-DOZhSj8j.cjs +0 -30
  379. package/dist/quadrantDiagram-AYHSOK5B-BLuxXMra.cjs +0 -7
  380. package/dist/quadrantDiagram-AYHSOK5B-D9KE7HJs.js +0 -1022
  381. package/dist/radar-ZZBFDIW7-BLGCqPHv.js +0 -6
  382. package/dist/radar-ZZBFDIW7-BWxFhKYx.cjs +0 -1
  383. package/dist/requirementDiagram-UZGBJVZJ-BEkU_fE6.js +0 -850
  384. package/dist/requirementDiagram-UZGBJVZJ-DkNufFqc.cjs +0 -64
  385. package/dist/sankeyDiagram-TZEHDZUN-BJD6V_yO.js +0 -810
  386. package/dist/sankeyDiagram-TZEHDZUN-Dt4bjS4w.cjs +0 -10
  387. package/dist/sequenceDiagram-WL72ISMW-CSEM0aqp.cjs +0 -145
  388. package/dist/sequenceDiagram-WL72ISMW-dCDlLWba.js +0 -2511
  389. package/dist/stateDiagram-FKZM4ZOC-BcD9IQHo.cjs +0 -1
  390. package/dist/stateDiagram-FKZM4ZOC-CZ3DL61f.js +0 -263
  391. package/dist/stateDiagram-v2-4FDKWEC3-DGsrmxNL.cjs +0 -1
  392. package/dist/stateDiagram-v2-4FDKWEC3-DON-yX7J.js +0 -16
  393. package/dist/timeline-definition-IT6M3QCI-Bwb7mbiA.js +0 -795
  394. package/dist/timeline-definition-IT6M3QCI-CIbYhaSE.cjs +0 -61
  395. package/dist/treemap-GDKQZRPO-BMq1hkbw.cjs +0 -1
  396. package/dist/treemap-GDKQZRPO-DYOf8KkT.js +0 -6
  397. package/dist/xychartDiagram-PRI3JC2R-DloZDwSO.cjs +0 -7
  398. package/dist/xychartDiagram-PRI3JC2R-er9aZ4EF.js +0 -1340
@@ -0,0 +1,1068 @@
1
+ import { K as e, Q as t, Z as n, a as r, b as i, et as a, o, y as s } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
2
+ import { g as c, h as l, m as u, p as d } from "./src-BQiFKP24.js";
3
+ import { t as f } from "./arc-Klgb378K.js";
4
+ import { f as p } from "./chunk-5PVQY5BW-C5U7sJAA.js";
5
+ import { t as m } from "./chunk-426QAEUC-JjFVHKYG.js";
6
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.mjs
7
+ var h = (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
+ 11,
14
+ 13,
15
+ 14,
16
+ 15,
17
+ 17,
18
+ 19,
19
+ 20,
20
+ 23,
21
+ 24
22
+ ], n = [1, 12], r = [1, 13], i = [1, 14], a = [1, 15], o = [1, 16], s = [1, 19], c = [1, 20], u = {
23
+ trace: /* @__PURE__ */ l(function() {}, "trace"),
24
+ yy: {},
25
+ symbols_: {
26
+ error: 2,
27
+ start: 3,
28
+ timeline_header: 4,
29
+ document: 5,
30
+ EOF: 6,
31
+ timeline: 7,
32
+ timeline_lr: 8,
33
+ timeline_td: 9,
34
+ line: 10,
35
+ SPACE: 11,
36
+ statement: 12,
37
+ NEWLINE: 13,
38
+ title: 14,
39
+ acc_title: 15,
40
+ acc_title_value: 16,
41
+ acc_descr: 17,
42
+ acc_descr_value: 18,
43
+ acc_descr_multiline_value: 19,
44
+ section: 20,
45
+ period_statement: 21,
46
+ event_statement: 22,
47
+ period: 23,
48
+ event: 24,
49
+ $accept: 0,
50
+ $end: 1
51
+ },
52
+ terminals_: {
53
+ 2: "error",
54
+ 6: "EOF",
55
+ 7: "timeline",
56
+ 8: "timeline_lr",
57
+ 9: "timeline_td",
58
+ 11: "SPACE",
59
+ 13: "NEWLINE",
60
+ 14: "title",
61
+ 15: "acc_title",
62
+ 16: "acc_title_value",
63
+ 17: "acc_descr",
64
+ 18: "acc_descr_value",
65
+ 19: "acc_descr_multiline_value",
66
+ 20: "section",
67
+ 23: "period",
68
+ 24: "event"
69
+ },
70
+ productions_: [
71
+ 0,
72
+ [3, 3],
73
+ [4, 1],
74
+ [4, 1],
75
+ [4, 1],
76
+ [5, 0],
77
+ [5, 2],
78
+ [10, 2],
79
+ [10, 1],
80
+ [10, 1],
81
+ [10, 1],
82
+ [12, 1],
83
+ [12, 2],
84
+ [12, 2],
85
+ [12, 1],
86
+ [12, 1],
87
+ [12, 1],
88
+ [12, 1],
89
+ [21, 1],
90
+ [22, 1]
91
+ ],
92
+ performAction: /* @__PURE__ */ l(function(e, t, n, r, i, a, o) {
93
+ var s = a.length - 1;
94
+ switch (i) {
95
+ case 1: return a[s - 1];
96
+ case 3:
97
+ r.setDirection("LR");
98
+ break;
99
+ case 4:
100
+ r.setDirection("TD");
101
+ break;
102
+ case 5:
103
+ this.$ = [];
104
+ break;
105
+ case 6:
106
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
107
+ break;
108
+ case 7:
109
+ case 8:
110
+ this.$ = a[s];
111
+ break;
112
+ case 9:
113
+ case 10:
114
+ this.$ = [];
115
+ break;
116
+ case 11:
117
+ r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
118
+ break;
119
+ case 12:
120
+ this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
121
+ break;
122
+ case 13:
123
+ case 14:
124
+ this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
125
+ break;
126
+ case 15:
127
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
128
+ break;
129
+ case 18:
130
+ r.addTask(a[s], 0, ""), this.$ = a[s];
131
+ break;
132
+ case 19:
133
+ r.addEvent(a[s].substr(2)), this.$ = a[s];
134
+ break;
135
+ }
136
+ }, "anonymous"),
137
+ table: [
138
+ {
139
+ 3: 1,
140
+ 4: 2,
141
+ 7: [1, 3],
142
+ 8: [1, 4],
143
+ 9: [1, 5]
144
+ },
145
+ { 1: [3] },
146
+ e(t, [2, 5], { 5: 6 }),
147
+ e(t, [2, 2]),
148
+ e(t, [2, 3]),
149
+ e(t, [2, 4]),
150
+ {
151
+ 6: [1, 7],
152
+ 10: 8,
153
+ 11: [1, 9],
154
+ 12: 10,
155
+ 13: [1, 11],
156
+ 14: n,
157
+ 15: r,
158
+ 17: i,
159
+ 19: a,
160
+ 20: o,
161
+ 21: 17,
162
+ 22: 18,
163
+ 23: s,
164
+ 24: c
165
+ },
166
+ e(t, [2, 10], { 1: [2, 1] }),
167
+ e(t, [2, 6]),
168
+ {
169
+ 12: 21,
170
+ 14: n,
171
+ 15: r,
172
+ 17: i,
173
+ 19: a,
174
+ 20: o,
175
+ 21: 17,
176
+ 22: 18,
177
+ 23: s,
178
+ 24: c
179
+ },
180
+ e(t, [2, 8]),
181
+ e(t, [2, 9]),
182
+ e(t, [2, 11]),
183
+ { 16: [1, 22] },
184
+ { 18: [1, 23] },
185
+ e(t, [2, 14]),
186
+ e(t, [2, 15]),
187
+ e(t, [2, 16]),
188
+ e(t, [2, 17]),
189
+ e(t, [2, 18]),
190
+ e(t, [2, 19]),
191
+ e(t, [2, 7]),
192
+ e(t, [2, 12]),
193
+ e(t, [2, 13])
194
+ ],
195
+ defaultActions: {},
196
+ parseError: /* @__PURE__ */ l(function(e, t) {
197
+ if (t.recoverable) this.trace(e);
198
+ else {
199
+ var n = Error(e);
200
+ throw n.hash = t, n;
201
+ }
202
+ }, "parseError"),
203
+ parse: /* @__PURE__ */ l(function(e) {
204
+ 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: {} };
205
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
206
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
207
+ var v = h.yylloc;
208
+ a.push(v);
209
+ var y = h.options && h.options.ranges;
210
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
211
+ function b(e) {
212
+ n.length -= 2 * e, i.length -= e, a.length -= e;
213
+ }
214
+ l(b, "popStack");
215
+ function x() {
216
+ var e = r.pop() || h.lex() || p;
217
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
218
+ }
219
+ l(x, "lex");
220
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
221
+ 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]) {
222
+ var M = "";
223
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
224
+ 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, {
225
+ text: h.match,
226
+ token: this.terminals_[S] || S,
227
+ line: h.yylineno,
228
+ loc: v,
229
+ expected: j
230
+ });
231
+ }
232
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
233
+ switch (T[0]) {
234
+ case 1:
235
+ 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--);
236
+ break;
237
+ case 2:
238
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
239
+ first_line: a[a.length - (k || 1)].first_line,
240
+ last_line: a[a.length - 1].last_line,
241
+ first_column: a[a.length - (k || 1)].first_column,
242
+ last_column: a[a.length - 1].last_column
243
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
244
+ s,
245
+ u,
246
+ c,
247
+ g.yy,
248
+ T[1],
249
+ i,
250
+ a
251
+ ].concat(m)), E !== void 0) return E;
252
+ 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);
253
+ break;
254
+ case 3: return !0;
255
+ }
256
+ }
257
+ return !0;
258
+ }, "parse")
259
+ };
260
+ u.lexer = /* @__PURE__ */ (function() {
261
+ return {
262
+ EOF: 1,
263
+ parseError: /* @__PURE__ */ l(function(e, t) {
264
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
265
+ else throw Error(e);
266
+ }, "parseError"),
267
+ setInput: /* @__PURE__ */ l(function(e, t) {
268
+ 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 = {
269
+ first_line: 1,
270
+ first_column: 0,
271
+ last_line: 1,
272
+ last_column: 0
273
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
274
+ }, "setInput"),
275
+ input: /* @__PURE__ */ l(function() {
276
+ var e = this._input[0];
277
+ 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;
278
+ }, "input"),
279
+ unput: /* @__PURE__ */ l(function(e) {
280
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
281
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
282
+ var r = this.match.split(/(?:\r\n?|\n)/g);
283
+ 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);
284
+ var i = this.yylloc.range;
285
+ return this.yylloc = {
286
+ first_line: this.yylloc.first_line,
287
+ last_line: this.yylineno + 1,
288
+ first_column: this.yylloc.first_column,
289
+ 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
290
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
291
+ }, "unput"),
292
+ more: /* @__PURE__ */ l(function() {
293
+ return this._more = !0, this;
294
+ }, "more"),
295
+ reject: /* @__PURE__ */ l(function() {
296
+ if (this.options.backtrack_lexer) this._backtrack = !0;
297
+ 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(), {
298
+ text: "",
299
+ token: null,
300
+ line: this.yylineno
301
+ });
302
+ return this;
303
+ }, "reject"),
304
+ less: /* @__PURE__ */ l(function(e) {
305
+ this.unput(this.match.slice(e));
306
+ }, "less"),
307
+ pastInput: /* @__PURE__ */ l(function() {
308
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
309
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
310
+ }, "pastInput"),
311
+ upcomingInput: /* @__PURE__ */ l(function() {
312
+ var e = this.match;
313
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
314
+ }, "upcomingInput"),
315
+ showPosition: /* @__PURE__ */ l(function() {
316
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
317
+ return e + this.upcomingInput() + "\n" + t + "^";
318
+ }, "showPosition"),
319
+ test_match: /* @__PURE__ */ l(function(e, t) {
320
+ var n, r, i;
321
+ if (this.options.backtrack_lexer && (i = {
322
+ yylineno: this.yylineno,
323
+ yylloc: {
324
+ first_line: this.yylloc.first_line,
325
+ last_line: this.last_line,
326
+ first_column: this.yylloc.first_column,
327
+ last_column: this.yylloc.last_column
328
+ },
329
+ yytext: this.yytext,
330
+ match: this.match,
331
+ matches: this.matches,
332
+ matched: this.matched,
333
+ yyleng: this.yyleng,
334
+ offset: this.offset,
335
+ _more: this._more,
336
+ _input: this._input,
337
+ yy: this.yy,
338
+ conditionStack: this.conditionStack.slice(0),
339
+ done: this.done
340
+ }, 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 = {
341
+ first_line: this.yylloc.last_line,
342
+ last_line: this.yylineno + 1,
343
+ first_column: this.yylloc.last_column,
344
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
345
+ }, 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;
346
+ if (this._backtrack) {
347
+ for (var a in i) this[a] = i[a];
348
+ return !1;
349
+ }
350
+ return !1;
351
+ }, "test_match"),
352
+ next: /* @__PURE__ */ l(function() {
353
+ if (this.done) return this.EOF;
354
+ this._input || (this.done = !0);
355
+ var e, t, n, r;
356
+ this._more || (this.yytext = "", this.match = "");
357
+ 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)) {
358
+ if (t = n, r = a, this.options.backtrack_lexer) {
359
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
360
+ if (this._backtrack) {
361
+ t = !1;
362
+ continue;
363
+ } else return !1;
364
+ } else if (!this.options.flex) break;
365
+ }
366
+ 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(), {
367
+ text: "",
368
+ token: null,
369
+ line: this.yylineno
370
+ });
371
+ }, "next"),
372
+ lex: /* @__PURE__ */ l(function() {
373
+ return this.next() || this.lex();
374
+ }, "lex"),
375
+ begin: /* @__PURE__ */ l(function(e) {
376
+ this.conditionStack.push(e);
377
+ }, "begin"),
378
+ popState: /* @__PURE__ */ l(function() {
379
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
380
+ }, "popState"),
381
+ _currentRules: /* @__PURE__ */ l(function() {
382
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
383
+ }, "_currentRules"),
384
+ topState: /* @__PURE__ */ l(function(e) {
385
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
386
+ }, "topState"),
387
+ pushState: /* @__PURE__ */ l(function(e) {
388
+ this.begin(e);
389
+ }, "pushState"),
390
+ stateStackSize: /* @__PURE__ */ l(function() {
391
+ return this.conditionStack.length;
392
+ }, "stateStackSize"),
393
+ options: { "case-insensitive": !0 },
394
+ performAction: /* @__PURE__ */ l(function(e, t, n, r) {
395
+ switch (n) {
396
+ case 0: break;
397
+ case 1: break;
398
+ case 2: return 13;
399
+ case 3: break;
400
+ case 4: break;
401
+ case 5: return 8;
402
+ case 6: return 9;
403
+ case 7: return 7;
404
+ case 8: return 14;
405
+ case 9: return this.begin("acc_title"), 15;
406
+ case 10: return this.popState(), "acc_title_value";
407
+ case 11: return this.begin("acc_descr"), 17;
408
+ case 12: return this.popState(), "acc_descr_value";
409
+ case 13:
410
+ this.begin("acc_descr_multiline");
411
+ break;
412
+ case 14:
413
+ this.popState();
414
+ break;
415
+ case 15: return "acc_descr_multiline_value";
416
+ case 16: return 20;
417
+ case 17: return 24;
418
+ case 18: return 23;
419
+ case 19: return 6;
420
+ case 20: return "INVALID";
421
+ }
422
+ }, "anonymous"),
423
+ rules: [
424
+ /^(?:%(?!\{)[^\n]*)/i,
425
+ /^(?:[^\}]%%[^\n]*)/i,
426
+ /^(?:[\n]+)/i,
427
+ /^(?:\s+)/i,
428
+ /^(?:#[^\n]*)/i,
429
+ /^(?:timeline[ \t]+LR\b)/i,
430
+ /^(?:timeline[ \t]+TD\b)/i,
431
+ /^(?:timeline\b)/i,
432
+ /^(?:title\s[^\n]+)/i,
433
+ /^(?:accTitle\s*:\s*)/i,
434
+ /^(?:(?!\n||)*[^\n]*)/i,
435
+ /^(?:accDescr\s*:\s*)/i,
436
+ /^(?:(?!\n||)*[^\n]*)/i,
437
+ /^(?:accDescr\s*\{\s*)/i,
438
+ /^(?:[\}])/i,
439
+ /^(?:[^\}]*)/i,
440
+ /^(?:section\s[^:\n]+)/i,
441
+ /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
442
+ /^(?:[^#:\n]+)/i,
443
+ /^(?:$)/i,
444
+ /^(?:.)/i
445
+ ],
446
+ conditions: {
447
+ acc_descr_multiline: {
448
+ rules: [14, 15],
449
+ inclusive: !1
450
+ },
451
+ acc_descr: {
452
+ rules: [12],
453
+ inclusive: !1
454
+ },
455
+ acc_title: {
456
+ rules: [10],
457
+ inclusive: !1
458
+ },
459
+ INITIAL: {
460
+ rules: [
461
+ 0,
462
+ 1,
463
+ 2,
464
+ 3,
465
+ 4,
466
+ 5,
467
+ 6,
468
+ 7,
469
+ 8,
470
+ 9,
471
+ 11,
472
+ 13,
473
+ 16,
474
+ 17,
475
+ 18,
476
+ 19,
477
+ 20
478
+ ],
479
+ inclusive: !0
480
+ }
481
+ }
482
+ };
483
+ })();
484
+ function d() {
485
+ this.yy = {};
486
+ }
487
+ return l(d, "Parser"), d.prototype = u, u.Parser = d, new d();
488
+ })();
489
+ h.parser = h;
490
+ var g = h, _ = {};
491
+ u(_, {
492
+ addEvent: () => M,
493
+ addSection: () => O,
494
+ addTask: () => j,
495
+ addTaskOrg: () => N,
496
+ clear: () => T,
497
+ default: () => ee,
498
+ getCommonDb: () => w,
499
+ getDirection: () => D,
500
+ getSections: () => k,
501
+ getTasks: () => A,
502
+ setDirection: () => E
503
+ });
504
+ var v = "", y = 0, b = "LR", x = [], S = [], C = [], w = /* @__PURE__ */ l(() => o, "getCommonDb"), T = /* @__PURE__ */ l(function() {
505
+ x.length = 0, S.length = 0, v = "", C.length = 0, b = "LR", r();
506
+ }, "clear"), E = /* @__PURE__ */ l(function(e) {
507
+ b = e;
508
+ }, "setDirection"), D = /* @__PURE__ */ l(function() {
509
+ return b;
510
+ }, "getDirection"), O = /* @__PURE__ */ l(function(e) {
511
+ v = e, x.push(e);
512
+ }, "addSection"), k = /* @__PURE__ */ l(function() {
513
+ return x;
514
+ }, "getSections"), A = /* @__PURE__ */ l(function() {
515
+ let e = P(), t = 0;
516
+ for (; !e && t < 100;) e = P(), t++;
517
+ return S.push(...C), S;
518
+ }, "getTasks"), j = /* @__PURE__ */ l(function(e, t, n) {
519
+ let r = {
520
+ id: y++,
521
+ section: v,
522
+ type: v,
523
+ task: e,
524
+ score: t || 0,
525
+ events: n ? [n] : []
526
+ };
527
+ C.push(r);
528
+ }, "addTask"), M = /* @__PURE__ */ l(function(e) {
529
+ C.find((e) => e.id === y - 1).events.push(e);
530
+ }, "addEvent"), N = /* @__PURE__ */ l(function(e) {
531
+ let t = {
532
+ section: v,
533
+ type: v,
534
+ description: e,
535
+ task: e,
536
+ classes: []
537
+ };
538
+ S.push(t);
539
+ }, "addTaskOrg"), P = /* @__PURE__ */ l(function() {
540
+ let e = /* @__PURE__ */ l(function(e) {
541
+ return C[e].processed;
542
+ }, "compileTask"), t = !0;
543
+ for (let [n, r] of C.entries()) e(n), t &&= r.processed;
544
+ return t;
545
+ }, "compileTasks"), ee = {
546
+ clear: T,
547
+ getCommonDb: w,
548
+ getDirection: D,
549
+ setDirection: E,
550
+ addSection: O,
551
+ getSections: k,
552
+ getTasks: A,
553
+ addTask: j,
554
+ addTaskOrg: N,
555
+ addEvent: M
556
+ }, F = 0, I = /* @__PURE__ */ l(function(e, t) {
557
+ let n = e.append("rect");
558
+ return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
559
+ }, "drawRect"), te = /* @__PURE__ */ l(function(e, t) {
560
+ 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");
561
+ 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");
562
+ function i(e) {
563
+ let n = f().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
564
+ e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
565
+ }
566
+ l(i, "smile");
567
+ function a(e) {
568
+ let n = f().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
569
+ e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
570
+ }
571
+ l(a, "sad");
572
+ function o(e) {
573
+ 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");
574
+ }
575
+ return l(o, "ambivalent"), t.score > 3 ? i(r) : t.score < 3 ? a(r) : o(r), n;
576
+ }, "drawFace"), ne = /* @__PURE__ */ l(function(e, t) {
577
+ let n = e.append("circle");
578
+ 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;
579
+ }, "drawCircle"), L = /* @__PURE__ */ l(function(e, t) {
580
+ let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
581
+ r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
582
+ let i = r.append("tspan");
583
+ return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
584
+ }, "drawText"), re = /* @__PURE__ */ l(function(e, t) {
585
+ function n(e, t, n, r, i) {
586
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
587
+ }
588
+ l(n, "genPoints");
589
+ let r = e.append("polygon");
590
+ r.attr("points", n(t.x, t.y, 50, 20, 7)), r.attr("class", "labelBox"), t.y += t.labelMargin, t.x += .5 * t.labelMargin, L(e, t);
591
+ }, "drawLabel"), R = /* @__PURE__ */ l(function(e, t, n) {
592
+ let r = e.append("g"), i = B();
593
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, I(r, i), V(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
594
+ }, "drawSection"), z = -1, ie = /* @__PURE__ */ l(function(e, t, n, r) {
595
+ let i = t.x + n.width / 2, a = e.append("g");
596
+ 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"), te(a, {
597
+ cx: i,
598
+ cy: 300 + (5 - t.score) * 30,
599
+ score: t.score
600
+ });
601
+ let o = B();
602
+ 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, I(a, o), V(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
603
+ }, "drawTask"), ae = /* @__PURE__ */ l(function(e, t) {
604
+ I(e, {
605
+ x: t.startx,
606
+ y: t.starty,
607
+ width: t.stopx - t.startx,
608
+ height: t.stopy - t.starty,
609
+ fill: t.fill,
610
+ class: "rect"
611
+ }).lower();
612
+ }, "drawBackgroundRect"), oe = /* @__PURE__ */ l(function() {
613
+ return {
614
+ x: 0,
615
+ y: 0,
616
+ fill: void 0,
617
+ "text-anchor": "start",
618
+ width: 100,
619
+ height: 100,
620
+ textMargin: 0,
621
+ rx: 0,
622
+ ry: 0
623
+ };
624
+ }, "getTextObj"), B = /* @__PURE__ */ l(function() {
625
+ return {
626
+ x: 0,
627
+ y: 0,
628
+ width: 100,
629
+ anchor: "start",
630
+ height: 100,
631
+ rx: 0,
632
+ ry: 0
633
+ };
634
+ }, "getNoteRect"), V = /* @__PURE__ */ (function() {
635
+ function e(e, t, n, i, a, o, s, c) {
636
+ 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);
637
+ }
638
+ l(e, "byText");
639
+ function t(e, t, n, i, a, o, s, c, l) {
640
+ let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
641
+ for (let e = 0; e < f.length; e++) {
642
+ 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);
643
+ 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);
644
+ }
645
+ }
646
+ l(t, "byTspan");
647
+ function n(e, n, i, a, o, s, c, l) {
648
+ 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%");
649
+ 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);
650
+ }
651
+ l(n, "byFo");
652
+ function r(e, t) {
653
+ for (let n in t) n in t && e.attr(n, t[n]);
654
+ }
655
+ return l(r, "_setTextAttrs"), function(r) {
656
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
657
+ };
658
+ })(), se = /* @__PURE__ */ l(function(e, t) {
659
+ F = 0, 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");
660
+ }, "initGraphics");
661
+ function H(e, t) {
662
+ e.each(function() {
663
+ var e = d(this), n = e.text().split(/(\s+|<br>)/).reverse(), r, i = [], a = 1.1, o = e.attr("y"), s = parseFloat(e.attr("dy")), c = e.text(null).append("tspan").attr("x", 0).attr("y", o).attr("dy", s + "em");
664
+ for (let s = 0; s < n.length; s++) r = n[n.length - 1 - s], i.push(r), c.text(i.join(" ").trim()), (c.node().getComputedTextLength() > t || r === "<br>") && (i.pop(), c.text(i.join(" ").trim()), i = r === "<br>" ? [""] : [r], c = e.append("tspan").attr("x", 0).attr("y", o).attr("dy", a + "em").text(r));
665
+ });
666
+ }
667
+ l(H, "wrap");
668
+ var ce = /* @__PURE__ */ l(function(e, t, n, r, i, a = !1) {
669
+ let { theme: o, look: s } = r, c = o?.includes("redux"), l = n % (r?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, u = e.append("g");
670
+ t.section = l, u.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + l));
671
+ let f = u.append("g"), p = u.append("g"), m = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), h = r.fontSize?.replace ? r.fontSize.replace("px", "") : r.fontSize;
672
+ if (t.height = m.height + h * 1.1 * .5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), c && p.attr("transform", `translate(${t.width / 2}, ${a ? t.padding / 2 + 3 : t.padding})`), ue(f, t, l, i, r), s === "neo" && (u.attr("data-look", "neo"), c)) {
673
+ let t = o.includes("dark"), n = d(e.node()?.ownerSVGElement ?? e.node()), r = n.attr("id") ?? "", i = r ? `${r}-drop-shadow` : "drop-shadow";
674
+ if (n.select(`#${i}`).empty()) {
675
+ let e = n.select("defs");
676
+ (e.empty() ? n.append("defs") : e).append("filter").attr("id", i).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", t ? "0.2" : "0.06").attr("flood-color", t ? "#FFFFFF" : "#000000");
677
+ }
678
+ }
679
+ return t;
680
+ }, "drawNode"), le = /* @__PURE__ */ l(function(e, t, n) {
681
+ let r = e.append("g"), i = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), a = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
682
+ return r.remove(), i.height + a * 1.1 * .5 + t.padding;
683
+ }, "getVirtualNodeHeight"), ue = /* @__PURE__ */ l(function(e, t, n, r, i) {
684
+ let { theme: a } = i, o = a?.includes("redux") ? 0 : 5, s = o > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${o},${o},-${o} h${t.width - 10} q${o},0,${o},${o} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
685
+ e.append("path").attr("id", r + "-node-" + F++).attr("class", "node-bkg node-" + t.type).attr("d", s), a?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
686
+ }, "defaultBkg"), U = {
687
+ drawRect: I,
688
+ drawCircle: ne,
689
+ drawSection: R,
690
+ drawText: L,
691
+ drawLabel: re,
692
+ drawTask: ie,
693
+ drawBackgroundRect: ae,
694
+ getTextObj: oe,
695
+ getNoteRect: B,
696
+ initGraphics: se,
697
+ drawNode: ce,
698
+ getVirtualNodeHeight: le
699
+ }, de = /* @__PURE__ */ l(function(t, n, r, a) {
700
+ let o = i(), { look: s, theme: l, themeVariables: u } = o, { useGradient: f, gradientStart: p, gradientStop: m } = u, h = o.timeline?.leftMargin ?? 50;
701
+ c.debug("timeline", a.db);
702
+ let g = o.securityLevel, _;
703
+ g === "sandbox" && (_ = d("#i" + n));
704
+ let v = d(g === "sandbox" ? _.nodes()[0].contentDocument.body : "body").select("#" + n);
705
+ v.append("g");
706
+ let y = a.db.getTasks(), b = a.db.getCommonDb().getDiagramTitle();
707
+ c.debug("task", y), U.initGraphics(v, n);
708
+ let x = a.db.getSections();
709
+ c.debug("sections", x);
710
+ let S = 0, C = 0, w = 0, T = 0, E = 50 + h, D = 50;
711
+ T = 50;
712
+ let O = 0, k = !0;
713
+ x.forEach(function(e) {
714
+ let t = {
715
+ number: O,
716
+ descr: e,
717
+ section: O,
718
+ width: 150,
719
+ padding: 20,
720
+ maxHeight: S
721
+ }, n = U.getVirtualNodeHeight(v, t, o);
722
+ c.debug("sectionHeight before draw", n), S = Math.max(S, n + 20);
723
+ });
724
+ let A = 0, j = 0;
725
+ c.debug("tasks.length", y.length);
726
+ for (let [e, t] of y.entries()) {
727
+ let n = {
728
+ number: e,
729
+ descr: t,
730
+ section: t.section,
731
+ width: 150,
732
+ padding: 20,
733
+ maxHeight: C
734
+ }, r = U.getVirtualNodeHeight(v, n, o);
735
+ c.debug("taskHeight before draw", r), C = Math.max(C, r + 20), A = Math.max(A, t.events.length);
736
+ let i = 0;
737
+ for (let e of t.events) {
738
+ let n = {
739
+ descr: e,
740
+ section: t.section,
741
+ number: t.section,
742
+ width: 150,
743
+ padding: 20,
744
+ maxHeight: 50
745
+ };
746
+ i += U.getVirtualNodeHeight(v, n, o);
747
+ }
748
+ t.events.length > 0 && (i += (t.events.length - 1) * 10), j = Math.max(j, i);
749
+ }
750
+ c.debug("maxSectionHeight before draw", S), c.debug("maxTaskHeight before draw", C), x && x.length > 0 ? x.forEach((e) => {
751
+ let t = y.filter((t) => t.section === e), r = {
752
+ number: O,
753
+ descr: e,
754
+ section: O,
755
+ width: 200 * Math.max(t.length, 1) - 50,
756
+ padding: 20,
757
+ maxHeight: S
758
+ };
759
+ c.debug("sectionNode", r);
760
+ let i = v.append("g"), a = U.drawNode(i, r, O, o, n);
761
+ c.debug("sectionNode output", a), i.attr("transform", `translate(${E}, ${T})`), D += S + 50, t.length > 0 && W(v, t, O, E, D, C, o, A, j, S, !1, n), E += 200 * Math.max(t.length, 1), D = T, O++;
762
+ }) : (k = !1, W(v, y, O, E, D, C, o, A, j, S, !0, n));
763
+ let M = v.node().getBBox();
764
+ if (c.debug("bounds", M), b && v.append("text").text(b).attr("x", s === "neo" ? M.x * 2 + h : M.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), w = k ? S + C + 150 : C + 100, v.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", w).attr("x2", M.width + 3 * h).attr("y2", w).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${n}-arrowhead)`), s === "neo" && f && l !== "neutral") {
765
+ let e = v.select("defs"), t = (e.empty() ? v.append("defs") : e).append("linearGradient").attr("id", v.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
766
+ t.append("stop").attr("offset", "0%").attr("stop-color", p).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
767
+ }
768
+ e(void 0, v, o.timeline?.padding ?? 50, o.timeline?.useMaxWidth ?? !1);
769
+ }, "draw"), W = /* @__PURE__ */ l(function(e, t, n, r, i, a, o, s, l, u, d, f) {
770
+ for (let s of t) {
771
+ let t = {
772
+ descr: s.task,
773
+ section: n,
774
+ number: n,
775
+ width: 150,
776
+ padding: 20,
777
+ maxHeight: a
778
+ };
779
+ c.debug("taskNode", t);
780
+ let u = e.append("g").attr("class", "taskWrapper"), p = U.drawNode(u, t, n, o, f).height;
781
+ if (c.debug("taskHeight after draw", p), u.attr("transform", `translate(${r}, ${i})`), a = Math.max(a, p), s.events) {
782
+ let t = e.append("g").attr("class", "lineWrapper"), c = a;
783
+ i += 100, c += fe(e, s.events, n, r, i, o, f), i -= 100, t.append("line").attr("x1", r + 190 / 2).attr("y1", i + a).attr("x2", r + 190 / 2).attr("y2", i + a + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
784
+ }
785
+ r += 200, d && !o.timeline?.disableMulticolor && n++;
786
+ }
787
+ i -= 10;
788
+ }, "drawTasks"), fe = /* @__PURE__ */ l(function(e, t, n, r, i, a, o) {
789
+ let s = 0, l = i;
790
+ i += 100;
791
+ for (let l of t) {
792
+ let t = {
793
+ descr: l,
794
+ section: n,
795
+ number: n,
796
+ width: 150,
797
+ padding: 20,
798
+ maxHeight: 50
799
+ };
800
+ c.debug("eventNode", t);
801
+ let u = e.append("g").attr("class", "eventWrapper"), d = U.drawNode(u, t, n, a, o, !0).height;
802
+ s += d, u.attr("transform", `translate(${r}, ${i})`), i = i + 10 + d;
803
+ }
804
+ return i = l, s;
805
+ }, "drawEvents"), pe = {
806
+ setConf: /* @__PURE__ */ l(() => {}, "setConf"),
807
+ draw: de
808
+ }, G = 200, K = 5, me = G + K * 2, q = G + 100, he = q + K * 2, J = 10, ge = 0, Y = 20, X = 20, Z = 30, Q = 50, _e = /* @__PURE__ */ l(function(t, n, r, a) {
809
+ let o = i(), s = o.timeline?.leftMargin ?? 50;
810
+ c.debug("timeline", a.db);
811
+ let l = m(n);
812
+ l.append("g");
813
+ let u = a.db.getTasks(), d = a.db.getCommonDb().getDiagramTitle();
814
+ c.debug("task", u), U.initGraphics(l);
815
+ let f = a.db.getSections();
816
+ c.debug("sections", f);
817
+ let h = 0, g = 0, _ = 50 + s, v = 50, y = v, b = _, x = me + X, S = he + Q, C = b + x, w = 0, T = f && f.length > 0, E = T ? C : _ + x, D = Math.max(50, x + S - K * 2);
818
+ f.forEach(function(e) {
819
+ let t = {
820
+ number: w,
821
+ descr: e,
822
+ section: w,
823
+ width: D,
824
+ padding: K,
825
+ maxHeight: h
826
+ }, n = U.getVirtualNodeHeight(l, t, o);
827
+ c.debug("sectionHeight before draw", n), h = Math.max(h, n);
828
+ });
829
+ let O = 0;
830
+ c.debug("tasks.length", u.length);
831
+ for (let [e, t] of u.entries()) {
832
+ let n = {
833
+ number: e,
834
+ descr: t,
835
+ section: t.section,
836
+ width: G,
837
+ padding: K,
838
+ maxHeight: g
839
+ }, r = U.getVirtualNodeHeight(l, n, o);
840
+ c.debug("taskHeight before draw", r), g = Math.max(g, r);
841
+ let i = 0;
842
+ for (let e of t.events) {
843
+ let n = {
844
+ descr: e,
845
+ section: t.section,
846
+ number: t.section,
847
+ width: q,
848
+ padding: K,
849
+ maxHeight: 50
850
+ };
851
+ i += U.getVirtualNodeHeight(l, n, o);
852
+ }
853
+ t.events.length > 0 && (i += (t.events.length - 1) * J), O = Math.max(O, i) + ge;
854
+ }
855
+ c.debug("maxSectionHeight before draw", h), c.debug("maxTaskHeight before draw", g);
856
+ let k = Math.max(g, O) + Z;
857
+ T ? f.forEach((e) => {
858
+ let t = u.filter((t) => t.section === e), n = {
859
+ number: w,
860
+ descr: e,
861
+ section: w,
862
+ width: D,
863
+ padding: K,
864
+ maxHeight: h
865
+ };
866
+ c.debug("sectionNode", n);
867
+ let r = l.append("g"), i = U.drawNode(r, n, w, o);
868
+ c.debug("sectionNode output", i);
869
+ let a = E - x;
870
+ r.attr("transform", `translate(${a}, ${v})`);
871
+ let s = v + i.height + Y;
872
+ t.length > 0 && $(l, t, w, E, s, g, o, k, !1);
873
+ let d = t.length, f = i.height + Y + k * Math.max(d, 1) - (d > 0 ? Z * 2 : 0);
874
+ v += f, w++;
875
+ }) : $(l, u, w, E, v, g, o, k, !0);
876
+ let A = l.node()?.getBBox();
877
+ if (!A) throw Error("bbox not found");
878
+ if (c.debug("bounds", A), d) {
879
+ if (l.append("text").text(d).attr("x", A.width / 2 - s).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = l.node()?.getBBox(), !A) throw Error("bbox not found");
880
+ c.debug("bounds after title", A);
881
+ }
882
+ let [j] = p(o.fontSize), M = (j ?? 16) * 2, N = (j ?? 16) * .5 + 20, P = l.append("g").attr("class", "lineWrapper");
883
+ P.append("line").attr("x1", E).attr("y1", y - M).attr("x2", E).attr("y2", A.y + A.height + N).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), P.lower(), e(void 0, l, o.timeline?.padding ?? 50, o.timeline?.useMaxWidth ?? !1);
884
+ }, "draw"), $ = /* @__PURE__ */ l(function(e, t, n, r, i, a, o, s, l) {
885
+ for (let u of t) {
886
+ let t = {
887
+ descr: u.task,
888
+ section: n,
889
+ number: n,
890
+ width: G,
891
+ padding: K,
892
+ maxHeight: a
893
+ };
894
+ c.debug("taskNode", t);
895
+ let d = e.append("g").attr("class", "taskWrapper"), f = U.drawNode(d, t, n, o), p = f.height;
896
+ c.debug("taskHeight after draw", p);
897
+ let m = r - X - f.width;
898
+ if (d.attr("transform", `translate(${m}, ${i})`), a = Math.max(a, p), u.events && u.events.length > 0) {
899
+ let t = i, a = r + Q;
900
+ ve(e, u.events, n, r, a, t, o);
901
+ }
902
+ i += s, l && !o.timeline?.disableMulticolor && n++;
903
+ }
904
+ }, "drawTasks"), ve = /* @__PURE__ */ l(function(e, t, n, r, i, a, o) {
905
+ let s = a;
906
+ for (let a of t) {
907
+ let t = {
908
+ descr: a,
909
+ section: n,
910
+ number: n,
911
+ width: q,
912
+ padding: K,
913
+ maxHeight: 0
914
+ };
915
+ c.debug("eventNode", t);
916
+ let l = e.append("g").attr("class", "eventWrapper"), u = U.drawNode(l, t, n, o).height;
917
+ l.attr("transform", `translate(${i}, ${s})`);
918
+ let d = e.append("g").attr("class", "lineWrapper"), f = s + u / 2;
919
+ d.append("line").attr("x1", r).attr("y1", f).attr("x2", i).attr("y2", f).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), s = s + u + J;
920
+ }
921
+ return s - a;
922
+ }, "drawEvents"), ye = {
923
+ setConf: /* @__PURE__ */ l(() => {}, "setConf"),
924
+ draw: _e
925
+ }, be = /* @__PURE__ */ l((e) => {
926
+ let { theme: t } = s(), n = t?.includes("dark"), r = t?.includes("color"), i = e.svgId?.replace(/^#/, "") ?? "", a = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", o = "";
927
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
928
+ let i = `${17 - 3 * t}`, s = r ? e.borderColorArray[t] : e.mainBkg, c = r ? e.borderColorArray[t] : e.nodeBorder;
929
+ o += `
930
+ .section-${t - 1} rect,
931
+ .section-${t - 1} path,
932
+ .section-${t - 1} circle {
933
+ fill: ${n && r ? e.mainBkg : s};
934
+ stroke: ${c};
935
+ stroke-width: ${e.strokeWidth};
936
+ filter: ${a};
937
+ }
938
+
939
+ .section-${t - 1} text {
940
+ fill: ${e.nodeBorder};
941
+ font-weight: ${e.fontWeight}
942
+ }
943
+
944
+ .node-icon-${t - 1} {
945
+ font-size: 40px;
946
+ color: ${e["cScaleLabel" + t]};
947
+ }
948
+
949
+ .section-edge-${t - 1} {
950
+ stroke: ${e["cScale" + t]};
951
+ }
952
+
953
+ .edge-depth-${t - 1} {
954
+ stroke-width: ${i};
955
+ }
956
+
957
+ .section-${t - 1} line {
958
+ stroke: ${e["cScaleInv" + t]};
959
+ stroke-width: 3;
960
+ }
961
+
962
+ .lineWrapper line {
963
+ stroke: ${e.nodeBorder};
964
+ stroke-width:${e.strokeWidth}
965
+ }
966
+
967
+ .disabled,
968
+ .disabled circle,
969
+ .disabled text {
970
+ fill: ${e.tertiaryColor ?? "lightgray"};
971
+ }
972
+
973
+ .disabled text {
974
+ fill: ${e.clusterBorder ?? "#efefef"};
975
+ }
976
+ `;
977
+ }
978
+ return o;
979
+ }, "genReduxSections"), xe = /* @__PURE__ */ l((e) => {
980
+ let r = "";
981
+ for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) e["lineColor" + r] = e["lineColor" + r] || e["cScaleInv" + r], a(e["lineColor" + r]) ? e["lineColor" + r] = t(e["lineColor" + r], 20) : e["lineColor" + r] = n(e["lineColor" + r], 20);
982
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
983
+ let n = "" + (17 - 3 * t);
984
+ r += `
985
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} path {
986
+ fill: ${e["cScale" + t]};
987
+ }
988
+ .section-${t - 1} text {
989
+ fill: ${e["cScaleLabel" + t]};
990
+ }
991
+ .node-icon-${t - 1} {
992
+ font-size: 40px;
993
+ color: ${e["cScaleLabel" + t]};
994
+ }
995
+ .section-edge-${t - 1}{
996
+ stroke: ${e["cScale" + t]};
997
+ }
998
+ .edge-depth-${t - 1}{
999
+ stroke-width: ${n};
1000
+ }
1001
+ .section-${t - 1} line {
1002
+ stroke: ${e["cScaleInv" + t]} ;
1003
+ stroke-width: 3;
1004
+ }
1005
+
1006
+ .lineWrapper line{
1007
+ stroke: ${e["cScaleLabel" + t]} ;
1008
+ }
1009
+
1010
+ .disabled, .disabled circle, .disabled text {
1011
+ fill: ${e.tertiaryColor ?? "lightgray"};
1012
+ }
1013
+ .disabled text {
1014
+ fill: ${e.clusterBorder ?? "#efefef"};
1015
+ }
1016
+ `;
1017
+ }
1018
+ return r;
1019
+ }, "genSections"), Se = {
1020
+ db: _,
1021
+ renderer: {
1022
+ setConf: /* @__PURE__ */ l(() => {}, "setConf"),
1023
+ draw: /* @__PURE__ */ l((e, t, n, r) => (r?.db?.getDirection?.() ?? "LR") === "TD" ? ye.draw(e, t, n, r) : pe.draw(e, t, n, r), "draw")
1024
+ },
1025
+ parser: g,
1026
+ styles: /* @__PURE__ */ l((e) => {
1027
+ let { theme: t } = s(), n = t?.includes("redux"), r = t === "neutral", i = e.svgId?.replace(/^#/, "") ?? "", a = "";
1028
+ if (e.useGradient && i && e.THEME_COLOR_LIMIT && !r) for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) a += `
1029
+ .section-${t - 1}[data-look="neo"] rect,
1030
+ .section-${t - 1}[data-look="neo"] path,
1031
+ .section-${t - 1}[data-look="neo"] circle {
1032
+ fill: ${e.mainBkg};
1033
+ stroke: url(#${i}-gradient);
1034
+ stroke-width: 2;
1035
+ }
1036
+ .section-${t - 1}[data-look="neo"] line {
1037
+ stroke: url(#${i}-gradient);
1038
+ stroke-width: 2;
1039
+ }`;
1040
+ return `
1041
+ .edge {
1042
+ stroke-width: 3;
1043
+ }
1044
+ ${n ? be(e) : xe(e)}
1045
+ ${a}
1046
+ .section-root rect, .section-root path, .section-root circle {
1047
+ fill: ${e.git0};
1048
+ }
1049
+ .section-root text {
1050
+ fill: ${e.gitBranchLabel0};
1051
+ }
1052
+ .icon-container {
1053
+ height:100%;
1054
+ display: flex;
1055
+ justify-content: center;
1056
+ align-items: center;
1057
+ }
1058
+ .edge {
1059
+ fill: none;
1060
+ }
1061
+ .eventWrapper {
1062
+ filter: brightness(120%);
1063
+ }
1064
+ `;
1065
+ }, "getStyles")
1066
+ };
1067
+ //#endregion
1068
+ export { Se as diagram };