@pi-outpost/embed 0.15.0 → 0.16.1

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 (344) hide show
  1. package/dist/PdfViewer-BEdoeHbS.cjs +1 -0
  2. package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
  3. package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
  4. package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
  5. package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
  6. package/dist/arc-Dh2Zrypi.cjs +1 -0
  7. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
  8. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
  9. package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
  10. package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
  11. package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
  12. package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
  13. package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
  14. package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
  15. package/dist/c-AHDGPWiJ.cjs +1 -0
  16. package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
  17. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
  18. package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
  19. package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
  20. package/dist/channel-DcrLLvcO.cjs +1 -0
  21. package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
  22. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
  23. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
  24. package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
  25. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
  26. package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
  27. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
  28. package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
  29. package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
  30. package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
  31. package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
  32. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
  33. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
  34. package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
  35. package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
  36. package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
  37. package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
  38. package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
  39. package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
  40. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
  41. package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
  42. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
  43. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
  44. package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
  45. package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
  46. package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
  47. package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
  48. package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
  49. package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
  50. package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
  51. package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
  52. package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
  53. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
  54. package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
  55. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
  56. package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
  57. package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
  58. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
  59. package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
  60. package/dist/core-BrupIPpc.cjs +3 -0
  61. package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
  62. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
  63. package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
  64. package/dist/cpp-DpAsh4uT.cjs +1 -0
  65. package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
  66. package/dist/csharp-TOr_W-v9.cjs +1 -0
  67. package/dist/css-4wogsuks.cjs +1 -0
  68. package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
  69. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
  70. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
  71. package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
  72. package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
  73. package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
  74. package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
  75. package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
  76. package/dist/dagre-EEW2OxRU.cjs +1 -0
  77. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
  78. package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
  79. package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
  80. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  81. package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
  82. package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
  83. package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
  84. package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
  85. package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
  86. package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
  87. package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
  88. package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
  89. package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
  90. package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
  91. package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
  92. package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
  93. package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
  94. package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
  95. package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
  96. package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
  97. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
  98. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
  99. package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
  100. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
  101. package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
  102. package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
  103. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
  104. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
  105. package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
  106. package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
  107. package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
  108. package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
  109. package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
  110. package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
  111. package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
  112. package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
  113. package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
  114. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
  115. package/dist/init-BJdqMO10.cjs +1 -0
  116. package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
  117. package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
  118. package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
  119. package/dist/java-DFBMvIUR.cjs +1 -0
  120. package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
  121. package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
  122. package/dist/javascript-Gn0piXHk.cjs +1 -0
  123. package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
  124. package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
  125. package/dist/json-DOqjN5nI.js +42 -0
  126. package/dist/json-LMrXTXZM.cjs +1 -0
  127. package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
  128. package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
  129. package/dist/katex-CEF6MvLx.cjs +257 -0
  130. package/dist/katex-ohtLbxXc.js +21977 -0
  131. package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
  132. package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
  133. package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
  134. package/dist/linear-Nt9BuHfn.cjs +1 -0
  135. package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
  136. package/dist/markdown-CTkHoGys.cjs +1 -0
  137. package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
  138. package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
  139. package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
  140. package/dist/mermaid.core-BIqYA7q2.js +3012 -0
  141. package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
  142. package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
  143. package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
  144. package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
  145. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
  146. package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
  147. package/dist/path-DIS6ck99.cjs +1 -0
  148. package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
  149. package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
  150. package/dist/pdf-cYqATYeW.cjs +54 -0
  151. package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
  152. package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
  153. package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
  154. package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
  155. package/dist/pi-outpost-embed.cjs +62 -62
  156. package/dist/pi-outpost-embed.js +5192 -5152
  157. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
  158. package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
  159. package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
  160. package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
  161. package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
  162. package/dist/python-CrsffQw-.cjs +1 -0
  163. package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
  164. package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
  165. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
  166. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
  167. package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
  168. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
  169. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
  170. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
  171. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
  172. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
  173. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
  174. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
  175. package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
  176. package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
  177. package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
  178. package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
  179. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  180. package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
  181. package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
  182. package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
  183. package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
  184. package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
  185. package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
  186. package/dist/rust-D39kF6re.cjs +1 -0
  187. package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
  188. package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
  189. package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
  190. package/dist/scss-t-vKjRr4.cjs +1 -0
  191. package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
  192. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
  193. package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
  194. package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
  195. package/dist/src-D9o9TOtH.cjs +1 -0
  196. package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
  197. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
  198. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
  199. package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
  200. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
  201. package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
  202. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
  203. package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
  204. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
  205. package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
  206. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
  207. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
  208. package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
  209. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
  210. package/dist/typescript-BarIi8q9.cjs +1 -0
  211. package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
  212. package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
  213. package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
  214. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
  215. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
  216. package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
  217. package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
  218. package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
  219. package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
  220. package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
  221. package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
  222. package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
  223. package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
  224. package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
  225. package/dist/yaml-DZS9gzaB.cjs +1 -0
  226. package/package.json +2 -2
  227. package/dist/PdfViewer-BBmVq73v.cjs +0 -1
  228. package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
  229. package/dist/arc-DcUn9_NX.cjs +0 -1
  230. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
  231. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
  232. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
  233. package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
  234. package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
  235. package/dist/c-4QgYfi8K.cjs +0 -1
  236. package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
  237. package/dist/channel-DoxF0tZj.cjs +0 -1
  238. package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
  239. package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
  240. package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
  241. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
  242. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  243. package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
  244. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
  245. package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
  246. package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
  247. package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
  248. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
  249. package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
  250. package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
  251. package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
  252. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
  253. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
  254. package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
  255. package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
  256. package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
  257. package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
  258. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
  259. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
  260. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
  261. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
  262. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
  263. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
  264. package/dist/core-2nR1zkKb.cjs +0 -3
  265. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
  266. package/dist/cpp-BUtp-HE2.cjs +0 -1
  267. package/dist/csharp-BJu4kEpt.cjs +0 -1
  268. package/dist/css-DeFr0lev.cjs +0 -1
  269. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
  270. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
  271. package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
  272. package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
  273. package/dist/dagre-BBlCxSvR.cjs +0 -1
  274. package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
  275. package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
  276. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  277. package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
  278. package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
  279. package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
  280. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
  281. package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
  282. package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
  283. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
  284. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
  285. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
  286. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
  287. package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
  288. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
  289. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
  290. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
  291. package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
  292. package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
  293. package/dist/init-07zIhv_j.cjs +0 -1
  294. package/dist/java-CUN_usaq.cjs +0 -1
  295. package/dist/javascript-UZXSyUuu.cjs +0 -1
  296. package/dist/json-Cp01TR_B.js +0 -36
  297. package/dist/json-usH_MUzR.cjs +0 -1
  298. package/dist/linear-Cl2-QuPP.cjs +0 -1
  299. package/dist/map-CwPlMWPw.cjs +0 -1
  300. package/dist/map-DU12fF3s.js +0 -241
  301. package/dist/markdown-qeo95R0i.cjs +0 -1
  302. package/dist/mermaid.core-BIq27e0A.js +0 -1068
  303. package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
  304. package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
  305. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
  306. package/dist/path-Kklx0M1v.cjs +0 -1
  307. package/dist/pdf-aU0TN69t.cjs +0 -54
  308. package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
  309. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
  310. package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
  311. package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
  312. package/dist/python-BYJzTRkK.cjs +0 -1
  313. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
  314. package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
  315. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
  316. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
  317. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
  318. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
  319. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
  320. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
  321. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
  322. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
  323. package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
  324. package/dist/rust-ghVvEWhm.cjs +0 -1
  325. package/dist/scss-CKxh5HRg.cjs +0 -1
  326. package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
  327. package/dist/src-CR--T_NF.cjs +0 -1
  328. package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
  329. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
  330. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
  331. package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
  332. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
  333. package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
  334. package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
  335. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
  336. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
  337. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
  338. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
  339. package/dist/typescript-clWeqIBY.cjs +0 -1
  340. package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
  341. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
  342. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
  343. package/dist/yaml-bAgWofBg.cjs +0 -1
  344. /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
@@ -1,14 +1,14 @@
1
- import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { n } from "./mermaid-parser.core-B8DQcCaz.js";
1
+ import { r as e, t } from "./rolldown-runtime-B0aSnxlc.js";
2
+ import { n } from "./mermaid-parser.core-DLNlSmfj.js";
3
3
  import { n as r } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
