@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
@@ -1,810 +0,0 @@
1
- import { p as _t, q as xt, s as vt, g as bt, b as wt, a as St, _ as g, c as lt, z as Lt, d as H, V as Et, y as At, k as Tt } from "./index-FiV1b00w.js";
2
- import { o as Mt } from "./ordinal-B6-f3MAq.js";
3
- function Nt(t) {
4
- for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
5
- return i;
6
- }
7
- const It = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
- function ct(t, e) {
9
- let i;
10
- if (e === void 0)
11
- for (const a of t)
12
- a != null && (i < a || i === void 0 && a >= a) && (i = a);
13
- else {
14
- let a = -1;
15
- for (let h of t)
16
- (h = e(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h);
17
- }
18
- return i;
19
- }
20
- function pt(t, e) {
21
- let i;
22
- if (e === void 0)
23
- for (const a of t)
24
- a != null && (i > a || i === void 0 && a >= a) && (i = a);
25
- else {
26
- let a = -1;
27
- for (let h of t)
28
- (h = e(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h);
29
- }
30
- return i;
31
- }
32
- function nt(t, e) {
33
- let i = 0;
34
- if (e === void 0)
35
- for (let a of t)
36
- (a = +a) && (i += a);
37
- else {
38
- let a = -1;
39
- for (let h of t)
40
- (h = +e(h, ++a, t)) && (i += h);
41
- }
42
- return i;
43
- }
44
- function Pt(t) {
45
- return t.target.depth;
46
- }
47
- function Ct(t) {
48
- return t.depth;
49
- }
50
- function Ot(t, e) {
51
- return e - 1 - t.height;
52
- }
53
- function mt(t, e) {
54
- return t.sourceLinks.length ? t.depth : e - 1;
55
- }
56
- function zt(t) {
57
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
58
- }
59
- function X(t) {
60
- return function() {
61
- return t;
62
- };
63
- }
64
- function ut(t, e) {
65
- return Q(t.source, e.source) || t.index - e.index;
66
- }
67
- function ht(t, e) {
68
- return Q(t.target, e.target) || t.index - e.index;
69
- }
70
- function Q(t, e) {
71
- return t.y0 - e.y0;
72
- }
73
- function it(t) {
74
- return t.value;
75
- }
76
- function Dt(t) {
77
- return t.index;
78
- }
79
- function $t(t) {
80
- return t.nodes;
81
- }
82
- function jt(t) {
83
- return t.links;
84
- }
85
- function ft(t, e) {
86
- const i = t.get(e);
87
- if (!i) throw new Error("missing: " + e);
88
- return i;
89
- }
90
- function yt({ nodes: t }) {
91
- for (const e of t) {
92
- let i = e.y0, a = i;
93
- for (const h of e.sourceLinks)
94
- h.y0 = i + h.width / 2, i += h.width;
95
- for (const h of e.targetLinks)
96
- h.y1 = a + h.width / 2, a += h.width;
97
- }
98
- }
99
- function Bt() {
100
- let t = 0, e = 0, i = 1, a = 1, h = 24, b = 8, p, k = Dt, s = mt, o, l, _ = $t, x = jt, y = 6;
101
- function v() {
102
- const n = { nodes: _.apply(null, arguments), links: x.apply(null, arguments) };
103
- return M(n), T(n), N(n), C(n), S(n), yt(n), n;
104
- }
105
- v.update = function(n) {
106
- return yt(n), n;
107
- }, v.nodeId = function(n) {
108
- return arguments.length ? (k = typeof n == "function" ? n : X(n), v) : k;
109
- }, v.nodeAlign = function(n) {
110
- return arguments.length ? (s = typeof n == "function" ? n : X(n), v) : s;
111
- }, v.nodeSort = function(n) {
112
- return arguments.length ? (o = n, v) : o;
113
- }, v.nodeWidth = function(n) {
114
- return arguments.length ? (h = +n, v) : h;
115
- }, v.nodePadding = function(n) {
116
- return arguments.length ? (b = p = +n, v) : b;
117
- }, v.nodes = function(n) {
118
- return arguments.length ? (_ = typeof n == "function" ? n : X(n), v) : _;
119
- }, v.links = function(n) {
120
- return arguments.length ? (x = typeof n == "function" ? n : X(n), v) : x;
121
- }, v.linkSort = function(n) {
122
- return arguments.length ? (l = n, v) : l;
123
- }, v.size = function(n) {
124
- return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], v) : [i - t, a - e];
125
- }, v.extent = function(n) {
126
- return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], v) : [[t, e], [i, a]];
127
- }, v.iterations = function(n) {
128
- return arguments.length ? (y = +n, v) : y;
129
- };
130
- function M({ nodes: n, links: f }) {
131
- for (const [c, r] of n.entries())
132
- r.index = c, r.sourceLinks = [], r.targetLinks = [];
133
- const u = new Map(n.map((c, r) => [k(c, r, n), c]));
134
- for (const [c, r] of f.entries()) {
135
- r.index = c;
136
- let { source: m, target: w } = r;
137
- typeof m != "object" && (m = r.source = ft(u, m)), typeof w != "object" && (w = r.target = ft(u, w)), m.sourceLinks.push(r), w.targetLinks.push(r);
138
- }
139
- if (l != null)
140
- for (const { sourceLinks: c, targetLinks: r } of n)
141
- c.sort(l), r.sort(l);
142
- }
143
- function T({ nodes: n }) {
144
- for (const f of n)
145
- f.value = f.fixedValue === void 0 ? Math.max(nt(f.sourceLinks, it), nt(f.targetLinks, it)) : f.fixedValue;
146
- }
147
- function N({ nodes: n }) {
148
- const f = n.length;
149
- let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
150
- for (; u.size; ) {
151
- for (const m of u) {
152
- m.depth = r;
153
- for (const { target: w } of m.sourceLinks)
154
- c.add(w);
155
- }
156
- if (++r > f) throw new Error("circular link");
157
- u = c, c = /* @__PURE__ */ new Set();
158
- }
159
- }
160
- function C({ nodes: n }) {
161
- const f = n.length;
162
- let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
163
- for (; u.size; ) {
164
- for (const m of u) {
165
- m.height = r;
166
- for (const { source: w } of m.targetLinks)
167
- c.add(w);
168
- }
169
- if (++r > f) throw new Error("circular link");
170
- u = c, c = /* @__PURE__ */ new Set();
171
- }
172
- }
173
- function D({ nodes: n }) {
174
- const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
175
- for (const r of n) {
176
- const m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
177
- r.layer = m, r.x0 = t + m * u, r.x1 = r.x0 + h, c[m] ? c[m].push(r) : c[m] = [r];
178
- }
179
- if (o) for (const r of c)
180
- r.sort(o);
181
- return c;
182
- }
183
- function R(n) {
184
- const f = pt(n, (u) => (a - e - (u.length - 1) * p) / nt(u, it));
185
- for (const u of n) {
186
- let c = e;
187
- for (const r of u) {
188
- r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + p;
189
- for (const m of r.sourceLinks)
190
- m.width = m.value * f;
191
- }
192
- c = (a - c + p) / (u.length + 1);
193
- for (let r = 0; r < u.length; ++r) {
194
- const m = u[r];
195
- m.y0 += c * (r + 1), m.y1 += c * (r + 1);
196
- }
197
- A(u);
198
- }
199
- }
200
- function S(n) {
201
- const f = D(n);
202
- p = Math.min(b, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
203
- for (let u = 0; u < y; ++u) {
204
- const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
205
- B(f, c, r), P(f, c, r);
206
- }
207
- }
208
- function P(n, f, u) {
209
- for (let c = 1, r = n.length; c < r; ++c) {
210
- const m = n[c];
211
- for (const w of m) {
212
- let L = 0, V = 0;
213
- for (const { source: Y, value: et } of w.targetLinks) {
214
- let q = et * (w.layer - Y.layer);
215
- L += $(Y, w) * q, V += q;
216
- }
217
- if (!(V > 0)) continue;
218
- let G = (L / V - w.y0) * f;
219
- w.y0 += G, w.y1 += G, E(w);
220
- }
221
- o === void 0 && m.sort(Q), O(m, u);
222
- }
223
- }
224
- function B(n, f, u) {
225
- for (let c = n.length, r = c - 2; r >= 0; --r) {
226
- const m = n[r];
227
- for (const w of m) {
228
- let L = 0, V = 0;
229
- for (const { target: Y, value: et } of w.sourceLinks) {
230
- let q = et * (Y.layer - w.layer);
231
- L += I(w, Y) * q, V += q;
232
- }
233
- if (!(V > 0)) continue;
234
- let G = (L / V - w.y0) * f;
235
- w.y0 += G, w.y1 += G, E(w);
236
- }
237
- o === void 0 && m.sort(Q), O(m, u);
238
- }
239
- }
240
- function O(n, f) {
241
- const u = n.length >> 1, c = n[u];
242
- d(n, c.y0 - p, u - 1, f), z(n, c.y1 + p, u + 1, f), d(n, a, n.length - 1, f), z(n, e, 0, f);
243
- }
244
- function z(n, f, u, c) {
245
- for (; u < n.length; ++u) {
246
- const r = n[u], m = (f - r.y0) * c;
247
- m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + p;
248
- }
249
- }
250
- function d(n, f, u, c) {
251
- for (; u >= 0; --u) {
252
- const r = n[u], m = (r.y1 - f) * c;
253
- m > 1e-6 && (r.y0 -= m, r.y1 -= m), f = r.y0 - p;
254
- }
255
- }
256
- function E({ sourceLinks: n, targetLinks: f }) {
257
- if (l === void 0) {
258
- for (const { source: { sourceLinks: u } } of f)
259
- u.sort(ht);
260
- for (const { target: { targetLinks: u } } of n)
261
- u.sort(ut);
262
- }
263
- }
264
- function A(n) {
265
- if (l === void 0)
266
- for (const { sourceLinks: f, targetLinks: u } of n)
267
- f.sort(ht), u.sort(ut);
268
- }
269
- function $(n, f) {
270
- let u = n.y0 - (n.sourceLinks.length - 1) * p / 2;
271
- for (const { target: c, width: r } of n.sourceLinks) {
272
- if (c === f) break;
273
- u += r + p;
274
- }
275
- for (const { source: c, width: r } of f.targetLinks) {
276
- if (c === n) break;
277
- u -= r;
278
- }
279
- return u;
280
- }
281
- function I(n, f) {
282
- let u = f.y0 - (f.targetLinks.length - 1) * p / 2;
283
- for (const { source: c, width: r } of f.targetLinks) {
284
- if (c === n) break;
285
- u += r + p;
286
- }
287
- for (const { target: c, width: r } of n.sourceLinks) {
288
- if (c === f) break;
289
- u -= r;
290
- }
291
- return u;
292
- }
293
- return v;
294
- }
295
- var st = Math.PI, rt = 2 * st, F = 1e-6, Rt = rt - F;
296
- function ot() {
297
- this._x0 = this._y0 = // start of current subpath
298
- this._x1 = this._y1 = null, this._ = "";
299
- }
300
- function kt() {
301
- return new ot();
302
- }
303
- ot.prototype = kt.prototype = {
304
- constructor: ot,
305
- moveTo: function(t, e) {
306
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e);
307
- },
308
- closePath: function() {
309
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
310
- },
311
- lineTo: function(t, e) {
312
- this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +e);
313
- },
314
- quadraticCurveTo: function(t, e, i, a) {
315
- this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
316
- },
317
- bezierCurveTo: function(t, e, i, a, h, b) {
318
- this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +b);
319
- },
320
- arcTo: function(t, e, i, a, h) {
321
- t = +t, e = +e, i = +i, a = +a, h = +h;
322
- var b = this._x1, p = this._y1, k = i - t, s = a - e, o = b - t, l = p - e, _ = o * o + l * l;
323
- if (h < 0) throw new Error("negative radius: " + h);
324
- if (this._x1 === null)
325
- this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
326
- else if (_ > F) if (!(Math.abs(l * k - s * o) > F) || !h)
327
- this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
328
- else {
329
- var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((st - Math.acos((v + _ - M) / (2 * T * N))) / 2), D = C / N, R = C / T;
330
- Math.abs(D - 1) > F && (this._ += "L" + (t + D * o) + "," + (e + D * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * x > o * y) + "," + (this._x1 = t + R * k) + "," + (this._y1 = e + R * s);
331
- }
332
- },
333
- arc: function(t, e, i, a, h, b) {
334
- t = +t, e = +e, i = +i, b = !!b;
335
- var p = i * Math.cos(a), k = i * Math.sin(a), s = t + p, o = e + k, l = 1 ^ b, _ = b ? a - h : h - a;
336
- if (i < 0) throw new Error("negative radius: " + i);
337
- this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (_ < 0 && (_ = _ % rt + rt), _ > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - p) + "," + (e - k) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : _ > F && (this._ += "A" + i + "," + i + ",0," + +(_ >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
338
- },
339
- rect: function(t, e, i, a) {
340
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
341
- },
342
- toString: function() {
343
- return this._;
344
- }
345
- };
346
- function dt(t) {
347
- return function() {
348
- return t;
349
- };
350
- }
351
- function Vt(t) {
352
- return t[0];
353
- }
354
- function Ft(t) {
355
- return t[1];
356
- }
357
- var Wt = Array.prototype.slice;
358
- function Ut(t) {
359
- return t.source;
360
- }
361
- function Gt(t) {
362
- return t.target;
363
- }
364
- function Yt(t) {
365
- var e = Ut, i = Gt, a = Vt, h = Ft, b = null;
366
- function p() {
367
- var k, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
368
- if (b || (b = k = kt()), t(b, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), k) return b = null, k + "" || null;
369
- }
370
- return p.source = function(k) {
371
- return arguments.length ? (e = k, p) : e;
372
- }, p.target = function(k) {
373
- return arguments.length ? (i = k, p) : i;
374
- }, p.x = function(k) {
375
- return arguments.length ? (a = typeof k == "function" ? k : dt(+k), p) : a;
376
- }, p.y = function(k) {
377
- return arguments.length ? (h = typeof k == "function" ? k : dt(+k), p) : h;
378
- }, p.context = function(k) {
379
- return arguments.length ? (b = k ?? null, p) : b;
380
- }, p;
381
- }
382
- function qt(t, e, i, a, h) {
383
- t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
384
- }
385
- function Ht() {
386
- return Yt(qt);
387
- }
388
- function Xt(t) {
389
- return [t.source.x1, t.y0];
390
- }
391
- function Qt(t) {
392
- return [t.target.x0, t.y1];
393
- }
394
- function Kt() {
395
- return Ht().source(Xt).target(Qt);
396
- }
397
- var at = (function() {
398
- var t = /* @__PURE__ */ g(function(k, s, o, l) {
399
- for (o = o || {}, l = k.length; l--; o[k[l]] = s) ;
400
- return o;
401
- }, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
402
- trace: /* @__PURE__ */ g(function() {
403
- }, "trace"),
404
- yy: {},
405
- symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
406
- terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
407
- productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
408
- performAction: /* @__PURE__ */ g(function(s, o, l, _, x, y, v) {
409
- var M = y.length - 1;
410
- switch (x) {
411
- case 7:
412
- const T = _.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = _.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim());
413
- _.addLink(T, N, C);
414
- break;
415
- case 8:
416
- case 9:
417
- case 11:
418
- this.$ = y[M];
419
- break;
420
- case 10:
421
- this.$ = y[M - 1];
422
- break;
423
- }
424
- }, "anonymous"),
425
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 15: 18, 16: 7, 17: 8, 18: e, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: i }, t([1, 5, 10], [2, 7])],
426
- defaultActions: { 11: [2, 1], 12: [2, 5] },
427
- parseError: /* @__PURE__ */ g(function(s, o) {
428
- if (o.recoverable)
429
- this.trace(s);
430
- else {
431
- var l = new Error(s);
432
- throw l.hash = o, l;
433
- }
434
- }, "parseError"),
435
- parse: /* @__PURE__ */ g(function(s) {
436
- var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2, D = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
437
- for (var B in this.yy)
438
- Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
439
- S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
440
- var O = S.yylloc;
441
- y.push(O);
442
- var z = S.options && S.options.ranges;
443
- typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
444
- function d(L) {
445
- l.length = l.length - 2 * L, x.length = x.length - L, y.length = y.length - L;
446
- }
447
- g(d, "popStack");
448
- function E() {
449
- var L;
450
- return L = _.pop() || S.lex() || D, typeof L != "number" && (L instanceof Array && (_ = L, L = _.pop()), L = o.symbols_[L] || L), L;
451
- }
452
- g(E, "lex");
453
- for (var A, $, I, n, f = {}, u, c, r, m; ; ) {
454
- if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = v[$] && v[$][A]), typeof I > "u" || !I.length || !I[0]) {
455
- var w = "";
456
- m = [];
457
- for (u in v[$])
458
- this.terminals_[u] && u > C && m.push("'" + this.terminals_[u] + "'");
459
- S.showPosition ? w = "Parse error on line " + (T + 1) + `:
460
- ` + S.showPosition() + `
461
- Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == D ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
462
- text: S.match,
463
- token: this.terminals_[A] || A,
464
- line: S.yylineno,
465
- loc: O,
466
- expected: m
467
- });
468
- }
469
- if (I[0] instanceof Array && I.length > 1)
470
- throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A);
471
- switch (I[0]) {
472
- case 1:
473
- l.push(A), x.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
474
- break;
475
- case 2:
476
- if (c = this.productions_[I[1]][1], f.$ = x[x.length - c], f._$ = {
477
- first_line: y[y.length - (c || 1)].first_line,
478
- last_line: y[y.length - 1].last_line,
479
- first_column: y[y.length - (c || 1)].first_column,
480
- last_column: y[y.length - 1].last_column
481
- }, z && (f._$.range = [
482
- y[y.length - (c || 1)].range[0],
483
- y[y.length - 1].range[1]
484
- ]), n = this.performAction.apply(f, [
485
- M,
486
- N,
487
- T,
488
- P.yy,
489
- I[1],
490
- x,
491
- y
492
- ].concat(R)), typeof n < "u")
493
- return n;
494
- c && (l = l.slice(0, -1 * c * 2), x = x.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), x.push(f.$), y.push(f._$), r = v[l[l.length - 2]][l[l.length - 1]], l.push(r);
495
- break;
496
- case 3:
497
- return !0;
498
- }
499
- }
500
- return !0;
501
- }, "parse")
502
- }, b = /* @__PURE__ */ (function() {
503
- var k = {
504
- EOF: 1,
505
- parseError: /* @__PURE__ */ g(function(o, l) {
506
- if (this.yy.parser)
507
- this.yy.parser.parseError(o, l);
508
- else
509
- throw new Error(o);
510
- }, "parseError"),
511
- // resets the lexer, sets new input
512
- setInput: /* @__PURE__ */ g(function(s, o) {
513
- return this.yy = o || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
514
- first_line: 1,
515
- first_column: 0,
516
- last_line: 1,
517
- last_column: 0
518
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
519
- }, "setInput"),
520
- // consumes and returns one char from the input
521
- input: /* @__PURE__ */ g(function() {
522
- var s = this._input[0];
523
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
524
- var o = s.match(/(?:\r\n?|\n).*/g);
525
- return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
526
- }, "input"),
527
- // unshifts one char (or a string) into the input
528
- unput: /* @__PURE__ */ g(function(s) {
529
- var o = s.length, l = s.split(/(?:\r\n?|\n)/g);
530
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
531
- var _ = this.match.split(/(?:\r\n?|\n)/g);
532
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
533
- var x = this.yylloc.range;
534
- return this.yylloc = {
535
- first_line: this.yylloc.first_line,
536
- last_line: this.yylineno + 1,
537
- first_column: this.yylloc.first_column,
538
- last_column: l ? (l.length === _.length ? this.yylloc.first_column : 0) + _[_.length - l.length].length - l[0].length : this.yylloc.first_column - o
539
- }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
540
- }, "unput"),
541
- // When called from action, caches matched text and appends it on next action
542
- more: /* @__PURE__ */ g(function() {
543
- return this._more = !0, this;
544
- }, "more"),
545
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
546
- reject: /* @__PURE__ */ g(function() {
547
- if (this.options.backtrack_lexer)
548
- this._backtrack = !0;
549
- else
550
- 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).
551
- ` + this.showPosition(), {
552
- text: "",
553
- token: null,
554
- line: this.yylineno
555
- });
556
- return this;
557
- }, "reject"),
558
- // retain first n characters of the match
559
- less: /* @__PURE__ */ g(function(s) {
560
- this.unput(this.match.slice(s));
561
- }, "less"),
562
- // displays already matched input, i.e. for error messages
563
- pastInput: /* @__PURE__ */ g(function() {
564
- var s = this.matched.substr(0, this.matched.length - this.match.length);
565
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
566
- }, "pastInput"),
567
- // displays upcoming input, i.e. for error messages
568
- upcomingInput: /* @__PURE__ */ g(function() {
569
- var s = this.match;
570
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
571
- }, "upcomingInput"),
572
- // displays the character position where the lexing error occurred, i.e. for error messages
573
- showPosition: /* @__PURE__ */ g(function() {
574
- var s = this.pastInput(), o = new Array(s.length + 1).join("-");
575
- return s + this.upcomingInput() + `
576
- ` + o + "^";
577
- }, "showPosition"),
578
- // test the lexed token: return FALSE when not a match, otherwise return token
579
- test_match: /* @__PURE__ */ g(function(s, o) {
580
- var l, _, x;
581
- if (this.options.backtrack_lexer && (x = {
582
- yylineno: this.yylineno,
583
- yylloc: {
584
- first_line: this.yylloc.first_line,
585
- last_line: this.last_line,
586
- first_column: this.yylloc.first_column,
587
- last_column: this.yylloc.last_column
588
- },
589
- yytext: this.yytext,
590
- match: this.match,
591
- matches: this.matches,
592
- matched: this.matched,
593
- yyleng: this.yyleng,
594
- offset: this.offset,
595
- _more: this._more,
596
- _input: this._input,
597
- yy: this.yy,
598
- conditionStack: this.conditionStack.slice(0),
599
- done: this.done
600
- }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), _ = s[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
601
- first_line: this.yylloc.last_line,
602
- last_line: this.yylineno + 1,
603
- first_column: this.yylloc.last_column,
604
- last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
605
- }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
606
- return l;
607
- if (this._backtrack) {
608
- for (var y in x)
609
- this[y] = x[y];
610
- return !1;
611
- }
612
- return !1;
613
- }, "test_match"),
614
- // return next match in input
615
- next: /* @__PURE__ */ g(function() {
616
- if (this.done)
617
- return this.EOF;
618
- this._input || (this.done = !0);
619
- var s, o, l, _;
620
- this._more || (this.yytext = "", this.match = "");
621
- for (var x = this._currentRules(), y = 0; y < x.length; y++)
622
- if (l = this._input.match(this.rules[x[y]]), l && (!o || l[0].length > o[0].length)) {
623
- if (o = l, _ = y, this.options.backtrack_lexer) {
624
- if (s = this.test_match(l, x[y]), s !== !1)
625
- return s;
626
- if (this._backtrack) {
627
- o = !1;
628
- continue;
629
- } else
630
- return !1;
631
- } else if (!this.options.flex)
632
- break;
633
- }
634
- return o ? (s = this.test_match(o, x[_]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
635
- ` + this.showPosition(), {
636
- text: "",
637
- token: null,
638
- line: this.yylineno
639
- });
640
- }, "next"),
641
- // return next match that has a token
642
- lex: /* @__PURE__ */ g(function() {
643
- var o = this.next();
644
- return o || this.lex();
645
- }, "lex"),
646
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
647
- begin: /* @__PURE__ */ g(function(o) {
648
- this.conditionStack.push(o);
649
- }, "begin"),
650
- // pop the previously active lexer condition state off the condition stack
651
- popState: /* @__PURE__ */ g(function() {
652
- var o = this.conditionStack.length - 1;
653
- return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
654
- }, "popState"),
655
- // produce the lexer rule set which is active for the currently active lexer condition state
656
- _currentRules: /* @__PURE__ */ g(function() {
657
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
658
- }, "_currentRules"),
659
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
660
- topState: /* @__PURE__ */ g(function(o) {
661
- return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
662
- }, "topState"),
663
- // alias for begin(condition)
664
- pushState: /* @__PURE__ */ g(function(o) {
665
- this.begin(o);
666
- }, "pushState"),
667
- // return the number of states currently on the stack
668
- stateStackSize: /* @__PURE__ */ g(function() {
669
- return this.conditionStack.length;
670
- }, "stateStackSize"),
671
- options: { "case-insensitive": !0 },
672
- performAction: /* @__PURE__ */ g(function(o, l, _, x) {
673
- switch (_) {
674
- case 0:
675
- return this.pushState("csv"), 4;
676
- case 1:
677
- return this.pushState("csv"), 4;
678
- case 2:
679
- return 10;
680
- case 3:
681
- return 5;
682
- case 4:
683
- return 12;
684
- case 5:
685
- return this.pushState("escaped_text"), 18;
686
- case 6:
687
- return 20;
688
- case 7:
689
- return this.popState("escaped_text"), 18;
690
- case 8:
691
- return 19;
692
- }
693
- }, "anonymous"),
694
- rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
695
- conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
696
- };
697
- return k;
698
- })();
699
- h.lexer = b;
700
- function p() {
701
- this.yy = {};
702
- }
703
- return g(p, "Parser"), p.prototype = h, h.Parser = p, new p();
704
- })();
705
- at.parser = at;
706
- var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ g(() => {
707
- J = [], tt = [], Z = /* @__PURE__ */ new Map(), At();
708
- }, "clear"), W, Jt = (W = class {
709
- constructor(e, i, a = 0) {
710
- this.source = e, this.target = i, this.value = a;
711
- }
712
- }, g(W, "SankeyLink"), W), te = /* @__PURE__ */ g((t, e, i) => {
713
- J.push(new Jt(t, e, i));
714
- }, "addLink"), U, ee = (U = class {
715
- constructor(e) {
716
- this.ID = e;
717
- }
718
- }, g(U, "SankeyNode"), U), ne = /* @__PURE__ */ g((t) => {
719
- t = Tt.sanitizeText(t, lt());
720
- let e = Z.get(t);
721
- return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
722
- }, "findOrCreateNode"), ie = /* @__PURE__ */ g(() => tt, "getNodes"), se = /* @__PURE__ */ g(() => J, "getLinks"), re = /* @__PURE__ */ g(() => ({
723
- nodes: tt.map((t) => ({ id: t.ID })),
724
- links: J.map((t) => ({
725
- source: t.source.ID,
726
- target: t.target.ID,
727
- value: t.value
728
- }))
729
- }), "getGraph"), oe = {
730
- nodesMap: Z,
731
- getConfig: /* @__PURE__ */ g(() => lt().sankey, "getConfig"),
732
- getNodes: ie,
733
- getLinks: se,
734
- getGraph: re,
735
- addLink: te,
736
- findOrCreateNode: ne,
737
- getAccTitle: St,
738
- setAccTitle: wt,
739
- getAccDescription: bt,
740
- setAccDescription: vt,
741
- getDiagramTitle: xt,
742
- setDiagramTitle: _t,
743
- clear: Zt
744
- }, j, gt = (j = class {
745
- static next(e) {
746
- return new j(e + ++j.count);
747
- }
748
- constructor(e) {
749
- this.id = e, this.href = `#${e}`;
750
- }
751
- toString() {
752
- return "url(" + this.href + ")";
753
- }
754
- }, g(j, "Uid"), j.count = 0, j), ae = {
755
- left: Ct,
756
- right: Ot,
757
- center: zt,
758
- justify: mt
759
- }, le = /* @__PURE__ */ g(function(t, e, i, a) {
760
- const { securityLevel: h, sankey: b } = lt(), p = Lt.sankey;
761
- let k;
762
- h === "sandbox" && (k = H("#i" + e));
763
- const s = h === "sandbox" ? H(k.nodes()[0].contentDocument.body) : H("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : H(`[id="${e}"]`), l = b?.width ?? p.width, _ = b?.height ?? p.width, x = b?.useMaxWidth ?? p.useMaxWidth, y = b?.nodeAlignment ?? p.nodeAlignment, v = b?.prefix ?? p.prefix, M = b?.suffix ?? p.suffix, T = b?.showValues ?? p.showValues, N = a.db.getGraph(), C = ae[y];
764
- Bt().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
765
- [0, 0],
766
- [l, _]
767
- ])(N);
768
- const S = Mt(It);
769
- o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = gt.next("node-")).id).attr("transform", function(d) {
770
- return "translate(" + d.x0 + "," + d.y0 + ")";
771
- }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => S(d.id));
772
- const P = /* @__PURE__ */ g(({ id: d, value: E }) => T ? `${d}
773
- ${v}${Math.round(E * 100) / 100}${M}` : d, "getText");
774
- o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (d) => d.x0 < l / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < l / 2 ? "start" : "end").text(P);
775
- const B = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = b?.linkColor ?? "gradient";
776
- if (O === "gradient") {
777
- const d = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
778
- d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
779
- }
780
- let z;
781
- switch (O) {
782
- case "gradient":
783
- z = /* @__PURE__ */ g((d) => d.uid, "coloring");
784
- break;
785
- case "source":
786
- z = /* @__PURE__ */ g((d) => S(d.source.id), "coloring");
787
- break;
788
- case "target":
789
- z = /* @__PURE__ */ g((d) => S(d.target.id), "coloring");
790
- break;
791
- default:
792
- z = O;
793
- }
794
- B.append("path").attr("d", Kt()).attr("stroke", z).attr("stroke-width", (d) => Math.max(1, d.width)), Et(void 0, o, 0, x);
795
- }, "draw"), ce = {
796
- draw: le
797
- }, ue = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
798
- `).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ g((t) => `.label {
799
- font-family: ${t.fontFamily};
800
- }`, "getStyles"), fe = he, ye = K.parse.bind(K);
801
- K.parse = (t) => ye(ue(t));
802
- var pe = {
803
- styles: fe,
804
- parser: K,
805
- db: oe,
806
- renderer: ce
807
- };
808
- export {
809
- pe as diagram
810
- };