@sme.up/ketchup2 2.0.0 → 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 (365) 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/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  12. package/dist/basic-components/list/list-types.d.ts +0 -1
  13. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  14. package/dist/basic-components/list/list.d.ts.map +1 -1
  15. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  16. package/dist/basic-components/select/select.d.ts.map +1 -1
  17. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  18. package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
  19. package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
  20. package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
  21. package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
  22. package/dist/channel-BY9Lkyz7.cjs +1 -0
  23. package/dist/channel-BqNr2cYO.js +5 -0
  24. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  25. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  26. package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
  27. package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
  28. package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
  29. package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
  30. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  31. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  32. package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
  33. package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
  34. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  35. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  36. package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
  37. package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
  38. package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
  39. package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
  40. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  41. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  42. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  43. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  44. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  45. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  46. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  47. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  48. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  49. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  50. package/dist/chunk-D-IZpNpi.cjs +1 -0
  51. package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
  52. package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
  53. package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
  54. package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
  55. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  56. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  57. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  58. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  59. package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
  60. package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
  61. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  62. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  63. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  64. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  65. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  66. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  67. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  68. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  69. package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
  70. package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
  71. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  72. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  73. package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
  74. package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
  75. package/dist/chunk-WQLz0Won.js +20 -0
  76. package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
  77. package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
  78. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  79. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  80. package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
  81. package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
  82. package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
  83. package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
  84. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
  85. package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
  86. package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
  87. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
  88. package/dist/clone-Dn__H8fX.js +8 -0
  89. package/dist/clone-lShkT11Q.cjs +1 -0
  90. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  91. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  92. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  93. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  94. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  95. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  96. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  97. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  98. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  99. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  100. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  101. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  102. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  103. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  104. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  105. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  106. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  107. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  108. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  109. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  110. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  111. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  112. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  113. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  114. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  115. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  116. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  117. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  118. package/dist/components/image-list/image-list-context.d.ts +5 -2
  119. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  120. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  121. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  122. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  123. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  124. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  125. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  126. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  127. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  128. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  129. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  130. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  131. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  132. package/dist/components/image-list/image-list-types.d.ts +45 -2
  133. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  134. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  135. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  136. package/dist/components/image-list/image-list.d.ts +1 -1
  137. package/dist/components/image-list/image-list.d.ts.map +1 -1
  138. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  139. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  140. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  141. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  142. package/dist/dagre-BjnWDdkw.cjs +1 -0
  143. package/dist/dagre-DVLnxd7n.js +1606 -0
  144. package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
  145. package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
  146. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  147. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  148. package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
  149. package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
  150. package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
  151. package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
  152. package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
  153. package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
  154. package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
  155. package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
  156. package/dist/dist-BgvMZbfo.cjs +1 -0
  157. package/dist/dist-DL30VIBI.js +60 -0
  158. package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
  159. package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
  160. package/dist/flatten-BE1bWL-7.js +40 -0
  161. package/dist/flatten-DxvYSoR8.cjs +1 -0
  162. package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
  163. package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
  164. package/dist/functional-components/action/action-types.d.ts +6 -1
  165. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  166. package/dist/functional-components/action/action.d.ts.map +1 -1
  167. package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
  168. package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
  169. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  170. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  171. package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
  172. package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
  173. package/dist/graphlib-Cpifseqb.js +373 -0
  174. package/dist/graphlib-HdfvGLpV.cjs +1 -0
  175. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  176. package/dist/identity-KQSjemTb.cjs +1 -0
  177. package/dist/identity-g0dsMjx7.js +393 -0
  178. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  179. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  180. package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
  181. package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
  182. package/dist/init-B2MubQrj.cjs +1 -0
  183. package/dist/init-BO60vQHJ.js +15 -0
  184. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  185. package/dist/isEmpty-RwX-oIQS.js +35 -0
  186. package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
  187. package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
  188. package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
  189. package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
  190. package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
  191. package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
  192. package/dist/katex-Du5WiYIy.js +22000 -0
  193. package/dist/katex-SAH56fvc.cjs +257 -0
  194. package/dist/ketchup2.cjs.js +190 -1
  195. package/dist/ketchup2.css +2 -1
  196. package/dist/ketchup2.es.js +132419 -52
  197. package/dist/line-BbHmiwbs.cjs +1 -0
  198. package/dist/line-JyRBGWft.js +34 -0
  199. package/dist/linear-BsPvNLJv.js +289 -0
  200. package/dist/linear-CxHa1DsM.cjs +1 -0
  201. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  202. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  203. package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
  204. package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
  205. package/dist/ordinal-C-VoL0XF.js +65 -0
  206. package/dist/ordinal-Civr0hZL.cjs +1 -0
  207. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  208. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  209. package/dist/path-Civic7PQ.cjs +1 -0
  210. package/dist/path-CvfwEr8y.js +85 -0
  211. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  212. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  213. package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
  214. package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
  215. package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
  216. package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
  217. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  218. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  219. package/dist/reduce-B7WW9rkU.cjs +1 -0
  220. package/dist/reduce-DNnkcf3M.js +532 -0
  221. package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
  222. package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
  223. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  224. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  225. package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
  226. package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
  227. package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
  228. package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
  229. package/dist/src-BQiFKP24.js +2146 -0
  230. package/dist/src-DFxq-N5I.cjs +1 -0
  231. package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
  232. package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
  233. package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
  234. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
  235. package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
  236. package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
  237. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  238. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  239. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  240. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  241. package/dist/utils/translation.d.ts.map +1 -1
  242. package/dist/v4-6yr83DbP.cjs +1 -0
  243. package/dist/v4-BR71w5_q.js +33 -0
  244. package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
  245. package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
  246. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  247. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  248. package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
  249. package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
  250. package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
  251. package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
  252. package/package.json +31 -31
  253. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  254. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  255. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  256. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  257. package/dist/arc-CnmUepZA.cjs +0 -1
  258. package/dist/arc-Md6Ds0JZ.js +0 -83
  259. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  260. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  261. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  262. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  263. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  264. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  265. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  266. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  267. package/dist/channel-BGeX_R6w.cjs +0 -1
  268. package/dist/channel-lqmaHMPZ.js +0 -5
  269. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  270. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  271. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  272. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  273. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  274. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  275. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  276. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  277. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  278. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  279. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  280. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  281. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  282. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  283. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  284. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  285. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  286. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  287. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  288. package/dist/clone-B_MxWhab.js +0 -8
  289. package/dist/clone-D6gFD6F-.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  291. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  292. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  293. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  294. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  295. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  296. package/dist/defaultLocale-D7EN2tov.js +0 -171
  297. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  298. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  299. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  300. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  301. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  302. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  303. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  304. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  305. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  306. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  307. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  308. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  309. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  310. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  311. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  312. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  313. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  314. package/dist/graph-BBPk5jyk.cjs +0 -1
  315. package/dist/graph-h6vsxKyr.js +0 -247
  316. package/dist/index-CYQM-t1d.cjs +0 -390
  317. package/dist/index-FiV1b00w.js +0 -133122
  318. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  319. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  320. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  321. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  322. package/dist/init-CHZsXQcr.cjs +0 -1
  323. package/dist/init-DjUOC4st.js +0 -16
  324. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  325. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  326. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  327. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  328. package/dist/katex-C2g-EhzP.cjs +0 -261
  329. package/dist/katex-CUSbq6rG.js +0 -11692
  330. package/dist/layout-6z7-eUnZ.js +0 -1335
  331. package/dist/layout-DbcrMh5B.cjs +0 -1
  332. package/dist/linear-BKevCbhh.js +0 -259
  333. package/dist/linear-C7uVEtWW.cjs +0 -1
  334. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  335. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  336. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  337. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  338. package/dist/ordinal-B6-f3MAq.js +0 -61
  339. package/dist/ordinal-CagbB1m8.cjs +0 -1
  340. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  341. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  342. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  343. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  344. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  345. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  346. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  347. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  348. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  349. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  350. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  351. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  352. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  353. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  354. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  355. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  356. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  357. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  358. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  359. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  360. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  361. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  362. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  363. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  364. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  365. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