4
- import { m as i, p as a } from "./src-DJ4x3y2O.js";
5
- import { H as o, J as s, K as c, U as l, a as u, b as d, f, v as p, w as m, x as h, y as g, z as _ } from "./chunk-I66GZJ75-DexfhZwA.js";
6
- import { c as v, i as y } from "./chunk-NSK5VX7P-DPxIxDdV.js";
7
- import { t as b } from "./chunk-3NCLNEKW-dTH67Ne_.js";
8
- import { t as x } from "./chunk-JWPE2WC7-B_J6qwQL.js";
9
- import { i as S, r as C, t as w } from "./chunk-4I5QYGJK-JZmvuONC.js";
10
- import { n as T } from "./chunk-WRU74C26-D4huAZcy.js";
11
- import { t as E } from "./cytoscape.esm-asYnbYTy.js";
4
+ import { m as i, p as a } from "./src-BMMAFeC3.js";
5
+ import { H as o, J as s, K as c, U as l, a as u, b as d, f, v as p, w as m, x as h, y as g, z as _ } from "./chunk-DU6HZSFF-CaHy-FdL.js";
6
+ import { c as v, i as y } from "./chunk-75Z2AOVW-Eg_bFxBJ.js";
7
+ import { t as b } from "./chunk-JWPE2WC7-B_J6qwQL.js";
8
+ import { i as x, r as S, t as C } from "./chunk-PWAF6VOD-j4sFqhOF.js";
9
+ import { n as w } from "./chunk-GMAD6QVW-DCCx2Rg1.js";
10
+ import { t as T } from "./cytoscape.esm-Cq7KPj0t.js";
11
+ import { f as E } from "./mermaid.core-BIqYA7q2.js";
12
12
  //#region ../node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
