@sme.up/ketchup2 2.6.0 → 2.8.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 (598) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-yUAZoqJP.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-CYi2lpSd.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-CMX2LiQK.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -252
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/autocomplete/autocomplete-types.d.ts +2 -1
  11. package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
  12. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  13. package/dist/basic-components/button/button-utils.d.ts.map +1 -1
  14. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  15. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  17. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  18. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  19. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  20. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  21. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  22. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  24. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  25. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  26. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  27. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  28. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  30. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  31. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  32. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  33. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  34. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  35. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  36. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  37. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  38. package/dist/{c4Diagram-AAUBKEIU-BUOgTWLR.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  39. package/dist/channel-BvUly9jN.cjs +1 -0
  40. package/dist/{channel-CAhFwf6U.js → channel-D6agWknC.js} +1 -1
  41. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  42. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  43. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  44. package/dist/{chunk-QZHKN3VN-cS9OamWo.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  45. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  46. package/dist/{chunk-3OPIFGDE-BYuWDDGY.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  47. package/dist/{chunk-FMBD7UC4-Cia16Ryi.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  48. package/dist/{chunk-FMBD7UC4-BLLpskYF.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  49. package/dist/{chunk-5ZQYHXKU-BvO58_5C.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  50. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  51. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  52. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  53. package/dist/{chunk-CSCIHK7Q-Drr_NBLR.js → chunk-DU6HZSFF-CNSdkWoH.js} +1584 -621
  54. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  55. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  56. package/dist/{chunk-ND2GUHAM-CKQ1Jk8O.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  57. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  58. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  59. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  60. package/dist/{chunk-O5CBEL6O-BIU6TcWp.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  61. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  62. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  63. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  64. package/dist/{chunk-AQP2D5EJ-Cp3ieoZF.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  65. package/dist/{chunk-4BX2VUAB-B74FMcxr.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  66. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  67. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  68. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  69. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  70. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  71. package/dist/{chunk-KSCS5N6A-pd39ksIM.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  72. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  73. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  74. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  75. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  76. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  77. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  78. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  79. package/dist/{flowDiagram-I6XJVG4X-Dx5d6cgt.js → chunk-SHT3W25Y-DJgD-hyF.js} +581 -538
  80. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  81. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  82. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  83. package/dist/chunk-TICWLB2K-1u0p_luB.cjs +206 -0
  84. package/dist/{chunk-727SXJPM-BDsxon3G.js → chunk-TICWLB2K-DqSHwYf9.js} +185 -180
  85. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  86. package/dist/{chunk-LZXEDZCA-oQMllZja.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  87. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  88. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  89. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  90. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  91. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  92. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  93. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  94. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  95. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  96. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  97. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  98. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  99. package/dist/components/box-list/box-list.d.ts.map +1 -1
  100. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  101. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  102. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  103. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  104. package/dist/components/data-table/columns/useColumnWidths.d.ts +6 -1
  105. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  106. package/dist/components/data-table/data-table-types.d.ts +108 -4
  107. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  108. package/dist/components/data-table/data-table.d.ts.map +1 -1
  109. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  110. package/dist/components/data-table/header/header-types.d.ts +14 -4
  111. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  112. package/dist/components/data-table/sorting/parseDftSort.d.ts +14 -0
  113. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -0
  114. package/dist/components/data-table/sorting/parseDftSort.test.d.ts +2 -0
  115. package/dist/components/data-table/sorting/parseDftSort.test.d.ts.map +1 -0
  116. package/dist/components/data-table/sorting/sortTable-utils.d.ts +8 -9
  117. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  118. package/dist/components/data-table/sorting/useSortableTable.d.ts +3 -5
  119. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  120. package/dist/components/data-table/state/datatable-state.d.ts +1 -0
  121. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  122. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  123. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  124. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  125. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  126. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  127. package/dist/components/workflow-designer/workflow-designer-types.d.ts +109 -0
  128. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -0
  129. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +86 -0
  130. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -0
  131. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  132. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  133. package/dist/components/workflow-designer/workflow-designer.d.ts +15 -0
  134. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -0
  135. package/dist/{cose-bilkent-S5V4N54A-DZmA7Nat.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +23 -23
  136. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  137. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  138. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  139. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  140. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  141. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  142. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  143. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  144. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  145. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  146. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  147. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  148. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  149. package/dist/{diagram-2AECGRRQ-BITzWXbn.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  150. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  151. package/dist/{diagram-KO2AKTUF-DwTH3Hoo.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  152. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  153. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  154. package/dist/{diagram-OG6HWLK6-CPzvG6Xi.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  155. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  156. package/dist/{diagram-LMA3HP47-nYPIM4Uq.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  157. package/dist/{dist-BEmBi80K.js → dist-C7OpkiTz.js} +2 -3
  158. package/dist/dist-DrOEvFlx.cjs +1 -0
  159. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  160. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  161. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  162. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  163. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  164. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  165. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  166. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  167. package/dist/functional-components/action-list/action-list-types.d.ts +0 -7
  168. package/dist/functional-components/action-list/action-list-types.d.ts.map +1 -1
  169. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  170. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  171. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  172. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  173. package/dist/functional-components/row/row-types.d.ts +13 -0
  174. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  175. package/dist/functional-components/row/row.d.ts.map +1 -1
  176. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  177. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  178. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  179. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  180. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  181. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  182. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  183. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  184. package/dist/{ganttDiagram-6RSMTGT7-CFuwKLrB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +642 -639
  185. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  186. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  187. package/dist/{gitGraphDiagram-PVQCEYII-B2CaQTP_.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  188. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  189. package/dist/index.d.ts +6 -6
  190. package/dist/index.d.ts.map +1 -1
  191. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  192. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  193. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  194. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  195. package/dist/{ishikawaDiagram-YF4QCWOH-CfOvUIo-.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  196. package/dist/{ishikawaDiagram-YF4QCWOH-CSRSkgHx.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  197. package/dist/{journeyDiagram-JHISSGLW-BMECXtd1.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  198. package/dist/{journeyDiagram-JHISSGLW-P42eSNEh.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  199. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  200. package/dist/{kanban-definition-UN3LZRKU-DCzfGTs4.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  201. package/dist/katex-DUe6VLjC.cjs +257 -0
  202. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  203. package/dist/ketchup2.cjs.js +405 -101
  204. package/dist/ketchup2.css +1 -1
  205. package/dist/ketchup2.es.js +151183 -119083
  206. package/dist/{line-0G6sJTVA.js → line-BEo8vh4N.js} +1 -1
  207. package/dist/{line-CLmmMPn2.cjs → line-wiGgVVGi.cjs} +1 -1
  208. package/dist/{linear-BNWgac81.js → linear-BNesvT28.js} +1 -1
  209. package/dist/{linear-yBssgUAc.cjs → linear-YA14Lx5Z.cjs} +1 -1
  210. package/dist/locale/en/translation.json.d.ts +23 -0
  211. package/dist/locale/it/translation.json.d.ts +24 -1
  212. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  213. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  214. package/dist/{mindmap-definition-RKZ34NQL-DbK4qO1Z.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  215. package/dist/{mindmap-definition-RKZ34NQL-DpX8ksst.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  216. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  217. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  218. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  219. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  220. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  221. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  222. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  223. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  224. package/dist/{quadrantDiagram-W4KKPZXB-Bgw66PrU.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  225. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  226. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  227. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  228. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  229. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  230. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  231. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  232. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  233. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  234. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  235. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  236. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  237. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  238. package/dist/{requirementDiagram-4Y6WPE33-BzNEhq-x.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  239. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  240. package/dist/{sankeyDiagram-5OEKKPKP-06MsaQmt.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  241. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  242. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  243. package/dist/{sequenceDiagram-3UESZ5HK-QEaDF4MY.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  244. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  245. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  246. package/dist/src-B16ML7oM.cjs +1 -0
  247. package/dist/{src-GDFuItmC.js → src-D-6ZfKf9.js} +587 -579
  248. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  249. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  250. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  251. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  252. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  253. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  254. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  255. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  256. package/dist/{timeline-definition-PNZ67QCA-DoD4D5kw.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  257. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  258. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  259. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  260. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  261. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  262. package/dist/types/data-structures.d.ts +0 -1
  263. package/dist/types/data-structures.d.ts.map +1 -1
  264. package/dist/types/global.d.ts +1 -1
  265. package/dist/types/global.d.ts.map +1 -1
  266. package/dist/types/translation.d.ts +24 -1
  267. package/dist/types/translation.d.ts.map +1 -1
  268. package/dist/utils/data-structures.d.ts +2 -1
  269. package/dist/utils/data-structures.d.ts.map +1 -1
  270. package/dist/{vennDiagram-CIIHVFJN-Du1h-z8K.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  271. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  272. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  273. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  274. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  275. package/dist/{wardleyDiagram-YWT4CUSO-CjOm3Xnp.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  276. package/dist/{xychartDiagram-2RQKCTM6-D0hXWFFN.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  277. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  278. package/package.json +6 -2
  279. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  280. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  281. package/dist/architectureDiagram-3BPJPVTR-C8DI7_Rn.cjs +0 -36
  282. package/dist/assets/shapeListAssets.d.ts +0 -22
  283. package/dist/assets/shapeListAssets.d.ts.map +0 -1
  284. package/dist/basic-components/card/card-slot-resolver.d.ts +0 -6
  285. package/dist/basic-components/card/card-slot-resolver.d.ts.map +0 -1
  286. package/dist/basic-components/card/card-types.d.ts +0 -43
  287. package/dist/basic-components/card/card-types.d.ts.map +0 -1
  288. package/dist/basic-components/card/card.d.ts +0 -5
  289. package/dist/basic-components/card/card.d.ts.map +0 -1
  290. package/dist/basic-components/card/flow/aside/index.d.ts +0 -2
  291. package/dist/basic-components/card/flow/aside/index.d.ts.map +0 -1
  292. package/dist/basic-components/card/flow/compact/index.d.ts +0 -2
  293. package/dist/basic-components/card/flow/compact/index.d.ts.map +0 -1
  294. package/dist/basic-components/card/flow/editorial/index.d.ts +0 -2
  295. package/dist/basic-components/card/flow/editorial/index.d.ts.map +0 -1
  296. package/dist/basic-components/card/flow/minimal/index.d.ts +0 -2
  297. package/dist/basic-components/card/flow/minimal/index.d.ts.map +0 -1
  298. package/dist/basic-components/card/flow/overlay/index.d.ts +0 -2
  299. package/dist/basic-components/card/flow/overlay/index.d.ts.map +0 -1
  300. package/dist/basic-components/card/flow/shared/flow-layout.d.ts +0 -4
  301. package/dist/basic-components/card/flow/shared/flow-layout.d.ts.map +0 -1
  302. package/dist/basic-components/card/flow/split/index.d.ts +0 -2
  303. package/dist/basic-components/card/flow/split/index.d.ts.map +0 -1
  304. package/dist/basic-components/card/flow/spotlight/index.d.ts +0 -2
  305. package/dist/basic-components/card/flow/spotlight/index.d.ts.map +0 -1
  306. package/dist/basic-components/card/flow/tiles/index.d.ts +0 -2
  307. package/dist/basic-components/card/flow/tiles/index.d.ts.map +0 -1
  308. package/dist/basic-components/card/layout-registry.d.ts +0 -4
  309. package/dist/basic-components/card/layout-registry.d.ts.map +0 -1
  310. package/dist/basic-components/card/positional/collaborator/index.d.ts +0 -4
  311. package/dist/basic-components/card/positional/collaborator/index.d.ts.map +0 -1
  312. package/dist/basic-components/card/positional/detailed-object/index.d.ts +0 -5
  313. package/dist/basic-components/card/positional/detailed-object/index.d.ts.map +0 -1
  314. package/dist/basic-components/card/positional/financial/index.d.ts +0 -4
  315. package/dist/basic-components/card/positional/financial/index.d.ts.map +0 -1
  316. package/dist/basic-components/card/positional/folder-grid/index.d.ts +0 -4
  317. package/dist/basic-components/card/positional/folder-grid/index.d.ts.map +0 -1
  318. package/dist/basic-components/card/positional/hero/index.d.ts +0 -4
  319. package/dist/basic-components/card/positional/hero/index.d.ts.map +0 -1
  320. package/dist/basic-components/card/positional/product/index.d.ts +0 -4
  321. package/dist/basic-components/card/positional/product/index.d.ts.map +0 -1
  322. package/dist/basic-components/card/positional/shared/object-card.d.ts +0 -24
  323. package/dist/basic-components/card/positional/shared/object-card.d.ts.map +0 -1
  324. package/dist/basic-components/card/positional/shared/utils.d.ts +0 -26
  325. package/dist/basic-components/card/positional/shared/utils.d.ts.map +0 -1
  326. package/dist/basic-components/card/positional/simple-object/index.d.ts +0 -5
  327. package/dist/basic-components/card/positional/simple-object/index.d.ts.map +0 -1
  328. package/dist/basic-components/card/positional/tooltip/index.d.ts +0 -4
  329. package/dist/basic-components/card/positional/tooltip/index.d.ts.map +0 -1
  330. package/dist/basic-components/card/positional/trend/index.d.ts +0 -4
  331. package/dist/basic-components/card/positional/trend/index.d.ts.map +0 -1
  332. package/dist/blockDiagram-GPEHLZMM-C7mogpj_.cjs +0 -132
  333. package/dist/blockDiagram-GPEHLZMM-fcAaH_Ka.js +0 -3157
  334. package/dist/c4Diagram-AAUBKEIU-BjsHAdap.cjs +0 -10
  335. package/dist/cell-NyD4Bcyq.js +0 -6457
  336. package/dist/cell-dpOG-xr_.cjs +0 -6
  337. package/dist/channel-BzP1tmYc.cjs +0 -1
  338. package/dist/chunk-2J33WTMH-BulZYTKs.js +0 -25
  339. package/dist/chunk-2J33WTMH-DIfvCbWZ.cjs +0 -1
  340. package/dist/chunk-3OPIFGDE-Ohf7vgmX.cjs +0 -62
  341. package/dist/chunk-4BX2VUAB-DdliHvKq.cjs +0 -1
  342. package/dist/chunk-55IACEB6-D5PlvtBC.js +0 -8
  343. package/dist/chunk-55IACEB6-DzCdT-ru.cjs +0 -1
  344. package/dist/chunk-5ZQYHXKU-35HHGVyc.cjs +0 -2
  345. package/dist/chunk-727SXJPM-BCv3AEZb.cjs +0 -206
  346. package/dist/chunk-AQP2D5EJ-CPbTYzEZ.cjs +0 -231
  347. package/dist/chunk-BSJP7CBP-BjkTjHJ6.js +0 -82
  348. package/dist/chunk-BSJP7CBP-DtjFXF0S.cjs +0 -1
  349. package/dist/chunk-CSCIHK7Q-WWTYrQLt.cjs +0 -122
  350. package/dist/chunk-Dqa2HsxW.js +0 -20
  351. package/dist/chunk-KSCS5N6A-DSWnBtbV.cjs +0 -10
  352. package/dist/chunk-L5ZTLDWV-DXk-PQPS.js +0 -32
  353. package/dist/chunk-L5ZTLDWV-sRcGREMv.cjs +0 -1
  354. package/dist/chunk-LZXEDZCA-4kbGESh2.cjs +0 -1
  355. package/dist/chunk-ND2GUHAM-See9KDdJ.cjs +0 -1
  356. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  357. package/dist/chunk-NZK2D7GU-CqugOMaJ.js +0 -67
  358. package/dist/chunk-NZK2D7GU-FNVK0iHI.cjs +0 -1
  359. package/dist/chunk-O5CBEL6O-BU_i0jbb.cjs +0 -70
  360. package/dist/chunk-QZHKN3VN-DPdobKra.cjs +0 -1
  361. package/dist/chunk-WU5MYG2G-BL6T82Hi.js +0 -9
  362. package/dist/chunk-WU5MYG2G-qi7ZaL3o.cjs +0 -1
  363. package/dist/chunk-XPW4576I-B9aC8EBY.js +0 -1146
  364. package/dist/chunk-XPW4576I-Dsm0jctf.cjs +0 -32
  365. package/dist/chunk-mLOUI7ql.cjs +0 -1
  366. package/dist/classDiagram-4FO5ZUOK-Dc-Jypl3.js +0 -29
  367. package/dist/classDiagram-4FO5ZUOK-Dqxk6PU-.cjs +0 -1
  368. package/dist/classDiagram-v2-Q7XG4LA2-DZ44tKmY.js +0 -29
  369. package/dist/classDiagram-v2-Q7XG4LA2-Dqxk6PU-.cjs +0 -1
  370. package/dist/components/shape-list/components/error-boundary.d.ts +0 -16
  371. package/dist/components/shape-list/components/error-boundary.d.ts.map +0 -1
  372. package/dist/components/shape-list/components/shape-list-drill-down.d.ts +0 -4
  373. package/dist/components/shape-list/components/shape-list-drill-down.d.ts.map +0 -1
  374. package/dist/components/shape-list/components/toolbar/command-panel.d.ts +0 -15
  375. package/dist/components/shape-list/components/toolbar/command-panel.d.ts.map +0 -1
  376. package/dist/components/shape-list/components/toolbar/command-trigger.d.ts +0 -16
  377. package/dist/components/shape-list/components/toolbar/command-trigger.d.ts.map +0 -1
  378. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts +0 -14
  379. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts.map +0 -1
  380. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts +0 -11
  381. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts.map +0 -1
  382. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts +0 -15
  383. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts.map +0 -1
  384. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts +0 -14
  385. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts.map +0 -1
  386. package/dist/components/shape-list/context/shape-list-context.d.ts +0 -31
  387. package/dist/components/shape-list/context/shape-list-context.d.ts.map +0 -1
  388. package/dist/components/shape-list/context/shape-list-filter-context.d.ts +0 -9
  389. package/dist/components/shape-list/context/shape-list-filter-context.d.ts.map +0 -1
  390. package/dist/components/shape-list/context/shape-list-sort-context.d.ts +0 -9
  391. package/dist/components/shape-list/context/shape-list-sort-context.d.ts.map +0 -1
  392. package/dist/components/shape-list/context/shape-list-state-context.d.ts +0 -5
  393. package/dist/components/shape-list/context/shape-list-state-context.d.ts.map +0 -1
  394. package/dist/components/shape-list/hooks/useCommandPickers.d.ts +0 -13
  395. package/dist/components/shape-list/hooks/useCommandPickers.d.ts.map +0 -1
  396. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts +0 -35
  397. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts.map +0 -1
  398. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts +0 -2
  399. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts.map +0 -1
  400. package/dist/components/shape-list/hooks/useNavigation.d.ts +0 -16
  401. package/dist/components/shape-list/hooks/useNavigation.d.ts.map +0 -1
  402. package/dist/components/shape-list/hooks/useSelection.d.ts +0 -34
  403. package/dist/components/shape-list/hooks/useSelection.d.ts.map +0 -1
  404. package/dist/components/shape-list/hooks/useStripOverflow.d.ts +0 -17
  405. package/dist/components/shape-list/hooks/useStripOverflow.d.ts.map +0 -1
  406. package/dist/components/shape-list/items/node-content.d.ts +0 -47
  407. package/dist/components/shape-list/items/node-content.d.ts.map +0 -1
  408. package/dist/components/shape-list/items/shape.d.ts +0 -20
  409. package/dist/components/shape-list/items/shape.d.ts.map +0 -1
  410. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts +0 -13
  411. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts.map +0 -1
  412. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts +0 -4
  413. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts.map +0 -1
  414. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts +0 -7
  415. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts.map +0 -1
  416. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts +0 -11
  417. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts.map +0 -1
  418. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts +0 -18
  419. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts.map +0 -1
  420. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts +0 -8
  421. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts.map +0 -1
  422. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts +0 -6
  423. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts.map +0 -1
  424. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts +0 -13
  425. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts.map +0 -1
  426. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts +0 -9
  427. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts.map +0 -1
  428. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts +0 -4
  429. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts.map +0 -1
  430. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts +0 -5
  431. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts.map +0 -1
  432. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts +0 -5
  433. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts.map +0 -1
  434. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts +0 -5
  435. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts.map +0 -1
  436. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts +0 -3
  437. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts.map +0 -1
  438. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts +0 -5
  439. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts.map +0 -1
  440. package/dist/components/shape-list/navigation-modes/compact/index.d.ts +0 -3
  441. package/dist/components/shape-list/navigation-modes/compact/index.d.ts.map +0 -1
  442. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts +0 -5
  443. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts.map +0 -1
  444. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts +0 -4
  445. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts.map +0 -1
  446. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts +0 -5
  447. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts.map +0 -1
  448. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts +0 -5
  449. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts.map +0 -1
  450. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts +0 -3
  451. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts.map +0 -1
  452. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts +0 -5
  453. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts.map +0 -1
  454. package/dist/components/shape-list/navigation-modes/modal/index.d.ts +0 -3
  455. package/dist/components/shape-list/navigation-modes/modal/index.d.ts.map +0 -1
  456. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts +0 -5
  457. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts.map +0 -1
  458. package/dist/components/shape-list/navigation-modes/rail/index.d.ts +0 -3
  459. package/dist/components/shape-list/navigation-modes/rail/index.d.ts.map +0 -1
  460. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts +0 -11
  461. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts.map +0 -1
  462. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts +0 -3
  463. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts.map +0 -1
  464. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts +0 -11
  465. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts.map +0 -1
  466. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts +0 -3
  467. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts.map +0 -1
  468. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts +0 -5
  469. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts.map +0 -1
  470. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts +0 -3
  471. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts.map +0 -1
  472. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts +0 -5
  473. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts.map +0 -1
  474. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts +0 -3
  475. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts.map +0 -1
  476. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts +0 -11
  477. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts.map +0 -1
  478. package/dist/components/shape-list/shape-list.d.ts +0 -5
  479. package/dist/components/shape-list/shape-list.d.ts.map +0 -1
  480. package/dist/components/shape-list/slots/renderers/brand.d.ts +0 -6
  481. package/dist/components/shape-list/slots/renderers/brand.d.ts.map +0 -1
  482. package/dist/components/shape-list/slots/renderers/cta.d.ts +0 -9
  483. package/dist/components/shape-list/slots/renderers/cta.d.ts.map +0 -1
  484. package/dist/components/shape-list/slots/renderers/icon.d.ts +0 -11
  485. package/dist/components/shape-list/slots/renderers/icon.d.ts.map +0 -1
  486. package/dist/components/shape-list/slots/renderers/section-header.d.ts +0 -7
  487. package/dist/components/shape-list/slots/renderers/section-header.d.ts.map +0 -1
  488. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts +0 -9
  489. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts.map +0 -1
  490. package/dist/components/shape-list/slots/slot-config.d.ts +0 -7
  491. package/dist/components/shape-list/slots/slot-config.d.ts.map +0 -1
  492. package/dist/components/shape-list/slots/slot-model.d.ts +0 -6
  493. package/dist/components/shape-list/slots/slot-model.d.ts.map +0 -1
  494. package/dist/components/shape-list/slots/slot-node.d.ts +0 -9
  495. package/dist/components/shape-list/slots/slot-node.d.ts.map +0 -1
  496. package/dist/components/shape-list/slots/slot-render-utils.d.ts +0 -11
  497. package/dist/components/shape-list/slots/slot-render-utils.d.ts.map +0 -1
  498. package/dist/components/shape-list/slots/slot-types.d.ts +0 -151
  499. package/dist/components/shape-list/slots/slot-types.d.ts.map +0 -1
  500. package/dist/components/shape-list/slots/test/slot-model.test.d.ts +0 -2
  501. package/dist/components/shape-list/slots/test/slot-model.test.d.ts.map +0 -1
  502. package/dist/components/shape-list/types/shape-list-types.d.ts +0 -181
  503. package/dist/components/shape-list/types/shape-list-types.d.ts.map +0 -1
  504. package/dist/components/shape-list/utils/column-utils.d.ts +0 -9
  505. package/dist/components/shape-list/utils/column-utils.d.ts.map +0 -1
  506. package/dist/components/shape-list/utils/debug-utils.d.ts +0 -13
  507. package/dist/components/shape-list/utils/debug-utils.d.ts.map +0 -1
  508. package/dist/components/shape-list/utils/filter-utils.d.ts +0 -12
  509. package/dist/components/shape-list/utils/filter-utils.d.ts.map +0 -1
  510. package/dist/components/shape-list/utils/keyboard-utils.d.ts +0 -12
  511. package/dist/components/shape-list/utils/keyboard-utils.d.ts.map +0 -1
  512. package/dist/components/shape-list/utils/navigation-options.d.ts +0 -30
  513. package/dist/components/shape-list/utils/navigation-options.d.ts.map +0 -1
  514. package/dist/components/shape-list/utils/node-utils.d.ts +0 -12
  515. package/dist/components/shape-list/utils/node-utils.d.ts.map +0 -1
  516. package/dist/components/shape-list/utils/sort-utils.d.ts +0 -13
  517. package/dist/components/shape-list/utils/sort-utils.d.ts.map +0 -1
  518. package/dist/components/shape-list/utils/typeahead-utils.d.ts +0 -28
  519. package/dist/components/shape-list/utils/typeahead-utils.d.ts.map +0 -1
  520. package/dist/cose-bilkent-S5V4N54A-BxQyjZqX.cjs +0 -1
  521. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  522. package/dist/dagre-BM42HDAG-DwRqEen8.js +0 -297
  523. package/dist/dagre-BM42HDAG-E2Jw6uLH.cjs +0 -4
  524. package/dist/diagram-2AECGRRQ-BkwGTiAT.cjs +0 -43
  525. package/dist/diagram-5GNKFQAL-CvMOQgoH.cjs +0 -10
  526. package/dist/diagram-5GNKFQAL-bsRwDc-2.js +0 -101
  527. package/dist/diagram-KO2AKTUF-DKGDs9Ax.cjs +0 -3
  528. package/dist/diagram-LMA3HP47-BojSLu6w.cjs +0 -24
  529. package/dist/diagram-OG6HWLK6-bHqMXqif.cjs +0 -24
  530. package/dist/dist-Dwq87x4R.cjs +0 -1
  531. package/dist/erDiagram-TEJ5UH35-BxeM1F9k.js +0 -1700
  532. package/dist/erDiagram-TEJ5UH35-CqUBZsAh.cjs +0 -85
  533. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  534. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  535. package/dist/flowDiagram-I6XJVG4X-DsjMn89E.cjs +0 -162
  536. package/dist/functional-components/shape/index.d.ts +0 -9
  537. package/dist/functional-components/shape/index.d.ts.map +0 -1
  538. package/dist/functional-components/shape/shape-map.d.ts +0 -3
  539. package/dist/functional-components/shape/shape-map.d.ts.map +0 -1
  540. package/dist/functional-components/shape/shape-registry.d.ts +0 -25
  541. package/dist/functional-components/shape/shape-registry.d.ts.map +0 -1
  542. package/dist/functional-components/shape/shape-resolver.d.ts +0 -61
  543. package/dist/functional-components/shape/shape-resolver.d.ts.map +0 -1
  544. package/dist/functional-components/shape/shape-types.d.ts +0 -55
  545. package/dist/functional-components/shape/shape-types.d.ts.map +0 -1
  546. package/dist/functional-components/shape/shape.d.ts +0 -5
  547. package/dist/functional-components/shape/shape.d.ts.map +0 -1
  548. package/dist/functional-components/shape/slot-resolver.d.ts +0 -24
  549. package/dist/functional-components/shape/slot-resolver.d.ts.map +0 -1
  550. package/dist/functional-components/shape/slot-types.d.ts +0 -27
  551. package/dist/functional-components/shape/slot-types.d.ts.map +0 -1
  552. package/dist/functional-components/shape/useSlotResolver.d.ts +0 -13
  553. package/dist/functional-components/shape/useSlotResolver.d.ts.map +0 -1
  554. package/dist/ganttDiagram-6RSMTGT7-CG_knKFc.cjs +0 -292
  555. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  556. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  557. package/dist/gitGraphDiagram-PVQCEYII-B-VOfNjd.cjs +0 -106
  558. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  559. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  560. package/dist/infoDiagram-5YYISTIA-22jaR465.cjs +0 -2
  561. package/dist/infoDiagram-5YYISTIA-CM-al6Jc.js +0 -19
  562. package/dist/jsx-runtime-DCATrIRp.js +0 -183
  563. package/dist/jsx-runtime-DtVwqYNW.cjs +0 -6
  564. package/dist/kanban-definition-UN3LZRKU-DplPe2EX.cjs +0 -89
  565. package/dist/katex-CkiTumqg.cjs +0 -257
  566. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  567. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  568. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  569. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  570. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  571. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  572. package/dist/pieDiagram-4H26LBE5-CCgLxjTB.js +0 -165
  573. package/dist/pieDiagram-4H26LBE5-DAhjc9WT.cjs +0 -30
  574. package/dist/purify.es-9OKVhuci.js +0 -735
  575. package/dist/purify.es-hdXGOu6N.cjs +0 -3
  576. package/dist/quadrantDiagram-W4KKPZXB-BBEQhVJy.cjs +0 -7
  577. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  578. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  579. package/dist/requirementDiagram-4Y6WPE33-L_lL0BcB.cjs +0 -84
  580. package/dist/sankeyDiagram-5OEKKPKP-Dy9K3F81.cjs +0 -40
  581. package/dist/sequenceDiagram-3UESZ5HK-C69YSjBM.cjs +0 -162
  582. package/dist/src-CFBvxm_0.cjs +0 -1
  583. package/dist/stateDiagram-AJRCARHV-BTzCb_Q-.js +0 -217
  584. package/dist/stateDiagram-AJRCARHV-CBbDL4Ct.cjs +0 -1
  585. package/dist/stateDiagram-v2-BHNVJYJU-BrQR0oUL.cjs +0 -1
  586. package/dist/stateDiagram-v2-BHNVJYJU-C7E3JbTB.js +0 -27
  587. package/dist/timeline-definition-PNZ67QCA-DJ9VKw6h.cjs +0 -120
  588. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  589. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  590. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  591. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  592. package/dist/useObjectProtocol-3BhpCUjG.cjs +0 -3
  593. package/dist/useObjectProtocol-DZdggHDN.js +0 -4333
  594. package/dist/vennDiagram-CIIHVFJN-DeRVKdRG.cjs +0 -34
  595. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  596. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  597. package/dist/wardleyDiagram-YWT4CUSO-CaaSvy6n.cjs +0 -78
  598. package/dist/xychartDiagram-2RQKCTM6-CWncieig.cjs +0 -7
@@ -1,14 +1,15 @@
1
- import { r as e, t } from "./chunk-Dqa2HsxW.js";
2
- import { g as n, h as r, p as i } from "./src-GDFuItmC.js";
3
- import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-CSCIHK7Q-Drr_NBLR.js";
4
- import { c as _, i as v } from "./chunk-5ZQYHXKU-BvO58_5C.js";
5
- import { t as y } from "./chunk-WU5MYG2G-BL6T82Hi.js";
6
- import { a as b, i as x, n as S, r as C } from "./chunk-O5CBEL6O-BIU6TcWp.js";
7
- import { t as w } from "./mermaid-parser.core-D6xVjl2t.js";
8
- import { t as T } from "./chunk-4BX2VUAB-B74FMcxr.js";
9
- import { t as E } from "./cytoscape.esm-BU21wl3m.js";
1
+ import { _ as e, m as t, p as n, y as r } from "./src-D-6ZfKf9.js";
2
+ import { H as i, J as a, K as o, U as s, a as c, b as l, f as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as g } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { c as _, i as v } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { t as y } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
+ import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-CbmhQpgH.js";
7
+ import { n as C } from "./chunk-GMAD6QVW-DKxKOKLF.js";
8
+ import { n as w } from "./mermaid-parser.core-oFB-qEU8.js";
9
+ import { t as T } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
10
+ import { t as E } from "./cytoscape.esm-BQqfb1oS.js";
10
11
  //#region node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
11
- var D = /* @__PURE__ */ t(((e, t) => {
12
+ var D = /* @__PURE__ */ e(((e, t) => {
12
13
  (function(n, r) {
13
14
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.layoutBase = r() : n.layoutBase = r();
14
15
  })(e, function() {
@@ -1442,8 +1443,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
1442
1443
  var K = n[E - 2];
1443
1444
  n[E - 2] = 0;
1444
1445
  for (var q = E - 2; q >= U; q--) {
1445
- var J = r.hypot(this.s[q], K), Y = this.s[q] / J, ae = K / J;
1446
- if (this.s[q] = J, q !== U && (K = -ae * n[q - 1], n[q - 1] = Y * n[q - 1]), o) for (var X = 0; X < this.n; X++) J = Y * this.V[X][q] + ae * this.V[X][E - 1], this.V[X][E - 1] = -ae * this.V[X][q] + Y * this.V[X][E - 1], this.V[X][q] = J;
1446
+ var ae = r.hypot(this.s[q], K), J = this.s[q] / ae, Y = K / ae;
1447
+ if (this.s[q] = ae, q !== U && (K = -Y * n[q - 1], n[q - 1] = J * n[q - 1]), o) for (var X = 0; X < this.n; X++) ae = J * this.V[X][q] + Y * this.V[X][E - 1], this.V[X][E - 1] = -Y * this.V[X][q] + J * this.V[X][E - 1], this.V[X][q] = ae;
1447
1448
  }
1448
1449
  break;
1449
1450
  case 2:
@@ -1639,7 +1640,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1639
1640
  })
1640
1641
  ]);
1641
1642
  });
1642
- })), O = /* @__PURE__ */ t(((e, t) => {
1643
+ })), O = /* @__PURE__ */ e(((e, t) => {
1643
1644
  (function(n, r) {
1644
1645
  typeof e == "object" && typeof t == "object" ? t.exports = r(D()) : typeof define == "function" && define.amd ? define(["layout-base"], r) : typeof e == "object" ? e.coseBase = r(D()) : n.coseBase = r(n.layoutBase);
1645
1646
  })(e, function(e) {
@@ -2648,7 +2649,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2648
2649
  E.has(e) || (l[c.get(e)] = i);
2649
2650
  });
2650
2651
  }, K = 0; K < G.length; K++) ie(K);
2651
- if (t.alignmentConstraint.horizontal) for (var q = t.alignmentConstraint.horizontal, J = function(e) {
2652
+ if (t.alignmentConstraint.horizontal) for (var q = t.alignmentConstraint.horizontal, ae = function(e) {
2652
2653
  var t = /* @__PURE__ */ new Set();
2653
2654
  q[e].forEach(function(e) {
2654
2655
  t.add(e);
@@ -2659,7 +2660,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2659
2660
  i = n.size > 0 ? u[c.get(n.values().next().value)] : g(t).y, t.forEach(function(e) {
2660
2661
  E.has(e) || (u[c.get(e)] = i);
2661
2662
  });
2662
- }, Y = 0; Y < q.length; Y++) J(Y);
2663
+ }, J = 0; J < q.length; J++) ae(J);
2663
2664
  }
2664
2665
  t.relativePlacementConstraint && (function() {
2665
2666
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
@@ -2738,25 +2739,25 @@ var D = /* @__PURE__ */ t(((e, t) => {
2738
2739
  i.get(e) ? i.get(e).forEach(function(t) {
2739
2740
  u[c.get(t)] = ee.get(e);
2740
2741
  }) : u[c.get(e)] = ee.get(e);
2741
- }, K = !0, q = !1, J = void 0;
2742
+ }, K = !0, q = !1, ae = void 0;
2742
2743
  try {
2743
- for (var Y = ee.keys()[Symbol.iterator](), ae; !(K = (ae = Y.next()).done); K = !0) {
2744
- var G = ae.value;
2744
+ for (var J = ee.keys()[Symbol.iterator](), Y; !(K = (Y = J.next()).done); K = !0) {
2745
+ var G = Y.value;
2745
2746
  ie(G);
2746
2747
  }
2747
2748
  } catch (e) {
2748
- q = !0, J = e;
2749
+ q = !0, ae = e;
2749
2750
  } finally {
2750
2751
  try {
2751
- !K && Y.return && Y.return();
2752
+ !K && J.return && J.return();
2752
2753
  } finally {
2753
- if (q) throw J;
2754
+ if (q) throw ae;
2754
2755
  }
2755
2756
  }
2756
2757
  })();
2757
2758
  }
2758
- for (var ae = 0; ae < d.length; ae++) {
2759
- var X = d[ae];
2759
+ for (var Y = 0; Y < d.length; Y++) {
2760
+ var X = d[Y];
2760
2761
  X.getChild() ?? X.setCenter(l[c.get(X.id)], u[c.get(X.id)]);
2761
2762
  }
2762
2763
  }, e.exports = c;
@@ -2774,7 +2775,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2774
2775
  return r(45);
2775
2776
  })();
2776
2777
  });
2777
- })), k = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
2778
+ })), k = /* @__PURE__ */ r((/* @__PURE__ */ e(((e, t) => {
2778
2779
  (function(n, r) {
2779
2780
  typeof e == "object" && typeof t == "object" ? t.exports = r(O()) : typeof define == "function" && define.amd ? define(["cose-base"], r) : typeof e == "object" ? e.cytoscapeFcose = r(O()) : n.cytoscapeFcose = r(n.coseBase);
2780
2781
  })(e, function(e) {
@@ -3341,10 +3342,10 @@ var D = /* @__PURE__ */ t(((e, t) => {
3341
3342
  yCoords: p
3342
3343
  }), U;
3343
3344
  } else {
3344
- var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), J = K.outerWidth();
3345
+ var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3345
3346
  if (f.push(q.x), p.push(q.y), y == 2) {
3346
- var Y = t.getElementById(ie.next().value).outerWidth();
3347
- f.push(q.x + J / 2 + Y / 2 + e.idealEdgeLength), p.push(q.y);
3347
+ var J = t.getElementById(ie.next().value).outerWidth();
3348
+ f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3348
3349
  }
3349
3350
  return U = {
3350
3351
  nodeIndexes: l,
@@ -3379,54 +3380,57 @@ var D = /* @__PURE__ */ t(((e, t) => {
3379
3380
  T: "top",
3380
3381
  B: "bottom"
3381
3382
  }, j = {
3382
- L: /* @__PURE__ */ r((e) => `${e},${e / 2} 0,${e} 0,0`, "L"),
3383
- R: /* @__PURE__ */ r((e) => `0,${e / 2} ${e},0 ${e},${e}`, "R"),
3384
- T: /* @__PURE__ */ r((e) => `0,0 ${e},0 ${e / 2},${e}`, "T"),
3385
- B: /* @__PURE__ */ r((e) => `${e / 2},0 ${e},${e} 0,${e}`, "B")
3383
+ L: /* @__PURE__ */ g((e) => `${e},${e / 2} 0,${e} 0,0`, "L"),
3384
+ R: /* @__PURE__ */ g((e) => `0,${e / 2} ${e},0 ${e},${e}`, "R"),
3385
+ T: /* @__PURE__ */ g((e) => `0,0 ${e},0 ${e / 2},${e}`, "T"),
3386
+ B: /* @__PURE__ */ g((e) => `${e / 2},0 ${e},${e} 0,${e}`, "B")
3386
3387
  }, M = {
3387
- L: /* @__PURE__ */ r((e, t) => e - t + 2, "L"),
3388
- R: /* @__PURE__ */ r((e, t) => e - 2, "R"),
3389
- T: /* @__PURE__ */ r((e, t) => e - t + 2, "T"),
3390
- B: /* @__PURE__ */ r((e, t) => e - 2, "B")
3391
- }, N = /* @__PURE__ */ r(function(e) {
3388
+ L: /* @__PURE__ */ g((e, t) => e - t + 2, "L"),
3389
+ R: /* @__PURE__ */ g((e, t) => e - 2, "R"),
3390
+ T: /* @__PURE__ */ g((e, t) => e - t + 2, "T"),
3391
+ B: /* @__PURE__ */ g((e, t) => e - 2, "B")
3392
+ }, N = /* @__PURE__ */ g(function(e) {
3392
3393
  return F(e) ? e === "L" ? "R" : "L" : e === "T" ? "B" : "T";
3393
- }, "getOppositeArchitectureDirection"), P = /* @__PURE__ */ r(function(e) {
3394
+ }, "getOppositeArchitectureDirection"), P = /* @__PURE__ */ g(function(e) {
3394
3395
  let t = e;
3395
3396
  return t === "L" || t === "R" || t === "T" || t === "B";
3396
- }, "isArchitectureDirection"), F = /* @__PURE__ */ r(function(e) {
3397
+ }, "isArchitectureDirection"), F = /* @__PURE__ */ g(function(e) {
3397
3398
  let t = e;
3398
3399
  return t === "L" || t === "R";
3399
- }, "isArchitectureDirectionX"), I = /* @__PURE__ */ r(function(e) {
3400
+ }, "isArchitectureDirectionX"), I = /* @__PURE__ */ g(function(e) {
3400
3401
  let t = e;
3401
3402
  return t === "T" || t === "B";
3402
- }, "isArchitectureDirectionY"), L = /* @__PURE__ */ r(function(e, t) {
3403
+ }, "isArchitectureDirectionY"), L = /* @__PURE__ */ g(function(e, t) {
3403
3404
  let n = F(e) && I(t), r = I(e) && F(t);
3404
3405
  return n || r;
3405
- }, "isArchitectureDirectionXY"), R = /* @__PURE__ */ r(function(e) {
3406
+ }, "isArchitectureDirectionXY"), R = /* @__PURE__ */ g(function(e) {
3406
3407
  let t = e[0], n = e[1], r = F(t) && I(n), i = I(t) && F(n);
3407
3408
  return r || i;
3408
- }, "isArchitecturePairXY"), z = /* @__PURE__ */ r(function(e) {
3409
+ }, "isArchitecturePairXY"), z = /* @__PURE__ */ g(function(e) {
3409
3410
  return e !== "LL" && e !== "RR" && e !== "TT" && e !== "BB";
3410
- }, "isValidArchitectureDirectionPair"), B = /* @__PURE__ */ r(function(e, t) {
3411
+ }, "isValidArchitectureDirectionPair"), B = /* @__PURE__ */ g(function(e, t) {
3411
3412
  let n = `${e}${t}`;
3412
3413
  return z(n) ? n : void 0;
3413
- }, "getArchitectureDirectionPair"), V = /* @__PURE__ */ r(function([e, t], n) {
3414
+ }, "getArchitectureDirectionPair"), V = /* @__PURE__ */ g(function([e, t], n) {
3414
3415
  let r = n[0], i = n[1];
3415
3416
  return F(r) ? I(i) ? [e + (r === "L" ? -1 : 1), t + (i === "T" ? 1 : -1)] : [e + (r === "L" ? -1 : 1), t] : F(i) ? [e + (i === "L" ? 1 : -1), t + (r === "T" ? 1 : -1)] : [e, t + (r === "T" ? 1 : -1)];
3416
- }, "shiftPositionByArchitectureDirectionPair"), ee = /* @__PURE__ */ r(function(e) {
3417
+ }, "shiftPositionByArchitectureDirectionPair"), ee = /* @__PURE__ */ g(function(e) {
3417
3418
  return e === "LT" || e === "TL" ? [1, 1] : e === "BL" || e === "LB" ? [1, -1] : e === "BR" || e === "RB" ? [-1, -1] : [-1, 1];
3418
- }, "getArchitectureDirectionXYFactors"), te = /* @__PURE__ */ r(function(e, t) {
3419
+ }, "getArchitectureDirectionXYFactors"), te = /* @__PURE__ */ g(function(e, t) {
3419
3420
  return L(e, t) ? "bend" : F(e) ? "horizontal" : "vertical";
3420
- }, "getArchitectureDirectionAlignment"), H = /* @__PURE__ */ r(function(e) {
3421
+ }, "getArchitectureDirectionAlignment"), H = /* @__PURE__ */ g(function(e) {
3421
3422
  return e.type === "service";
3422
- }, "isArchitectureService"), ne = /* @__PURE__ */ r(function(e) {
3423
+ }, "isArchitectureService"), ne = /* @__PURE__ */ g(function(e) {
3423
3424
  return e.type === "junction";
3424
- }, "isArchitectureJunction"), re = /* @__PURE__ */ r((e) => e.data(), "edgeData"), U = /* @__PURE__ */ r((e) => e.data(), "nodeData"), W = d.architecture, G = class {
3425
+ }, "isArchitectureJunction"), re = /* @__PURE__ */ g((e, t) => {
3426
+ let [n, r] = [e, t].sort();
3427
+ return `${JSON.stringify(n)}-${JSON.stringify(r)}`;
3428
+ }, "architectureGroupAlignmentKey"), U = /* @__PURE__ */ g((e) => e.data(), "edgeData"), W = /* @__PURE__ */ g((e) => e.data(), "nodeData"), G = u.architecture, ie = class {
3425
3429
  constructor() {
3426
- this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.elements = {}, this.diagramId = "", this.setAccTitle = c, this.getAccTitle = h, this.setDiagramTitle = s, this.getDiagramTitle = p, this.getAccDescription = f, this.setAccDescription = a, this.clear();
3430
+ this.nodes = /* @__PURE__ */ new Map(), this.groups = /* @__PURE__ */ new Map(), this.edges = [], this.layoutHints = [], this.registeredIds = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), this.diagramId = "", this.setAccTitle = s, this.getAccTitle = m, this.setDiagramTitle = o, this.getDiagramTitle = f, this.getAccDescription = d, this.setAccDescription = i, this.clear();
3427
3431
  }
3428
3432
  static {
3429
- r(this, "ArchitectureDB");
3433
+ g(this, "ArchitectureDB");
3430
3434
  }
3431
3435
  setDiagramId(e) {
3432
3436
  this.diagramId = e;
@@ -3435,16 +3439,16 @@ var D = /* @__PURE__ */ t(((e, t) => {
3435
3439
  return this.diagramId;
3436
3440
  }
3437
3441
  clear() {
3438
- this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.dataStructures = void 0, this.elements = {}, this.diagramId = "", l();
3442
+ this.nodes = /* @__PURE__ */ new Map(), this.groups = /* @__PURE__ */ new Map(), this.edges = [], this.layoutHints = [], this.registeredIds = /* @__PURE__ */ new Map(), this.dataStructures = void 0, this.elements = /* @__PURE__ */ new Map(), this.diagramId = "", c();
3439
3443
  }
3440
3444
  addService({ id: e, icon: t, in: n, title: r, iconText: i }) {
3441
- if (this.registeredIds[e] !== void 0) throw Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);
3445
+ if (this.registeredIds.has(e)) throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3442
3446
  if (n !== void 0) {
3443
3447
  if (e === n) throw Error(`The service [${e}] cannot be placed within itself`);
3444
- if (this.registeredIds[n] === void 0) throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);
3445
- if (this.registeredIds[n] === "node") throw Error(`The service [${e}]'s parent is not a group`);
3448
+ if (!this.registeredIds.has(n)) throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);
3449
+ if (this.registeredIds.get(n) === "node") throw Error(`The service [${e}]'s parent is not a group`);
3446
3450
  }
3447
- this.registeredIds[e] = "node", this.nodes[e] = {
3451
+ this.registeredIds.set(e, "node"), this.nodes.set(e, {
3448
3452
  id: e,
3449
3453
  type: "service",
3450
3454
  icon: t,
@@ -3452,57 +3456,57 @@ var D = /* @__PURE__ */ t(((e, t) => {
3452
3456
  title: r,
3453
3457
  edges: [],
3454
3458
  in: n
3455
- };
3459
+ });
3456
3460
  }
3457
3461
  getServices() {
3458
- return Object.values(this.nodes).filter(H);
3462
+ return [...this.nodes.values()].filter(H);
3459
3463
  }
3460
3464
  addJunction({ id: e, in: t }) {
3461
- if (this.registeredIds[e] !== void 0) throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);
3465
+ if (this.registeredIds.has(e)) throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3462
3466
  if (t !== void 0) {
3463
3467
  if (e === t) throw Error(`The junction [${e}] cannot be placed within itself`);
3464
- if (this.registeredIds[t] === void 0) throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);
3465
- if (this.registeredIds[t] === "node") throw Error(`The junction [${e}]'s parent is not a group`);
3468
+ if (!this.registeredIds.has(t)) throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);
3469
+ if (this.registeredIds.get(t) === "node") throw Error(`The junction [${e}]'s parent is not a group`);
3466
3470
  }
3467
- this.registeredIds[e] = "node", this.nodes[e] = {
3471
+ this.registeredIds.set(e, "node"), this.nodes.set(e, {
3468
3472
  id: e,
3469
3473
  type: "junction",
3470
3474
  edges: [],
3471
3475
  in: t
3472
- };
3476
+ });
3473
3477
  }
3474
3478
  getJunctions() {
3475
- return Object.values(this.nodes).filter(ne);
3479
+ return [...this.nodes.values()].filter(ne);
3476
3480
  }
3477
3481
  getNodes() {
3478
- return Object.values(this.nodes);
3482
+ return [...this.nodes.values()];
3479
3483
  }
3480
3484
  getNode(e) {
3481
- return this.nodes[e] ?? null;
3485
+ return this.nodes.get(e) ?? null;
3482
3486
  }
3483
3487
  addGroup({ id: e, icon: t, in: n, title: r }) {
3484
- if (this.registeredIds?.[e] !== void 0) throw Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);
3488
+ if (this.registeredIds.has(e)) throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3485
3489
  if (n !== void 0) {
3486
3490
  if (e === n) throw Error(`The group [${e}] cannot be placed within itself`);
3487
- if (this.registeredIds?.[n] === void 0) throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);
3488
- if (this.registeredIds?.[n] === "node") throw Error(`The group [${e}]'s parent is not a group`);
3491
+ if (!this.registeredIds.has(n)) throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);
3492
+ if (this.registeredIds.get(n) === "node") throw Error(`The group [${e}]'s parent is not a group`);
3489
3493
  }
3490
- this.registeredIds[e] = "group", this.groups[e] = {
3494
+ this.registeredIds.set(e, "group"), this.groups.set(e, {
3491
3495
  id: e,
3492
3496
  icon: t,
3493
3497
  title: r,
3494
3498
  in: n
3495
- };
3499
+ });
3496
3500
  }
3497
3501
  getGroups() {
3498
- return Object.values(this.groups);
3502
+ return [...this.groups.values()];
3499
3503
  }
3500
3504
  addEdge({ lhsId: e, rhsId: t, lhsDir: n, rhsDir: r, lhsInto: i, rhsInto: a, lhsGroup: o, rhsGroup: s, title: c }) {
3501
3505
  if (!P(n)) throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);
3502
3506
  if (!P(r)) throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);
3503
- if (this.nodes[e] === void 0 && this.groups[e] === void 0) throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3504
- if (this.nodes[t] === void 0 && this.groups[t] === void 0) throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3505
- let l = this.nodes[e].in, u = this.nodes[t].in;
3507
+ if (!this.nodes.has(e) && !this.groups.has(e)) throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3508
+ if (!this.nodes.has(t) && !this.groups.has(t)) throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3509
+ let l = this.nodes.get(e).in, u = this.nodes.get(t).in;
3506
3510
  if (o && l && u && l == u) throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);
3507
3511
  if (s && l && u && l == u) throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);
3508
3512
  let d = {
@@ -3516,86 +3520,112 @@ var D = /* @__PURE__ */ t(((e, t) => {
3516
3520
  rhsGroup: s,
3517
3521
  title: c
3518
3522
  };
3519
- this.edges.push(d), this.nodes[e] && this.nodes[t] && (this.nodes[e].edges.push(this.edges[this.edges.length - 1]), this.nodes[t].edges.push(this.edges[this.edges.length - 1]));
3523
+ this.edges.push(d);
3524
+ let f = this.nodes.get(e), p = this.nodes.get(t);
3525
+ f && p && (f.edges.push(this.edges[this.edges.length - 1]), p.edges.push(this.edges[this.edges.length - 1]));
3520
3526
  }
3521
3527
  getEdges() {
3522
3528
  return this.edges;
3523
3529
  }
3530
+ addLayoutHint(e) {
3531
+ if (e.members.length < 2) throw Error(`An align directive requires at least two members; got ${e.members.length}`);
3532
+ let t = /* @__PURE__ */ new Set();
3533
+ e.members.forEach((n) => {
3534
+ if (this.registeredIds.get(n) !== "node") throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);
3535
+ if (t.has(n)) throw Error(`align ${e.direction} lists [${n}] more than once`);
3536
+ t.add(n);
3537
+ }), this.layoutHints.push(e);
3538
+ }
3539
+ getLayoutHints() {
3540
+ return this.layoutHints;
3541
+ }
3524
3542
  getDataStructures() {
3525
3543
  if (this.dataStructures === void 0) {
3526
- let e = {}, t = Object.entries(this.nodes).reduce((t, [n, r]) => (t[n] = r.edges.reduce((t, r) => {
3527
- let i = this.getNode(r.lhsId)?.in, a = this.getNode(r.rhsId)?.in;
3528
- if (i && a && i !== a) {
3529
- let t = te(r.lhsDir, r.rhsDir);
3530
- t !== "bend" && (e[i] ??= {}, e[i][a] = t, e[a] ??= {}, e[a][i] = t);
3531
- }
3532
- if (r.lhsId === n) {
3533
- let e = B(r.lhsDir, r.rhsDir);
3534
- e && (t[e] = r.rhsId);
3535
- } else {
3536
- let e = B(r.rhsDir, r.lhsDir);
3537
- e && (t[e] = r.lhsId);
3544
+ let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3545
+ for (let [n, r] of this.nodes.entries()) {
3546
+ let i = /* @__PURE__ */ new Map();
3547
+ for (let t of r.edges) {
3548
+ let r = this.getNode(t.lhsId)?.in, a = this.getNode(t.rhsId)?.in;
3549
+ if (r && a && r !== a) {
3550
+ let n = te(t.lhsDir, t.rhsDir);
3551
+ n !== "bend" && e.set(re(r, a), n);
3552
+ }
3553
+ if (t.lhsId === n) {
3554
+ let e = B(t.lhsDir, t.rhsDir);
3555
+ e && i.set(e, t.rhsId);
3556
+ } else {
3557
+ let e = B(t.rhsDir, t.lhsDir);
3558
+ e && i.set(e, t.lhsId);
3559
+ }
3538
3560
  }
3539
- return t;
3540
- }, {}), t), {}), n = Object.keys(t)[0], i = { [n]: 1 }, a = Object.keys(t).reduce((e, t) => t === n ? e : {
3541
- ...e,
3542
- [t]: 1
3543
- }, {}), o = /* @__PURE__ */ r((e) => {
3544
- let n = { [e]: [0, 0] }, r = [e];
3545
- for (; r.length > 0;) {
3546
- let e = r.shift();
3561
+ t.set(n, i);
3562
+ }
3563
+ let n = /* @__PURE__ */ new Set(), r = new Set(t.keys()), i = /* @__PURE__ */ g((e) => {
3564
+ let i = /* @__PURE__ */ new Map([[e, [0, 0]]]), a = [e];
3565
+ for (; a.length > 0;) {
3566
+ let e = a.shift();
3547
3567
  if (e) {
3548
- i[e] = 1, delete a[e];
3549
- let o = t[e], [s, c] = n[e];
3550
- Object.entries(o).forEach(([e, t]) => {
3551
- i[t] || (n[t] = V([s, c], e), r.push(t));
3568
+ n.add(e), r.delete(e);
3569
+ let o = t.get(e);
3570
+ if (!o) throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);
3571
+ let s = i.get(e);
3572
+ if (!s) throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);
3573
+ let [c, l] = s;
3574
+ o.forEach((e, t) => {
3575
+ n.has(e) || (i.set(e, V([c, l], t)), a.push(e));
3552
3576
  });
3553
3577
  }
3554
3578
  }
3555
- return n;
3556
- }, "BFS"), s = [o(n)];
3557
- for (; Object.keys(a).length > 0;) s.push(o(Object.keys(a)[0]));
3579
+ return i;
3580
+ }, "BFS"), a = [];
3581
+ for (; r.size > 0;) {
3582
+ let e = r.values().next().value;
3583
+ a.push(i(e));
3584
+ }
3558
3585
  this.dataStructures = {
3559
3586
  adjList: t,
3560
- spatialMaps: s,
3587
+ spatialMaps: a,
3561
3588
  groupAlignments: e
3562
3589
  };
3563
3590
  }
3564
3591
  return this.dataStructures;
3565
3592
  }
3566
3593
  setElementForId(e, t) {
3567
- this.elements[e] = t;
3594
+ this.elements.set(e, t);
3568
3595
  }
3569
3596
  getElementById(e) {
3570
- return this.elements[e];
3597
+ return this.elements.get(e);
3571
3598
  }
3572
3599
  getConfig() {
3573
3600
  return v({
3574
- ...W,
3575
- ...u().architecture
3601
+ ...G,
3602
+ ...l().architecture
3576
3603
  });
3577
3604
  }
3578
3605
  getConfigField(e) {
3579
3606
  return this.getConfig()[e];
3580
3607
  }
3581
- }, ie = /* @__PURE__ */ r((e, t) => {
3608
+ }, K = /* @__PURE__ */ g((e, t) => {
3582
3609
  T(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3583
3610
  ...e,
3584
3611
  type: "service"
3585
3612
  })), e.junctions.map((e) => t.addJunction({
3586
3613
  ...e,
3587
3614
  type: "junction"
3588
- })), e.edges.map((e) => t.addEdge(e));
3589
- }, "populateDb"), K = {
3615
+ })), e.edges.map((e) => t.addEdge(e)), e.alignments?.map((e) => t.addLayoutHint({
3616
+ direction: e.direction,
3617
+ members: [...e.members]
3618
+ }));
3619
+ }, "populateDb"), q = {
3590
3620
  parser: { yy: void 0 },
3591
- parse: /* @__PURE__ */ r(async (e) => {
3592
- let t = await w("architecture", e);
3593
- n.debug(t);
3594
- let r = K.parser?.yy;
3595
- if (!(r instanceof G)) throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
3596
- ie(t, r);
3621
+ parse: /* @__PURE__ */ g(async (e) => {
3622
+ let n = await w("architecture", e);
3623
+ t.debug(n);
3624
+ let r = q.parser?.yy;
3625
+ if (!(r instanceof ie)) throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
3626
+ K(n, r);
3597
3627
  }, "parse")
3598
- }, q = /* @__PURE__ */ r((e) => `
3628
+ }, ae = /* @__PURE__ */ g((e) => `
3599
3629
  .edge {
3600
3630
  stroke-width: ${e.archEdgeWidth};
3601
3631
  stroke: ${e.archEdgeColor};
@@ -3626,51 +3656,67 @@ var D = /* @__PURE__ */ t(((e, t) => {
3626
3656
  display: -webkit-box;
3627
3657
  -webkit-box-orient: vertical;
3628
3658
  }
3629
- `, "getStyles"), J = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`, "wrapIcon"), Y = {
3659
+ `, "getStyles");
3660
+ function J(e, t) {
3661
+ if (e === 0) return t();
3662
+ let n = Math.random, r = e >>> 0;
3663
+ Math.random = function() {
3664
+ r = r + 1831565813 >>> 0;
3665
+ let e = r;
3666
+ return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
3667
+ };
3668
+ try {
3669
+ return t();
3670
+ } finally {
3671
+ Math.random = n;
3672
+ }
3673
+ }
3674
+ g(J, "withSeededRandom");
3675
+ var Y = /* @__PURE__ */ g((e) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`, "wrapIcon"), X = {
3630
3676
  prefix: "mermaid-architecture",
3631
3677
  height: 80,
3632
3678
  width: 80,
3633
3679
  icons: {
3634
- database: { body: J("<path id=\"b\" data-name=\"4\" d=\"m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"c\" data-name=\"3\" d=\"m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"d\" data-name=\"2\" d=\"m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse id=\"e\" data-name=\"1\" cx=\"40\" cy=\"22.14\" rx=\"20\" ry=\"7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"20\" y1=\"57.86\" x2=\"20\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"60\" y1=\"57.86\" x2=\"60\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3635
- server: { body: J("<rect x=\"17.5\" y=\"17.5\" width=\"45\" height=\"45\" rx=\"2\" ry=\"2\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"32.5\" x2=\"62.5\" y2=\"32.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"47.5\" x2=\"62.5\" y2=\"47.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><g><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g>") },
3636
- disk: { body: J("<rect x=\"20\" y=\"15\" width=\"40\" height=\"50\" rx=\"1\" ry=\"1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"14\" ry=\"14.58\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"4\" ry=\"4.17\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z\" style=\"fill: #fff; stroke-width: 0px;\"/>") },
3637
- internet: { body: J("<circle cx=\"40\" cy=\"40\" r=\"22.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"40\" y1=\"17.5\" x2=\"40\" y2=\"62.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"40\" x2=\"62.5\" y2=\"40\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"30.1\" x2=\"60.25\" y2=\"30.1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"49.9\" x2=\"60.25\" y2=\"49.9\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3638
- cloud: { body: J("<path d=\"m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3680
+ database: { body: Y("<path id=\"b\" data-name=\"4\" d=\"m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"c\" data-name=\"3\" d=\"m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"d\" data-name=\"2\" d=\"m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse id=\"e\" data-name=\"1\" cx=\"40\" cy=\"22.14\" rx=\"20\" ry=\"7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"20\" y1=\"57.86\" x2=\"20\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"60\" y1=\"57.86\" x2=\"60\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3681
+ server: { body: Y("<rect x=\"17.5\" y=\"17.5\" width=\"45\" height=\"45\" rx=\"2\" ry=\"2\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"32.5\" x2=\"62.5\" y2=\"32.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"47.5\" x2=\"62.5\" y2=\"47.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><g><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g>") },
3682
+ disk: { body: Y("<rect x=\"20\" y=\"15\" width=\"40\" height=\"50\" rx=\"1\" ry=\"1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"14\" ry=\"14.58\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"4\" ry=\"4.17\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z\" style=\"fill: #fff; stroke-width: 0px;\"/>") },
3683
+ internet: { body: Y("<circle cx=\"40\" cy=\"40\" r=\"22.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"40\" y1=\"17.5\" x2=\"40\" y2=\"62.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"40\" x2=\"62.5\" y2=\"40\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"30.1\" x2=\"60.25\" y2=\"30.1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"49.9\" x2=\"60.25\" y2=\"49.9\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3684
+ cloud: { body: Y("<path d=\"m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3639
3685
  unknown: b,
3640
- blank: { body: J("") }
3686
+ blank: { body: Y("") }
3641
3687
  }
3642
- }, ae = /* @__PURE__ */ r(async function(e, t, n, r) {
3688
+ }, oe = /* @__PURE__ */ g(async function(e, t, n, r) {
3643
3689
  let i = n.getConfigField("padding"), a = n.getConfigField("iconSize"), o = a / 2, s = a / 6, c = s / 2;
3644
3690
  await Promise.all(t.edges().map(async (t) => {
3645
- let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: h, targetGroup: g, label: v } = re(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: C } = t[0].midpoint(), { x: w, y: T } = t[0].targetEndpoint(), E = i + 4;
3646
- if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(p) ? w += p === "L" ? -E : E : T += p === "T" ? -E : E + 18), !d && n.getNode(a)?.type === "junction" && (F(l) ? y += l === "L" ? o : -o : b += l === "T" ? o : -o), !g && n.getNode(f)?.type === "junction" && (F(p) ? w += p === "L" ? o : -o : T += p === "T" ? o : -o), t[0]._private.rscratch) {
3691
+ let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: m, targetArrow: h, targetGroup: g, label: v } = U(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: S } = t[0].midpoint(), { x: w, y: T } = t[0].targetEndpoint(), E = i + 4;
3692
+ if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(m) ? w += m === "L" ? -E : E : T += m === "T" ? -E : E + 18), !d && n.getNode(a)?.type === "junction" && (F(l) ? y += l === "L" ? o : -o : b += l === "T" ? o : -o), !g && n.getNode(f)?.type === "junction" && (F(m) ? w += m === "L" ? o : -o : T += m === "T" ? o : -o), t[0]._private.rscratch) {
3647
3693
  let t = e.insert("g");
3648
- if (t.insert("path").attr("d", `M ${y},${b} L ${x},${C} L${w},${T} `).attr("class", "edge").attr("id", `${r}-${_(a, f, { prefix: "L" })}`), u) {
3694
+ if (t.insert("path").attr("d", `M ${y},${b} L ${x},${S} L${w},${T} `).attr("class", "edge").attr("id", `${r}-${_(a, f, { prefix: "L" })}`), u) {
3649
3695
  let e = F(l) ? M[l](y, s) : y - c, n = I(l) ? M[l](b, s) : b - c;
3650
3696
  t.insert("polygon").attr("points", j[l](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3651
3697
  }
3652
3698
  if (h) {
3653
- let e = F(p) ? M[p](w, s) : w - c, n = I(p) ? M[p](T, s) : T - c;
3654
- t.insert("polygon").attr("points", j[p](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3699
+ let e = F(m) ? M[m](w, s) : w - c, n = I(m) ? M[m](T, s) : T - c;
3700
+ t.insert("polygon").attr("points", j[m](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3655
3701
  }
3656
3702
  if (v) {
3657
- let e = L(l, p) ? "XY" : F(l) ? "X" : "Y", n = 0;
3703
+ let e = L(l, m) ? "XY" : F(l) ? "X" : "Y", n = 0;
3658
3704
  n = e === "X" ? Math.abs(y - w) : e === "Y" ? Math.abs(b - T) / 1.5 : Math.abs(y - w) / 2;
3659
3705
  let r = t.append("g");
3660
- if (await S(r, v, {
3706
+ if (await C(r, v, {
3661
3707
  useHtmlLabels: !1,
3662
3708
  width: n,
3663
3709
  classes: "architecture-service-label"
3664
- }, m()), r.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e === "X") r.attr("transform", "translate(" + x + ", " + C + ")");
3665
- else if (e === "Y") r.attr("transform", "translate(" + x + ", " + C + ") rotate(-90)");
3710
+ }, p()), r.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e === "X") r.attr("transform", "translate(" + x + ", " + S + ")");
3711
+ else if (e === "Y") r.attr("transform", "translate(" + x + ", " + S + ") rotate(-90)");
3666
3712
  else if (e === "XY") {
3667
- let e = B(l, p);
3713
+ let e = B(l, m);
3668
3714
  if (e && R(e)) {
3669
3715
  let t = r.node().getBoundingClientRect(), [n, i] = ee(e);
3670
3716
  r.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * n * i * 45})`);
3671
3717
  let a = r.node().getBoundingClientRect();
3672
3718
  r.attr("transform", `
3673
- translate(${x}, ${C - t.height / 2})
3719
+ translate(${x}, ${S - t.height / 2})
3674
3720
  translate(${n * a.width / 2}, ${i * a.height / 2})
3675
3721
  rotate(${-1 * n * i * 45}, 0, ${t.height / 2})
3676
3722
  `);
@@ -3679,58 +3725,58 @@ var D = /* @__PURE__ */ t(((e, t) => {
3679
3725
  }
3680
3726
  }
3681
3727
  }));
3682
- }, "drawEdges"), X = /* @__PURE__ */ r(async function(e, t, n, r) {
3728
+ }, "drawEdges"), Z = /* @__PURE__ */ g(async function(e, t, n, r) {
3683
3729
  let i = n.getConfigField("padding") * .75, a = n.getConfigField("fontSize"), o = n.getConfigField("iconSize") / 2;
3684
3730
  await Promise.all(t.nodes().map(async (t) => {
3685
- let s = U(t);
3731
+ let s = W(t);
3686
3732
  if (s.type === "group") {
3687
3733
  let { h: c, w: l, x1: u, y1: d } = t.boundingBox(), f = e.append("rect");
3688
3734
  f.attr("id", `${r}-group-${s.id}`).attr("x", u + o).attr("y", d + o).attr("width", l).attr("height", c).attr("class", "node-bkg");
3689
- let p = e.append("g"), h = u, g = d;
3735
+ let m = e.append("g"), h = u, g = d;
3690
3736
  if (s.icon) {
3691
- let e = p.append("g");
3692
- e.html(`<g>${await C(s.icon, {
3737
+ let e = m.append("g");
3738
+ e.html(`<g>${await S(s.icon, {
3693
3739
  height: i,
3694
3740
  width: i,
3695
- fallbackPrefix: Y.prefix
3741
+ fallbackPrefix: X.prefix
3696
3742
  })}</g>`), e.attr("transform", "translate(" + (h + o + 1) + ", " + (g + o + 1) + ")"), h += i, g += a / 2 - 1 - 2;
3697
3743
  }
3698
3744
  if (s.label) {
3699
- let e = p.append("g");
3700
- await S(e, s.label, {
3745
+ let e = m.append("g");
3746
+ await C(e, s.label, {
3701
3747
  useHtmlLabels: !1,
3702
3748
  width: l,
3703
3749
  classes: "architecture-service-label"
3704
- }, m()), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), e.attr("transform", "translate(" + (h + o + 4) + ", " + (g + o + 2) + ")");
3750
+ }, p()), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), e.attr("transform", "translate(" + (h + o + 4) + ", " + (g + o + 2) + ")");
3705
3751
  }
3706
3752
  n.setElementForId(s.id, f);
3707
3753
  }
3708
3754
  }));
3709
- }, "drawGroups"), oe = /* @__PURE__ */ r(async function(e, t, n, r) {
3710
- let i = m();
3755
+ }, "drawGroups"), se = /* @__PURE__ */ g(async function(e, t, n, r) {
3756
+ let i = p();
3711
3757
  for (let a of n) {
3712
3758
  let n = t.append("g"), o = e.getConfigField("iconSize");
3713
3759
  if (a.title) {
3714
3760
  let e = n.append("g");
3715
- await S(e, a.title, {
3761
+ await C(e, a.title, {
3716
3762
  useHtmlLabels: !1,
3717
3763
  width: o * 1.5,
3718
3764
  classes: "architecture-service-label"
3719
3765
  }, i), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + o / 2 + ", " + o + ")");
3720
3766
  }
3721
3767
  let s = n.append("g");
3722
- if (a.icon) s.html(`<g>${await C(a.icon, {
3768
+ if (a.icon) s.html(`<g>${await S(a.icon, {
3723
3769
  height: o,
3724
3770
  width: o,
3725
- fallbackPrefix: Y.prefix
3771
+ fallbackPrefix: X.prefix
3726
3772
  })}</g>`);
3727
3773
  else if (a.iconText) {
3728
- s.html(`<g>${await C("blank", {
3774
+ s.html(`<g>${await S("blank", {
3729
3775
  height: o,
3730
3776
  width: o,
3731
- fallbackPrefix: Y.prefix
3777
+ fallbackPrefix: X.prefix
3732
3778
  })}</g>`);
3733
- let e = s.append("g").append("foreignObject").attr("width", o).attr("height", o).append("div").attr("class", "node-icon-text").attr("style", `height: ${o}px;`).append("div").html(g(a.iconText, i)), t = parseInt(window.getComputedStyle(e.node(), null).getPropertyValue("font-size").replace(/\D/g, "")) ?? 16;
3779
+ let e = s.append("g").append("foreignObject").attr("width", o).attr("height", o).append("div").attr("class", "node-icon-text").attr("style", `height: ${o}px;`).append("div").html(h(a.iconText, i)), t = parseInt(window.getComputedStyle(e.node(), null).getPropertyValue("font-size").replace(/\D/g, "")) ?? 16;
3734
3780
  e.attr("style", `-webkit-line-clamp: ${Math.floor((o - 2) / t)};`);
3735
3781
  } else s.append("path").attr("class", "node-bkg").attr("id", `${r}-node-${a.id}`).attr("d", `M0,${o} V5 Q0,0 5,0 H${o - 5} Q${o},0 ${o},5 V${o} Z`);
3736
3782
  n.attr("id", `${r}-service-${a.id}`).attr("class", "architecture-service");
@@ -3738,7 +3784,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
3738
3784
  a.width = c, a.height = l, e.setElementForId(a.id, n);
3739
3785
  }
3740
3786
  return 0;
3741
- }, "drawServices"), Z = /* @__PURE__ */ r(function(e, t, n, r) {
3787
+ }, "drawServices"), ce = /* @__PURE__ */ g(function(e, t, n, r) {
3742
3788
  n.forEach((n) => {
3743
3789
  let i = t.append("g"), a = e.getConfigField("iconSize");
3744
3790
  i.append("g").append("rect").attr("id", `${r}-node-${n.id}`).attr("fill-opacity", "0").attr("width", a).attr("height", a), i.attr("class", "architecture-junction");
@@ -3747,10 +3793,10 @@ var D = /* @__PURE__ */ t(((e, t) => {
3747
3793
  });
3748
3794
  }, "drawJunctions");
3749
3795
  x([{
3750
- name: Y.prefix,
3751
- icons: Y
3796
+ name: X.prefix,
3797
+ icons: X
3752
3798
  }]), E.use(k.default);
3753
- function se(e, t, n) {
3799
+ function le(e, t, n) {
3754
3800
  e.forEach((e) => {
3755
3801
  t.add({
3756
3802
  group: "nodes",
@@ -3767,8 +3813,8 @@ function se(e, t, n) {
3767
3813
  });
3768
3814
  });
3769
3815
  }
3770
- r(se, "addServices");
3771
- function ce(e, t, n) {
3816
+ g(le, "addServices");
3817
+ function ue(e, t, n) {
3772
3818
  e.forEach((e) => {
3773
3819
  t.add({
3774
3820
  group: "nodes",
@@ -3783,15 +3829,15 @@ function ce(e, t, n) {
3783
3829
  });
3784
3830
  });
3785
3831
  }
3786
- r(ce, "addJunctions");
3787
- function le(e, t) {
3832
+ g(ue, "addJunctions");
3833
+ function de(e, t) {
3788
3834
  t.nodes().map((t) => {
3789
- let n = U(t);
3835
+ let n = W(t);
3790
3836
  n.type !== "group" && (n.x = t.position().x, n.y = t.position().y, e.getElementById(n.id).attr("transform", "translate(" + (n.x || 0) + "," + (n.y || 0) + ")"));
3791
3837
  });
3792
3838
  }
3793
- r(le, "positionNodes");
3794
- function ue(e, t) {
3839
+ g(de, "positionNodes");
3840
+ function fe(e, t) {
3795
3841
  e.forEach((e) => {
3796
3842
  t.add({
3797
3843
  group: "nodes",
@@ -3806,8 +3852,8 @@ function ue(e, t) {
3806
3852
  });
3807
3853
  });
3808
3854
  }
3809
- r(ue, "addGroups");
3810
- function de(e, t) {
3855
+ g(fe, "addGroups");
3856
+ function pe(e, t) {
3811
3857
  e.forEach((e) => {
3812
3858
  let { lhsId: n, rhsId: r, lhsInto: i, lhsGroup: a, rhsInto: o, lhsDir: s, rhsDir: c, rhsGroup: l, title: u } = e, d = L(e.lhsDir, e.rhsDir) ? "segments" : "straight", f = {
3813
3859
  id: `${n}-${r}`,
@@ -3830,80 +3876,114 @@ function de(e, t) {
3830
3876
  });
3831
3877
  });
3832
3878
  }
3833
- r(de, "addEdges");
3834
- function fe(e, t, n) {
3835
- let i = /* @__PURE__ */ r((e, t) => Object.entries(e).reduce((e, [r, i]) => {
3836
- let a = 0, o = Object.entries(i);
3837
- if (o.length === 1) return e[r] = o[0][1], e;
3838
- for (let i = 0; i < o.length - 1; i++) for (let s = i + 1; s < o.length; s++) {
3839
- let [c, l] = o[i], [u, d] = o[s];
3840
- if (n[c]?.[u] === t) e[r] ??= [], e[r] = [
3841
- ...e[r],
3842
- ...l,
3843
- ...d
3844
- ];
3845
- else if (c === "default" || u === "default") e[r] ??= [], e[r] = [
3846
- ...e[r],
3847
- ...l,
3848
- ...d
3849
- ];
3850
- else {
3851
- let t = `${r}-${a++}`;
3852
- e[t] = l;
3853
- let n = `${r}-${a++}`;
3854
- e[n] = d;
3879
+ g(pe, "addEdges");
3880
+ function me(e, t, n, r = []) {
3881
+ let i = /* @__PURE__ */ g((e, t) => {
3882
+ let r = /* @__PURE__ */ new Map();
3883
+ for (let [i, a] of e.entries()) {
3884
+ let e = `${i}`, o = 0, s = [...a.entries()];
3885
+ if (s.length === 1) {
3886
+ r.set(e, s[0][1]);
3887
+ continue;
3888
+ }
3889
+ for (let i = 0; i < s.length - 1; i++) for (let a = i + 1; a < s.length; a++) {
3890
+ let [c, l] = s[i], [u, d] = s[a];
3891
+ if (n.get(re(c, u)) === t) r.set(e, [
3892
+ ...r.get(e) ?? [],
3893
+ ...l,
3894
+ ...d
3895
+ ]);
3896
+ else if (c === "default" || u === "default") r.set(e, [
3897
+ ...r.get(e) ?? [],
3898
+ ...l,
3899
+ ...d
3900
+ ]);
3901
+ else {
3902
+ let t = `${e}-${o++}`;
3903
+ r.set(t, l);
3904
+ let n = `${e}-${o++}`;
3905
+ r.set(n, d);
3906
+ }
3855
3907
  }
3856
3908
  }
3857
- return e;
3858
- }, {}), "flattenAlignments"), [a, o] = t.map((t) => {
3859
- let n = {}, r = {};
3860
- return Object.entries(t).forEach(([t, [i, a]]) => {
3861
- let o = e.getNode(t)?.in ?? "default";
3862
- n[a] ??= {}, n[a][o] ??= [], n[a][o].push(t), r[i] ??= {}, r[i][o] ??= [], r[i][o].push(t);
3909
+ return r;
3910
+ }, "flattenAlignments"), [a, o] = t.map((t) => {
3911
+ let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
3912
+ return t.forEach(([t, i], a) => {
3913
+ let o = e.getNode(a)?.in ?? "default", s = n.get(i) ?? /* @__PURE__ */ new Map();
3914
+ n.has(i) || n.set(i, s);
3915
+ let c = r.get(t) ?? /* @__PURE__ */ new Map();
3916
+ r.has(t) || r.set(t, c);
3917
+ for (let e of [s, c]) {
3918
+ let t = e.get(o) ?? [];
3919
+ e.has(o) || e.set(o, t), t.push(a);
3920
+ }
3863
3921
  }), {
3864
- horiz: Object.values(i(n, "horizontal")).filter((e) => e.length > 1),
3865
- vert: Object.values(i(r, "vertical")).filter((e) => e.length > 1)
3922
+ horiz: [...i(n, "horizontal").values()].filter((e) => e.length > 1),
3923
+ vert: [...i(r, "vertical").values()].filter((e) => e.length > 1)
3866
3924
  };
3867
- }).reduce(([e, t], { horiz: n, vert: r }) => [[...e, ...n], [...t, ...r]], [[], []]);
3868
- return {
3869
- horizontal: a,
3870
- vertical: o
3925
+ }).reduce(([e, t], { horiz: n, vert: r }) => [[...e, ...n], [...t, ...r]], [[], []]), s = /* @__PURE__ */ new Set();
3926
+ r.forEach((e) => e.members.forEach((e) => s.add(e)));
3927
+ let c = /* @__PURE__ */ g((e) => e.filter((e) => !e.some((e) => s.has(e))), "dropOverlapping"), l = c(a), u = c(o);
3928
+ return r.forEach((e) => {
3929
+ e.members.length < 2 || (e.direction === "row" ? l.push([...e.members]) : u.push([...e.members]));
3930
+ }), {
3931
+ horizontal: l,
3932
+ vertical: u
3871
3933
  };
3872
3934
  }
3873
- r(fe, "getAlignments");
3874
- function pe(e, t) {
3875
- let n = [], i = /* @__PURE__ */ r((e) => `${e[0]},${e[1]}`, "posToStr"), a = /* @__PURE__ */ r((e) => e.split(",").map((e) => parseInt(e)), "strToPos");
3935
+ g(me, "getAlignments");
3936
+ function he(e, t, n = []) {
3937
+ let r = [], i = t.getConfigField("iconSize"), a = t.getConfigField("idealEdgeLengthMultiplier"), o = a * i, s = /* @__PURE__ */ new Set();
3938
+ n.forEach((e) => {
3939
+ for (let t = 0; t < e.members.length - 1; t++) {
3940
+ let n = e.members[t], i = e.members[t + 1];
3941
+ s.add(`${n}|${i}`), s.add(`${i}|${n}`), e.direction === "row" ? r.push({
3942
+ left: n,
3943
+ right: i,
3944
+ gap: o
3945
+ }) : r.push({
3946
+ top: n,
3947
+ bottom: i,
3948
+ gap: o
3949
+ });
3950
+ }
3951
+ });
3952
+ let c = /* @__PURE__ */ g((e) => `${e[0]},${e[1]}`, "posToStr"), l = /* @__PURE__ */ g((e) => e.split(",").map((e) => parseInt(e)), "strToPos");
3876
3953
  return e.forEach((e) => {
3877
- let r = Object.fromEntries(Object.entries(e).map(([e, t]) => [i(t), e])), o = [i([0, 0])], s = {}, c = {
3954
+ let t = new Map([...e.entries()].map(([e, t]) => [c(t), e])), n = [c([0, 0])], o = {}, u = {
3878
3955
  L: [-1, 0],
3879
3956
  R: [1, 0],
3880
3957
  T: [0, 1],
3881
3958
  B: [0, -1]
3882
3959
  };
3883
- for (; o.length > 0;) {
3884
- let e = o.shift();
3960
+ for (; n.length > 0;) {
3961
+ let e = n.shift();
3885
3962
  if (e) {
3886
- s[e] = 1;
3887
- let l = r[e];
3888
- if (l) {
3889
- let u = a(e);
3890
- Object.entries(c).forEach(([e, a]) => {
3891
- let c = i([u[0] + a[0], u[1] + a[1]]), d = r[c];
3892
- d && !s[c] && (o.push(c), n.push({
3893
- [A[e]]: d,
3894
- [A[N(e)]]: l,
3895
- gap: 1.5 * t.getConfigField("iconSize")
3896
- }));
3963
+ o[e] = 1;
3964
+ let d = t.get(e);
3965
+ if (d) {
3966
+ let f = l(e);
3967
+ Object.entries(u).forEach(([e, l]) => {
3968
+ let u = c([f[0] + l[0], f[1] + l[1]]), p = t.get(u);
3969
+ if (p && !o[u]) {
3970
+ if (n.push(u), s.has(`${d}|${p}`)) return;
3971
+ r.push({
3972
+ [A[e]]: p,
3973
+ [A[N(e)]]: d,
3974
+ gap: a * i
3975
+ });
3976
+ }
3897
3977
  });
3898
3978
  }
3899
3979
  }
3900
3980
  }
3901
- }), n;
3981
+ }), r;
3902
3982
  }
3903
- r(pe, "getRelativeConstraints");
3904
- function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3905
- return new Promise((u) => {
3906
- let d = i("body").append("div").attr("id", "cy").attr("style", "display:none"), f = E({
3983
+ g(he, "getRelativeConstraints");
3984
+ function ge(e, r, i, a, o, { spatialMaps: s, groupAlignments: c }) {
3985
+ return new Promise((l) => {
3986
+ let u = n("body").append("div").attr("id", "cy").attr("style", "display:none"), d = E({
3907
3987
  container: document.getElementById("cy"),
3908
3988
  style: [
3909
3989
  {
@@ -3938,7 +4018,7 @@ function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3938
4018
  style: {
3939
4019
  "text-valign": "bottom",
3940
4020
  "text-halign": "center",
3941
- "font-size": `${s.getConfigField("fontSize")}px`
4021
+ "font-size": `${o.getConfigField("fontSize")}px`
3942
4022
  }
3943
4023
  },
3944
4024
  {
@@ -3958,7 +4038,7 @@ function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3958
4038
  },
3959
4039
  {
3960
4040
  selector: ".node-group",
3961
- style: { padding: `${s.getConfigField("padding")}px` }
4041
+ style: { padding: `${o.getConfigField("padding")}px` }
3962
4042
  }
3963
4043
  ],
3964
4044
  layout: {
@@ -3971,28 +4051,28 @@ function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3971
4051
  }
3972
4052
  }
3973
4053
  });
3974
- d.remove(), ue(a, f), se(e, f, s), ce(t, f, s), de(o, f);
3975
- let p = fe(s, c, l), m = pe(c, s), h = s.getConfigField("iconSize"), g = s.getConfigField("idealEdgeLengthMultiplier") * h, _ = .5 * h, v = s.getConfigField("edgeElasticity"), y = f.layout({
4054
+ u.remove(), fe(i, d), le(e, d, o), ue(r, d, o), pe(a, d);
4055
+ let f = o.getLayoutHints(), p = me(o, s, c, f), m = he(s, o, f), h = o.getConfigField("iconSize"), _ = o.getConfigField("idealEdgeLengthMultiplier") * h, v = .5 * h, y = o.getConfigField("edgeElasticity"), b = o.getConfigField("seed"), x = d.layout({
3976
4056
  name: "fcose",
3977
4057
  quality: "proof",
3978
- randomize: s.getConfigField("randomize"),
3979
- nodeSeparation: s.getConfigField("nodeSeparation"),
3980
- numIter: s.getConfigField("numIter"),
4058
+ randomize: o.getConfigField("randomize"),
4059
+ nodeSeparation: o.getConfigField("nodeSeparation"),
4060
+ numIter: o.getConfigField("numIter"),
3981
4061
  styleEnabled: !1,
3982
4062
  animate: !1,
3983
4063
  nodeDimensionsIncludeLabels: !1,
3984
4064
  idealEdgeLength(e) {
3985
- let [t, n] = e.connectedNodes(), { parent: r } = U(t), { parent: i } = U(n);
3986
- return r === i ? g : _;
4065
+ let [t, n] = e.connectedNodes(), { parent: r } = W(t), { parent: i } = W(n);
4066
+ return r === i ? _ : v;
3987
4067
  },
3988
4068
  edgeElasticity(e) {
3989
- let [t, n] = e.connectedNodes(), { parent: r } = U(t), { parent: i } = U(n);
3990
- return r === i ? v : .001;
4069
+ let [t, n] = e.connectedNodes(), { parent: r } = W(t), { parent: i } = W(n);
4070
+ return r === i ? y : .001;
3991
4071
  },
3992
4072
  alignmentConstraint: p,
3993
4073
  relativePlacementConstraint: m
3994
4074
  });
3995
- y.one("layoutstop", () => {
4075
+ x.one("layoutstop", () => {
3996
4076
  function e(e, t, n, r) {
3997
4077
  let i, a, { x: o, y: s } = e, { x: c, y: l } = t;
3998
4078
  a = (r - s + (o - n) * (s - l) / (o - c)) / Math.sqrt(1 + ((s - l) / (o - c)) ** 2), i = Math.sqrt((r - s) ** 2 + (n - o) ** 2 - a ** 2);
@@ -4021,39 +4101,45 @@ function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
4021
4101
  weights: i
4022
4102
  };
4023
4103
  }
4024
- r(e, "getSegmentWeights"), f.startBatch();
4025
- for (let t of Object.values(f.edges())) if (t.data?.()) {
4104
+ g(e, "getSegmentWeights"), d.startBatch();
4105
+ for (let t of Object.values(d.edges())) if (t.data?.()) {
4026
4106
  let { x: n, y: r } = t.source().position(), { x: i, y: a } = t.target().position();
4027
4107
  if (n !== i && r !== a) {
4028
- let n = t.sourceEndpoint(), r = t.targetEndpoint(), { sourceDir: i } = re(t), [a, o] = I(i) ? [n.x, r.y] : [r.x, n.y], { weights: s, distances: c } = e(n, r, a, o);
4108
+ let n = t.sourceEndpoint(), r = t.targetEndpoint(), { sourceDir: i } = U(t), [a, o] = I(i) ? [n.x, r.y] : [r.x, n.y], { weights: s, distances: c } = e(n, r, a, o);
4029
4109
  t.style("segment-distances", c), t.style("segment-weights", s);
4030
4110
  }
4031
4111
  }
4032
- f.endBatch(), y.run();
4033
- }), y.run(), f.ready((e) => {
4034
- n.info("Ready", e), u(f);
4112
+ d.endBatch(), J(b, () => x.run());
4113
+ });
4114
+ try {
4115
+ J(b, () => x.run());
4116
+ } catch (e) {
4117
+ throw e instanceof RangeError && e.message.includes("Invalid array length") ? Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.") : e;
4118
+ }
4119
+ d.ready((e) => {
4120
+ t.info("Ready", e), l(d);
4035
4121
  });
4036
4122
  });
4037
4123
  }
4038
- r(me, "layoutArchitecture");
4039
- var he = {
4040
- parser: K,
4124
+ g(ge, "layoutArchitecture");
4125
+ var _e = {
4126
+ parser: q,
4041
4127
  get db() {
4042
- return new G();
4128
+ return new ie();
4043
4129
  },
4044
- renderer: { draw: /* @__PURE__ */ r(async (e, t, n, r) => {
4130
+ renderer: { draw: /* @__PURE__ */ g(async (e, t, n, r) => {
4045
4131
  let i = r.db;
4046
4132
  i.setDiagramId(t);
4047
- let a = i.getServices(), s = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = y(t), f = d.append("g");
4133
+ let o = i.getServices(), s = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = y(t), f = d.append("g");
4048
4134
  f.attr("class", "architecture-edges");
4049
4135
  let p = d.append("g");
4050
4136
  p.attr("class", "architecture-services");
4051
4137
  let m = d.append("g");
4052
- m.attr("class", "architecture-groups"), await oe(i, p, a, t), Z(i, p, s, t);
4053
- let h = await me(a, s, c, l, i, u);
4054
- await ae(f, h, i, t), await X(m, h, i, t), le(i, h), o(void 0, d, i.getConfigField("padding"), i.getConfigField("useMaxWidth"));
4138
+ m.attr("class", "architecture-groups"), await se(i, p, o, t), ce(i, p, s, t);
4139
+ let h = await ge(o, s, c, l, i, u);
4140
+ await oe(f, h, i, t), await Z(m, h, i, t), de(i, h), a(void 0, d, i.getConfigField("padding"), i.getConfigField("useMaxWidth"));
4055
4141
  }, "draw") },
4056
- styles: q
4142
+ styles: ae
4057
4143
  };
4058
4144
  //#endregion
4059
- export { he as diagram };
4145
+ export { _e as diagram };