@@ -0,0 +1,920 @@
1
+ import { B as e, C as t, K as n, V as r, W as i, _ as a, a as o, b as s, s as c, u as l, v as u } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
2
+ import { h as d, p as f } from "./src-BQiFKP24.js";
3
+ import { t as p } from "./ordinal-C-VoL0XF.js";
4
+ //#region node_modules/d3-scale-chromatic/src/colors.js
5
+ function m(e) {
6
+ for (var t = e.length / 6 | 0, n = Array(t), r = 0; r < t;) n[r] = "#" + e.slice(r * 6, ++r * 6);
7
+ return n;
8
+ }
9
+ //#endregion
10
+ //#region node_modules/d3-scale-chromatic/src/categorical/Tableau10.js
11
+ var h = m("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
12
+ //#endregion
13
+ //#region node_modules/d3-sankey/node_modules/d3-array/src/max.js
14
+ function g(e, t) {
15
+ let n;
16
+ if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
17
+ else {
18
+ let r = -1;
19
+ for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
20
+ }
21
+ return n;
22
+ }
23
+ //#endregion
24
+ //#region node_modules/d3-sankey/node_modules/d3-array/src/min.js
25
+ function _(e, t) {
26
+ let n;
27
+ if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
28
+ else {
29
+ let r = -1;
30
+ for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
31
+ }
32
+ return n;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/d3-sankey/node_modules/d3-array/src/sum.js
36
+ function v(e, t) {
37
+ let n = 0;
38
+ if (t === void 0) for (let t of e) (t = +t) && (n += t);
39
+ else {
40
+ let r = -1;
41
+ for (let i of e) (i = +t(i, ++r, e)) && (n += i);
42
+ }
43
+ return n;
44
+ }
45
+ //#endregion
46
+ //#region node_modules/d3-sankey/src/align.js
47
+ function y(e) {
48
+ return e.target.depth;
49
+ }
50
+ function b(e) {
51
+ return e.depth;
52
+ }
53
+ function x(e, t) {
54
+ return t - 1 - e.height;
55
+ }
56
+ function S(e, t) {
57
+ return e.sourceLinks.length ? e.depth : t - 1;
58
+ }
59
+ function C(e) {
60
+ return e.targetLinks.length ? e.depth : e.sourceLinks.length ? _(e.sourceLinks, y) - 1 : 0;
61
+ }
62
+ //#endregion
63
+ //#region node_modules/d3-sankey/src/constant.js
64
+ function w(e) {
65
+ return function() {
66
+ return e;
67
+ };
68
+ }
69
+ //#endregion
70
+ //#region node_modules/d3-sankey/src/sankey.js
71
+ function T(e, t) {
72
+ return D(e.source, t.source) || e.index - t.index;
73
+ }
74
+ function E(e, t) {
75
+ return D(e.target, t.target) || e.index - t.index;
76
+ }
77
+ function D(e, t) {
78
+ return e.y0 - t.y0;
79
+ }
80
+ function O(e) {
81
+ return e.value;
82
+ }
83
+ function k(e) {
84
+ return e.index;
85
+ }
86
+ function A(e) {
87
+ return e.nodes;
88
+ }
89
+ function j(e) {
90
+ return e.links;
91
+ }
92
+ function M(e, t) {
93
+ let n = e.get(t);
94
+ if (!n) throw Error("missing: " + t);
95
+ return n;
96
+ }
97
+ function N({ nodes: e }) {
98
+ for (let t of e) {
99
+ let e = t.y0, n = e;
100
+ for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
101
+ for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
102
+ }
103
+ }
104
+ function P() {
105
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = k, c = S, l, u, d = A, f = j, p = 6;
106
+ function m() {
107
+ let e = {
108
+ nodes: d.apply(null, arguments),
109
+ links: f.apply(null, arguments)
110
+ };
111
+ return h(e), y(e), b(e), x(e), F(e), N(e), e;
112
+ }
113
+ m.update = function(e) {
114
+ return N(e), e;
115
+ }, m.nodeId = function(e) {
116
+ return arguments.length ? (s = typeof e == "function" ? e : w(e), m) : s;
117
+ }, m.nodeAlign = function(e) {
118
+ return arguments.length ? (c = typeof e == "function" ? e : w(e), m) : c;
119
+ }, m.nodeSort = function(e) {
120
+ return arguments.length ? (l = e, m) : l;
121
+ }, m.nodeWidth = function(e) {
122
+ return arguments.length ? (i = +e, m) : i;
123
+ }, m.nodePadding = function(e) {
124
+ return arguments.length ? (a = o = +e, m) : a;
125
+ }, m.nodes = function(e) {
126
+ return arguments.length ? (d = typeof e == "function" ? e : w(e), m) : d;
127
+ }, m.links = function(e) {
128
+ return arguments.length ? (f = typeof e == "function" ? e : w(e), m) : f;
129
+ }, m.linkSort = function(e) {
130
+ return arguments.length ? (u = e, m) : u;
131
+ }, m.size = function(i) {
132
+ return arguments.length ? (e = t = 0, n = +i[0], r = +i[1], m) : [n - e, r - t];
133
+ }, m.extent = function(i) {
134
+ return arguments.length ? (e = +i[0][0], n = +i[1][0], t = +i[0][1], r = +i[1][1], m) : [[e, t], [n, r]];
135
+ }, m.iterations = function(e) {
136
+ return arguments.length ? (p = +e, m) : p;
137
+ };
138
+ function h({ nodes: e, links: t }) {
139
+ for (let [t, n] of e.entries()) n.index = t, n.sourceLinks = [], n.targetLinks = [];
140
+ let n = new Map(e.map((t, n) => [s(t, n, e), t]));
141
+ for (let [e, r] of t.entries()) {
142
+ r.index = e;
143
+ let { source: t, target: i } = r;
144
+ typeof t != "object" && (t = r.source = M(n, t)), typeof i != "object" && (i = r.target = M(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
145
+ }
146
+ if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
147
+ }
148
+ function y({ nodes: e }) {
149
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(v(t.sourceLinks, O), v(t.targetLinks, O)) : t.fixedValue;
150
+ }
151
+ function b({ nodes: e }) {
152
+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
153
+ for (; n.size;) {
154
+ for (let e of n) {
155
+ e.depth = i;
156
+ for (let { target: t } of e.sourceLinks) r.add(t);
157
+ }
158
+ if (++i > t) throw Error("circular link");
159
+ n = r, r = /* @__PURE__ */ new Set();
160
+ }
161
+ }
162
+ function x({ nodes: e }) {
163
+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
164
+ for (; n.size;) {
165
+ for (let e of n) {
166
+ e.height = i;
167
+ for (let { source: t } of e.targetLinks) r.add(t);
168
+ }
169
+ if (++i > t) throw Error("circular link");
170
+ n = r, r = /* @__PURE__ */ new Set();
171
+ }
172
+ }
173
+ function C({ nodes: t }) {
174
+ let r = g(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
175
+ for (let n of t) {
176
+ let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
177
+ n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
178
+ }
179
+ if (l) for (let e of o) e.sort(l);
180
+ return o;
181
+ }
182
+ function P(e) {
183
+ let n = _(e, (e) => (r - t - (e.length - 1) * o) / v(e, O));
184
+ for (let i of e) {
185
+ let e = t;
186
+ for (let t of i) {
187
+ t.y0 = e, t.y1 = e + t.value * n, e = t.y1 + o;
188
+ for (let e of t.sourceLinks) e.width = e.value * n;
189
+ }
190
+ e = (r - e + o) / (i.length + 1);
191
+ for (let t = 0; t < i.length; ++t) {
192
+ let n = i[t];
193
+ n.y0 += e * (t + 1), n.y1 += e * (t + 1);
194
+ }
195
+ H(i);
196
+ }
197
+ }
198
+ function F(e) {
199
+ let n = C(e);
200
+ o = Math.min(a, (r - t) / (g(n, (e) => e.length) - 1)), P(n);
201
+ for (let e = 0; e < p; ++e) {
202
+ let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
203
+ L(n, t, r), I(n, t, r);
204
+ }
205
+ }
206
+ function I(e, t, n) {
207
+ for (let r = 1, i = e.length; r < i; ++r) {
208
+ let i = e[r];
209
+ for (let e of i) {
210
+ let n = 0, r = 0;
211
+ for (let { source: t, value: i } of e.targetLinks) {
212
+ let a = i * (e.layer - t.layer);
213
+ n += U(t, e) * a, r += a;
214
+ }
215
+ if (!(r > 0)) continue;
216
+ let i = (n / r - e.y0) * t;
217
+ e.y0 += i, e.y1 += i, V(e);
218
+ }
219
+ l === void 0 && i.sort(D), R(i, n);
220
+ }
221
+ }
222
+ function L(e, t, n) {
223
+ for (let r = e.length - 2; r >= 0; --r) {
224
+ let i = e[r];
225
+ for (let e of i) {
226
+ let n = 0, r = 0;
227
+ for (let { target: t, value: i } of e.sourceLinks) {
228
+ let a = i * (t.layer - e.layer);
229
+ n += W(e, t) * a, r += a;
230
+ }
231
+ if (!(r > 0)) continue;
232
+ let i = (n / r - e.y0) * t;
233
+ e.y0 += i, e.y1 += i, V(e);
234
+ }
235
+ l === void 0 && i.sort(D), R(i, n);
236
+ }
237
+ }
238
+ function R(e, n) {
239
+ let i = e.length >> 1, a = e[i];
240
+ B(e, a.y0 - o, i - 1, n), z(e, a.y1 + o, i + 1, n), B(e, r, e.length - 1, n), z(e, t, 0, n);
241
+ }
242
+ function z(e, t, n, r) {
243
+ for (; n < e.length; ++n) {
244
+ let i = e[n], a = (t - i.y0) * r;
245
+ a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;
246
+ }
247
+ }
248
+ function B(e, t, n, r) {
249
+ for (; n >= 0; --n) {
250
+ let i = e[n], a = (i.y1 - t) * r;
251
+ a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;
252
+ }
253
+ }
254
+ function V({ sourceLinks: e, targetLinks: t }) {
255
+ if (u === void 0) {
256
+ for (let { source: { sourceLinks: e } } of t) e.sort(E);
257
+ for (let { target: { targetLinks: t } } of e) t.sort(T);
258
+ }
259
+ }
260
+ function H(e) {
261
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(E), n.sort(T);
262
+ }
263
+ function U(e, t) {
264
+ let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
265
+ for (let { target: r, width: i } of e.sourceLinks) {
266
+ if (r === t) break;
267
+ n += i + o;
268
+ }
269
+ for (let { source: r, width: i } of t.targetLinks) {
270
+ if (r === e) break;
271
+ n -= i;
272
+ }
273
+ return n;
274
+ }
275
+ function W(e, t) {
276
+ let n = t.y0 - (t.targetLinks.length - 1) * o / 2;
277
+ for (let { source: r, width: i } of t.targetLinks) {
278
+ if (r === e) break;
279
+ n += i + o;
280
+ }
281
+ for (let { target: r, width: i } of e.sourceLinks) {
282
+ if (r === t) break;
283
+ n -= i;
284
+ }
285
+ return n;
286
+ }
287
+ return m;
288
+ }
289
+ //#endregion
290
+ //#region node_modules/d3-sankey/node_modules/d3-path/src/path.js
291
+ var F = Math.PI, I = 2 * F, L = 1e-6, R = I - L;
292
+ function z() {
293
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
294
+ }
295
+ function B() {
296
+ return new z();
297
+ }
298
+ z.prototype = B.prototype = {
299
+ constructor: z,
300
+ moveTo: function(e, t) {
301
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
302
+ },
303
+ closePath: function() {
304
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
305
+ },
306
+ lineTo: function(e, t) {
307
+ this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);
308
+ },
309
+ quadraticCurveTo: function(e, t, n, r) {
310
+ this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);
311
+ },
312
+ bezierCurveTo: function(e, t, n, r, i, a) {
313
+ this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);
314
+ },
315
+ arcTo: function(e, t, n, r, i) {
316
+ e = +e, t = +t, n = +n, r = +r, i = +i;
317
+ var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
318
+ if (i < 0) throw Error("negative radius: " + i);
319
+ if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
320
+ else if (d > L) if (!(Math.abs(u * s - c * l) > L) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
321
+ else {
322
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((F - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
323
+ Math.abs(y - 1) > L && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
324
+ }
325
+ },
326
+ arc: function(e, t, n, r, i, a) {
327
+ e = +e, t = +t, n = +n, a = !!a;
328
+ var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
329
+ if (n < 0) throw Error("negative radius: " + n);
330
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > L || Math.abs(this._y1 - l) > L) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % I + I), d > R ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > L && (this._ += "A" + n + "," + n + ",0," + +(d >= F) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
331
+ },
332
+ rect: function(e, t, n, r) {
333
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
334
+ },
335
+ toString: function() {
336
+ return this._;
337
+ }
338
+ };
339
+ //#endregion
340
+ //#region node_modules/d3-sankey/node_modules/d3-shape/src/constant.js
341
+ function V(e) {
342
+ return function() {
343
+ return e;
344
+ };
345
+ }
346
+ //#endregion
347
+ //#region node_modules/d3-sankey/node_modules/d3-shape/src/point.js
348
+ function H(e) {
349
+ return e[0];
350
+ }
351
+ function U(e) {
352
+ return e[1];
353
+ }
354
+ //#endregion
355
+ //#region node_modules/d3-sankey/node_modules/d3-shape/src/array.js
356
+ var W = Array.prototype.slice;
357
+ //#endregion
358
+ //#region node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js
359
+ function ee(e) {
360
+ return e.source;
361
+ }
362
+ function G(e) {
363
+ return e.target;
364
+ }
365
+ function K(e) {
366
+ var t = ee, n = G, r = H, i = U, a = null;
367
+ function o() {
368
+ var o, s = W.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
369
+ if (a ||= o = B(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
370
+ }
371
+ return o.source = function(e) {
372
+ return arguments.length ? (t = e, o) : t;
373
+ }, o.target = function(e) {
374
+ return arguments.length ? (n = e, o) : n;
375
+ }, o.x = function(e) {
376
+ return arguments.length ? (r = typeof e == "function" ? e : V(+e), o) : r;
377
+ }, o.y = function(e) {
378
+ return arguments.length ? (i = typeof e == "function" ? e : V(+e), o) : i;
379
+ }, o.context = function(e) {
380
+ return arguments.length ? (a = e ?? null, o) : a;
381
+ }, o;
382
+ }
383
+ function q(e, t, n, r, i) {
384
+ e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
385
+ }
386
+ function te() {
387
+ return K(q);
388
+ }
389
+ //#endregion
390
+ //#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
391
+ function ne(e) {
392
+ return [e.source.x1, e.y0];
393
+ }
394
+ function re(e) {
395
+ return [e.target.x0, e.y1];
396
+ }
397
+ function ie() {
398
+ return te().source(ne).target(re);
399
+ }
400
+ //#endregion
401
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.mjs
402
+ var J = (function() {
403
+ var e = /* @__PURE__ */ d(function(e, t, n, r) {
404
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
405
+ return n;
406
+ }, "o"), t = [1, 9], n = [1, 10], r = [
407
+ 1,
408
+ 5,
409
+ 10,
410
+ 12
411
+ ], i = {
412
+ trace: /* @__PURE__ */ d(function() {}, "trace"),
413
+ yy: {},
414
+ symbols_: {
415
+ error: 2,
416
+ start: 3,
417
+ SANKEY: 4,
418
+ NEWLINE: 5,
419
+ csv: 6,
420
+ opt_eof: 7,
421
+ record: 8,
422
+ csv_tail: 9,
423
+ EOF: 10,
424
+ "field[source]": 11,
425
+ COMMA: 12,
426
+ "field[target]": 13,
427
+ "field[value]": 14,
428
+ field: 15,
429
+ escaped: 16,
430
+ non_escaped: 17,
431
+ DQUOTE: 18,
432
+ ESCAPED_TEXT: 19,
433
+ NON_ESCAPED_TEXT: 20,
434
+ $accept: 0,
435
+ $end: 1
436
+ },
437
+ terminals_: {
438
+ 2: "error",
439
+ 4: "SANKEY",
440
+ 5: "NEWLINE",
441
+ 10: "EOF",
442
+ 11: "field[source]",
443
+ 12: "COMMA",
444
+ 13: "field[target]",
445
+ 14: "field[value]",
446
+ 18: "DQUOTE",
447
+ 19: "ESCAPED_TEXT",
448
+ 20: "NON_ESCAPED_TEXT"
449
+ },
450
+ productions_: [
451
+ 0,
452
+ [3, 4],
453
+ [6, 2],
454
+ [9, 2],
455
+ [9, 0],
456
+ [7, 1],
457
+ [7, 0],
458
+ [8, 5],
459
+ [15, 1],
460
+ [15, 1],
461
+ [16, 3],
462
+ [17, 1]
463
+ ],
464
+ performAction: /* @__PURE__ */ d(function(e, t, n, r, i, a, o) {
465
+ var s = a.length - 1;
466
+ switch (i) {
467
+ case 7:
468
+ let e = r.findOrCreateNode(a[s - 4].trim().replaceAll("\"\"", "\"")), t = r.findOrCreateNode(a[s - 2].trim().replaceAll("\"\"", "\"")), n = parseFloat(a[s].trim());
469
+ r.addLink(e, t, n);
470
+ break;
471
+ case 8:
472
+ case 9:
473
+ case 11:
474
+ this.$ = a[s];
475
+ break;
476
+ case 10:
477
+ this.$ = a[s - 1];
478
+ break;
479
+ }
480
+ }, "anonymous"),
481
+ table: [
482
+ {
483
+ 3: 1,
484
+ 4: [1, 2]
485
+ },
486
+ { 1: [3] },
487
+ { 5: [1, 3] },
488
+ {
489
+ 6: 4,
490
+ 8: 5,
491
+ 15: 6,
492
+ 16: 7,
493
+ 17: 8,
494
+ 18: t,
495
+ 20: n
496
+ },
497
+ {
498
+ 1: [2, 6],
499
+ 7: 11,
500
+ 10: [1, 12]
501
+ },
502
+ e(n, [2, 4], {
503
+ 9: 13,
504
+ 5: [1, 14]
505
+ }),
506
+ { 12: [1, 15] },
507
+ e(r, [2, 8]),
508
+ e(r, [2, 9]),
509
+ { 19: [1, 16] },
510
+ e(r, [2, 11]),
511
+ { 1: [2, 1] },
512
+ { 1: [2, 5] },
513
+ e(n, [2, 2]),
514
+ {
515
+ 6: 17,
516
+ 8: 5,
517
+ 15: 6,
518
+ 16: 7,
519
+ 17: 8,
520
+ 18: t,
521
+ 20: n
522
+ },
523
+ {
524
+ 15: 18,
525
+ 16: 7,
526
+ 17: 8,
527
+ 18: t,
528
+ 20: n
529
+ },
530
+ { 18: [1, 19] },
531
+ e(n, [2, 3]),
532
+ { 12: [1, 20] },
533
+ e(r, [2, 10]),
534
+ {
535
+ 15: 21,
536
+ 16: 7,
537
+ 17: 8,
538
+ 18: t,
539
+ 20: n
540
+ },
541
+ e([
542
+ 1,
543
+ 5,
544
+ 10
545
+ ], [2, 7])
546
+ ],
547
+ defaultActions: {
548
+ 11: [2, 1],
549
+ 12: [2, 5]
550
+ },
551
+ parseError: /* @__PURE__ */ d(function(e, t) {
552
+ if (t.recoverable) this.trace(e);
553
+ else {
554
+ var n = Error(e);
555
+ throw n.hash = t, n;
556
+ }
557
+ }, "parseError"),
558
+ parse: /* @__PURE__ */ d(function(e) {
559
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
560
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
561
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
562
+ var v = h.yylloc;
563
+ a.push(v);
564
+ var y = h.options && h.options.ranges;
565
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
566
+ function b(e) {
567
+ n.length -= 2 * e, i.length -= e, a.length -= e;
568
+ }
569
+ d(b, "popStack");
570
+ function x() {
571
+ var e = r.pop() || h.lex() || p;
572
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
573
+ }
574
+ d(x, "lex");
575
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
576
+ 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]) {
577
+ var M = "";
578
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
579
+ 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, {
580
+ text: h.match,
581
+ token: this.terminals_[S] || S,
582
+ line: h.yylineno,
583
+ loc: v,
584
+ expected: j
585
+ });
586
+ }
587
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
588
+ switch (T[0]) {
589
+ case 1:
590
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
591
+ break;
592
+ case 2:
593
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
594
+ first_line: a[a.length - (k || 1)].first_line,
595
+ last_line: a[a.length - 1].last_line,
596
+ first_column: a[a.length - (k || 1)].first_column,
597
+ last_column: a[a.length - 1].last_column
598
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
599
+ s,
600
+ l,
601
+ c,
602
+ g.yy,
603
+ T[1],
604
+ i,
605
+ a
606
+ ].concat(m)), E !== void 0) return E;
607
+ 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);
608
+ break;
609
+ case 3: return !0;
610
+ }
611
+ }
612
+ return !0;
613
+ }, "parse")
614
+ };
615
+ i.lexer = /* @__PURE__ */ (function() {
616
+ return {
617
+ EOF: 1,
618
+ parseError: /* @__PURE__ */ d(function(e, t) {
619
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
620
+ else throw Error(e);
621
+ }, "parseError"),
622
+ setInput: /* @__PURE__ */ d(function(e, t) {
623
+ 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 = {
624
+ first_line: 1,
625
+ first_column: 0,
626
+ last_line: 1,
627
+ last_column: 0
628
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
629
+ }, "setInput"),
630
+ input: /* @__PURE__ */ d(function() {
631
+ var e = this._input[0];
632
+ 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;
633
+ }, "input"),
634
+ unput: /* @__PURE__ */ d(function(e) {
635
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
636
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
637
+ var r = this.match.split(/(?:\r\n?|\n)/g);
638
+ 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);
639
+ var i = this.yylloc.range;
640
+ return this.yylloc = {
641
+ first_line: this.yylloc.first_line,
642
+ last_line: this.yylineno + 1,
643
+ first_column: this.yylloc.first_column,
644
+ 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
645
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
646
+ }, "unput"),
647
+ more: /* @__PURE__ */ d(function() {
648
+ return this._more = !0, this;
649
+ }, "more"),
650
+ reject: /* @__PURE__ */ d(function() {
651
+ if (this.options.backtrack_lexer) this._backtrack = !0;
652
+ 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(), {
653
+ text: "",
654
+ token: null,
655
+ line: this.yylineno
656
+ });
657
+ return this;
658
+ }, "reject"),
659
+ less: /* @__PURE__ */ d(function(e) {
660
+ this.unput(this.match.slice(e));
661
+ }, "less"),
662
+ pastInput: /* @__PURE__ */ d(function() {
663
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
664
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
665
+ }, "pastInput"),
666
+ upcomingInput: /* @__PURE__ */ d(function() {
667
+ var e = this.match;
668
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
669
+ }, "upcomingInput"),
670
+ showPosition: /* @__PURE__ */ d(function() {
671
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
672
+ return e + this.upcomingInput() + "\n" + t + "^";
673
+ }, "showPosition"),
674
+ test_match: /* @__PURE__ */ d(function(e, t) {
675
+ var n, r, i;
676
+ if (this.options.backtrack_lexer && (i = {
677
+ yylineno: this.yylineno,
678
+ yylloc: {
679
+ first_line: this.yylloc.first_line,
680
+ last_line: this.last_line,
681
+ first_column: this.yylloc.first_column,
682
+ last_column: this.yylloc.last_column
683
+ },
684
+ yytext: this.yytext,
685
+ match: this.match,
686
+ matches: this.matches,
687
+ matched: this.matched,
688
+ yyleng: this.yyleng,
689
+ offset: this.offset,
690
+ _more: this._more,
691
+ _input: this._input,
692
+ yy: this.yy,
693
+ conditionStack: this.conditionStack.slice(0),
694
+ done: this.done
695
+ }, 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 = {
696
+ first_line: this.yylloc.last_line,
697
+ last_line: this.yylineno + 1,
698
+ first_column: this.yylloc.last_column,
699
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
700
+ }, 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;
701
+ if (this._backtrack) {
702
+ for (var a in i) this[a] = i[a];
703
+ return !1;
704
+ }
705
+ return !1;
706
+ }, "test_match"),
707
+ next: /* @__PURE__ */ d(function() {
708
+ if (this.done) return this.EOF;
709
+ this._input || (this.done = !0);
710
+ var e, t, n, r;
711
+ this._more || (this.yytext = "", this.match = "");
712
+ 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)) {
713
+ if (t = n, r = a, this.options.backtrack_lexer) {
714
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
715
+ if (this._backtrack) {
716
+ t = !1;
717
+ continue;
718
+ } else return !1;
719
+ } else if (!this.options.flex) break;
720
+ }
721
+ 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(), {
722
+ text: "",
723
+ token: null,
724
+ line: this.yylineno
725
+ });
726
+ }, "next"),
727
+ lex: /* @__PURE__ */ d(function() {
728
+ return this.next() || this.lex();
729
+ }, "lex"),
730
+ begin: /* @__PURE__ */ d(function(e) {
731
+ this.conditionStack.push(e);
732
+ }, "begin"),
733
+ popState: /* @__PURE__ */ d(function() {
734
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
735
+ }, "popState"),
736
+ _currentRules: /* @__PURE__ */ d(function() {
737
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
738
+ }, "_currentRules"),
739
+ topState: /* @__PURE__ */ d(function(e) {
740
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
741
+ }, "topState"),
742
+ pushState: /* @__PURE__ */ d(function(e) {
743
+ this.begin(e);
744
+ }, "pushState"),
745
+ stateStackSize: /* @__PURE__ */ d(function() {
746
+ return this.conditionStack.length;
747
+ }, "stateStackSize"),
748
+ options: { "case-insensitive": !0 },
749
+ performAction: /* @__PURE__ */ d(function(e, t, n, r) {
750
+ switch (n) {
751
+ case 0: return this.pushState("csv"), 4;
752
+ case 1: return this.pushState("csv"), 4;
753
+ case 2: return 10;
754
+ case 3: return 5;
755
+ case 4: return 12;
756
+ case 5: return this.pushState("escaped_text"), 18;
757
+ case 6: return 20;
758
+ case 7: return this.popState("escaped_text"), 18;
759
+ case 8: return 19;
760
+ }
761
+ }, "anonymous"),
762
+ rules: [
763
+ /^(?:sankey-beta\b)/i,
764
+ /^(?:sankey\b)/i,
765
+ /^(?:$)/i,
766
+ /^(?:((\u000D\u000A)|(\u000A)))/i,
767
+ /^(?:(\u002C))/i,
768
+ /^(?:(\u0022))/i,
769
+ /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,
770
+ /^(?:(\u0022)(?!(\u0022)))/i,
771
+ /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i
772
+ ],
773
+ conditions: {
774
+ csv: {
775
+ rules: [
776
+ 2,
777
+ 3,
778
+ 4,
779
+ 5,
780
+ 6,
781
+ 7,
782
+ 8
783
+ ],
784
+ inclusive: !1
785
+ },
786
+ escaped_text: {
787
+ rules: [7, 8],
788
+ inclusive: !1
789
+ },
790
+ INITIAL: {
791
+ rules: [
792
+ 0,
793
+ 1,
794
+ 2,
795
+ 3,
796
+ 4,
797
+ 5,
798
+ 6,
799
+ 7,
800
+ 8
801
+ ],
802
+ inclusive: !0
803
+ }
804
+ }
805
+ };
806
+ })();
807
+ function a() {
808
+ this.yy = {};
809
+ }
810
+ return d(a, "Parser"), a.prototype = i, i.Parser = a, new a();
811
+ })();
812
+ J.parser = J;
813
+ var Y = J, X = [], Z = [], Q = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ d(() => {
814
+ X = [], Z = [], Q = /* @__PURE__ */ new Map(), o();
815
+ }, "clear"), oe = class {
816
+ constructor(e, t, n = 0) {
817
+ this.source = e, this.target = t, this.value = n;
818
+ }
819
+ static {
820
+ d(this, "SankeyLink");
821
+ }
822
+ }, se = /* @__PURE__ */ d((e, t, n) => {
823
+ X.push(new oe(e, t, n));
824
+ }, "addLink"), ce = class {
825
+ constructor(e) {
826
+ this.ID = e;
827
+ }
828
+ static {
829
+ d(this, "SankeyNode");
830
+ }
831
+ }, le = {
832
+ nodesMap: Q,
833
+ getConfig: /* @__PURE__ */ d(() => s().sankey, "getConfig"),
834
+ getNodes: /* @__PURE__ */ d(() => Z, "getNodes"),
835
+ getLinks: /* @__PURE__ */ d(() => X, "getLinks"),
836
+ getGraph: /* @__PURE__ */ d(() => ({
837
+ nodes: Z.map((e) => ({ id: e.ID })),
838
+ links: X.map((e) => ({
839
+ source: e.source.ID,
840
+ target: e.target.ID,
841
+ value: e.value
842
+ }))
843
+ }), "getGraph"),
844
+ addLink: se,
845
+ findOrCreateNode: /* @__PURE__ */ d((e) => {
846
+ e = c.sanitizeText(e, s());
847
+ let t = Q.get(e);
848
+ return t === void 0 && (t = new ce(e), Q.set(e, t), Z.push(t)), t;
849
+ }, "findOrCreateNode"),
850
+ getAccTitle: u,
851
+ setAccTitle: r,
852
+ getAccDescription: a,
853
+ setAccDescription: e,
854
+ getDiagramTitle: t,
855
+ setDiagramTitle: i,
856
+ clear: ae
857
+ }, $ = class e {
858
+ static {
859
+ d(this, "Uid");
860
+ }
861
+ static {
862
+ this.count = 0;
863
+ }
864
+ static next(t) {
865
+ return new e(t + ++e.count);
866
+ }
867
+ constructor(e) {
868
+ this.id = e, this.href = `#${e}`;
869
+ }
870
+ toString() {
871
+ return "url(" + this.href + ")";
872
+ }
873
+ }, ue = {
874
+ left: b,
875
+ right: x,
876
+ center: C,
877
+ justify: S
878
+ }, de = { draw: /* @__PURE__ */ d(function(e, t, r, i) {
879
+ let { securityLevel: a, sankey: o } = s(), c = l.sankey, u;
880
+ a === "sandbox" && (u = f("#i" + t));
881
+ let m = f(a === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), g = a === "sandbox" ? m.select(`[id="${t}"]`) : f(`[id="${t}"]`), _ = o?.width ?? c.width, v = o?.height ?? c.width, y = o?.useMaxWidth ?? c.useMaxWidth, b = o?.nodeAlignment ?? c.nodeAlignment, x = o?.prefix ?? c.prefix, S = o?.suffix ?? c.suffix, C = o?.showValues ?? c.showValues, w = i.db.getGraph(), T = ue[b];
882
+ P().nodeId((e) => e.id).nodeWidth(10).nodePadding(10 + (C ? 15 : 0)).nodeAlign(T).extent([[0, 0], [_, v]])(w);
883
+ let E = p(h);
884
+ g.append("g").attr("class", "nodes").selectAll(".node").data(w.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = $.next("node-")).id).attr("transform", function(e) {
885
+ return "translate(" + e.x0 + "," + e.y0 + ")";
886
+ }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => E(e.id));
887
+ let D = /* @__PURE__ */ d(({ id: e, value: t }) => C ? `${e}
888
+ ${x}${Math.round(t * 100) / 100}${S}` : e, "getText");
889
+ g.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(w.nodes).join("text").attr("x", (e) => e.x0 < _ / 2 ? e.x1 + 6 : e.x0 - 6).attr("y", (e) => (e.y1 + e.y0) / 2).attr("dy", `${C ? "0" : "0.35"}em`).attr("text-anchor", (e) => e.x0 < _ / 2 ? "start" : "end").text(D);
890
+ let O = g.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(w.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), k = o?.linkColor ?? "gradient";
891
+ if (k === "gradient") {
892
+ let e = O.append("linearGradient").attr("id", (e) => (e.uid = $.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.source.x1).attr("x2", (e) => e.target.x0);
893
+ e.append("stop").attr("offset", "0%").attr("stop-color", (e) => E(e.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (e) => E(e.target.id));
894
+ }
895
+ let A;
896
+ switch (k) {
897
+ case "gradient":
898
+ A = /* @__PURE__ */ d((e) => e.uid, "coloring");
899
+ break;
900
+ case "source":
901
+ A = /* @__PURE__ */ d((e) => E(e.source.id), "coloring");
902
+ break;
903
+ case "target":
904
+ A = /* @__PURE__ */ d((e) => E(e.target.id), "coloring");
905
+ break;
906
+ default: A = k;
907
+ }
908
+ O.append("path").attr("d", ie()).attr("stroke", A).attr("stroke-width", (e) => Math.max(1, e.width)), n(void 0, g, 0, y);
909
+ }, "draw") }, fe = /* @__PURE__ */ d((e) => e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim(), "prepareTextForParsing"), pe = /* @__PURE__ */ d((e) => `.label {
910
+ font-family: ${e.fontFamily};
911
+ }`, "getStyles"), me = Y.parse.bind(Y);
912
+ Y.parse = (e) => me(fe(e));
913
+ var he = {
914
+ styles: pe,
915
+ parser: Y,
916
+ db: le,
917
+ renderer: de
918
+ };
919
+ //#endregion
920
+ export { he as diagram };