13
13
  var D = /* @__PURE__ */ t(((e, t) => {
14
14
  (function(n, r) {
@@ -104,7 +104,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
104
104
  (function(e, t, n) {
105
105
  var r = n(2), i = n(10), a = n(13), o = n(0), s = n(16), c = n(5);
106
106
  function l(e, t, n, o) {
107
- n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, n != null && t != null ? this.rect = new a(t.x, t.y, n.width, n.height) : this.rect = new a();
107
+ n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, this.rect = n != null && t != null ? new a(t.x, t.y, n.width, n.height) : new a();
108
108
  }
109
109
  for (var u in l.prototype = Object.create(r.prototype), r) l[u] = r[u];
110
110
  l.prototype.getEdges = function() {
@@ -154,7 +154,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
154
154
  }, l.prototype.getEdgesBetween = function(e) {
155
155
  var t = [], n = this;
156
156
  return n.edges.forEach(function(r) {
157
- if (!(r.source == n || r.target == n)) throw "Incorrect edge source and/or target";
157
+ if (r.source != n && r.target != n) throw "Incorrect edge source and/or target";
158
158
  (r.target == e || r.source == e) && t.push(r);
159
159
  }), t;
160
160
  }, l.prototype.getNeighborsList = function() {
@@ -274,17 +274,16 @@ var D = /* @__PURE__ */ t(((e, t) => {
274
274
  if (this.graphManager == null) throw "Graph has no graph mgr!";
275
275
  if (this.getNodes().indexOf(r) > -1) throw "Node already in graph!";
276
276
  return r.owner = this, this.getNodes().push(r), r;
277
- } else {
278
- var i = e;
279
- if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
280
- if (!(t.owner == n.owner && t.owner == this)) throw "Both owners must be this graph!";
281
- return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
282
277
  }
278
+ var i = e;
279
+ if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
280
+ if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
281
+ return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
283
282
  }, f.prototype.remove = function(e) {
284
283
  var t = e;
285
284
  if (e instanceof s) {
286
285
  if (t == null) throw "Node is null!";
287
- if (!(t.owner != null && t.owner == this)) throw "Owner graph is invalid!";
286
+ if (t.owner == null || t.owner != this) throw "Owner graph is invalid!";
288
287
  if (this.graphManager == null) throw "Owner graph manager is invalid!";
289
288
  for (var n = t.edges.slice(), r, i = n.length, a = 0; a < i; a++) r = n[a], r.isInterGraph ? this.graphManager.remove(r) : r.source.owner.remove(r);
290
289
  var o = this.nodes.indexOf(t);
@@ -293,8 +292,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
293
292
  } else if (e instanceof c) {
294
293
  var r = e;
295
294
  if (r == null) throw "Edge is null!";
296
- if (!(r.source != null && r.target != null)) throw "Source and/or target is null!";
297
- if (!(r.source.owner != null && r.target.owner != null && r.source.owner == this && r.target.owner == this)) throw "Source and/or target owner is invalid!";
295
+ if (r.source == null || r.target == null) throw "Source and/or target is null!";
296
+ if (r.source.owner == null || r.target.owner == null || r.source.owner != this || r.target.owner != this) throw "Source and/or target owner is invalid!";
298
297
  var l = r.source.edges.indexOf(r), u = r.target.edges.indexOf(r);
299
298
  if (!(l > -1 && u > -1)) throw "Source and/or target doesn't know this edge!";
300
299
  r.source.edges.splice(l, 1), r.target != r.source && r.target.edges.splice(u, 1);
@@ -331,7 +330,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
331
330
  var i = t[r];
332
331
  e += i.calcEstimatedSize();
333
332
  }
334
- return e == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = e / Math.sqrt(this.nodes.length), this.estimatedSize;
333
+ return this.estimatedSize = e == 0 ? a.EMPTY_COMPOUND_NODE_SIZE : e / Math.sqrt(this.nodes.length), this.estimatedSize;
335
334
  }, f.prototype.updateConnected = function() {
336
335
  var e = this;
337
336
  if (this.nodes.length == 0) {
@@ -371,17 +370,16 @@ var D = /* @__PURE__ */ t(((e, t) => {
371
370
  if (this.graphs.push(e), e.parent != null) throw "Already has a parent!";
372
371
  if (t.child != null) throw "Already has a child!";
373
372
  return e.parent = t, t.child = e, e;
374
- } else {
375
- i = n, r = t, n = e;
376
- var a = r.getOwner(), o = i.getOwner();
377
- if (!(a != null && a.getGraphManager() == this)) throw "Source not in this graph mgr!";
378
- if (!(o != null && o.getGraphManager() == this)) throw "Target not in this graph mgr!";
379
- if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
380
- if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
381
- if (this.edges.push(n), !(n.source != null && n.target != null)) throw "Edge source and/or target is null!";
382
- if (!(n.source.edges.indexOf(n) == -1 && n.target.edges.indexOf(n) == -1)) throw "Edge already in source and/or target incidency list!";
383
- return n.source.edges.push(n), n.target.edges.push(n), n;
384
373
  }
374
+ i = n, r = t, n = e;
375
+ var a = r.getOwner(), o = i.getOwner();
376
+ if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
377
+ if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
378
+ if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
379
+ if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
380
+ if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
381
+ if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
382
+ return n.source.edges.push(n), n.target.edges.push(n), n;
385
383
  }, a.prototype.remove = function(e) {
386
384
  if (e instanceof r) {
387
385
  var t = e;
@@ -401,10 +399,10 @@ var D = /* @__PURE__ */ t(((e, t) => {
401
399
  } else if (e instanceof i) {
402
400
  if (a = e, a == null) throw "Edge is null!";
403
401
  if (!a.isInterGraph) throw "Not an inter-graph edge!";
404
- if (!(a.source != null && a.target != null)) throw "Source and/or target is null!";
405
- if (!(a.source.edges.indexOf(a) != -1 && a.target.edges.indexOf(a) != -1)) throw "Source and/or target doesn't know this edge!";
402
+ if (a.source == null || a.target == null) throw "Source and/or target is null!";
403
+ if (a.source.edges.indexOf(a) == -1 || a.target.edges.indexOf(a) == -1) throw "Source and/or target doesn't know this edge!";
406
404
  var u = a.source.edges.indexOf(a);
407
- if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), !(a.source.owner != null && a.source.owner.getGraphManager() != null)) throw "Edge owner graph or owner graph manager is null!";
405
+ if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), a.source.owner == null || a.source.owner.getGraphManager() == null) throw "Edge owner graph or owner graph manager is null!";
408
406
  if (a.source.owner.getGraphManager().edges.indexOf(a) == -1) throw "Not in owner graph manager's edge list!";
409
407
  var u = a.source.owner.getGraphManager().edges.indexOf(a);
410
408
  a.source.owner.getGraphManager().edges.splice(u, 1);
@@ -446,7 +444,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
446
444
  }, a.prototype.getLayout = function() {
447
445
  return this.layout;
448
446
  }, a.prototype.isOneAncestorOfOther = function(e, t) {
449
- if (!(e != null && t != null)) throw "assert failed";
447
+ if (e == null || t == null) throw "assert failed";
450
448
  if (e == t) return !0;
451
449
  var n = e.getOwner(), r;
452
450
  do {
@@ -517,7 +515,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
517
515
  var o = a * n[0], s = n[1] / a;
518
516
  n[0] < s ? s = n[0] : o = n[1], n[0] = -1 * i[0] * (s / 2 + r), n[1] = -1 * i[1] * (o / 2 + r);
519
517
  }, i.decideDirectionsForOverlappingNodes = function(e, t, n) {
520
- e.getCenterX() < t.getCenterX() ? n[0] = -1 : n[0] = 1, e.getCenterY() < t.getCenterY() ? n[1] = -1 : n[1] = 1;
518
+ n[0] = e.getCenterX() < t.getCenterX() ? -1 : 1, n[1] = e.getCenterY() < t.getCenterY() ? -1 : 1;
521
519
  }, i.getIntersection2 = function(e, t, n) {
522
520
  var r = e.getCenterX(), i = e.getCenterY(), a = t.getCenterX(), o = t.getCenterY();
523
521
  if (e.intersects(t)) return n[0] = r, n[1] = i, n[2] = a, n[3] = o, !0;
@@ -541,9 +539,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
541
539
  case 3:
542
540
  j = d, A = r + m / D, n[0] = A, n[1] = j;
543
541
  break;
544
- case 4:
545
- A = u, j = i + -p * D, n[0] = A, n[1] = j;
546
- break;
542
+ case 4: A = u, j = i + -p * D, n[0] = A, n[1] = j;
547
543
  }
548
544
  if (!w) switch (k) {
549
545
  case 1:
@@ -555,9 +551,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
555
551
  case 3:
556
552
  N = y, M = a + S / D, n[2] = M, n[3] = N;
557
553
  break;
558
- case 4:
559
- M = v, N = o + -x * D, n[2] = M, n[3] = N;
560
- break;
554
+ case 4: M = v, N = o + -x * D, n[2] = M, n[3] = N;
561
555
  }
562
556
  }
563
557
  return !1;
@@ -580,7 +574,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
580
574
  if (c * c - 4 * s * l >= 0) {
581
575
  var u = (-c + Math.sqrt(c * c - 4 * s * l)) / (2 * s), d = (-c - Math.sqrt(c * c - 4 * s * l)) / (2 * s);
582
576
  return u >= 0 && u <= 1 ? [u] : d >= 0 && d <= 1 ? [d] : null;
583
- } else return null;
577
+ }
578
+ return null;
584
579
  }, i.HALF_PI = .5 * Math.PI, i.ONE_AND_HALF_PI = 1.5 * Math.PI, i.TWO_PI = 2 * Math.PI, i.THREE_PI = 3 * Math.PI, e.exports = i;
585
580
  }),
586
581
  (function(e, t, n) {
@@ -816,7 +811,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
816
811
  if (Array.isArray(e)) {
817
812
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
818
813
  return n;
819
- } else return Array.from(e);
814
+ }
815
+ return Array.from(e);
820
816
  }
821
817
  var i = n(0), a = n(7), o = n(3), s = n(1), c = n(6), l = n(5), u = n(17), d = n(29);
822
818
  function f(e) {
@@ -843,8 +839,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
843
839
  return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
844
840
  }, f.prototype.runLayout = function() {
845
841
  this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
846
- var e = this.checkLayoutSuccess() ? !1 : this.layout();
847
- return i.ANIMATE === "during" ? !1 : (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
842
+ var e = !this.checkLayoutSuccess() && this.layout();
843
+ return i.ANIMATE !== "during" && (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
848
844
  }, f.prototype.doPostLayout = function() {
849
845
  this.incremental || this.transform(), this.update();
850
846
  }, f.prototype.update2 = function() {
@@ -890,10 +886,12 @@ var D = /* @__PURE__ */ t(((e, t) => {
890
886
  s.splice(0, 1), o.add(u);
891
887
  for (var d = u.getEdges(), a = 0; a < d.length; a++) {
892
888
  var f = d[a].getOtherEnd(u);
893
- if (c.get(u) != f) if (!o.has(f)) s.push(f), c.set(f, u);
894
- else {
895
- t = !1;
896
- break;
889
+ if (c.get(u) != f) {
890
+ if (!o.has(f)) s.push(f), c.set(f, u);
891
+ else {
892
+ t = !1;
893
+ break;
894
+ }
897
895
  }
898
896
  }
899
897
  }
@@ -942,10 +940,9 @@ var D = /* @__PURE__ */ t(((e, t) => {
942
940
  i += (o - t) / 50 * (e - 50);
943
941
  }
944
942
  return i;
945
- } else {
946
- var s, c;
947
- return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
948
943
  }
944
+ var s, c;
945
+ return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
949
946
  }, f.findCenterOfTree = function(e) {
950
947
  var t = [];
951
948
  t = t.concat(e);
@@ -1039,7 +1036,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
1039
1036
  if (Array.isArray(e)) {
1040
1037
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
1041
1038
  return n;
1042
- } else return Array.from(e);
1039
+ }
1040
+ return Array.from(e);
1043
1041
  }
1044
1042
  var i = n(15), a = n(4), o = n(0), s = n(8), c = n(9);
1045
1043
  function l() {
@@ -1052,11 +1050,11 @@ var D = /* @__PURE__ */ t(((e, t) => {
1052
1050
  for (var e, t, n, r, i, s, c, l = this.getGraphManager().getAllEdges(), u = 0; u < l.length; u++) e = l[u], t = e.idealLength, e.isInterGraph && (r = e.getSource(), i = e.getTarget(), s = e.getSourceInLca().getEstimatedSize(), c = e.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (e.idealLength += s + c - 2 * o.SIMPLE_NODE_SIZE), n = e.getLca().getInclusionTreeDepth(), e.idealLength += t * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (r.getInclusionTreeDepth() + i.getInclusionTreeDepth() - 2 * n));
1053
1051
  }, l.prototype.initSpringEmbedder = function() {
1054
1052
  var e = this.getAllNodes().length;
1055
- this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (e > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1053
+ this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (this.coolingFactor = e > a.ADAPTATION_LOWER_NODE_LIMIT ? Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1056
1054
  }, l.prototype.calcSpringForces = function() {
1057
1055
  for (var e = this.getAllEdges(), t, n = 0; n < e.length; n++) t = e[n], this.calcSpringForce(t, t.idealLength);
1058
1056
  }, l.prototype.calcRepulsionForces = function() {
1059
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n, r, i, o, s = this.getAllNodes(), c;
1057
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n, r, i, o, s = this.getAllNodes(), c;
1060
1058
  if (this.useFRGridVariant) for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && e && this.updateGrid(), c = /* @__PURE__ */ new Set(), n = 0; n < s.length; n++) i = s[n], this.calculateRepulsionForceOfANode(i, c, e, t), c.add(i);
1061
1059
  else for (n = 0; n < s.length; n++) for (i = s[n], r = n + 1; r < s.length; r++) o = s[r], i.getOwner() == o.getOwner() && this.calcRepulsionForce(i, o);
1062
1060
  }, l.prototype.calcGravitationalForces = function() {
@@ -1108,7 +1106,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1108
1106
  var o = /* @__PURE__ */ new Set();
1109
1107
  e.surrounding = [];
1110
1108
  for (var s, c = this.grid, l = e.startX - 1; l < e.finishX + 2; l++) for (var u = e.startY - 1; u < e.finishY + 2; u++) if (!(l < 0 || u < 0 || l >= c.length || u >= c[0].length)) {
1111
- for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], !(e.getOwner() != s.getOwner() || e == s) && !t.has(s) && !o.has(s)) {
1109
+ for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], e.getOwner() == s.getOwner() && e != s && !t.has(s) && !o.has(s)) {
1112
1110
  var f = Math.abs(e.getCenterX() - s.getCenterX()) - (e.getWidth() / 2 + s.getWidth() / 2), p = Math.abs(e.getCenterY() - s.getCenterY()) - (e.getHeight() / 2 + s.getHeight() / 2);
1113
1111
  f <= this.repulsionRange && p <= this.repulsionRange && o.add(s);
1114
1112
  }
@@ -1477,7 +1475,6 @@ var D = /* @__PURE__ */ t(((e, t) => {
1477
1475
  U++;
1478
1476
  }
1479
1477
  H = 0, E--;
1480
- break;
1481
1478
  }
1482
1479
  }
1483
1480
  return {
@@ -1697,7 +1694,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1697
1694
  }, x.prototype.newEdge = function(e) {
1698
1695
  return new s(null, null, e);
1699
1696
  }, x.prototype.initParameters = function() {
1700
- r.prototype.initParameters.call(this, arguments), this.isSubLayout || (c.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1697
+ r.prototype.initParameters.call(this, arguments), this.isSubLayout || (this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH < 10 ? 10 : c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1701
1698
  }, x.prototype.initSpringEmbedder = function() {
1702
1699
  r.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / u.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = .04, this.coolingAdjuster = 1;
1703
1700
  }, x.prototype.layout = function() {
@@ -1722,26 +1719,32 @@ var D = /* @__PURE__ */ t(((e, t) => {
1722
1719
  }
1723
1720
  return Object.keys(this.constraints).length > 0 && (l.handleConstraints(this), this.initConstraintVariables()), this.initSpringEmbedder(), c.APPLY_LAYOUT && this.runSpringEmbedder(), !0;
1724
1721
  }, x.prototype.tick = function() {
1725
- if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished) if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1726
- else return !0;
1727
- if (this.totalIterations % u.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1728
- if (this.isConverged()) if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1722
+ if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished) {
1723
+ if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1729
1724
  else return !0;
1725
+ }
1726
+ if (this.totalIterations % u.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1727
+ if (this.isConverged()) {
1728
+ if (this.prunedNodesAll.length > 0) this.isTreeGrowing = !0;
1729
+ else return !0;
1730
+ }
1730
1731
  this.coolingCycle++, this.layoutQuality == 0 ? this.coolingAdjuster = this.coolingCycle : this.layoutQuality == 1 && (this.coolingAdjuster = this.coolingCycle / 3), this.coolingFactor = Math.max(this.initialCoolingFactor - this.coolingCycle ** +(Math.log(100 * (this.initialCoolingFactor - this.finalTemperature)) / Math.log(this.maxCoolingCycle)) / 100 * this.coolingAdjuster, this.finalTemperature), this.animationPeriod = Math.ceil(this.initialAnimationPeriod * Math.sqrt(this.coolingFactor));
1731
1732
  }
1732
1733
  if (this.isTreeGrowing) {
1733
- if (this.growTreeIterations % 10 == 0) if (this.prunedNodesAll.length > 0) {
1734
- this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1735
- var e = new Set(this.getAllNodes()), t = this.nodesWithGravity.filter(function(t) {
1736
- return e.has(t);
1737
- });
1738
- this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1739
- } else this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1734
+ if (this.growTreeIterations % 10 == 0) {
1735
+ if (this.prunedNodesAll.length > 0) {
1736
+ this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1737
+ var e = new Set(this.getAllNodes()), t = this.nodesWithGravity.filter(function(t) {
1738
+ return e.has(t);
1739
+ });
1740
+ this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1741
+ } else this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1742
+ }
1740
1743
  this.growTreeIterations++;
1741
1744
  }
1742
1745
  if (this.isGrowthFinished) {
1743
1746
  if (this.isConverged()) return !0;
1744
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1747
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1745
1748
  }
1746
1749
  var n = !this.isTreeGrowing && !this.isGrowthFinished, r = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1747
1750
  return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(n, r), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
@@ -1885,66 +1888,68 @@ var D = /* @__PURE__ */ t(((e, t) => {
1885
1888
  for (var l = s / o[n].length, i = 0; i < o[n].length; i++) this.idToNodeMap.get(o[n][i]).displacementY = l;
1886
1889
  }
1887
1890
  }
1888
- if (this.constraints.relativePlacementConstraint) if (c.RELAX_MOVEMENT_ON_CONSTRAINTS) this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(t) {
1889
- if (!e.fixedNodesOnHorizontal.has(t)) {
1890
- var n = 0;
1891
- n = e.dummyToNodeForVerticalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(t)[0]).displacementX : e.idToNodeMap.get(t).displacementX, e.nodeToRelativeConstraintMapHorizontal.get(t).forEach(function(r) {
1892
- if (r.right) {
1893
- var i = e.nodeToTempPositionMapHorizontal.get(r.right) - e.nodeToTempPositionMapHorizontal.get(t) - n;
1894
- i < r.gap && (n -= r.gap - i);
1895
- } else {
1896
- var i = e.nodeToTempPositionMapHorizontal.get(t) - e.nodeToTempPositionMapHorizontal.get(r.left) + n;
1897
- i < r.gap && (n += r.gap - i);
1898
- }
1899
- }), e.nodeToTempPositionMapHorizontal.set(t, e.nodeToTempPositionMapHorizontal.get(t) + n), e.dummyToNodeForVerticalAlignment.has(t) ? e.dummyToNodeForVerticalAlignment.get(t).forEach(function(t) {
1900
- e.idToNodeMap.get(t).displacementX = n;
1901
- }) : e.idToNodeMap.get(t).displacementX = n;
1902
- }
1903
- }), this.nodesInRelativeVertical.forEach(function(t) {
1904
- if (!e.fixedNodesOnHorizontal.has(t)) {
1905
- var n = 0;
1906
- n = e.dummyToNodeForHorizontalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(t)[0]).displacementY : e.idToNodeMap.get(t).displacementY, e.nodeToRelativeConstraintMapVertical.get(t).forEach(function(r) {
1907
- if (r.bottom) {
1908
- var i = e.nodeToTempPositionMapVertical.get(r.bottom) - e.nodeToTempPositionMapVertical.get(t) - n;
1909
- i < r.gap && (n -= r.gap - i);
1910
- } else {
1911
- var i = e.nodeToTempPositionMapVertical.get(t) - e.nodeToTempPositionMapVertical.get(r.top) + n;
1912
- i < r.gap && (n += r.gap - i);
1891
+ if (this.constraints.relativePlacementConstraint) {
1892
+ if (c.RELAX_MOVEMENT_ON_CONSTRAINTS) this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(t) {
1893
+ if (!e.fixedNodesOnHorizontal.has(t)) {
1894
+ var n = 0;
1895
+ n = e.dummyToNodeForVerticalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(t)[0]).displacementX : e.idToNodeMap.get(t).displacementX, e.nodeToRelativeConstraintMapHorizontal.get(t).forEach(function(r) {
1896
+ if (r.right) {
1897
+ var i = e.nodeToTempPositionMapHorizontal.get(r.right) - e.nodeToTempPositionMapHorizontal.get(t) - n;
1898
+ i < r.gap && (n -= r.gap - i);
1899
+ } else {
1900
+ var i = e.nodeToTempPositionMapHorizontal.get(t) - e.nodeToTempPositionMapHorizontal.get(r.left) + n;
1901
+ i < r.gap && (n += r.gap - i);
1902
+ }
1903
+ }), e.nodeToTempPositionMapHorizontal.set(t, e.nodeToTempPositionMapHorizontal.get(t) + n), e.dummyToNodeForVerticalAlignment.has(t) ? e.dummyToNodeForVerticalAlignment.get(t).forEach(function(t) {
1904
+ e.idToNodeMap.get(t).displacementX = n;
1905
+ }) : e.idToNodeMap.get(t).displacementX = n;
1906
+ }
1907
+ }), this.nodesInRelativeVertical.forEach(function(t) {
1908
+ if (!e.fixedNodesOnHorizontal.has(t)) {
1909
+ var n = 0;
1910
+ n = e.dummyToNodeForHorizontalAlignment.has(t) ? e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(t)[0]).displacementY : e.idToNodeMap.get(t).displacementY, e.nodeToRelativeConstraintMapVertical.get(t).forEach(function(r) {
1911
+ if (r.bottom) {
1912
+ var i = e.nodeToTempPositionMapVertical.get(r.bottom) - e.nodeToTempPositionMapVertical.get(t) - n;
1913
+ i < r.gap && (n -= r.gap - i);
1914
+ } else {
1915
+ var i = e.nodeToTempPositionMapVertical.get(t) - e.nodeToTempPositionMapVertical.get(r.top) + n;
1916
+ i < r.gap && (n += r.gap - i);
1917
+ }
1918
+ }), e.nodeToTempPositionMapVertical.set(t, e.nodeToTempPositionMapVertical.get(t) + n), e.dummyToNodeForHorizontalAlignment.has(t) ? e.dummyToNodeForHorizontalAlignment.get(t).forEach(function(t) {
1919
+ e.idToNodeMap.get(t).displacementY = n;
1920
+ }) : e.idToNodeMap.get(t).displacementY = n;
1921
+ }
1922
+ });
1923
+ else {
1924
+ for (var n = 0; n < this.componentsOnHorizontal.length; n++) {
1925
+ var u = this.componentsOnHorizontal[n];
1926
+ if (this.fixedComponentsOnHorizontal[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1927
+ e.idToNodeMap.get(t).displacementX = 0;
1928
+ }) : this.idToNodeMap.get(u[i]).displacementX = 0;
1929
+ else {
1930
+ for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForVerticalAlignment.has(u[i])) {
1931
+ var p = this.dummyToNodeForVerticalAlignment.get(u[i]);
1932
+ d += p.length * this.idToNodeMap.get(p[0]).displacementX, f += p.length;
1933
+ } else d += this.idToNodeMap.get(u[i]).displacementX, f++;
1934
+ for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1935
+ e.idToNodeMap.get(t).displacementX = m;
1936
+ }) : this.idToNodeMap.get(u[i]).displacementX = m;
1913
1937
  }
1914
- }), e.nodeToTempPositionMapVertical.set(t, e.nodeToTempPositionMapVertical.get(t) + n), e.dummyToNodeForHorizontalAlignment.has(t) ? e.dummyToNodeForHorizontalAlignment.get(t).forEach(function(t) {
1915
- e.idToNodeMap.get(t).displacementY = n;
1916
- }) : e.idToNodeMap.get(t).displacementY = n;
1917
- }
1918
- });
1919
- else {
1920
- for (var n = 0; n < this.componentsOnHorizontal.length; n++) {
1921
- var u = this.componentsOnHorizontal[n];
1922
- if (this.fixedComponentsOnHorizontal[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1923
- e.idToNodeMap.get(t).displacementX = 0;
1924
- }) : this.idToNodeMap.get(u[i]).displacementX = 0;
1925
- else {
1926
- for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForVerticalAlignment.has(u[i])) {
1927
- var p = this.dummyToNodeForVerticalAlignment.get(u[i]);
1928
- d += p.length * this.idToNodeMap.get(p[0]).displacementX, f += p.length;
1929
- } else d += this.idToNodeMap.get(u[i]).displacementX, f++;
1930
- for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForVerticalAlignment.has(u[i]) ? this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t) {
1931
- e.idToNodeMap.get(t).displacementX = m;
1932
- }) : this.idToNodeMap.get(u[i]).displacementX = m;
1933
1938
  }
1934
- }
1935
- for (var n = 0; n < this.componentsOnVertical.length; n++) {
1936
- var u = this.componentsOnVertical[n];
1937
- if (this.fixedComponentsOnVertical[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1938
- e.idToNodeMap.get(t).displacementY = 0;
1939
- }) : this.idToNodeMap.get(u[i]).displacementY = 0;
1940
- else {
1941
- for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForHorizontalAlignment.has(u[i])) {
1942
- var p = this.dummyToNodeForHorizontalAlignment.get(u[i]);
1943
- d += p.length * this.idToNodeMap.get(p[0]).displacementY, f += p.length;
1944
- } else d += this.idToNodeMap.get(u[i]).displacementY, f++;
1945
- for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1946
- e.idToNodeMap.get(t).displacementY = m;
1947
- }) : this.idToNodeMap.get(u[i]).displacementY = m;
1939
+ for (var n = 0; n < this.componentsOnVertical.length; n++) {
1940
+ var u = this.componentsOnVertical[n];
1941
+ if (this.fixedComponentsOnVertical[n]) for (var i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1942
+ e.idToNodeMap.get(t).displacementY = 0;
1943
+ }) : this.idToNodeMap.get(u[i]).displacementY = 0;
1944
+ else {
1945
+ for (var d = 0, f = 0, i = 0; i < u.length; i++) if (this.dummyToNodeForHorizontalAlignment.has(u[i])) {
1946
+ var p = this.dummyToNodeForHorizontalAlignment.get(u[i]);
1947
+ d += p.length * this.idToNodeMap.get(p[0]).displacementY, f += p.length;
1948
+ } else d += this.idToNodeMap.get(u[i]).displacementY, f++;
1949
+ for (var m = d / f, i = 0; i < u.length; i++) this.dummyToNodeForHorizontalAlignment.has(u[i]) ? this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t) {
1950
+ e.idToNodeMap.get(t).displacementY = m;
1951
+ }) : this.idToNodeMap.get(u[i]).displacementY = m;
1952
+ }
1948
1953
  }
1949
1954
  }
1950
1955
  }
@@ -2320,7 +2325,8 @@ var D = /* @__PURE__ */ t(((e, t) => {
2320
2325
  if (Array.isArray(e)) {
2321
2326
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
2322
2327
  return n;
2323
- } else return Array.from(e);
2328
+ }
2329
+ return Array.from(e);
2324
2330
  }
2325
2331
  var i = n(806), a = n(551).LinkedList, o = n(551).Matrix, s = n(551).SVD;
2326
2332
  function c() {}
@@ -2332,7 +2338,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2332
2338
  m.getChild() ?? (c.set(m.id, f++), l.push(m.getCenterX()), u.push(m.getCenterY()), n.set(m.id, m));
2333
2339
  }
2334
2340
  t.relativePlacementConstraint && t.relativePlacementConstraint.forEach(function(e) {
2335
- !e.gap && e.gap != 0 && (e.left ? e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2341
+ !e.gap && e.gap != 0 && (e.gap = e.left ? i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2336
2342
  });
2337
2343
  var h = function(e, t) {
2338
2344
  return {
@@ -2391,7 +2397,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2391
2397
  } else {
2392
2398
  var o = 0;
2393
2399
  e.forEach(function(e) {
2394
- t == "horizontal" ? o += c.has(e) ? l[c.get(e)] : i.get(e) : o += c.has(e) ? u[c.get(e)] : i.get(e);
2400
+ o += t == "horizontal" ? c.has(e) ? l[c.get(e)] : i.get(e) : c.has(e) ? u[c.get(e)] : i.get(e);
2395
2401
  }), o /= e.length, e.forEach(function(e) {
2396
2402
  f.set(e, o);
2397
2403
  });
@@ -2400,15 +2406,17 @@ var D = /* @__PURE__ */ t(((e, t) => {
2400
2406
  for (var h = function() {
2401
2407
  var r = m.shift();
2402
2408
  e.get(r).forEach(function(e) {
2403
- if (f.get(e.id) < f.get(r) + e.gap) if (n && n.has(e.id)) {
2404
- var a = void 0;
2405
- if (a = t == "horizontal" ? c.has(e.id) ? l[c.get(e.id)] : i.get(e.id) : c.has(e.id) ? u[c.get(e.id)] : i.get(e.id), f.set(e.id, a), a < f.get(r) + e.gap) {
2406
- var o = f.get(r) + e.gap - a;
2407
- p.get(r).forEach(function(e) {
2408
- f.set(e, f.get(e) - o);
2409
- });
2410
- }
2411
- } else f.set(e.id, f.get(r) + e.gap);
2409
+ if (f.get(e.id) < f.get(r) + e.gap) {
2410
+ if (n && n.has(e.id)) {
2411
+ var a = void 0;
2412
+ if (a = t == "horizontal" ? c.has(e.id) ? l[c.get(e.id)] : i.get(e.id) : c.has(e.id) ? u[c.get(e.id)] : i.get(e.id), f.set(e.id, a), a < f.get(r) + e.gap) {
2413
+ var o = f.get(r) + e.gap - a;
2414
+ p.get(r).forEach(function(e) {
2415
+ f.set(e, f.get(e) - o);
2416
+ });
2417
+ }
2418
+ } else f.set(e.id, f.get(r) + e.gap);
2419
+ }
2412
2420
  d.set(e.id, d.get(e.id) - 1), d.get(e.id) == 0 && m.push(e.id), n && p.set(e.id, s(p.get(r), p.get(e.id)));
2413
2421
  });
2414
2422
  }; m.length != 0;) h();
@@ -2934,13 +2942,15 @@ var D = /* @__PURE__ */ t(((e, t) => {
2934
2942
  var d = n[u], f = null;
2935
2943
  d.intersection(b).length == 0 && (f = d.children());
2936
2944
  var p = void 0, v = d.layoutDimensions({ nodeDimensionsIncludeLabels: c.nodeDimensionsIncludeLabels });
2937
- if (d.outerWidth() != null && d.outerHeight() != null) if (c.randomize) if (!d.isParent()) p = t.add(new a(i.graphManager, new o(h[m.get(d.id())] - v.w / 2, g[m.get(d.id())] - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2938
- else {
2939
- var x = r.calcBoundingBox(d, h, g, m);
2940
- p = d.intersection(b).length == 0 ? t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(x.width, x.height))) : t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(parseFloat(v.w), parseFloat(v.h))));
2941
- }
2942
- else p = t.add(new a(i.graphManager, new o(d.position("x") - v.w / 2, d.position("y") - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2943
- else p = t.add(new a(this.graphManager));
2945
+ if (d.outerWidth() != null && d.outerHeight() != null) {
2946
+ if (c.randomize) {
2947
+ if (!d.isParent()) p = t.add(new a(i.graphManager, new o(h[m.get(d.id())] - v.w / 2, g[m.get(d.id())] - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2948
+ else {
2949
+ var x = r.calcBoundingBox(d, h, g, m);
2950
+ p = d.intersection(b).length == 0 ? t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(x.width, x.height))) : t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(parseFloat(v.w), parseFloat(v.h))));
2951
+ }
2952
+ } else p = t.add(new a(i.graphManager, new o(d.position("x") - v.w / 2, d.position("y") - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
2953
+ } else p = t.add(new a(this.graphManager));
2944
2954
  if (p.id = d.data("id"), p.nodeRepulsion = y(c.nodeRepulsion, d), p.paddingLeft = parseInt(d.css("padding")), p.paddingTop = parseInt(d.css("padding")), p.paddingRight = parseInt(d.css("padding")), p.paddingBottom = parseInt(d.css("padding")), c.nodeDimensionsIncludeLabels && (p.labelWidth = d.boundingBox({
2945
2955
  includeLabels: !0,
2946
2956
  includeNodes: !1,
@@ -2962,11 +2972,11 @@ var D = /* @__PURE__ */ t(((e, t) => {
2962
2972
  f.id = s.id(), f.idealLength = y(e.idealEdgeLength, s), f.edgeElasticity = y(e.edgeElasticity, s), i += f.idealLength, a++;
2963
2973
  }
2964
2974
  }
2965
- e.idealEdgeLength != null && (a > 0 ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = i / a : v(e.idealEdgeLength) ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = 50 : u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2975
+ e.idealEdgeLength != null && (u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = a > 0 ? i / a : v(e.idealEdgeLength) ? 50 : e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2966
2976
  }, C = function(e, t) {
2967
2977
  t.fixedNodeConstraint && (e.constraints.fixedNodeConstraint = t.fixedNodeConstraint), t.alignmentConstraint && (e.constraints.alignmentConstraint = t.alignmentConstraint), t.relativePlacementConstraint && (e.constraints.relativePlacementConstraint = t.relativePlacementConstraint);
2968
2978
  };
2969
- e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), e.quality == "proof" ? c.QUALITY = 2 : c.QUALITY = 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (e.randomize ? u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint ? u.TREE_REDUCTION_ON_INCREMENTAL = !1 : u.TREE_REDUCTION_ON_INCREMENTAL = !0;
2979
+ e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), c.QUALITY = e.quality == "proof" ? 2 : 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !!e.randomize, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), u.TREE_REDUCTION_ON_INCREMENTAL = !(e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint);
2970
2980
  var w = new i(), T = w.newGraphManager();
2971
2981
  return x(T.addRoot(), r.getTopMostNodes(f), w, e), S(w, T, p), C(w, e), w.runLayout(), _;
2972
2982
  } };
@@ -3038,132 +3048,137 @@ var D = /* @__PURE__ */ t(((e, t) => {
3038
3048
  var e = this, t = this.options, n = t.cy, r = t.eles, i = [], a = [], l = void 0, u = [];
3039
3049
  t.fixedNodeConstraint && (!Array.isArray(t.fixedNodeConstraint) || t.fixedNodeConstraint.length == 0) && (t.fixedNodeConstraint = void 0), t.alignmentConstraint && (t.alignmentConstraint.vertical && (!Array.isArray(t.alignmentConstraint.vertical) || t.alignmentConstraint.vertical.length == 0) && (t.alignmentConstraint.vertical = void 0), t.alignmentConstraint.horizontal && (!Array.isArray(t.alignmentConstraint.horizontal) || t.alignmentConstraint.horizontal.length == 0) && (t.alignmentConstraint.horizontal = void 0)), t.relativePlacementConstraint && (!Array.isArray(t.relativePlacementConstraint) || t.relativePlacementConstraint.length == 0) && (t.relativePlacementConstraint = void 0), (t.fixedNodeConstraint || t.alignmentConstraint || t.relativePlacementConstraint) && (t.tile = !1, t.packComponents = !1);
3040
3050
  var d = void 0, f = !1;
3041
- if (n.layoutUtilities && t.packComponents && (d = n.layoutUtilities("get"), d ||= n.layoutUtilities(), f = !0), r.nodes().length > 0) if (f) {
3042
- var p = o.getTopMostNodes(t.eles.nodes());
3043
- if (l = o.connectComponents(n, t.eles, p), l.forEach(function(e) {
3044
- var t = e.boundingBox();
3045
- u.push({
3046
- x: t.x1 + t.w / 2,
3047
- y: t.y1 + t.h / 2
3048
- });
3049
- }), t.randomize && l.forEach(function(e) {
3050
- t.eles = e, i.push(s(t));
3051
- }), t.quality == "default" || t.quality == "proof") {
3052
- var m = n.collection();
3053
- if (t.tile) {
3054
- var h = /* @__PURE__ */ new Map(), g = [], _ = [], v = 0, y = {
3055
- nodeIndexes: h,
3056
- xCoords: g,
3057
- yCoords: _
3058
- }, b = [];
3059
- if (l.forEach(function(e, t) {
3060
- e.edges().length == 0 && (e.nodes().forEach(function(t, n) {
3061
- m.merge(e.nodes()[n]), t.isParent() || (y.nodeIndexes.set(e.nodes()[n].id(), v++), y.xCoords.push(e.nodes()[0].position().x), y.yCoords.push(e.nodes()[0].position().y));
3062
- }), b.push(t));
3063
- }), m.length > 1) {
3064
- var x = m.boundingBox();
3065
- u.push({
3066
- x: x.x1 + x.w / 2,
3067
- y: x.y1 + x.h / 2
3068
- }), l.push(m), i.push(y);
3069
- for (var S = b.length - 1; S >= 0; S--) l.splice(b[S], 1), i.splice(b[S], 1), u.splice(b[S], 1);
3051
+ if (n.layoutUtilities && t.packComponents && (d = n.layoutUtilities("get"), d ||= n.layoutUtilities(), f = !0), r.nodes().length > 0) {
3052
+ if (f) {
3053
+ var p = o.getTopMostNodes(t.eles.nodes());
3054
+ if (l = o.connectComponents(n, t.eles, p), l.forEach(function(e) {
3055
+ var t = e.boundingBox();
3056
+ u.push({
3057
+ x: t.x1 + t.w / 2,
3058
+ y: t.y1 + t.h / 2
3059
+ });
3060
+ }), t.randomize && l.forEach(function(e) {
3061
+ t.eles = e, i.push(s(t));
3062
+ }), t.quality == "default" || t.quality == "proof") {
3063
+ var m = n.collection();
3064
+ if (t.tile) {
3065
+ var h = /* @__PURE__ */ new Map(), g = [], _ = [], v = 0, y = {
3066
+ nodeIndexes: h,
3067
+ xCoords: g,
3068
+ yCoords: _
3069
+ }, b = [];
3070
+ if (l.forEach(function(e, t) {
3071
+ e.edges().length == 0 && (e.nodes().forEach(function(t, n) {
3072
+ m.merge(e.nodes()[n]), t.isParent() || (y.nodeIndexes.set(e.nodes()[n].id(), v++), y.xCoords.push(e.nodes()[0].position().x), y.yCoords.push(e.nodes()[0].position().y));
3073
+ }), b.push(t));
3074
+ }), m.length > 1) {
3075
+ var x = m.boundingBox();
3076
+ u.push({
3077
+ x: x.x1 + x.w / 2,
3078
+ y: x.y1 + x.h / 2
3079
+ }), l.push(m), i.push(y);
3080
+ for (var S = b.length - 1; S >= 0; S--) l.splice(b[S], 1), i.splice(b[S], 1), u.splice(b[S], 1);
3081
+ }
3070
3082
  }
3071
- }
3072
- l.forEach(function(e, n) {
3073
- t.eles = e, a.push(c(t, i[n])), o.relocateComponent(u[n], a[n], t);
3074
- });
3075
- } else l.forEach(function(e, n) {
3076
- o.relocateComponent(u[n], i[n], t);
3077
- });
3078
- var C = /* @__PURE__ */ new Set();
3079
- if (l.length > 1) {
3080
- var w = [], T = r.filter(function(e) {
3081
- return e.css("display") == "none";
3083
+ l.forEach(function(e, n) {
3084
+ t.eles = e, a.push(c(t, i[n])), o.relocateComponent(u[n], a[n], t);
3085
+ });
3086
+ } else l.forEach(function(e, n) {
3087
+ o.relocateComponent(u[n], i[n], t);
3082
3088
  });
3083
- l.forEach(function(e, n) {
3084
- var r = void 0;
3085
- if (t.quality == "draft" && (r = i[n].nodeIndexes), e.nodes().not(T).length > 0) {
3086
- var s = {};
3087
- s.edges = [], s.nodes = [];
3088
- var c = void 0;
3089
- e.nodes().not(T).forEach(function(e) {
3090
- if (t.quality == "draft") if (!e.isParent()) c = r.get(e.id()), s.nodes.push({
3091
- x: i[n].xCoords[c] - e.boundingbox().w / 2,
3092
- y: i[n].yCoords[c] - e.boundingbox().h / 2,
3093
- width: e.boundingbox().w,
3094
- height: e.boundingbox().h
3095
- });
3096
- else {
3097
- var l = o.calcBoundingBox(e, i[n].xCoords, i[n].yCoords, r);
3098
- s.nodes.push({
3099
- x: l.topLeftX,
3100
- y: l.topLeftY,
3101
- width: l.width,
3102
- height: l.height
3103
- });
3104
- }
3105
- else a[n][e.id()] && s.nodes.push({
3106
- x: a[n][e.id()].getLeft(),
3107
- y: a[n][e.id()].getTop(),
3108
- width: a[n][e.id()].getWidth(),
3109
- height: a[n][e.id()].getHeight()
3110
- });
3111
- }), e.edges().forEach(function(e) {
3112
- var c = e.source(), l = e.target();
3113
- if (c.css("display") != "none" && l.css("display") != "none") if (t.quality == "draft") {
3114
- var u = r.get(c.id()), d = r.get(l.id()), f = [], p = [];
3115
- if (c.isParent()) {
3116
- var m = o.calcBoundingBox(c, i[n].xCoords, i[n].yCoords, r);
3117
- f.push(m.topLeftX + m.width / 2), f.push(m.topLeftY + m.height / 2);
3118
- } else f.push(i[n].xCoords[u]), f.push(i[n].yCoords[u]);
3119
- if (l.isParent()) {
3120
- var h = o.calcBoundingBox(l, i[n].xCoords, i[n].yCoords, r);
3121
- p.push(h.topLeftX + h.width / 2), p.push(h.topLeftY + h.height / 2);
3122
- } else p.push(i[n].xCoords[d]), p.push(i[n].yCoords[d]);
3123
- s.edges.push({
3124
- startX: f[0],
3125
- startY: f[1],
3126
- endX: p[0],
3127
- endY: p[1]
3089
+ var C = /* @__PURE__ */ new Set();
3090
+ if (l.length > 1) {
3091
+ var w = [], T = r.filter(function(e) {
3092
+ return e.css("display") == "none";
3093
+ });
3094
+ l.forEach(function(e, n) {
3095
+ var r = void 0;
3096
+ if (t.quality == "draft" && (r = i[n].nodeIndexes), e.nodes().not(T).length > 0) {
3097
+ var s = {};
3098
+ s.edges = [], s.nodes = [];
3099
+ var c = void 0;
3100
+ e.nodes().not(T).forEach(function(e) {
3101
+ if (t.quality == "draft") {
3102
+ if (!e.isParent()) c = r.get(e.id()), s.nodes.push({
3103
+ x: i[n].xCoords[c] - e.boundingbox().w / 2,
3104
+ y: i[n].yCoords[c] - e.boundingbox().h / 2,
3105
+ width: e.boundingbox().w,
3106
+ height: e.boundingbox().h
3107
+ });
3108
+ else {
3109
+ var l = o.calcBoundingBox(e, i[n].xCoords, i[n].yCoords, r);
3110
+ s.nodes.push({
3111
+ x: l.topLeftX,
3112
+ y: l.topLeftY,
3113
+ width: l.width,
3114
+ height: l.height
3115
+ });
3116
+ }
3117
+ } else a[n][e.id()] && s.nodes.push({
3118
+ x: a[n][e.id()].getLeft(),
3119
+ y: a[n][e.id()].getTop(),
3120
+ width: a[n][e.id()].getWidth(),
3121
+ height: a[n][e.id()].getHeight()
3128
3122
  });
3129
- } else a[n][c.id()] && a[n][l.id()] && s.edges.push({
3130
- startX: a[n][c.id()].getCenterX(),
3131
- startY: a[n][c.id()].getCenterY(),
3132
- endX: a[n][l.id()].getCenterX(),
3133
- endY: a[n][l.id()].getCenterY()
3134
- });
3135
- }), s.nodes.length > 0 && (w.push(s), C.add(n));
3136
- }
3137
- });
3138
- var E = d.packComponents(w, t.randomize).shifts;
3139
- if (t.quality == "draft") i.forEach(function(e, t) {
3140
- var n = e.xCoords.map(function(e) {
3141
- return e + E[t].dx;
3142
- }), r = e.yCoords.map(function(e) {
3143
- return e + E[t].dy;
3123
+ }), e.edges().forEach(function(e) {
3124
+ var c = e.source(), l = e.target();
3125
+ if (c.css("display") != "none" && l.css("display") != "none") {
3126
+ if (t.quality == "draft") {
3127
+ var u = r.get(c.id()), d = r.get(l.id()), f = [], p = [];
3128
+ if (c.isParent()) {
3129
+ var m = o.calcBoundingBox(c, i[n].xCoords, i[n].yCoords, r);
3130
+ f.push(m.topLeftX + m.width / 2), f.push(m.topLeftY + m.height / 2);
3131
+ } else f.push(i[n].xCoords[u]), f.push(i[n].yCoords[u]);
3132
+ if (l.isParent()) {
3133
+ var h = o.calcBoundingBox(l, i[n].xCoords, i[n].yCoords, r);
3134
+ p.push(h.topLeftX + h.width / 2), p.push(h.topLeftY + h.height / 2);
3135
+ } else p.push(i[n].xCoords[d]), p.push(i[n].yCoords[d]);
3136
+ s.edges.push({
3137
+ startX: f[0],
3138
+ startY: f[1],
3139
+ endX: p[0],
3140
+ endY: p[1]
3141
+ });
3142
+ } else a[n][c.id()] && a[n][l.id()] && s.edges.push({
3143
+ startX: a[n][c.id()].getCenterX(),
3144
+ startY: a[n][c.id()].getCenterY(),
3145
+ endX: a[n][l.id()].getCenterX(),
3146
+ endY: a[n][l.id()].getCenterY()
3147
+ });
3148
+ }
3149
+ }), s.nodes.length > 0 && (w.push(s), C.add(n));
3150
+ }
3144
3151
  });
3145
- e.xCoords = n, e.yCoords = r;
3146
- });
3147
- else {
3148
- var D = 0;
3149
- C.forEach(function(e) {
3150
- Object.keys(a[e]).forEach(function(t) {
3151
- var n = a[e][t];
3152
- n.setCenter(n.getCenterX() + E[D].dx, n.getCenterY() + E[D].dy);
3153
- }), D++;
3152
+ var E = d.packComponents(w, t.randomize).shifts;
3153
+ if (t.quality == "draft") i.forEach(function(e, t) {
3154
+ var n = e.xCoords.map(function(e) {
3155
+ return e + E[t].dx;
3156
+ }), r = e.yCoords.map(function(e) {
3157
+ return e + E[t].dy;
3158
+ });
3159
+ e.xCoords = n, e.yCoords = r;
3154
3160
  });
3161
+ else {
3162
+ var D = 0;
3163
+ C.forEach(function(e) {
3164
+ Object.keys(a[e]).forEach(function(t) {
3165
+ var n = a[e][t];
3166
+ n.setCenter(n.getCenterX() + E[D].dx, n.getCenterY() + E[D].dy);
3167
+ }), D++;
3168
+ });
3169
+ }
3155
3170
  }
3171
+ } else {
3172
+ var O = t.eles.boundingBox();
3173
+ if (u.push({
3174
+ x: O.x1 + O.w / 2,
3175
+ y: O.y1 + O.h / 2
3176
+ }), t.randomize) {
3177
+ var k = s(t);
3178
+ i.push(k);
3179
+ }
3180
+ t.quality == "default" || t.quality == "proof" ? (a.push(c(t, i[0])), o.relocateComponent(u[0], a[0], t)) : o.relocateComponent(u[0], i[0], t);
3156
3181
  }
3157
- } else {
3158
- var O = t.eles.boundingBox();
3159
- if (u.push({
3160
- x: O.x1 + O.w / 2,
3161
- y: O.y1 + O.h / 2
3162
- }), t.randomize) {
3163
- var k = s(t);
3164
- i.push(k);
3165
- }
3166
- t.quality == "default" || t.quality == "proof" ? (a.push(c(t, i[0])), o.relocateComponent(u[0], a[0], t)) : o.relocateComponent(u[0], i[0], t);
3167
3182
  }
3168
3183
  var A = function(e, n) {
3169
3184
  if (t.quality == "default" || t.quality == "proof") {
@@ -3181,22 +3196,21 @@ var D = /* @__PURE__ */ t(((e, t) => {
3181
3196
  x: r.x,
3182
3197
  y: r.y
3183
3198
  };
3184
- } else {
3185
- var c = void 0;
3186
- return i.forEach(function(t) {
3187
- var n = t.nodeIndexes.get(e.id());
3188
- n != null && (c = {
3189
- x: t.xCoords[n],
3190
- y: t.yCoords[n]
3191
- });
3192
- }), c ??= {
3193
- x: e.position("x"),
3194
- y: e.position("y")
3195
- }, {
3196
- x: c.x,
3197
- y: c.y
3198
- };
3199
3199
  }
3200
+ var c = void 0;
3201
+ return i.forEach(function(t) {
3202
+ var n = t.nodeIndexes.get(e.id());
3203
+ n != null && (c = {
3204
+ x: t.xCoords[n],
3205
+ y: t.yCoords[n]
3206
+ });
3207
+ }), c ??= {
3208
+ x: e.position("x"),
3209
+ y: e.position("y")
3210
+ }, {
3211
+ x: c.x,
3212
+ y: c.y
3213
+ };
3200
3214
  };
3201
3215
  if (t.quality == "default" || t.quality == "proof" || t.randomize) {
3202
3216
  var j = o.calcParentsWithoutChildren(n, r), M = r.filter(function(e) {
@@ -3342,18 +3356,17 @@ var D = /* @__PURE__ */ t(((e, t) => {
3342
3356
  xCoords: f,
3343
3357
  yCoords: p
3344
3358
  }), U;
3345
- } else {
3346
- var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3347
- if (f.push(q.x), p.push(q.y), y == 2) {
3348
- var J = t.getElementById(ie.next().value).outerWidth();
3349
- f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3350
- }
3351
- return U = {
3352
- nodeIndexes: l,
3353
- xCoords: f,
3354
- yCoords: p
3355
- }, U;
3356
3359
  }
3360
+ var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3361
+ if (f.push(q.x), p.push(q.y), y == 2) {
3362
+ var J = t.getElementById(ie.next().value).outerWidth();
3363
+ f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3364
+ }
3365
+ return U = {
3366
+ nodeIndexes: l,
3367
+ xCoords: f,
3368
+ yCoords: p
3369
+ }, U;
3357
3370
  } };
3358
3371
  }),
3359
3372
  579: ((e, t, n) => {
@@ -3607,7 +3620,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
3607
3620
  return this.getConfig()[e];
3608
3621
  }
3609
3622
  }, K = /* @__PURE__ */ r((e, t) => {
3610
- x(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3623
+ b(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3611
3624
  ...e,
3612
3625
  type: "service"
3613
3626
  })), e.junctions.map((e) => t.addJunction({
@@ -3683,28 +3696,28 @@ var Y = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #
3683
3696
  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;\"/>") },
3684
3697
  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;\"/>") },
3685
3698
  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;\"/>") },
3686
- unknown: S,
3699
+ unknown: x,
3687
3700
  blank: { body: Y("") }
3688
3701
  }
3689
3702
  }, oe = /* @__PURE__ */ r(async function(e, t, n, r) {
3690
3703
  let i = n.getConfigField("padding"), a = n.getConfigField("iconSize"), o = a / 2, s = a / 6, c = s / 2;
3691
3704
  await Promise.all(t.edges().map(async (t) => {
3692
- let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: m, targetGroup: g, label: _ } = U(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: S } = t[0].midpoint(), { x: C, y: w } = t[0].targetEndpoint(), E = i + 4;
3693
- if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(p) ? C += p === "L" ? -E : E : w += 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) ? C += p === "L" ? o : -o : w += p === "T" ? o : -o), t[0]._private.rscratch) {
3705
+ let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: m, targetGroup: g, label: _ } = U(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: S } = t[0].midpoint(), { x: C, y: T } = t[0].targetEndpoint(), E = i + 4;
3706
+ if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(p) ? C += 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) ? C += p === "L" ? o : -o : T += p === "T" ? o : -o), t[0]._private.rscratch) {
3694
3707
  let t = e.insert("g");
3695
- if (t.insert("path").attr("d", `M ${y},${b} L ${x},${S} L${C},${w} `).attr("class", "edge").attr("id", `${r}-${v(a, f, { prefix: "L" })}`), u) {
3708
+ if (t.insert("path").attr("d", `M ${y},${b} L ${x},${S} L${C},${T} `).attr("class", "edge").attr("id", `${r}-${v(a, f, { prefix: "L" })}`), u) {
3696
3709
  let e = F(l) ? M[l](y, s) : y - c, n = I(l) ? M[l](b, s) : b - c;
3697
3710
  t.insert("polygon").attr("points", j[l](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3698
3711
  }
3699
3712
  if (m) {
3700
- let e = F(p) ? M[p](C, s) : C - c, n = I(p) ? M[p](w, s) : w - c;
3713
+ let e = F(p) ? M[p](C, s) : C - c, n = I(p) ? M[p](T, s) : T - c;
3701
3714
  t.insert("polygon").attr("points", j[p](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3702
3715
  }
3703
3716
  if (_) {
3704
3717
  let e = L(l, p) ? "XY" : F(l) ? "X" : "Y", n = 0;
3705
- n = e === "X" ? Math.abs(y - C) : e === "Y" ? Math.abs(b - w) / 1.5 : Math.abs(y - C) / 2;
3718
+ n = e === "X" ? Math.abs(y - C) : e === "Y" ? Math.abs(b - T) / 1.5 : Math.abs(y - C) / 2;
3706
3719
  let r = t.append("g");
3707
- if (await T(r, _, {
3720
+ if (await w(r, _, {
3708
3721
  useHtmlLabels: !1,
3709
3722
  width: n,
3710
3723
  classes: "architecture-service-label"
@@ -3736,7 +3749,7 @@ var Y = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #
3736
3749
  let p = e.append("g"), m = u, g = d;
3737
3750
  if (s.icon) {
3738
3751
  let e = p.append("g");
3739
- e.html(`<g>${await w(s.icon, {
3752
+ e.html(`<g>${await C(s.icon, {
3740
3753
  height: i,
3741
3754
  width: i,
3742
3755
  fallbackPrefix: X.prefix
@@ -3744,7 +3757,7 @@ var Y = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #
3744
3757
  }
3745
3758
  if (s.label) {
3746
3759
  let e = p.append("g");
3747
- await T(e, s.label, {
3760
+ await w(e, s.label, {
3748
3761
  useHtmlLabels: !1,
3749
3762
  width: l,
3750
3763
  classes: "architecture-service-label"
@@ -3759,20 +3772,20 @@ var Y = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #
3759
3772
  let n = t.append("g"), o = e.getConfigField("iconSize");
3760
3773
  if (a.title) {
3761
3774
  let e = n.append("g");
3762
- await T(e, a.title, {
3775
+ await w(e, a.title, {
3763
3776
  useHtmlLabels: !1,
3764
3777
  width: o * 1.5,
3765
3778
  classes: "architecture-service-label"
3766
3779
  }, i), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + o / 2 + ", " + o + ")");
3767
3780
  }
3768
3781
  let s = n.append("g");
3769
- if (a.icon) s.html(`<g>${await w(a.icon, {
3782
+ if (a.icon) s.html(`<g>${await C(a.icon, {
3770
3783
  height: o,
3771
3784
  width: o,
3772
3785
  fallbackPrefix: X.prefix
3773
3786
  })}</g>`);
3774
3787
  else if (a.iconText) {
3775
- s.html(`<g>${await w("blank", {
3788
+ s.html(`<g>${await C("blank", {
3776
3789
  height: o,
3777
3790
  width: o,
3778
3791
  fallbackPrefix: X.prefix
@@ -3793,10 +3806,10 @@ var Y = /* @__PURE__ */ r((e) => `<g><rect width="80" height="80" style="fill: #
3793
3806
  i.width = o, i.height = s, e.setElementForId(n.id, i);
3794
3807
  });
3795
3808
  }, "drawJunctions");
3796
- C([{
3809
+ S([{
3797
3810
  name: X.prefix,
3798
3811
  icons: X
3799
- }]), E.use(k.default);
3812
+ }]), T.use(k.default);
3800
3813
  function le(e, t, n) {
3801
3814
  e.forEach((e) => {
3802
3815
  t.add({
@@ -3984,7 +3997,7 @@ function he(e, t, n = []) {
3984
3997
  r(he, "getRelativeConstraints");
3985
3998
  function ge(e, t, n, o, s, { spatialMaps: c, groupAlignments: l }) {
3986
3999
  return new Promise((u) => {
3987
- let d = a("body").append("div").attr("id", "cy").attr("style", "display:none"), f = E({
4000
+ let d = a("body").append("div").attr("id", "cy").attr("style", "display:none"), f = T({
3988
4001
  container: document.getElementById("cy"),
3989
4002
  style: [
3990
4003
  {
@@ -4084,18 +4097,14 @@ function ge(e, t, n, o, s, { spatialMaps: c, groupAlignments: l }) {
4084
4097
  case d >= 0:
4085
4098
  d = 1;
4086
4099
  break;
4087
- case d < 0:
4088
- d = -1;
4089
- break;
4100
+ case d < 0: d = -1;
4090
4101
  }
4091
4102
  let f = (c - o) * (n - o) + (l - s) * (r - s);
4092
4103
  switch (!0) {
4093
4104
  case f >= 0:
4094
4105
  f = 1;
4095
4106
  break;
4096
- case f < 0:
4097
- f = -1;
4098
- break;
4107
+ case f < 0: f = -1;
4099
4108
  }
4100
4109
  return a = Math.abs(a) * d, i *= f, {
4101
4110
  distances: a,
@@ -4131,7 +4140,7 @@ var _e = {
4131
4140
  renderer: { draw: /* @__PURE__ */ r(async (e, t, n, r) => {
4132
4141
  let i = r.db;
4133
4142
  i.setDiagramId(t);
4134
- let a = i.getServices(), o = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = b(t), f = d.append("g");
4143
+ let a = i.getServices(), o = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = E(t), f = d.append("g");
4135
4144
  f.attr("class", "architecture-edges");
4136
4145
  let p = d.append("g");
4137
4146
  p.attr("class", "architecture-services");