@pi-outpost/embed 0.32.3 → 0.33.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 (234) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
  2. package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
  3. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
  4. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
  6. package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
  7. package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
  8. package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
  9. package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
  10. package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
  11. package/dist/channel-BjC1TKrU.cjs +1 -0
  12. package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
  13. package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
  14. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
  15. package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
  16. package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
  17. package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
  18. package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
  19. package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
  20. package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
  21. package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
  22. package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
  23. package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
  24. package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
  25. package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
  26. package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
  27. package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
  28. package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
  29. package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
  30. package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
  31. package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
  32. package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
  33. package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
  34. package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
  35. package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
  36. package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
  37. package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
  38. package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
  39. package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
  40. package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
  41. package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
  42. package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
  43. package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
  44. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
  45. package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
  46. package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
  47. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
  48. package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
  49. package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
  50. package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
  51. package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BeO-f3PY.cjs} +1 -1
  52. package/dist/{conversationExport-QWEGKkKB.js → conversationExport-DZ2Xi8Lb.js} +2 -2
  53. package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-CT_-smUm.js} +9099 -6555
  54. package/dist/conversationHistory-CZD9jO6h.cjs +287 -0
  55. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
  56. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
  57. package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
  58. package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
  59. package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
  60. package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
  61. package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
  62. package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
  63. package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
  64. package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
  65. package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
  66. package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
  67. package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
  68. package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
  69. package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
  70. package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
  71. package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
  72. package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
  73. package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
  74. package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
  75. package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
  76. package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
  77. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
  78. package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
  79. package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
  80. package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
  81. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
  82. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
  83. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
  84. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
  85. package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
  86. package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
  87. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
  88. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
  89. package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
  90. package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
  91. package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
  92. package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
  93. package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
  94. package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
  95. package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
  96. package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
  97. package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
  98. package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
  99. package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
  100. package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
  101. package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
  102. package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
  103. package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
  104. package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
  105. package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
  106. package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
  107. package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
  108. package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
  109. package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
  110. package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
  111. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
  112. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
  113. package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
  114. package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
  115. package/dist/pi-outpost-embed.cjs +9 -10
  116. package/dist/pi-outpost-embed.js +2833 -2786
  117. package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
  118. package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
  119. package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
  120. package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
  121. package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
  122. package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
  123. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
  124. package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
  125. package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
  126. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
  127. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
  128. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
  129. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
  130. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
  131. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
  132. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
  133. package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
  134. package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
  135. package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
  136. package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
  137. package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
  138. package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
  139. package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
  140. package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
  141. package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
  142. package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
  143. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
  144. package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
  145. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
  146. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
  147. package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
  148. package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
  149. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
  150. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
  151. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
  152. package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
  153. package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
  154. package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
  155. package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
  156. package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
  157. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
  158. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
  159. package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
  160. package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
  161. package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
  162. package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
  163. package/package.json +2 -2
  164. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
  165. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
  166. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
  167. package/dist/channel-DcrLLvcO.cjs +0 -1
  168. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
  169. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
  170. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
  171. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
  172. package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
  173. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
  174. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
  175. package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
  176. package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
  177. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
  178. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
  179. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
  180. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
  181. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
  182. package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
  183. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
  184. package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
  185. package/dist/conversationHistory-BmpdU77I.cjs +0 -286
  186. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
  187. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
  188. package/dist/dagre-BMKbPnPh.js +0 -1934
  189. package/dist/dagre-EEW2OxRU.cjs +0 -1
  190. package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
  191. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
  192. package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
  193. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
  194. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
  195. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
  196. package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
  197. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
  198. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
  199. package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
  200. package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
  201. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
  202. package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
  203. package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
  204. package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
  205. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
  206. package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
  207. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
  208. package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
  209. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
  210. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
  211. package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
  212. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
  213. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
  214. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
  215. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
  216. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
  217. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
  218. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
  219. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
  220. package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
  221. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
  222. package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
  223. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
  224. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
  225. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
  226. package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
  227. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
  228. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
  229. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
  230. package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
  231. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
  232. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
  233. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
  234. package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
@@ -0,0 +1,2356 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as t } from "./src-Dkp7vqs8.js";
3
+ import { b as n } from "./chunk-VPRB5NB3-DJh7spRO.js";
4
+ import "./chunk-3YJQHVM4-BNbfg-7y.js";
5
+ import "./chunk-HJ2JQQFS-CgYTXthn.js";
6
+ import "./chunk-E2ZNV5FY-Bu796yUY.js";
7
+ import "./chunk-4EA7E6EY-B5P7n2an.js";
8
+ import { c as r } from "./chunk-XC4XBNZT-CSiWBPH9.js";
9
+ import { a as i, i as a, n as o } from "./chunk-DBDB3WZW-DpEOsLsQ.js";
10
+ import { a as s, i as c, l } from "./chunk-2BW5OAIV-DWtmlmt_.js";
11
+ import { $ as u, A as d, B as f, C as p, D as m, E as h, F as g, G as ee, H as _, I as te, J as ne, K as re, L as ie, M as ae, N as oe, O as se, P as v, Q as y, R as ce, S as le, T as ue, U as de, V as fe, W as pe, X as me, Y as he, Z as b, _ as x, a as S, b as ge, c as _e, d as ve, et as ye, f as C, g as be, h as xe, i as w, it as Se, j as Ce, k as we, l as Te, m as Ee, n as T, nt as De, o as E, p as Oe, q as ke, r as D, rt as Ae, s as je, t as O, tt as k, u as Me, v as Ne, w as Pe, x as Fe, y as Ie, z as A } from "./graphlib-CQa_B3rm.js";
12
+ import { r as Le } from "./chunk-NTY3LDVX-CvRtOCpm.js";
13
+ import { c as Re, i as ze, n as j, o as Be, r as Ve, s as He, t as Ue } from "./chunk-FVRAUYC3-tiT7dtx-.js";
14
+ //#region ../node_modules/lodash-es/_trimmedEndIndex.js
15
+ var We = /\s/;
16
+ function Ge(e) {
17
+ for (var t = e.length; t-- && We.test(e.charAt(t)););
18
+ return t;
19
+ }
20
+ //#endregion
21
+ //#region ../node_modules/lodash-es/_baseTrim.js
22
+ var Ke = /^\s+/;
23
+ function qe(e) {
24
+ return e && e.slice(0, Ge(e) + 1).replace(Ke, "");
25
+ }
26
+ //#endregion
27
+ //#region ../node_modules/lodash-es/toNumber.js
28
+ var Je = NaN, Ye = /^[-+]0x[0-9a-f]+$/i, Xe = /^0b[01]+$/i, Ze = /^0o[0-7]+$/i, Qe = parseInt;
29
+ function $e(e) {
30
+ if (typeof e == "number") return e;
31
+ if (ye(e)) return Je;
32
+ if (b(e)) {
33
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
34
+ e = b(t) ? t + "" : t;
35
+ }
36
+ if (typeof e != "string") return e === 0 ? e : +e;
37
+ e = qe(e);
38
+ var n = Xe.test(e);
39
+ return n || Ze.test(e) ? Qe(e.slice(2), n ? 2 : 8) : Ye.test(e) ? Je : +e;
40
+ }
41
+ //#endregion
42
+ //#region ../node_modules/lodash-es/toFinite.js
43
+ var et = 1 / 0, tt = 17976931348623157e292;
44
+ function M(e) {
45
+ return e ? (e = $e(e), e === et || e === -et ? (e < 0 ? -1 : 1) * tt : e === e ? e : 0) : e === 0 ? e : 0;
46
+ }
47
+ //#endregion
48
+ //#region ../node_modules/lodash-es/toInteger.js
49
+ function nt(e) {
50
+ var t = M(e), n = t % 1;
51
+ return t === t ? n ? t - n : t : 0;
52
+ }
53
+ //#endregion
54
+ //#region ../node_modules/lodash-es/_baseCreate.js
55
+ var rt = Object.create, it = function() {
56
+ function e() {}
57
+ return function(t) {
58
+ if (!b(t)) return {};
59
+ if (rt) return rt(t);
60
+ e.prototype = t;
61
+ var n = new e();
62
+ return e.prototype = void 0, n;
63
+ };
64
+ }();
65
+ //#endregion
66
+ //#region ../node_modules/lodash-es/_copyArray.js
67
+ function at(e, t) {
68
+ var n = -1, r = e.length;
69
+ for (t ||= Array(r); ++n < r;) t[n] = e[n];
70
+ return t;
71
+ }
72
+ //#endregion
73
+ //#region ../node_modules/lodash-es/_baseAssignValue.js
74
+ function N(e, t, n) {
75
+ t == "__proto__" && ke ? ke(e, t, {
76
+ configurable: !0,
77
+ enumerable: !0,
78
+ value: n,
79
+ writable: !0
80
+ }) : e[t] = n;
81
+ }
82
+ //#endregion
83
+ //#region ../node_modules/lodash-es/_assignValue.js
84
+ var ot = Object.prototype.hasOwnProperty;
85
+ function P(e, t, n) {
86
+ var r = e[t];
87
+ (!(ot.call(e, t) && _(r, n)) || n === void 0 && !(t in e)) && N(e, t, n);
88
+ }
89
+ //#endregion
90
+ //#region ../node_modules/lodash-es/_copyObject.js
91
+ function F(e, t, n, r) {
92
+ var i = !n;
93
+ n ||= {};
94
+ for (var a = -1, o = t.length; ++a < o;) {
95
+ var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
96
+ c === void 0 && (c = e[s]), i ? N(n, s, c) : P(n, s, c);
97
+ }
98
+ return n;
99
+ }
100
+ //#endregion
101
+ //#region ../node_modules/lodash-es/_isIterateeCall.js
102
+ function I(e, t, n) {
103
+ if (!b(n)) return !1;
104
+ var r = typeof t;
105
+ return (r == "number" ? A(n) && de(t, n.length) : r == "string" && t in n) ? _(n[t], e) : !1;
106
+ }
107
+ //#endregion
108
+ //#region ../node_modules/lodash-es/_createAssigner.js
109
+ function st(e) {
110
+ return f(function(t, n) {
111
+ var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
112
+ for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && I(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i;) {
113
+ var s = n[r];
114
+ s && e(t, s, r, a);
115
+ }
116
+ return t;
117
+ });
118
+ }
119
+ //#endregion
120
+ //#region ../node_modules/lodash-es/_nativeKeysIn.js
121
+ function ct(e) {
122
+ var t = [];
123
+ if (e != null) for (var n in Object(e)) t.push(n);
124
+ return t;
125
+ }
126
+ //#endregion
127
+ //#region ../node_modules/lodash-es/_baseKeysIn.js
128
+ var lt = Object.prototype.hasOwnProperty;
129
+ function ut(e) {
130
+ if (!b(e)) return ct(e);
131
+ var t = ce(e), n = [];
132
+ for (var r in e) r == "constructor" && (t || !lt.call(e, r)) || n.push(r);
133
+ return n;
134
+ }
135
+ //#endregion
136
+ //#region ../node_modules/lodash-es/keysIn.js
137
+ function L(e) {
138
+ return A(e) ? ae(e, !0) : ut(e);
139
+ }
140
+ //#endregion
141
+ //#region ../node_modules/lodash-es/flatten.js
142
+ function R(e) {
143
+ return e != null && e.length ? p(e, 1) : [];
144
+ }
145
+ //#endregion
146
+ //#region ../node_modules/lodash-es/_flatRest.js
147
+ function dt(e) {
148
+ return re(fe(e, void 0, R), e + "");
149
+ }
150
+ //#endregion
151
+ //#region ../node_modules/lodash-es/_getPrototype.js
152
+ var ft = Ce(Object.getPrototypeOf, Object), pt = "[object Object]", mt = Function.prototype, ht = Object.prototype, gt = mt.toString, _t = ht.hasOwnProperty, vt = gt.call(Object);
153
+ function yt(e) {
154
+ if (!k(e) || De(e) != pt) return !1;
155
+ var t = ft(e);
156
+ if (t === null) return !0;
157
+ var n = _t.call(t, "constructor") && t.constructor;
158
+ return typeof n == "function" && n instanceof n && gt.call(n) == vt;
159
+ }
160
+ //#endregion
161
+ //#region ../node_modules/lodash-es/_hasUnicode.js
162
+ var bt = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
163
+ function xt(e) {
164
+ return bt.test(e);
165
+ }
166
+ //#endregion
167
+ //#region ../node_modules/lodash-es/_baseAssign.js
168
+ function St(e, t) {
169
+ return e && F(t, we(t), e);
170
+ }
171
+ //#endregion
172
+ //#region ../node_modules/lodash-es/_baseAssignIn.js
173
+ function Ct(e, t) {
174
+ return e && F(t, L(t), e);
175
+ }
176
+ //#endregion
177
+ //#region ../node_modules/lodash-es/_cloneBuffer.js
178
+ var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Tt = wt && typeof module == "object" && module && !module.nodeType && module, Et = Tt && Tt.exports === wt ? Se.Buffer : void 0, Dt = Et ? Et.allocUnsafe : void 0;
179
+ function Ot(e, t) {
180
+ if (t) return e.slice();
181
+ var n = e.length, r = Dt ? Dt(n) : new e.constructor(n);
182
+ return e.copy(r), r;
183
+ }
184
+ //#endregion
185
+ //#region ../node_modules/lodash-es/_copySymbols.js
186
+ function kt(e, t) {
187
+ return F(e, ge(e), t);
188
+ }
189
+ //#endregion
190
+ //#region ../node_modules/lodash-es/_getSymbolsIn.js
191
+ var At = Object.getOwnPropertySymbols ? function(e) {
192
+ for (var t = []; e;) Pe(t, ge(e)), e = ft(e);
193
+ return t;
194
+ } : Fe;
195
+ //#endregion
196
+ //#region ../node_modules/lodash-es/_copySymbolsIn.js
197
+ function jt(e, t) {
198
+ return F(e, At(e), t);
199
+ }
200
+ //#endregion
201
+ //#region ../node_modules/lodash-es/_getAllKeysIn.js
202
+ function Mt(e) {
203
+ return Ie(e, L, At);
204
+ }
205
+ //#endregion
206
+ //#region ../node_modules/lodash-es/_initCloneArray.js
207
+ var Nt = Object.prototype.hasOwnProperty;
208
+ function Pt(e) {
209
+ var t = e.length, n = new e.constructor(t);
210
+ return t && typeof e[0] == "string" && Nt.call(e, "index") && (n.index = e.index, n.input = e.input), n;
211
+ }
212
+ //#endregion
213
+ //#region ../node_modules/lodash-es/_cloneArrayBuffer.js
214
+ function Ft(e) {
215
+ var t = new e.constructor(e.byteLength);
216
+ return new be(t).set(new be(e)), t;
217
+ }
218
+ //#endregion
219
+ //#region ../node_modules/lodash-es/_cloneDataView.js
220
+ function It(e, t) {
221
+ var n = t ? Ft(e.buffer) : e.buffer;
222
+ return new e.constructor(n, e.byteOffset, e.byteLength);
223
+ }
224
+ //#endregion
225
+ //#region ../node_modules/lodash-es/_cloneRegExp.js
226
+ var Lt = /\w*$/;
227
+ function Rt(e) {
228
+ var t = new e.constructor(e.source, Lt.exec(e));
229
+ return t.lastIndex = e.lastIndex, t;
230
+ }
231
+ //#endregion
232
+ //#region ../node_modules/lodash-es/_cloneSymbol.js
233
+ var zt = Ae ? Ae.prototype : void 0, Bt = zt ? zt.valueOf : void 0;
234
+ function Vt(e) {
235
+ return Bt ? Object(Bt.call(e)) : {};
236
+ }
237
+ //#endregion
238
+ //#region ../node_modules/lodash-es/_cloneTypedArray.js
239
+ function Ht(e, t) {
240
+ var n = t ? Ft(e.buffer) : e.buffer;
241
+ return new e.constructor(n, e.byteOffset, e.length);
242
+ }
243
+ //#endregion
244
+ //#region ../node_modules/lodash-es/_initCloneByTag.js
245
+ var Ut = "[object Boolean]", Wt = "[object Date]", Gt = "[object Map]", Kt = "[object Number]", qt = "[object RegExp]", Jt = "[object Set]", Yt = "[object String]", Xt = "[object Symbol]", Zt = "[object ArrayBuffer]", Qt = "[object DataView]", $t = "[object Float32Array]", en = "[object Float64Array]", tn = "[object Int8Array]", nn = "[object Int16Array]", rn = "[object Int32Array]", an = "[object Uint8Array]", on = "[object Uint8ClampedArray]", sn = "[object Uint16Array]", cn = "[object Uint32Array]";
246
+ function ln(e, t, n) {
247
+ var r = e.constructor;
248
+ switch (t) {
249
+ case Zt: return Ft(e);
250
+ case Ut:
251
+ case Wt: return new r(+e);
252
+ case Qt: return It(e, n);
253
+ case $t:
254
+ case en:
255
+ case tn:
256
+ case nn:
257
+ case rn:
258
+ case an:
259
+ case on:
260
+ case sn:
261
+ case cn: return Ht(e, n);
262
+ case Gt: return new r();
263
+ case Kt:
264
+ case Yt: return new r(e);
265
+ case qt: return Rt(e);
266
+ case Jt: return new r();
267
+ case Xt: return Vt(e);
268
+ }
269
+ }
270
+ //#endregion
271
+ //#region ../node_modules/lodash-es/_initCloneObject.js
272
+ function un(e) {
273
+ return typeof e.constructor == "function" && !ce(e) ? it(ft(e)) : {};
274
+ }
275
+ //#endregion
276
+ //#region ../node_modules/lodash-es/_baseIsMap.js
277
+ var dn = "[object Map]";
278
+ function fn(e) {
279
+ return k(e) && x(e) == dn;
280
+ }
281
+ //#endregion
282
+ //#region ../node_modules/lodash-es/isMap.js
283
+ var pn = v && v.isMap, mn = pn ? g(pn) : fn, hn = "[object Set]";
284
+ function gn(e) {
285
+ return k(e) && x(e) == hn;
286
+ }
287
+ //#endregion
288
+ //#region ../node_modules/lodash-es/isSet.js
289
+ var _n = v && v.isSet, vn = _n ? g(_n) : gn, yn = 1, bn = 2, xn = 4, Sn = "[object Arguments]", Cn = "[object Array]", wn = "[object Boolean]", Tn = "[object Date]", En = "[object Error]", Dn = "[object Function]", On = "[object GeneratorFunction]", kn = "[object Map]", An = "[object Number]", jn = "[object Object]", Mn = "[object RegExp]", Nn = "[object Set]", Pn = "[object String]", Fn = "[object Symbol]", In = "[object WeakMap]", Ln = "[object ArrayBuffer]", Rn = "[object DataView]", zn = "[object Float32Array]", Bn = "[object Float64Array]", Vn = "[object Int8Array]", Hn = "[object Int16Array]", Un = "[object Int32Array]", Wn = "[object Uint8Array]", Gn = "[object Uint8ClampedArray]", Kn = "[object Uint16Array]", qn = "[object Uint32Array]", z = {};
290
+ z[Sn] = z[Cn] = z[Ln] = z[Rn] = z[wn] = z[Tn] = z[zn] = z[Bn] = z[Vn] = z[Hn] = z[Un] = z[kn] = z[An] = z[jn] = z[Mn] = z[Nn] = z[Pn] = z[Fn] = z[Wn] = z[Gn] = z[Kn] = z[qn] = !0, z[En] = z[Dn] = z[In] = !1;
291
+ function B(e, t, n, r, i, a) {
292
+ var o, s = t & yn, c = t & bn, l = t & xn;
293
+ if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
294
+ if (!b(e)) return e;
295
+ var u = y(e);
296
+ if (u) {
297
+ if (o = Pt(e), !s) return at(e, o);
298
+ } else {
299
+ var d = x(e), f = d == Dn || d == On;
300
+ if (te(e)) return Ot(e, s);
301
+ if (d == jn || d == Sn || f && !i) {
302
+ if (o = c || f ? {} : un(e), !s) return c ? jt(e, Ct(o, e)) : kt(e, St(o, e));
303
+ } else {
304
+ if (!z[d]) return i ? e : {};
305
+ o = ln(e, d, s);
306
+ }
307
+ }
308
+ a ||= new le();
309
+ var p = a.get(e);
310
+ if (p) return p;
311
+ a.set(e, o), vn(e) ? e.forEach(function(r) {
312
+ o.add(B(r, t, n, r, e, a));
313
+ }) : mn(e) && e.forEach(function(r, i) {
314
+ o.set(i, B(r, t, n, i, e, a));
315
+ });
316
+ var m = u ? void 0 : (l ? c ? Mt : Ne : c ? L : we)(e);
317
+ return ee(m || e, function(r, i) {
318
+ m && (i = r, r = e[i]), P(o, i, B(r, t, n, i, e, a));
319
+ }), o;
320
+ }
321
+ //#endregion
322
+ //#region ../node_modules/lodash-es/cloneDeep.js
323
+ var Jn = 1, Yn = 4;
324
+ function Xn(e) {
325
+ return B(e, Jn | Yn);
326
+ }
327
+ //#endregion
328
+ //#region ../node_modules/lodash-es/now.js
329
+ var Zn = function() {
330
+ return Se.Date.now();
331
+ }, Qn = Object.prototype, $n = Qn.hasOwnProperty, er = f(function(e, t) {
332
+ e = Object(e);
333
+ var n = -1, r = t.length, i = r > 2 ? t[2] : void 0;
334
+ for (i && I(t[0], t[1], i) && (r = 1); ++n < r;) for (var a = t[n], o = L(a), s = -1, c = o.length; ++s < c;) {
335
+ var l = o[s], u = e[l];
336
+ (u === void 0 || _(u, Qn[l]) && !$n.call(e, l)) && (e[l] = a[l]);
337
+ }
338
+ return e;
339
+ });
340
+ //#endregion
341
+ //#region ../node_modules/lodash-es/_assignMergeValue.js
342
+ function tr(e, t, n) {
343
+ (n !== void 0 && !_(e[t], n) || n === void 0 && !(t in e)) && N(e, t, n);
344
+ }
345
+ //#endregion
346
+ //#region ../node_modules/lodash-es/_safeGet.js
347
+ function nr(e, t) {
348
+ if ((t !== "constructor" || typeof e[t] != "function") && t != "__proto__") return e[t];
349
+ }
350
+ //#endregion
351
+ //#region ../node_modules/lodash-es/toPlainObject.js
352
+ function rr(e) {
353
+ return F(e, L(e));
354
+ }
355
+ //#endregion
356
+ //#region ../node_modules/lodash-es/_baseMergeDeep.js
357
+ function ir(e, t, n, r, i, a, o) {
358
+ var s = nr(e, n), c = nr(t, n), l = o.get(c);
359
+ if (l) {
360
+ tr(e, n, l);
361
+ return;
362
+ }
363
+ var u = a ? a(s, c, n + "", e, t, o) : void 0, d = u === void 0;
364
+ if (d) {
365
+ var f = y(c), p = !f && te(c), m = !f && !p && oe(c);
366
+ u = c, f || p || m ? y(s) ? u = s : _e(s) ? u = at(s) : p ? (d = !1, u = Ot(c, !0)) : m ? (d = !1, u = Ht(c, !0)) : u = [] : yt(c) || ie(c) ? (u = s, ie(s) ? u = rr(s) : (!b(s) || he(s)) && (u = un(c))) : d = !1;
367
+ }
368
+ d && (o.set(c, u), i(u, c, r, a, o), o.delete(c)), tr(e, n, u);
369
+ }
370
+ //#endregion
371
+ //#region ../node_modules/lodash-es/_baseMerge.js
372
+ function ar(e, t, n, r, i) {
373
+ e !== t && ve(t, function(a, o) {
374
+ if (i ||= new le(), b(a)) ir(e, t, o, n, ar, r, i);
375
+ else {
376
+ var s = r ? r(nr(e, o), a, o + "", e, t, i) : void 0;
377
+ s === void 0 && (s = a), tr(e, o, s);
378
+ }
379
+ }, L);
380
+ }
381
+ //#endregion
382
+ //#region ../node_modules/lodash-es/last.js
383
+ function V(e) {
384
+ var t = e == null ? 0 : e.length;
385
+ return t ? e[t - 1] : void 0;
386
+ }
387
+ //#endregion
388
+ //#region ../node_modules/lodash-es/_createFind.js
389
+ function or(e) {
390
+ return function(t, n, r) {
391
+ var i = Object(t);
392
+ if (!A(t)) {
393
+ var a = C(n, 3);
394
+ t = we(t), n = function(e) {
395
+ return a(i[e], e, i);
396
+ };
397
+ }
398
+ var o = e(t, n, r);
399
+ return o > -1 ? i[a ? t[o] : o] : void 0;
400
+ };
401
+ }
402
+ //#endregion
403
+ //#region ../node_modules/lodash-es/findIndex.js
404
+ var sr = Math.max;
405
+ function cr(e, t, n) {
406
+ var r = e == null ? 0 : e.length;
407
+ if (!r) return -1;
408
+ var i = n == null ? 0 : nt(n);
409
+ return i < 0 && (i = sr(r + i, 0)), pe(e, C(t, 3), i);
410
+ }
411
+ //#endregion
412
+ //#region ../node_modules/lodash-es/find.js
413
+ var lr = or(cr);
414
+ //#endregion
415
+ //#region ../node_modules/lodash-es/_baseMap.js
416
+ function ur(e, t) {
417
+ var n = -1, r = A(e) ? Array(e.length) : [];
418
+ return Te(e, function(e, i, a) {
419
+ r[++n] = t(e, i, a);
420
+ }), r;
421
+ }
422
+ //#endregion
423
+ //#region ../node_modules/lodash-es/map.js
424
+ function H(e, t) {
425
+ return (y(e) ? u : ur)(e, C(t, 3));
426
+ }
427
+ //#endregion
428
+ //#region ../node_modules/lodash-es/forIn.js
429
+ function dr(e, t) {
430
+ return e == null ? e : ve(e, je(t), L);
431
+ }
432
+ //#endregion
433
+ //#region ../node_modules/lodash-es/forOwn.js
434
+ function fr(e, t) {
435
+ return e && Me(e, je(t));
436
+ }
437
+ //#endregion
438
+ //#region ../node_modules/lodash-es/_baseGt.js
439
+ function pr(e, t) {
440
+ return e > t;
441
+ }
442
+ //#endregion
443
+ //#region ../node_modules/lodash-es/_baseHas.js
444
+ var mr = Object.prototype.hasOwnProperty;
445
+ function hr(e, t) {
446
+ return e != null && mr.call(e, t);
447
+ }
448
+ //#endregion
449
+ //#region ../node_modules/lodash-es/has.js
450
+ function gr(e, t) {
451
+ return e != null && xe(e, t, hr);
452
+ }
453
+ //#endregion
454
+ //#region ../node_modules/lodash-es/isString.js
455
+ var _r = "[object String]";
456
+ function vr(e) {
457
+ return typeof e == "string" || !y(e) && k(e) && De(e) == _r;
458
+ }
459
+ //#endregion
460
+ //#region ../node_modules/lodash-es/_baseLt.js
461
+ function yr(e, t) {
462
+ return e < t;
463
+ }
464
+ //#endregion
465
+ //#region ../node_modules/lodash-es/mapValues.js
466
+ function U(e, t) {
467
+ var n = {};
468
+ return t = C(t, 3), Me(e, function(e, r, i) {
469
+ N(n, r, t(e, r, i));
470
+ }), n;
471
+ }
472
+ //#endregion
473
+ //#region ../node_modules/lodash-es/_baseExtremum.js
474
+ function br(e, t, n) {
475
+ for (var r = -1, i = e.length; ++r < i;) {
476
+ var a = e[r], o = t(a);
477
+ if (o != null && (s === void 0 ? o === o && !ye(o) : n(o, s))) var s = o, c = a;
478
+ }
479
+ return c;
480
+ }
481
+ //#endregion
482
+ //#region ../node_modules/lodash-es/max.js
483
+ function W(e) {
484
+ return e && e.length ? br(e, me, pr) : void 0;
485
+ }
486
+ //#endregion
487
+ //#region ../node_modules/lodash-es/merge.js
488
+ var xr = st(function(e, t, n) {
489
+ ar(e, t, n);
490
+ });
491
+ //#endregion
492
+ //#region ../node_modules/lodash-es/min.js
493
+ function G(e) {
494
+ return e && e.length ? br(e, me, yr) : void 0;
495
+ }
496
+ //#endregion
497
+ //#region ../node_modules/lodash-es/minBy.js
498
+ function Sr(e, t) {
499
+ return e && e.length ? br(e, C(t, 2), yr) : void 0;
500
+ }
501
+ //#endregion
502
+ //#region ../node_modules/lodash-es/_baseSet.js
503
+ function Cr(e, t, n, r) {
504
+ if (!b(e)) return e;
505
+ t = m(t, e);
506
+ for (var i = -1, a = t.length, o = a - 1, s = e; s != null && ++i < a;) {
507
+ var c = h(t[i]), l = n;
508
+ if (c === "__proto__" || c === "constructor" || c === "prototype") return e;
509
+ if (i != o) {
510
+ var u = s[c];
511
+ l = r ? r(u, c, s) : void 0, l === void 0 && (l = b(u) ? u : de(t[i + 1]) ? [] : {});
512
+ }
513
+ P(s, c, l), s = s[c];
514
+ }
515
+ return e;
516
+ }
517
+ //#endregion
518
+ //#region ../node_modules/lodash-es/_basePickBy.js
519
+ function wr(e, t, n) {
520
+ for (var r = -1, i = t.length, a = {}; ++r < i;) {
521
+ var o = t[r], s = ue(e, o);
522
+ n(s, o) && Cr(a, m(o, e), s);
523
+ }
524
+ return a;
525
+ }
526
+ //#endregion
527
+ //#region ../node_modules/lodash-es/_baseSortBy.js
528
+ function Tr(e, t) {
529
+ var n = e.length;
530
+ for (e.sort(t); n--;) e[n] = e[n].value;
531
+ return e;
532
+ }
533
+ //#endregion
534
+ //#region ../node_modules/lodash-es/_compareAscending.js
535
+ function Er(e, t) {
536
+ if (e !== t) {
537
+ var n = e !== void 0, r = e === null, i = e === e, a = ye(e), o = t !== void 0, s = t === null, c = t === t, l = ye(t);
538
+ if (!s && !l && !a && e > t || a && o && c && !s && !l || r && o && c || !n && c || !i) return 1;
539
+ if (!r && !a && !l && e < t || l && n && i && !r && !a || s && n && i || !o && i || !c) return -1;
540
+ }
541
+ return 0;
542
+ }
543
+ //#endregion
544
+ //#region ../node_modules/lodash-es/_compareMultiple.js
545
+ function Dr(e, t, n) {
546
+ for (var r = -1, i = e.criteria, a = t.criteria, o = i.length, s = n.length; ++r < o;) {
547
+ var c = Er(i[r], a[r]);
548
+ if (c) return r >= s ? c : c * (n[r] == "desc" ? -1 : 1);
549
+ }
550
+ return e.index - t.index;
551
+ }
552
+ //#endregion
553
+ //#region ../node_modules/lodash-es/_baseOrderBy.js
554
+ function Or(e, t, n) {
555
+ t = t.length ? u(t, function(e) {
556
+ return y(e) ? function(t) {
557
+ return ue(t, e.length === 1 ? e[0] : e);
558
+ } : e;
559
+ }) : [me];
560
+ var r = -1;
561
+ return t = u(t, g(C)), Tr(ur(e, function(e, n, i) {
562
+ return {
563
+ criteria: u(t, function(t) {
564
+ return t(e);
565
+ }),
566
+ index: ++r,
567
+ value: e
568
+ };
569
+ }), function(e, t) {
570
+ return Dr(e, t, n);
571
+ });
572
+ }
573
+ //#endregion
574
+ //#region ../node_modules/lodash-es/_asciiSize.js
575
+ var kr = Oe("length"), Ar = "\\ud800-\\udfff", jr = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Mr = "\\ufe0e\\ufe0f", Nr = "[" + Ar + "]", Pr = "[" + jr + "]", Fr = "\\ud83c[\\udffb-\\udfff]", Ir = "(?:" + Pr + "|" + Fr + ")", Lr = "[^" + Ar + "]", Rr = "(?:\\ud83c[\\udde6-\\uddff]){2}", zr = "[\\ud800-\\udbff][\\udc00-\\udfff]", Br = "\\u200d", Vr = Ir + "?", Hr = "[" + Mr + "]?", Ur = "(?:" + Br + "(?:" + [
576
+ Lr,
577
+ Rr,
578
+ zr
579
+ ].join("|") + ")" + Hr + Vr + ")*", Wr = Hr + Vr + Ur, Gr = "(?:" + [
580
+ Lr + Pr + "?",
581
+ Pr,
582
+ Rr,
583
+ zr,
584
+ Nr
585
+ ].join("|") + ")", Kr = RegExp(Fr + "(?=" + Fr + ")|" + Gr + Wr, "g");
586
+ function qr(e) {
587
+ for (var t = Kr.lastIndex = 0; Kr.test(e);) ++t;
588
+ return t;
589
+ }
590
+ //#endregion
591
+ //#region ../node_modules/lodash-es/_stringSize.js
592
+ function Jr(e) {
593
+ return xt(e) ? qr(e) : kr(e);
594
+ }
595
+ //#endregion
596
+ //#region ../node_modules/lodash-es/_basePick.js
597
+ function Yr(e, t) {
598
+ return wr(e, t, function(t, n) {
599
+ return Ee(e, n);
600
+ });
601
+ }
602
+ //#endregion
603
+ //#region ../node_modules/lodash-es/pick.js
604
+ var K = dt(function(e, t) {
605
+ return e == null ? {} : Yr(e, t);
606
+ }), Xr = Math.ceil, Zr = Math.max;
607
+ function Qr(e, t, n, r) {
608
+ for (var i = -1, a = Zr(Xr((t - e) / (n || 1)), 0), o = Array(a); a--;) o[r ? a : ++i] = e, e += n;
609
+ return o;
610
+ }
611
+ //#endregion
612
+ //#region ../node_modules/lodash-es/_createRange.js
613
+ function $r(e) {
614
+ return function(t, n, r) {
615
+ return r && typeof r != "number" && I(t, n, r) && (n = r = void 0), t = M(t), n === void 0 ? (n = t, t = 0) : n = M(n), r = r === void 0 ? t < n ? 1 : -1 : M(r), Qr(t, n, r, e);
616
+ };
617
+ }
618
+ //#endregion
619
+ //#region ../node_modules/lodash-es/range.js
620
+ var q = $r(), ei = "[object Map]", ti = "[object Set]";
621
+ function ni(e) {
622
+ if (e == null) return 0;
623
+ if (A(e)) return vr(e) ? Jr(e) : e.length;
624
+ var t = x(e);
625
+ return t == ei || t == ti ? e.size : d(e).length;
626
+ }
627
+ //#endregion
628
+ //#region ../node_modules/lodash-es/sortBy.js
629
+ var J = f(function(e, t) {
630
+ if (e == null) return [];
631
+ var n = t.length;
632
+ return n > 1 && I(e, t[0], t[1]) ? t = [] : n > 2 && I(t[0], t[1], t[2]) && (t = [t[0]]), Or(e, p(t, 1), []);
633
+ }), ri = 0;
634
+ function ii(e) {
635
+ var t = ++ri;
636
+ return se(e) + t;
637
+ }
638
+ //#endregion
639
+ //#region ../node_modules/lodash-es/_baseZipObject.js
640
+ function ai(e, t, n) {
641
+ for (var r = -1, i = e.length, a = t.length, o = {}; ++r < i;) {
642
+ var s = r < a ? t[r] : void 0;
643
+ n(o, e[r], s);
644
+ }
645
+ return o;
646
+ }
647
+ //#endregion
648
+ //#region ../node_modules/lodash-es/zipObject.js
649
+ function oi(e, t) {
650
+ return ai(e || [], t || [], P);
651
+ }
652
+ //#endregion
653
+ //#region ../node_modules/dagre-d3-es/src/dagre/data/list.js
654
+ var si = class {
655
+ constructor() {
656
+ var e = {};
657
+ e._next = e._prev = e, this._sentinel = e;
658
+ }
659
+ dequeue() {
660
+ var e = this._sentinel, t = e._prev;
661
+ if (t !== e) return ci(t), t;
662
+ }
663
+ enqueue(e) {
664
+ var t = this._sentinel;
665
+ e._prev && e._next && ci(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
666
+ }
667
+ toString() {
668
+ for (var e = [], t = this._sentinel, n = t._prev; n !== t;) e.push(JSON.stringify(n, li)), n = n._prev;
669
+ return "[" + e.join(", ") + "]";
670
+ }
671
+ };
672
+ function ci(e) {
673
+ e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
674
+ }
675
+ function li(e, t) {
676
+ if (e !== "_next" && e !== "_prev") return t;
677
+ }
678
+ //#endregion
679
+ //#region ../node_modules/dagre-d3-es/src/dagre/greedy-fas.js
680
+ var ui = ne(1);
681
+ function di(e, t) {
682
+ if (e.nodeCount() <= 1) return [];
683
+ var n = mi(e, t || ui);
684
+ return R(H(fi(n.graph, n.buckets, n.zeroIdx), function(t) {
685
+ return e.outEdges(t.v, t.w);
686
+ }));
687
+ }
688
+ function fi(e, t, n) {
689
+ for (var r = [], i = t[t.length - 1], a = t[0], o; e.nodeCount();) {
690
+ for (; o = a.dequeue();) pi(e, t, n, o);
691
+ for (; o = i.dequeue();) pi(e, t, n, o);
692
+ if (e.nodeCount()) {
693
+ for (var s = t.length - 2; s > 0; --s) if (o = t[s].dequeue(), o) {
694
+ r = r.concat(pi(e, t, n, o, !0));
695
+ break;
696
+ }
697
+ }
698
+ }
699
+ return r;
700
+ }
701
+ function pi(e, t, n, r, i) {
702
+ var a = i ? [] : void 0;
703
+ return E(e.inEdges(r.v), function(r) {
704
+ var o = e.edge(r), s = e.node(r.v);
705
+ i && a.push({
706
+ v: r.v,
707
+ w: r.w
708
+ }), s.out -= o, hi(t, n, s);
709
+ }), E(e.outEdges(r.v), function(r) {
710
+ var i = e.edge(r), a = r.w, o = e.node(a);
711
+ o.in -= i, hi(t, n, o);
712
+ }), e.removeNode(r.v), a;
713
+ }
714
+ function mi(e, t) {
715
+ var n = new O(), r = 0, i = 0;
716
+ E(e.nodes(), function(e) {
717
+ n.setNode(e, {
718
+ v: e,
719
+ in: 0,
720
+ out: 0
721
+ });
722
+ }), E(e.edges(), function(e) {
723
+ var a = n.edge(e.v, e.w) || 0, o = t(e), s = a + o;
724
+ n.setEdge(e.v, e.w, s), i = Math.max(i, n.node(e.v).out += o), r = Math.max(r, n.node(e.w).in += o);
725
+ });
726
+ var a = q(i + r + 3).map(function() {
727
+ return new si();
728
+ }), o = r + 1;
729
+ return E(n.nodes(), function(e) {
730
+ hi(a, o, n.node(e));
731
+ }), {
732
+ graph: n,
733
+ buckets: a,
734
+ zeroIdx: o
735
+ };
736
+ }
737
+ function hi(e, t, n) {
738
+ n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
739
+ }
740
+ //#endregion
741
+ //#region ../node_modules/dagre-d3-es/src/dagre/acyclic.js
742
+ function gi(e) {
743
+ var t = e.graph().acyclicer === "greedy" ? di(e, n(e)) : _i(e);
744
+ E(t, function(t) {
745
+ var n = e.edge(t);
746
+ e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, ii("rev"));
747
+ });
748
+ function n(e) {
749
+ return function(t) {
750
+ return e.edge(t).weight;
751
+ };
752
+ }
753
+ }
754
+ function _i(e) {
755
+ var t = [], n = {}, r = {};
756
+ function i(a) {
757
+ Object.prototype.hasOwnProperty.call(r, a) || (r[a] = !0, n[a] = !0, E(e.outEdges(a), function(e) {
758
+ Object.prototype.hasOwnProperty.call(n, e.w) ? t.push(e) : i(e.w);
759
+ }), delete n[a]);
760
+ }
761
+ return E(e.nodes(), i), t;
762
+ }
763
+ function vi(e) {
764
+ E(e.edges(), function(t) {
765
+ var n = e.edge(t);
766
+ if (n.reversed) {
767
+ e.removeEdge(t);
768
+ var r = n.forwardName;
769
+ delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r);
770
+ }
771
+ });
772
+ }
773
+ //#endregion
774
+ //#region ../node_modules/dagre-d3-es/src/dagre/util.js
775
+ function Y(e, t, n, r) {
776
+ var i;
777
+ do
778
+ i = ii(r);
779
+ while (e.hasNode(i));
780
+ return n.dummy = t, e.setNode(i, n), i;
781
+ }
782
+ function yi(e) {
783
+ var t = new O().setGraph(e.graph());
784
+ return E(e.nodes(), function(n) {
785
+ t.setNode(n, e.node(n));
786
+ }), E(e.edges(), function(n) {
787
+ var r = t.edge(n.v, n.w) || {
788
+ weight: 0,
789
+ minlen: 1
790
+ }, i = e.edge(n);
791
+ t.setEdge(n.v, n.w, {
792
+ weight: r.weight + i.weight,
793
+ minlen: Math.max(r.minlen, i.minlen)
794
+ });
795
+ }), t;
796
+ }
797
+ function bi(e) {
798
+ var t = new O({ multigraph: e.isMultigraph() }).setGraph(e.graph());
799
+ return E(e.nodes(), function(n) {
800
+ e.children(n).length || t.setNode(n, e.node(n));
801
+ }), E(e.edges(), function(n) {
802
+ t.setEdge(n, e.edge(n));
803
+ }), t;
804
+ }
805
+ function xi(e, t) {
806
+ var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
807
+ if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
808
+ var c, l;
809
+ return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = o * a / i), {
810
+ x: n + c,
811
+ y: r + l
812
+ };
813
+ }
814
+ function X(e) {
815
+ var t = H(q(Ti(e) + 1), function() {
816
+ return [];
817
+ });
818
+ return E(e.nodes(), function(n) {
819
+ var r = e.node(n), i = r.rank;
820
+ D(i) || (t[i][r.order] = n);
821
+ }), t;
822
+ }
823
+ function Si(e) {
824
+ var t = G(H(e.nodes(), function(t) {
825
+ return e.node(t).rank;
826
+ }));
827
+ E(e.nodes(), function(n) {
828
+ var r = e.node(n);
829
+ gr(r, "rank") && (r.rank -= t);
830
+ });
831
+ }
832
+ function Ci(e) {
833
+ var t = G(H(e.nodes(), function(t) {
834
+ return e.node(t).rank;
835
+ })), n = [];
836
+ E(e.nodes(), function(r) {
837
+ var i = e.node(r).rank - t;
838
+ n[i] || (n[i] = []), n[i].push(r);
839
+ });
840
+ var r = 0, i = e.graph().nodeRankFactor;
841
+ E(n, function(t, n) {
842
+ D(t) && n % i !== 0 ? --r : r && E(t, function(t) {
843
+ e.node(t).rank += r;
844
+ });
845
+ });
846
+ }
847
+ function wi(e, t, n, r) {
848
+ var i = {
849
+ width: 0,
850
+ height: 0
851
+ };
852
+ return arguments.length >= 4 && (i.rank = n, i.order = r), Y(e, "border", i, t);
853
+ }
854
+ function Ti(e) {
855
+ return W(H(e.nodes(), function(t) {
856
+ var n = e.node(t).rank;
857
+ if (!D(n)) return n;
858
+ }));
859
+ }
860
+ function Ei(e, t) {
861
+ var n = {
862
+ lhs: [],
863
+ rhs: []
864
+ };
865
+ return E(e, function(e) {
866
+ t(e) ? n.lhs.push(e) : n.rhs.push(e);
867
+ }), n;
868
+ }
869
+ function Di(e, t) {
870
+ var n = Zn();
871
+ try {
872
+ return t();
873
+ } finally {
874
+ console.log(e + " time: " + (Zn() - n) + "ms");
875
+ }
876
+ }
877
+ function Oi(e, t) {
878
+ return t();
879
+ }
880
+ //#endregion
881
+ //#region ../node_modules/dagre-d3-es/src/dagre/add-border-segments.js
882
+ function ki(e) {
883
+ function t(n) {
884
+ var r = e.children(n), i = e.node(n);
885
+ if (r.length && E(r, t), Object.prototype.hasOwnProperty.call(i, "minRank")) {
886
+ i.borderLeft = [], i.borderRight = [];
887
+ for (var a = i.minRank, o = i.maxRank + 1; a < o; ++a) Ai(e, "borderLeft", "_bl", n, i, a), Ai(e, "borderRight", "_br", n, i, a);
888
+ }
889
+ }
890
+ E(e.children(), t);
891
+ }
892
+ function Ai(e, t, n, r, i, a) {
893
+ var o = {
894
+ width: 0,
895
+ height: 0,
896
+ rank: a,
897
+ borderType: t
898
+ }, s = i[t][a - 1], c = Y(e, "border", o, n);
899
+ i[t][a] = c, e.setParent(c, r), s && e.setEdge(s, c, { weight: 1 });
900
+ }
901
+ //#endregion
902
+ //#region ../node_modules/dagre-d3-es/src/dagre/coordinate-system.js
903
+ function ji(e) {
904
+ var t = e.graph().rankdir.toLowerCase();
905
+ (t === "lr" || t === "rl") && Ni(e);
906
+ }
907
+ function Mi(e) {
908
+ var t = e.graph().rankdir.toLowerCase();
909
+ (t === "bt" || t === "rl") && Fi(e), (t === "lr" || t === "rl") && (Li(e), Ni(e));
910
+ }
911
+ function Ni(e) {
912
+ E(e.nodes(), function(t) {
913
+ Pi(e.node(t));
914
+ }), E(e.edges(), function(t) {
915
+ Pi(e.edge(t));
916
+ });
917
+ }
918
+ function Pi(e) {
919
+ var t = e.width;
920
+ e.width = e.height, e.height = t;
921
+ }
922
+ function Fi(e) {
923
+ E(e.nodes(), function(t) {
924
+ Ii(e.node(t));
925
+ }), E(e.edges(), function(t) {
926
+ var n = e.edge(t);
927
+ E(n.points, Ii), Object.prototype.hasOwnProperty.call(n, "y") && Ii(n);
928
+ });
929
+ }
930
+ function Ii(e) {
931
+ e.y = -e.y;
932
+ }
933
+ function Li(e) {
934
+ E(e.nodes(), function(t) {
935
+ Ri(e.node(t));
936
+ }), E(e.edges(), function(t) {
937
+ var n = e.edge(t);
938
+ E(n.points, Ri), Object.prototype.hasOwnProperty.call(n, "x") && Ri(n);
939
+ });
940
+ }
941
+ function Ri(e) {
942
+ var t = e.x;
943
+ e.x = e.y, e.y = t;
944
+ }
945
+ //#endregion
946
+ //#region ../node_modules/dagre-d3-es/src/dagre/normalize.js
947
+ function zi(e) {
948
+ e.graph().dummyChains = [], E(e.edges(), function(t) {
949
+ Bi(e, t);
950
+ });
951
+ }
952
+ function Bi(e, t) {
953
+ var n = t.v, r = e.node(n).rank, i = t.w, a = e.node(i).rank, o = t.name, s = e.edge(t), c = s.labelRank;
954
+ if (a !== r + 1) {
955
+ e.removeEdge(t);
956
+ var l = void 0, u, d;
957
+ for (d = 0, ++r; r < a; ++d, ++r) s.points = [], l = {
958
+ width: 0,
959
+ height: 0,
960
+ edgeLabel: s,
961
+ edgeObj: t,
962
+ rank: r
963
+ }, u = Y(e, "edge", l, "_d"), r === c && (l.width = s.width, l.height = s.height, l.dummy = "edge-label", l.labelpos = s.labelpos), e.setEdge(n, u, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(u), n = u;
964
+ e.setEdge(n, i, { weight: s.weight }, o);
965
+ }
966
+ }
967
+ function Vi(e) {
968
+ E(e.graph().dummyChains, function(t) {
969
+ var n = e.node(t), r = n.edgeLabel, i;
970
+ for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
971
+ x: n.x,
972
+ y: n.y
973
+ }), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
974
+ });
975
+ }
976
+ //#endregion
977
+ //#region ../node_modules/dagre-d3-es/src/dagre/rank/util.js
978
+ function Hi(e) {
979
+ var t = {};
980
+ function n(r) {
981
+ var i = e.node(r);
982
+ if (Object.prototype.hasOwnProperty.call(t, r)) return i.rank;
983
+ t[r] = !0;
984
+ var a = G(H(e.outEdges(r), function(t) {
985
+ return n(t.w) - e.edge(t).minlen;
986
+ }));
987
+ return (a === Infinity || a == null) && (a = 0), i.rank = a;
988
+ }
989
+ E(e.sources(), n);
990
+ }
991
+ function Z(e, t) {
992
+ return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
993
+ }
994
+ //#endregion
995
+ //#region ../node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js
996
+ function Ui(e) {
997
+ var t = new O({ directed: !1 }), n = e.nodes()[0], r = e.nodeCount();
998
+ t.setNode(n, {});
999
+ for (var i, a; Wi(t, e) < r;) i = Gi(t, e), a = t.hasNode(i.v) ? Z(e, i) : -Z(e, i), Ki(t, e, a);
1000
+ return t;
1001
+ }
1002
+ function Wi(e, t) {
1003
+ function n(r) {
1004
+ E(t.nodeEdges(r), function(i) {
1005
+ var a = i.v, o = r === a ? i.w : a;
1006
+ !e.hasNode(o) && !Z(t, i) && (e.setNode(o, {}), e.setEdge(r, o, {}), n(o));
1007
+ });
1008
+ }
1009
+ return E(e.nodes(), n), e.nodeCount();
1010
+ }
1011
+ function Gi(e, t) {
1012
+ return Sr(t.edges(), function(n) {
1013
+ if (e.hasNode(n.v) !== e.hasNode(n.w)) return Z(t, n);
1014
+ });
1015
+ }
1016
+ function Ki(e, t, n) {
1017
+ E(e.nodes(), function(e) {
1018
+ t.node(e).rank += n;
1019
+ });
1020
+ }
1021
+ //#endregion
1022
+ //#region ../node_modules/dagre-d3-es/src/graphlib/alg/topsort.js
1023
+ ne(1), ne(1), qi.CycleException = Q;
1024
+ function qi(e) {
1025
+ var t = {}, n = {}, r = [];
1026
+ function i(a) {
1027
+ if (Object.prototype.hasOwnProperty.call(n, a)) throw new Q();
1028
+ Object.prototype.hasOwnProperty.call(t, a) || (n[a] = !0, t[a] = !0, E(e.predecessors(a), i), delete n[a], r.push(a));
1029
+ }
1030
+ if (E(e.sinks(), i), ni(t) !== e.nodeCount()) throw new Q();
1031
+ return r;
1032
+ }
1033
+ function Q() {}
1034
+ Q.prototype = /* @__PURE__ */ Error();
1035
+ //#endregion
1036
+ //#region ../node_modules/dagre-d3-es/src/graphlib/alg/dfs.js
1037
+ function Ji(e, t, n) {
1038
+ y(t) || (t = [t]);
1039
+ var r = (e.isDirected() ? e.successors : e.neighbors).bind(e), i = [], a = {};
1040
+ return E(t, function(t) {
1041
+ if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
1042
+ Yi(e, t, n === "post", a, r, i);
1043
+ }), i;
1044
+ }
1045
+ function Yi(e, t, n, r, i, a) {
1046
+ Object.prototype.hasOwnProperty.call(r, t) || (r[t] = !0, n || a.push(t), E(i(t), function(t) {
1047
+ Yi(e, t, n, r, i, a);
1048
+ }), n && a.push(t));
1049
+ }
1050
+ //#endregion
1051
+ //#region ../node_modules/dagre-d3-es/src/graphlib/alg/postorder.js
1052
+ function Xi(e, t) {
1053
+ return Ji(e, t, "post");
1054
+ }
1055
+ //#endregion
1056
+ //#region ../node_modules/dagre-d3-es/src/graphlib/alg/preorder.js
1057
+ function Zi(e, t) {
1058
+ return Ji(e, t, "pre");
1059
+ }
1060
+ $.initLowLimValues = ta, $.initCutValues = Qi, $.calcCutValue = ea, $.leaveEdge = ra, $.enterEdge = ia, $.exchangeEdges = aa;
1061
+ function $(e) {
1062
+ e = yi(e), Hi(e);
1063
+ var t = Ui(e);
1064
+ ta(t), Qi(t, e);
1065
+ for (var n, r; n = ra(t);) r = ia(t, e, n), aa(t, e, n, r);
1066
+ }
1067
+ function Qi(e, t) {
1068
+ var n = Xi(e, e.nodes());
1069
+ n = n.slice(0, n.length - 1), E(n, function(n) {
1070
+ $i(e, t, n);
1071
+ });
1072
+ }
1073
+ function $i(e, t, n) {
1074
+ var r = e.node(n).parent;
1075
+ e.edge(n, r).cutvalue = ea(e, t, n);
1076
+ }
1077
+ function ea(e, t, n) {
1078
+ var r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
1079
+ return a ||= (i = !1, t.edge(r, n)), o = a.weight, E(t.nodeEdges(n), function(a) {
1080
+ var s = a.v === n, c = s ? a.w : a.v;
1081
+ if (c !== r) {
1082
+ var l = s === i, u = t.edge(a).weight;
1083
+ if (o += l ? u : -u, sa(e, n, c)) {
1084
+ var d = e.edge(n, c).cutvalue;
1085
+ o += l ? -d : d;
1086
+ }
1087
+ }
1088
+ }), o;
1089
+ }
1090
+ function ta(e, t) {
1091
+ arguments.length < 2 && (t = e.nodes()[0]), na(e, {}, 1, t);
1092
+ }
1093
+ function na(e, t, n, r, i) {
1094
+ var a = n, o = e.node(r);
1095
+ return t[r] = !0, E(e.neighbors(r), function(i) {
1096
+ Object.prototype.hasOwnProperty.call(t, i) || (n = na(e, t, n, i, r));
1097
+ }), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
1098
+ }
1099
+ function ra(e) {
1100
+ return lr(e.edges(), function(t) {
1101
+ return e.edge(t).cutvalue < 0;
1102
+ });
1103
+ }
1104
+ function ia(e, t, n) {
1105
+ var r = n.v, i = n.w;
1106
+ t.hasEdge(r, i) || (r = n.w, i = n.v);
1107
+ var a = e.node(r), o = e.node(i), s = a, c = !1;
1108
+ return a.lim > o.lim && (s = o, c = !0), Sr(S(t.edges(), function(t) {
1109
+ return c === ca(e, e.node(t.v), s) && c !== ca(e, e.node(t.w), s);
1110
+ }), function(e) {
1111
+ return Z(t, e);
1112
+ });
1113
+ }
1114
+ function aa(e, t, n, r) {
1115
+ var i = n.v, a = n.w;
1116
+ e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), ta(e), Qi(e, t), oa(e, t);
1117
+ }
1118
+ function oa(e, t) {
1119
+ var n = Zi(e, lr(e.nodes(), function(e) {
1120
+ return !t.node(e).parent;
1121
+ }));
1122
+ n = n.slice(1), E(n, function(n) {
1123
+ var r = e.node(n).parent, i = t.edge(n, r), a = !1;
1124
+ i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
1125
+ });
1126
+ }
1127
+ function sa(e, t, n) {
1128
+ return e.hasEdge(t, n);
1129
+ }
1130
+ function ca(e, t, n) {
1131
+ return n.low <= t.lim && t.lim <= n.lim;
1132
+ }
1133
+ //#endregion
1134
+ //#region ../node_modules/dagre-d3-es/src/dagre/rank/index.js
1135
+ function la(e) {
1136
+ switch (e.graph().ranker) {
1137
+ case "network-simplex":
1138
+ fa(e);
1139
+ break;
1140
+ case "tight-tree":
1141
+ da(e);
1142
+ break;
1143
+ case "longest-path":
1144
+ ua(e);
1145
+ break;
1146
+ default: fa(e);
1147
+ }
1148
+ }
1149
+ var ua = Hi;
1150
+ function da(e) {
1151
+ Hi(e), Ui(e);
1152
+ }
1153
+ function fa(e) {
1154
+ $(e);
1155
+ }
1156
+ //#endregion
1157
+ //#region ../node_modules/dagre-d3-es/src/dagre/nesting-graph.js
1158
+ function pa(e) {
1159
+ var t = Y(e, "root", {}, "_root"), n = ha(e), r = W(w(n)) - 1, i = 2 * r + 1;
1160
+ e.graph().nestingRoot = t, E(e.edges(), function(t) {
1161
+ e.edge(t).minlen *= i;
1162
+ });
1163
+ var a = ga(e) + 1;
1164
+ E(e.children(), function(o) {
1165
+ ma(e, t, i, a, r, n, o);
1166
+ }), e.graph().nodeRankFactor = i;
1167
+ }
1168
+ function ma(e, t, n, r, i, a, o) {
1169
+ var s = e.children(o);
1170
+ if (!s.length) {
1171
+ o !== t && e.setEdge(t, o, {
1172
+ weight: 0,
1173
+ minlen: n
1174
+ });
1175
+ return;
1176
+ }
1177
+ var c = wi(e, "_bt"), l = wi(e, "_bb"), u = e.node(o);
1178
+ e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, E(s, function(s) {
1179
+ ma(e, t, n, r, i, a, s);
1180
+ var u = e.node(s), d = u.borderTop ? u.borderTop : s, f = u.borderBottom ? u.borderBottom : s, p = u.borderTop ? r : 2 * r, m = d === f ? i - a[o] + 1 : 1;
1181
+ e.setEdge(c, d, {
1182
+ weight: p,
1183
+ minlen: m,
1184
+ nestingEdge: !0
1185
+ }), e.setEdge(f, l, {
1186
+ weight: p,
1187
+ minlen: m,
1188
+ nestingEdge: !0
1189
+ });
1190
+ }), e.parent(o) || e.setEdge(t, c, {
1191
+ weight: 0,
1192
+ minlen: i + a[o]
1193
+ });
1194
+ }
1195
+ function ha(e) {
1196
+ var t = {};
1197
+ function n(r, i) {
1198
+ var a = e.children(r);
1199
+ a && a.length && E(a, function(e) {
1200
+ n(e, i + 1);
1201
+ }), t[r] = i;
1202
+ }
1203
+ return E(e.children(), function(e) {
1204
+ n(e, 1);
1205
+ }), t;
1206
+ }
1207
+ function ga(e) {
1208
+ return T(e.edges(), function(t, n) {
1209
+ return t + e.edge(n).weight;
1210
+ }, 0);
1211
+ }
1212
+ function _a(e) {
1213
+ var t = e.graph();
1214
+ e.removeNode(t.nestingRoot), delete t.nestingRoot, E(e.edges(), function(t) {
1215
+ e.edge(t).nestingEdge && e.removeEdge(t);
1216
+ });
1217
+ }
1218
+ //#endregion
1219
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js
1220
+ function va(e, t, n) {
1221
+ var r = {}, i;
1222
+ E(n, function(n) {
1223
+ for (var a = e.parent(n), o, s; a;) {
1224
+ if (o = e.parent(a), o ? (s = r[o], r[o] = a) : (s = i, i = a), s && s !== a) {
1225
+ t.setEdge(s, a);
1226
+ return;
1227
+ }
1228
+ a = o;
1229
+ }
1230
+ });
1231
+ }
1232
+ //#endregion
1233
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js
1234
+ function ya(e, t, n) {
1235
+ var r = ba(e), i = new O({ compound: !0 }).setGraph({ root: r }).setDefaultNodeLabel(function(t) {
1236
+ return e.node(t);
1237
+ });
1238
+ return E(e.nodes(), function(a) {
1239
+ var o = e.node(a), s = e.parent(a);
1240
+ (o.rank === t || o.minRank <= t && t <= o.maxRank) && (i.setNode(a), i.setParent(a, s || r), E(e[n](a), function(t) {
1241
+ var n = t.v === a ? t.w : t.v, r = i.edge(n, a), o = D(r) ? 0 : r.weight;
1242
+ i.setEdge(n, a, { weight: e.edge(t).weight + o });
1243
+ }), Object.prototype.hasOwnProperty.call(o, "minRank") && i.setNode(a, {
1244
+ borderLeft: o.borderLeft[t],
1245
+ borderRight: o.borderRight[t]
1246
+ }));
1247
+ }), i;
1248
+ }
1249
+ function ba(e) {
1250
+ for (var t; e.hasNode(t = ii("_root")););
1251
+ return t;
1252
+ }
1253
+ //#endregion
1254
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/cross-count.js
1255
+ function xa(e, t) {
1256
+ for (var n = 0, r = 1; r < t.length; ++r) n += Sa(e, t[r - 1], t[r]);
1257
+ return n;
1258
+ }
1259
+ function Sa(e, t, n) {
1260
+ for (var r = oi(n, H(n, function(e, t) {
1261
+ return t;
1262
+ })), i = R(H(t, function(t) {
1263
+ return J(H(e.outEdges(t), function(t) {
1264
+ return {
1265
+ pos: r[t.w],
1266
+ weight: e.edge(t).weight
1267
+ };
1268
+ }), "pos");
1269
+ })), a = 1; a < n.length;) a <<= 1;
1270
+ var o = 2 * a - 1;
1271
+ --a;
1272
+ var s = H(Array(o), function() {
1273
+ return 0;
1274
+ }), c = 0;
1275
+ return E(i.forEach(function(e) {
1276
+ var t = e.pos + a;
1277
+ s[t] += e.weight;
1278
+ for (var n = 0; t > 0;) t % 2 && (n += s[t + 1]), t = t - 1 >> 1, s[t] += e.weight;
1279
+ c += e.weight * n;
1280
+ })), c;
1281
+ }
1282
+ //#endregion
1283
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/init-order.js
1284
+ function Ca(e) {
1285
+ var t = {}, n = S(e.nodes(), function(t) {
1286
+ return !e.children(t).length;
1287
+ }), r = H(q(W(H(n, function(t) {
1288
+ return e.node(t).rank;
1289
+ })) + 1), function() {
1290
+ return [];
1291
+ });
1292
+ function i(n) {
1293
+ gr(t, n) || (t[n] = !0, r[e.node(n).rank].push(n), E(e.successors(n), i));
1294
+ }
1295
+ var a = J(n, function(t) {
1296
+ return e.node(t).rank;
1297
+ });
1298
+ return E(a, i), r;
1299
+ }
1300
+ //#endregion
1301
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/barycenter.js
1302
+ function wa(e, t) {
1303
+ return H(t, function(t) {
1304
+ var n = e.inEdges(t);
1305
+ if (n.length) {
1306
+ var r = T(n, function(t, n) {
1307
+ var r = e.edge(n), i = e.node(n.v);
1308
+ return {
1309
+ sum: t.sum + r.weight * i.order,
1310
+ weight: t.weight + r.weight
1311
+ };
1312
+ }, {
1313
+ sum: 0,
1314
+ weight: 0
1315
+ });
1316
+ return {
1317
+ v: t,
1318
+ barycenter: r.sum / r.weight,
1319
+ weight: r.weight
1320
+ };
1321
+ }
1322
+ return { v: t };
1323
+ });
1324
+ }
1325
+ //#endregion
1326
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js
1327
+ function Ta(e, t) {
1328
+ var n = {};
1329
+ return E(e, function(e, t) {
1330
+ var r = n[e.v] = {
1331
+ indegree: 0,
1332
+ in: [],
1333
+ out: [],
1334
+ vs: [e.v],
1335
+ i: t
1336
+ };
1337
+ D(e.barycenter) || (r.barycenter = e.barycenter, r.weight = e.weight);
1338
+ }), E(t.edges(), function(e) {
1339
+ var t = n[e.v], r = n[e.w];
1340
+ !D(t) && !D(r) && (r.indegree++, t.out.push(n[e.w]));
1341
+ }), Ea(S(n, function(e) {
1342
+ return !e.indegree;
1343
+ }));
1344
+ }
1345
+ function Ea(e) {
1346
+ var t = [];
1347
+ function n(e) {
1348
+ return function(t) {
1349
+ t.merged || (D(t.barycenter) || D(e.barycenter) || t.barycenter >= e.barycenter) && Da(e, t);
1350
+ };
1351
+ }
1352
+ function r(t) {
1353
+ return function(n) {
1354
+ n.in.push(t), --n.indegree === 0 && e.push(n);
1355
+ };
1356
+ }
1357
+ for (; e.length;) {
1358
+ var i = e.pop();
1359
+ t.push(i), E(i.in.reverse(), n(i)), E(i.out, r(i));
1360
+ }
1361
+ return H(S(t, function(e) {
1362
+ return !e.merged;
1363
+ }), function(e) {
1364
+ return K(e, [
1365
+ "vs",
1366
+ "i",
1367
+ "barycenter",
1368
+ "weight"
1369
+ ]);
1370
+ });
1371
+ }
1372
+ function Da(e, t) {
1373
+ var n = 0, r = 0;
1374
+ e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
1375
+ }
1376
+ //#endregion
1377
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/sort.js
1378
+ function Oa(e, t) {
1379
+ var n = Ei(e, function(e) {
1380
+ return Object.prototype.hasOwnProperty.call(e, "barycenter");
1381
+ }), r = n.lhs, i = J(n.rhs, function(e) {
1382
+ return -e.i;
1383
+ }), a = [], o = 0, s = 0, c = 0;
1384
+ r.sort(Aa(!!t)), c = ka(a, i, c), E(r, function(e) {
1385
+ c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = ka(a, i, c);
1386
+ });
1387
+ var l = { vs: R(a) };
1388
+ return s && (l.barycenter = o / s, l.weight = s), l;
1389
+ }
1390
+ function ka(e, t, n) {
1391
+ for (var r; t.length && (r = V(t)).i <= n;) t.pop(), e.push(r.vs), n++;
1392
+ return n;
1393
+ }
1394
+ function Aa(e) {
1395
+ return function(t, n) {
1396
+ return t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
1397
+ };
1398
+ }
1399
+ //#endregion
1400
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js
1401
+ function ja(e, t, n, r) {
1402
+ var i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
1403
+ o && (i = S(i, function(e) {
1404
+ return e !== o && e !== s;
1405
+ }));
1406
+ var l = wa(e, i);
1407
+ E(l, function(t) {
1408
+ if (e.children(t.v).length) {
1409
+ var i = ja(e, t.v, n, r);
1410
+ c[t.v] = i, Object.prototype.hasOwnProperty.call(i, "barycenter") && Na(t, i);
1411
+ }
1412
+ });
1413
+ var u = Ta(l, n);
1414
+ Ma(u, c);
1415
+ var d = Oa(u, r);
1416
+ if (o && (d.vs = R([
1417
+ o,
1418
+ d.vs,
1419
+ s
1420
+ ]), e.predecessors(o).length)) {
1421
+ var f = e.node(e.predecessors(o)[0]), p = e.node(e.predecessors(s)[0]);
1422
+ Object.prototype.hasOwnProperty.call(d, "barycenter") || (d.barycenter = 0, d.weight = 0), d.barycenter = (d.barycenter * d.weight + f.order + p.order) / (d.weight + 2), d.weight += 2;
1423
+ }
1424
+ return d;
1425
+ }
1426
+ function Ma(e, t) {
1427
+ E(e, function(e) {
1428
+ e.vs = R(e.vs.map(function(e) {
1429
+ return t[e] ? t[e].vs : e;
1430
+ }));
1431
+ });
1432
+ }
1433
+ function Na(e, t) {
1434
+ D(e.barycenter) ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
1435
+ }
1436
+ //#endregion
1437
+ //#region ../node_modules/dagre-d3-es/src/dagre/order/index.js
1438
+ function Pa(e) {
1439
+ var t = Ti(e), n = Fa(e, q(1, t + 1), "inEdges"), r = Fa(e, q(t - 1, -1, -1), "outEdges"), i = Ca(e);
1440
+ La(e, i);
1441
+ for (var a = Infinity, o, s = 0, c = 0; c < 4; ++s, ++c) {
1442
+ Ia(s % 2 ? n : r, s % 4 >= 2), i = X(e);
1443
+ var l = xa(e, i);
1444
+ l < a && (c = 0, o = Xn(i), a = l);
1445
+ }
1446
+ La(e, o);
1447
+ }
1448
+ function Fa(e, t, n) {
1449
+ return H(t, function(t) {
1450
+ return ya(e, t, n);
1451
+ });
1452
+ }
1453
+ function Ia(e, t) {
1454
+ var n = new O();
1455
+ E(e, function(e) {
1456
+ var r = e.graph().root, i = ja(e, r, n, t);
1457
+ E(i.vs, function(t, n) {
1458
+ e.node(t).order = n;
1459
+ }), va(e, n, i.vs);
1460
+ });
1461
+ }
1462
+ function La(e, t) {
1463
+ E(t, function(t) {
1464
+ E(t, function(t, n) {
1465
+ e.node(t).order = n;
1466
+ });
1467
+ });
1468
+ }
1469
+ //#endregion
1470
+ //#region ../node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js
1471
+ function Ra(e) {
1472
+ var t = Ba(e);
1473
+ E(e.graph().dummyChains, function(n) {
1474
+ for (var r = e.node(n), i = r.edgeObj, a = za(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0; n !== i.w;) {
1475
+ if (r = e.node(n), u) {
1476
+ for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
1477
+ l === s && (u = !1);
1478
+ }
1479
+ if (!u) {
1480
+ for (; c < o.length - 1 && e.node(l = o[c + 1]).minRank <= r.rank;) c++;
1481
+ l = o[c];
1482
+ }
1483
+ e.setParent(n, l), n = e.successors(n)[0];
1484
+ }
1485
+ });
1486
+ }
1487
+ function za(e, t, n, r) {
1488
+ var i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c = n, l;
1489
+ do
1490
+ c = e.parent(c), i.push(c);
1491
+ while (c && (t[c].low > o || s > t[c].lim));
1492
+ for (l = c, c = r; (c = e.parent(c)) !== l;) a.push(c);
1493
+ return {
1494
+ path: i.concat(a.reverse()),
1495
+ lca: l
1496
+ };
1497
+ }
1498
+ function Ba(e) {
1499
+ var t = {}, n = 0;
1500
+ function r(i) {
1501
+ var a = n;
1502
+ E(e.children(i), r), t[i] = {
1503
+ low: a,
1504
+ lim: n++
1505
+ };
1506
+ }
1507
+ return E(e.children(), r), t;
1508
+ }
1509
+ //#endregion
1510
+ //#region ../node_modules/dagre-d3-es/src/dagre/position/bk.js
1511
+ function Va(e, t) {
1512
+ var n = {};
1513
+ function r(t, r) {
1514
+ var i = 0, a = 0, o = t.length, s = V(r);
1515
+ return E(r, function(t, c) {
1516
+ var l = Ua(e, t), u = l ? e.node(l).order : o;
1517
+ (l || t === s) && (E(r.slice(a, c + 1), function(t) {
1518
+ E(e.predecessors(t), function(r) {
1519
+ var a = e.node(r), o = a.order;
1520
+ (o < i || u < o) && !(a.dummy && e.node(t).dummy) && Wa(n, r, t);
1521
+ });
1522
+ }), a = c + 1, i = u);
1523
+ }), r;
1524
+ }
1525
+ return T(t, r), n;
1526
+ }
1527
+ function Ha(e, t) {
1528
+ var n = {};
1529
+ function r(t, r, i, a, o) {
1530
+ var s;
1531
+ E(q(r, i), function(r) {
1532
+ s = t[r], e.node(s).dummy && E(e.predecessors(s), function(t) {
1533
+ var r = e.node(t);
1534
+ r.dummy && (r.order < a || r.order > o) && Wa(n, t, s);
1535
+ });
1536
+ });
1537
+ }
1538
+ function i(t, n) {
1539
+ var i = -1, a, o = 0;
1540
+ return E(n, function(s, c) {
1541
+ if (e.node(s).dummy === "border") {
1542
+ var l = e.predecessors(s);
1543
+ l.length && (a = e.node(l[0]).order, r(n, o, c, i, a), o = c, i = a);
1544
+ }
1545
+ r(n, o, n.length, a, t.length);
1546
+ }), n;
1547
+ }
1548
+ return T(t, i), n;
1549
+ }
1550
+ function Ua(e, t) {
1551
+ if (e.node(t).dummy) return lr(e.predecessors(t), function(t) {
1552
+ return e.node(t).dummy;
1553
+ });
1554
+ }
1555
+ function Wa(e, t, n) {
1556
+ if (t > n) {
1557
+ var r = t;
1558
+ t = n, n = r;
1559
+ }
1560
+ Object.prototype.hasOwnProperty.call(e, t) || Object.defineProperty(e, t, {
1561
+ enumerable: !0,
1562
+ configurable: !0,
1563
+ value: {},
1564
+ writable: !0
1565
+ });
1566
+ var i = e[t];
1567
+ Object.defineProperty(i, n, {
1568
+ enumerable: !0,
1569
+ configurable: !0,
1570
+ value: !0,
1571
+ writable: !0
1572
+ });
1573
+ }
1574
+ function Ga(e, t, n) {
1575
+ if (t > n) {
1576
+ var r = t;
1577
+ t = n, n = r;
1578
+ }
1579
+ return !!e[t] && Object.prototype.hasOwnProperty.call(e[t], n);
1580
+ }
1581
+ function Ka(e, t, n, r) {
1582
+ var i = {}, a = {}, o = {};
1583
+ return E(t, function(e) {
1584
+ E(e, function(e, t) {
1585
+ i[e] = e, a[e] = e, o[e] = t;
1586
+ });
1587
+ }), E(t, function(e) {
1588
+ var t = -1;
1589
+ E(e, function(e) {
1590
+ var s = r(e);
1591
+ if (s.length) {
1592
+ s = J(s, function(e) {
1593
+ return o[e];
1594
+ });
1595
+ for (var c = (s.length - 1) / 2, l = Math.floor(c), u = Math.ceil(c); l <= u; ++l) {
1596
+ var d = s[l];
1597
+ a[e] === e && t < o[d] && !Ga(n, e, d) && (a[d] = e, a[e] = i[e] = i[d], t = o[d]);
1598
+ }
1599
+ }
1600
+ });
1601
+ }), {
1602
+ root: i,
1603
+ align: a
1604
+ };
1605
+ }
1606
+ function qa(e, t, n, r, i) {
1607
+ var a = {}, o = Ja(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1608
+ function c(e, t) {
1609
+ for (var n = o.nodes(), r = n.pop(), i = {}; r;) i[r] ? e(r) : (i[r] = !0, n.push(r), n = n.concat(t(r))), r = n.pop();
1610
+ }
1611
+ function l(e) {
1612
+ a[e] = o.inEdges(e).reduce(function(e, t) {
1613
+ return Math.max(e, a[t.v] + o.edge(t));
1614
+ }, 0);
1615
+ }
1616
+ function u(t) {
1617
+ var n = o.outEdges(t).reduce(function(e, t) {
1618
+ return Math.min(e, a[t.w] - o.edge(t));
1619
+ }, Infinity), r = e.node(t);
1620
+ n !== Infinity && r.borderType !== s && (a[t] = Math.max(a[t], n));
1621
+ }
1622
+ return c(l, o.predecessors.bind(o)), c(u, o.successors.bind(o)), E(r, function(e) {
1623
+ a[e] = a[n[e]];
1624
+ }), a;
1625
+ }
1626
+ function Ja(e, t, n, r) {
1627
+ var i = new O(), a = e.graph(), o = $a(a.nodesep, a.edgesep, r);
1628
+ return E(t, function(t) {
1629
+ var r;
1630
+ E(t, function(t) {
1631
+ var a = n[t];
1632
+ if (i.setNode(a), r) {
1633
+ var s = n[r], c = i.edge(s, a);
1634
+ i.setEdge(s, a, Math.max(o(e, t, r), c || 0));
1635
+ }
1636
+ r = t;
1637
+ });
1638
+ }), i;
1639
+ }
1640
+ function Ya(e, t) {
1641
+ return Sr(w(t), function(t) {
1642
+ var n = -Infinity, r = Infinity;
1643
+ return dr(t, function(t, i) {
1644
+ var a = eo(e, i) / 2;
1645
+ n = Math.max(t + a, n), r = Math.min(t - a, r);
1646
+ }), n - r;
1647
+ });
1648
+ }
1649
+ function Xa(e, t) {
1650
+ var n = w(t), r = G(n), i = W(n);
1651
+ E(["u", "d"], function(n) {
1652
+ E(["l", "r"], function(a) {
1653
+ var o = n + a, s = e[o], c;
1654
+ if (s !== t) {
1655
+ var l = w(s);
1656
+ c = a === "l" ? r - G(l) : i - W(l), c && (e[o] = U(s, function(e) {
1657
+ return e + c;
1658
+ }));
1659
+ }
1660
+ });
1661
+ });
1662
+ }
1663
+ function Za(e, t) {
1664
+ return U(e.ul, function(n, r) {
1665
+ if (t) return e[t.toLowerCase()][r];
1666
+ var i = J(H(e, r));
1667
+ return (i[1] + i[2]) / 2;
1668
+ });
1669
+ }
1670
+ function Qa(e) {
1671
+ var t = X(e), n = xr(Va(e, t), Ha(e, t)), r = {}, i;
1672
+ return E(["u", "d"], function(a) {
1673
+ i = a === "u" ? t : w(t).reverse(), E(["l", "r"], function(t) {
1674
+ t === "r" && (i = H(i, function(e) {
1675
+ return w(e).reverse();
1676
+ }));
1677
+ var o = (a === "u" ? e.predecessors : e.successors).bind(e), s = Ka(e, i, n, o), c = qa(e, i, s.root, s.align, t === "r");
1678
+ t === "r" && (c = U(c, function(e) {
1679
+ return -e;
1680
+ })), r[a + t] = c;
1681
+ });
1682
+ }), Xa(r, Ya(e, r)), Za(r, e.graph().align);
1683
+ }
1684
+ function $a(e, t, n) {
1685
+ return function(r, i, a) {
1686
+ var o = r.node(i), s = r.node(a), c = 0, l;
1687
+ if (c += o.width / 2, Object.prototype.hasOwnProperty.call(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
1688
+ case "l":
1689
+ l = -o.width / 2;
1690
+ break;
1691
+ case "r": l = o.width / 2;
1692
+ }
1693
+ if (l && (c += n ? l : -l), l = 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.prototype.hasOwnProperty.call(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
1694
+ case "l":
1695
+ l = s.width / 2;
1696
+ break;
1697
+ case "r": l = -s.width / 2;
1698
+ }
1699
+ return l && (c += n ? l : -l), l = 0, c;
1700
+ };
1701
+ }
1702
+ function eo(e, t) {
1703
+ return e.node(t).width;
1704
+ }
1705
+ //#endregion
1706
+ //#region ../node_modules/dagre-d3-es/src/dagre/position/index.js
1707
+ function to(e) {
1708
+ e = bi(e), no(e), fr(Qa(e), function(t, n) {
1709
+ e.node(n).x = t;
1710
+ });
1711
+ }
1712
+ function no(e) {
1713
+ var t = X(e), n = e.graph().ranksep, r = 0;
1714
+ E(t, function(t) {
1715
+ var i = W(H(t, function(t) {
1716
+ return e.node(t).height;
1717
+ }));
1718
+ E(t, function(t) {
1719
+ e.node(t).y = r + i / 2;
1720
+ }), r += i + n;
1721
+ });
1722
+ }
1723
+ //#endregion
1724
+ //#region ../node_modules/dagre-d3-es/src/dagre/layout.js
1725
+ function ro(e, t) {
1726
+ var n = t && t.debugTiming ? Di : Oi;
1727
+ n("layout", () => {
1728
+ var t = n(" buildLayoutGraph", () => ho(e));
1729
+ n(" runLayout", () => io(t, n)), n(" updateInputGraph", () => ao(e, t));
1730
+ });
1731
+ }
1732
+ function io(e, t) {
1733
+ t(" makeSpaceForEdgeLabels", () => go(e)), t(" removeSelfEdges", () => To(e)), t(" acyclic", () => gi(e)), t(" nestingGraph.run", () => pa(e)), t(" rank", () => la(bi(e))), t(" injectEdgeLabelProxies", () => _o(e)), t(" removeEmptyRanks", () => Ci(e)), t(" nestingGraph.cleanup", () => _a(e)), t(" normalizeRanks", () => Si(e)), t(" assignRankMinMax", () => vo(e)), t(" removeEdgeLabelProxies", () => yo(e)), t(" normalize.run", () => zi(e)), t(" parentDummyChains", () => Ra(e)), t(" addBorderSegments", () => ki(e)), t(" order", () => Pa(e)), t(" insertSelfEdges", () => Eo(e)), t(" adjustCoordinateSystem", () => ji(e)), t(" position", () => to(e)), t(" positionSelfEdges", () => Do(e)), t(" removeBorderNodes", () => wo(e)), t(" normalize.undo", () => Vi(e)), t(" fixupEdgeLabelCoords", () => So(e)), t(" undoCoordinateSystem", () => Mi(e)), t(" translateGraph", () => bo(e)), t(" assignNodeIntersects", () => xo(e)), t(" reversePoints", () => Co(e)), t(" acyclic.undo", () => vi(e));
1734
+ }
1735
+ function ao(e, t) {
1736
+ E(e.nodes(), function(n) {
1737
+ var r = e.node(n), i = t.node(n);
1738
+ r && (r.x = i.x, r.y = i.y, t.children(n).length && (r.width = i.width, r.height = i.height));
1739
+ }), E(e.edges(), function(n) {
1740
+ var r = e.edge(n), i = t.edge(n);
1741
+ r.points = i.points, Object.prototype.hasOwnProperty.call(i, "x") && (r.x = i.x, r.y = i.y);
1742
+ }), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
1743
+ }
1744
+ var oo = [
1745
+ "nodesep",
1746
+ "edgesep",
1747
+ "ranksep",
1748
+ "marginx",
1749
+ "marginy"
1750
+ ], so = {
1751
+ ranksep: 50,
1752
+ edgesep: 20,
1753
+ nodesep: 50,
1754
+ rankdir: "tb"
1755
+ }, co = [
1756
+ "acyclicer",
1757
+ "ranker",
1758
+ "rankdir",
1759
+ "align"
1760
+ ], lo = ["width", "height"], uo = {
1761
+ width: 0,
1762
+ height: 0
1763
+ }, fo = [
1764
+ "minlen",
1765
+ "weight",
1766
+ "width",
1767
+ "height",
1768
+ "labeloffset"
1769
+ ], po = {
1770
+ minlen: 1,
1771
+ weight: 1,
1772
+ width: 0,
1773
+ height: 0,
1774
+ labeloffset: 10,
1775
+ labelpos: "r"
1776
+ }, mo = ["labelpos"];
1777
+ function ho(e) {
1778
+ var t = new O({
1779
+ multigraph: !0,
1780
+ compound: !0
1781
+ }), n = ko(e.graph());
1782
+ return t.setGraph(xr({}, so, Oo(n, oo), K(n, co))), E(e.nodes(), function(n) {
1783
+ var r = ko(e.node(n));
1784
+ t.setNode(n, er(Oo(r, lo), uo)), t.setParent(n, e.parent(n));
1785
+ }), E(e.edges(), function(n) {
1786
+ var r = ko(e.edge(n));
1787
+ t.setEdge(n, xr({}, po, Oo(r, fo), K(r, mo)));
1788
+ }), t;
1789
+ }
1790
+ function go(e) {
1791
+ var t = e.graph();
1792
+ t.ranksep /= 2, E(e.edges(), function(n) {
1793
+ var r = e.edge(n);
1794
+ r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
1795
+ });
1796
+ }
1797
+ function _o(e) {
1798
+ E(e.edges(), function(t) {
1799
+ var n = e.edge(t);
1800
+ if (n.width && n.height) {
1801
+ var r = e.node(t.v);
1802
+ Y(e, "edge-proxy", {
1803
+ rank: (e.node(t.w).rank - r.rank) / 2 + r.rank,
1804
+ e: t
1805
+ }, "_ep");
1806
+ }
1807
+ });
1808
+ }
1809
+ function vo(e) {
1810
+ var t = 0;
1811
+ E(e.nodes(), function(n) {
1812
+ var r = e.node(n);
1813
+ r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = W(t, r.maxRank));
1814
+ }), e.graph().maxRank = t;
1815
+ }
1816
+ function yo(e) {
1817
+ E(e.nodes(), function(t) {
1818
+ var n = e.node(t);
1819
+ n.dummy === "edge-proxy" && (e.edge(n.e).labelRank = n.rank, e.removeNode(t));
1820
+ });
1821
+ }
1822
+ function bo(e) {
1823
+ var t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
1824
+ function c(e) {
1825
+ var a = e.x, o = e.y, s = e.width, c = e.height;
1826
+ t = Math.min(t, a - s / 2), n = Math.max(n, a + s / 2), r = Math.min(r, o - c / 2), i = Math.max(i, o + c / 2);
1827
+ }
1828
+ E(e.nodes(), function(t) {
1829
+ c(e.node(t));
1830
+ }), E(e.edges(), function(t) {
1831
+ var n = e.edge(t);
1832
+ Object.prototype.hasOwnProperty.call(n, "x") && c(n);
1833
+ }), t -= o, r -= s, E(e.nodes(), function(n) {
1834
+ var i = e.node(n);
1835
+ i.x -= t, i.y -= r;
1836
+ }), E(e.edges(), function(n) {
1837
+ var i = e.edge(n);
1838
+ E(i.points, function(e) {
1839
+ e.x -= t, e.y -= r;
1840
+ }), Object.prototype.hasOwnProperty.call(i, "x") && (i.x -= t), Object.prototype.hasOwnProperty.call(i, "y") && (i.y -= r);
1841
+ }), a.width = n - t + o, a.height = i - r + s;
1842
+ }
1843
+ function xo(e) {
1844
+ E(e.edges(), function(t) {
1845
+ var n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
1846
+ n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(xi(r, a)), n.points.push(xi(i, o));
1847
+ });
1848
+ }
1849
+ function So(e) {
1850
+ E(e.edges(), function(t) {
1851
+ var n = e.edge(t);
1852
+ if (Object.prototype.hasOwnProperty.call(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
1853
+ case "l":
1854
+ n.x -= n.width / 2 + n.labeloffset;
1855
+ break;
1856
+ case "r": n.x += n.width / 2 + n.labeloffset;
1857
+ }
1858
+ });
1859
+ }
1860
+ function Co(e) {
1861
+ E(e.edges(), function(t) {
1862
+ var n = e.edge(t);
1863
+ n.reversed && n.points.reverse();
1864
+ });
1865
+ }
1866
+ function wo(e) {
1867
+ E(e.nodes(), function(t) {
1868
+ if (e.children(t).length) {
1869
+ var n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(V(n.borderLeft)), o = e.node(V(n.borderRight));
1870
+ n.width = Math.abs(o.x - a.x), n.height = Math.abs(i.y - r.y), n.x = a.x + n.width / 2, n.y = r.y + n.height / 2;
1871
+ }
1872
+ }), E(e.nodes(), function(t) {
1873
+ e.node(t).dummy === "border" && e.removeNode(t);
1874
+ });
1875
+ }
1876
+ function To(e) {
1877
+ E(e.edges(), function(t) {
1878
+ if (t.v === t.w) {
1879
+ var n = e.node(t.v);
1880
+ n.selfEdges ||= [], n.selfEdges.push({
1881
+ e: t,
1882
+ label: e.edge(t)
1883
+ }), e.removeEdge(t);
1884
+ }
1885
+ });
1886
+ }
1887
+ function Eo(e) {
1888
+ var t = X(e);
1889
+ E(t, function(t) {
1890
+ var n = 0;
1891
+ E(t, function(t, r) {
1892
+ var i = e.node(t);
1893
+ i.order = r + n, E(i.selfEdges, function(t) {
1894
+ Y(e, "selfedge", {
1895
+ width: t.label.width,
1896
+ height: t.label.height,
1897
+ rank: i.rank,
1898
+ order: r + ++n,
1899
+ e: t.e,
1900
+ label: t.label
1901
+ }, "_se");
1902
+ }), delete i.selfEdges;
1903
+ });
1904
+ });
1905
+ }
1906
+ function Do(e) {
1907
+ E(e.nodes(), function(t) {
1908
+ var n = e.node(t);
1909
+ if (n.dummy === "selfedge") {
1910
+ var r = e.node(n.e.v), i = r.x + r.width / 2, a = r.y, o = n.x - i, s = r.height / 2;
1911
+ e.setEdge(n.e, n.label), e.removeNode(t), n.label.points = [
1912
+ {
1913
+ x: i + 2 * o / 3,
1914
+ y: a - s
1915
+ },
1916
+ {
1917
+ x: i + 5 * o / 6,
1918
+ y: a - s
1919
+ },
1920
+ {
1921
+ x: i + o,
1922
+ y: a
1923
+ },
1924
+ {
1925
+ x: i + 5 * o / 6,
1926
+ y: a + s
1927
+ },
1928
+ {
1929
+ x: i + 2 * o / 3,
1930
+ y: a + s
1931
+ }
1932
+ ], n.label.x = n.x, n.label.y = n.y;
1933
+ }
1934
+ });
1935
+ }
1936
+ function Oo(e, t) {
1937
+ return U(K(e, t), Number);
1938
+ }
1939
+ function ko(e) {
1940
+ var t = {};
1941
+ return E(e, function(e, n) {
1942
+ t[n.toLowerCase()] = e;
1943
+ }), t;
1944
+ }
1945
+ //#endregion
1946
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/dagre-W4DXFKR2.mjs
1947
+ var Ao = /* @__PURE__ */ e((e, t, n) => Math.max(t, Math.min(n, e)), "clamp"), jo = /* @__PURE__ */ e((e = "TB") => {
1948
+ switch (e) {
1949
+ case "BT": return "bottom";
1950
+ case "LR": return "right";
1951
+ case "RL": return "left";
1952
+ default: return "top";
1953
+ }
1954
+ }, "getDefaultSelfLoopSide"), Mo = /* @__PURE__ */ e((e) => e === "flowchart" || e === "flowchart-v2" || e === "stateDiagram" || e === "er" || e === "classDiagram", "shouldMergeSelfLoopSegments"), No = [
1955
+ "x",
1956
+ "y",
1957
+ "width",
1958
+ "height",
1959
+ "labelBBox",
1960
+ "intersect",
1961
+ "calcIntersect",
1962
+ "diff",
1963
+ "clusterNode"
1964
+ ], Po = /* @__PURE__ */ e((e, t, n, r, i) => {
1965
+ let a = [], o = /* @__PURE__ */ new Set();
1966
+ if (n.forEach(({ start: e, end: t }) => {
1967
+ e !== r && o.add(e), t !== r && o.add(t);
1968
+ }), o.forEach((t) => {
1969
+ let n = e.node(t);
1970
+ typeof n?.x == "number" && typeof n?.y == "number" && a.push(n);
1971
+ }), a.length === 0 && n.forEach(({ edge: e }) => {
1972
+ (e.points ?? []).forEach((e) => {
1973
+ typeof e?.x == "number" && typeof e?.y == "number" && a.push(e);
1974
+ });
1975
+ }), a.length === 0) return jo(i);
1976
+ let s = a.reduce((e, t) => ({
1977
+ x: e.x + t.x / a.length,
1978
+ y: e.y + t.y / a.length
1979
+ }), {
1980
+ x: 0,
1981
+ y: 0
1982
+ }), c = s.x - t.x, l = s.y - t.y;
1983
+ return Math.abs(c) > Math.abs(l) ? c > 0 ? "right" : "left" : Math.abs(l) > 0 ? l > 0 ? "bottom" : "top" : jo(i);
1984
+ }, "getSelfLoopSide"), Fo = /* @__PURE__ */ e((e, t = "top", n = 0, r = 0) => {
1985
+ let i = e.x, a = e.y - n, o = e.width / 2, s = e.height / 2, c = Math.max(36, Math.min(100, e.width * .8)), l = Ao(Math.max(r, e.width * .35), 36, c), u = Ao(Math.min(e.width, e.height) * .45, 24, 48);
1986
+ switch (t) {
1987
+ case "bottom": {
1988
+ let e = a + s;
1989
+ return [
1990
+ {
1991
+ x: i - l / 2,
1992
+ y: e
1993
+ },
1994
+ {
1995
+ x: i - l / 2,
1996
+ y: e + u
1997
+ },
1998
+ {
1999
+ x: i + l / 2,
2000
+ y: e + u
2001
+ },
2002
+ {
2003
+ x: i + l / 2,
2004
+ y: e
2005
+ }
2006
+ ];
2007
+ }
2008
+ case "right": {
2009
+ let e = i + o;
2010
+ return [
2011
+ {
2012
+ x: e,
2013
+ y: a - l / 2
2014
+ },
2015
+ {
2016
+ x: e + u,
2017
+ y: a - l / 2
2018
+ },
2019
+ {
2020
+ x: e + u,
2021
+ y: a + l / 2
2022
+ },
2023
+ {
2024
+ x: e,
2025
+ y: a + l / 2
2026
+ }
2027
+ ];
2028
+ }
2029
+ case "left": {
2030
+ let e = i - o;
2031
+ return [
2032
+ {
2033
+ x: e,
2034
+ y: a - l / 2
2035
+ },
2036
+ {
2037
+ x: e - u,
2038
+ y: a - l / 2
2039
+ },
2040
+ {
2041
+ x: e - u,
2042
+ y: a + l / 2
2043
+ },
2044
+ {
2045
+ x: e,
2046
+ y: a + l / 2
2047
+ }
2048
+ ];
2049
+ }
2050
+ default: {
2051
+ let e = a - s;
2052
+ return [
2053
+ {
2054
+ x: i - l / 2,
2055
+ y: e
2056
+ },
2057
+ {
2058
+ x: i - l / 2,
2059
+ y: e - u
2060
+ },
2061
+ {
2062
+ x: i + l / 2,
2063
+ y: e - u
2064
+ },
2065
+ {
2066
+ x: i + l / 2,
2067
+ y: e
2068
+ }
2069
+ ];
2070
+ }
2071
+ }
2072
+ }, "getSelfLoopPoints"), Io = /* @__PURE__ */ e((e, t, n = "top", r = 0, i = {}) => {
2073
+ let a = e.x, o = e.y - r, s = i.width ?? 0, c = i.height ?? 0;
2074
+ switch (n) {
2075
+ case "bottom": return {
2076
+ x: a,
2077
+ y: Math.max(...t.map((e) => e.y)) + c / 2 + 4
2078
+ };
2079
+ case "right": return {
2080
+ x: Math.max(...t.map((e) => e.x)) + s / 2 + 4,
2081
+ y: o
2082
+ };
2083
+ case "left": return {
2084
+ x: Math.min(...t.map((e) => e.x)) - s / 2 - 4,
2085
+ y: o
2086
+ };
2087
+ default: return {
2088
+ x: a,
2089
+ y: Math.min(...t.map((e) => e.y)) - c / 2 - 4
2090
+ };
2091
+ }
2092
+ }, "getSelfLoopLabelPosition"), Lo = /* @__PURE__ */ e((e, t = 0, { mergeSelfLoops: n = !0 } = {}) => {
2093
+ let r = /* @__PURE__ */ new Map(), i = [], a = e.graph()?.rankdir;
2094
+ return e.edges().forEach((t) => {
2095
+ let a = e.edge(t);
2096
+ if (n && a.selfLoop) {
2097
+ let e = a.selfLoop.id;
2098
+ r.has(e) || r.set(e, []), r.get(e).push({
2099
+ edge: a,
2100
+ start: t.v,
2101
+ end: t.w
2102
+ });
2103
+ } else i.push({
2104
+ edge: a,
2105
+ start: t.v,
2106
+ end: t.w
2107
+ });
2108
+ }), r.forEach((n) => {
2109
+ if (n.length !== 3) {
2110
+ n.forEach((e) => i.push(e));
2111
+ return;
2112
+ }
2113
+ n.sort((e, t) => e.edge.selfLoop.order - t.edge.selfLoop.order);
2114
+ let [r, o, s] = n, c = r.edge.originalEdge ?? o.edge.originalEdge ?? s.edge.originalEdge ?? o.edge, l = e.node(c.start);
2115
+ if (!l) {
2116
+ n.forEach((e) => i.push(e));
2117
+ return;
2118
+ }
2119
+ let u = {
2120
+ width: o.edge.width,
2121
+ height: o.edge.height
2122
+ }, d = Po(e, l, n, c.start, a), f = Fo(l, d, t, u.width ?? 0), p = Io(l, f, d, t, u), m = {
2123
+ ...o.edge,
2124
+ ...c,
2125
+ id: c.id,
2126
+ points: f,
2127
+ start: c.start,
2128
+ end: c.end,
2129
+ x: p.x,
2130
+ y: p.y,
2131
+ width: u.width,
2132
+ height: u.height,
2133
+ labelStyle: o.edge.labelStyle,
2134
+ fromCluster: r.edge.fromCluster ?? o.edge.fromCluster ?? s.edge.fromCluster,
2135
+ toCluster: r.edge.toCluster ?? o.edge.toCluster ?? s.edge.toCluster
2136
+ };
2137
+ delete m.selfLoop, delete m.originalEdge, i.push({
2138
+ edge: m,
2139
+ start: m.start,
2140
+ end: m.end
2141
+ });
2142
+ }), i;
2143
+ }, "getEdgesToRender"), Ro = /* @__PURE__ */ e(async ({ element: n, graph: a, diagramType: c, id: l, parentCluster: u, siteConfig: d }) => {
2144
+ let f = a.graph().rankdir;
2145
+ t.trace("Dir in recursive render - dir:", f);
2146
+ let { clusters: p, edgePaths: m, edgeLabels: h, nodes: g, rootGroups: ee } = ze(n, { edgePathsClass: "edgePaths" });
2147
+ a.nodes() ? t.info("Recursive render XXX", a.nodes()) : t.info("No nodes found for", a), a.edges().length > 0 && t.info("Recursive edges", a.edge(a.edges()[0]));
2148
+ let _ = Mo(c);
2149
+ await Promise.all(a.nodes().map(async function(e) {
2150
+ let n = a.node(e);
2151
+ if (u !== void 0) {
2152
+ let n = JSON.parse(JSON.stringify(u.clusterData));
2153
+ t.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", u.height), a.setNode(u.id, n), a.parent(e) || (t.trace("Setting parent", e, u.id), a.setParent(e, u.id, n));
2154
+ }
2155
+ if (t.info("(Insert) Node XXX" + e + ": " + JSON.stringify(a.node(e))), n?.clusterNode) {
2156
+ t.info("Cluster identified XBX", e, n.width, a.node(e));
2157
+ let { ranksep: o, nodesep: s } = a.graph();
2158
+ n.graph.setGraph({
2159
+ ...n.graph.graph(),
2160
+ ranksep: o + 25,
2161
+ nodesep: s
2162
+ });
2163
+ let u = await Go({
2164
+ element: g,
2165
+ graph: n.graph,
2166
+ diagramType: c,
2167
+ id: l,
2168
+ parentCluster: a.node(e),
2169
+ siteConfig: d
2170
+ }), f = u.elem;
2171
+ r(n, f), n.diff = u.diff || 0, t.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), i(f, n);
2172
+ } else a.children(e).length > 0 ? (t.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", a), t.trace(Be(n.id, a)), j.set(n.id, {
2173
+ id: Be(n.id, a),
2174
+ node: n
2175
+ })) : (t.trace("Node - the non recursive path XAX", e, g, a.node(e), f), await He(g, a.node(e), {
2176
+ config: d,
2177
+ dir: f
2178
+ }));
2179
+ })), await (/* @__PURE__ */ e(async () => {
2180
+ let e = a.edges().map(async function(e) {
2181
+ let n = a.edge(e.v, e.w, e.name);
2182
+ if (t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), t.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(a.edge(e))), t.info("Fix", j, "ids:", e.v, e.w, "Translating: ", j.get(e.v), j.get(e.w)), _ && n.selfLoop) {
2183
+ if (n.selfLoop.order !== 1) return;
2184
+ let e = {
2185
+ ...n.originalEdge,
2186
+ ...n,
2187
+ id: n.selfLoop.id,
2188
+ startLabelLeft: n.originalEdge?.startLabelLeft ?? n.startLabelLeft,
2189
+ startLabelRight: n.originalEdge?.startLabelRight ?? n.startLabelRight,
2190
+ endLabelLeft: n.originalEdge?.endLabelLeft ?? n.endLabelLeft,
2191
+ endLabelRight: n.originalEdge?.endLabelRight ?? n.endLabelRight
2192
+ };
2193
+ await s(h, e), n.width = e.width, n.height = e.height, n.labelStyle = e.labelStyle;
2194
+ return;
2195
+ }
2196
+ await s(h, n);
2197
+ });
2198
+ await Promise.all(e);
2199
+ }, "processEdges"))();
2200
+ let { subGraphTitleTotalMargin: te } = o(d);
2201
+ return {
2202
+ elem: ee,
2203
+ graph: a,
2204
+ groups: {
2205
+ clusters: p,
2206
+ edgePaths: m,
2207
+ edgeLabels: h,
2208
+ nodes: g,
2209
+ rootGroups: ee
2210
+ },
2211
+ diagramType: c,
2212
+ id: l,
2213
+ mergeSelfLoops: _,
2214
+ subGraphTitleTotalMargin: te
2215
+ };
2216
+ }, "measureDagreGraph"), zo = /* @__PURE__ */ e((e) => {
2217
+ t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), ro(e);
2218
+ }, "runDagreGraphLayout"), Bo = /* @__PURE__ */ e((e, t, n) => {
2219
+ let r = e.node(t);
2220
+ if (!r) return;
2221
+ let i = { ...r };
2222
+ return r?.clusterNode ? i.y = (r.y ?? 0) + n : e.children(t).length > 0 ? i.height = (r.height ?? 0) + n : i.y = (r.y ?? 0) + n / 2, i;
2223
+ }, "normalizeDagreNode"), Vo = /* @__PURE__ */ e((e, t) => {
2224
+ No.forEach((n) => {
2225
+ t[n] !== void 0 && (e[n] = t[n]);
2226
+ });
2227
+ }, "applyDagreNodeLayout"), Ho = /* @__PURE__ */ e((e, t, n, r) => ({
2228
+ ...e,
2229
+ start: e.start ?? t,
2230
+ end: e.end ?? n,
2231
+ points: (e.points ?? []).map((e) => ({
2232
+ ...e,
2233
+ y: typeof e.y == "number" ? e.y + r : e.y
2234
+ }))
2235
+ }), "normalizeDagreEdge"), Uo = /* @__PURE__ */ e((e, t) => {
2236
+ let { graph: n, mergeSelfLoops: r, subGraphTitleTotalMargin: i = 0 } = t, a = new Map(e.nodes.map((e) => [e.id, e]));
2237
+ Re(n).forEach((e) => {
2238
+ let t = Bo(n, e, i);
2239
+ if (!t) return;
2240
+ Vo(n.node(e), t);
2241
+ let r = a.get(e);
2242
+ r && Vo(r, t);
2243
+ });
2244
+ let o = i / 2;
2245
+ return e.edges = Lo(n, o, { mergeSelfLoops: r }).map(({ edge: e, start: t, end: n }) => Ho(e, t, n, o)), e;
2246
+ }, "applyDagreLayoutResult"), Wo = /* @__PURE__ */ e(async ({ elem: e, graph: n, groups: { clusters: r, edgePaths: i }, diagramType: o, id: s, mergeSelfLoops: u, subGraphTitleTotalMargin: d }) => {
2247
+ let f = 0;
2248
+ await Promise.all(Re(n).map(async function(e) {
2249
+ let i = n.node(e);
2250
+ if (t.info("Position XBX => " + e + ": (" + i.x, "," + i.y, ") width: ", i.width, " height: ", i.height), i?.clusterNode) i.y += d, t.info("A tainted cluster node XBX1", e, i.id, i.width, i.height, i.x, i.y, n.parent(e)), j.get(i.id).node = i, a(i);
2251
+ else if (n.children(e).length > 0) {
2252
+ t.info("A pure cluster node XBX1", e, i.id, i.x, i.y, i.width, i.height, n.parent(e)), i.height += d, n.node(i.parentId);
2253
+ let a = i?.padding / 2 || 0, o = i?.labelBBox?.height || 0, s = o - a || 0;
2254
+ t.debug("OffsetY", s, "labelHeight", o, "halfPadding", a), await Le(r, i), j.get(i.id).node = i;
2255
+ } else {
2256
+ let e = n.node(i.parentId);
2257
+ i.y += d / 2, t.info("A regular node XBX1 - using the padding", i.id, "parent", i.parentId, i.width, i.height, i.x, i.y, "offsetY", i.offsetY, "parent", e, e?.offsetY, i), a(i);
2258
+ }
2259
+ }));
2260
+ let p = d / 2;
2261
+ return Lo(n, p, { mergeSelfLoops: u }).forEach(function({ edge: e, start: r, end: a }) {
2262
+ t.info("Edge " + r + " -> " + a + ": " + JSON.stringify(e), e), e.points.forEach((e) => e.y += p);
2263
+ let u = n.node(r), d = n.node(a), f = c(i, e, j, o, u, d, s);
2264
+ l(e, f);
2265
+ }), n.nodes().forEach(function(e) {
2266
+ let r = n.node(e);
2267
+ t.info(e, r.type, r.diff), r.isGroup && (f = r.diff);
2268
+ }), t.warn("Returning from recursive render XAX", e, f), {
2269
+ elem: e,
2270
+ diff: f
2271
+ };
2272
+ }, "paintDagreLayoutCore"), Go = /* @__PURE__ */ e(async (e) => {
2273
+ let t = await Ro(e);
2274
+ return zo(t.graph), await Wo(t);
2275
+ }, "renderDagreSubgraph"), Ko = /* @__PURE__ */ e((e) => {
2276
+ let n = new O({
2277
+ multigraph: !0,
2278
+ compound: !0
2279
+ }).setGraph({
2280
+ rankdir: e.direction,
2281
+ nodesep: e.config?.nodeSpacing || e.nodeSpacing || e.config?.flowchart?.nodeSpacing,
2282
+ ranksep: e.config?.rankSpacing || e.rankSpacing || e.config?.flowchart?.rankSpacing,
2283
+ marginx: 8,
2284
+ marginy: 8
2285
+ }).setDefaultEdgeLabel(function() {
2286
+ return {};
2287
+ });
2288
+ return e.nodes.forEach((e) => {
2289
+ n.setNode(e.id, { ...e }), e.parentId && n.setParent(e.id, e.parentId);
2290
+ }), t.debug("Edges:", e.edges), e.edges.forEach((e) => {
2291
+ if (e.start === e.end) {
2292
+ let t = e.start, r = t + "---" + t + "---1", i = t + "---" + t + "---2", a = n.node(t);
2293
+ n.setNode(r, {
2294
+ domId: r,
2295
+ id: r,
2296
+ parentId: a.parentId,
2297
+ labelStyle: "",
2298
+ label: "",
2299
+ padding: 0,
2300
+ shape: "labelRect",
2301
+ style: "",
2302
+ width: 10,
2303
+ height: 10
2304
+ }), n.setParent(r, a.parentId), n.setNode(i, {
2305
+ domId: i,
2306
+ id: i,
2307
+ parentId: a.parentId,
2308
+ labelStyle: "",
2309
+ padding: 0,
2310
+ shape: "labelRect",
2311
+ label: "",
2312
+ style: "",
2313
+ width: 10,
2314
+ height: 10
2315
+ }), n.setParent(i, a.parentId);
2316
+ let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e), l = structuredClone(e);
2317
+ s.originalEdge = o, s.selfLoop = {
2318
+ id: o.id,
2319
+ order: 0
2320
+ }, c.originalEdge = o, c.selfLoop = {
2321
+ id: o.id,
2322
+ order: 1
2323
+ }, l.originalEdge = o, l.selfLoop = {
2324
+ id: o.id,
2325
+ order: 2
2326
+ }, s.label = "", s.arrowTypeEnd = "none", s.endLabelLeft = "", s.endLabelRight = "", s.startLabelLeft = "", s.id = t + "-cyclic-special-1", c.startLabelRight = "", c.startLabelLeft = "", c.endLabelLeft = "", c.endLabelRight = "", c.arrowTypeStart = "none", c.arrowTypeEnd = "none", c.id = t + "-cyclic-special-mid", l.label = "", l.startLabelRight = "", l.startLabelLeft = "", l.arrowTypeStart = "none", a.isGroup && (s.fromCluster = t, l.toCluster = t), l.id = t + "-cyclic-special-2", l.arrowTypeStart = "none", n.setEdge(t, r, s, t + "-cyclic-special-0"), n.setEdge(r, i, c, t + "-cyclic-special-1"), n.setEdge(i, t, l, t + "-cyclic-special-2");
2327
+ } else n.setEdge(e.start, e.end, { ...e }, e.id);
2328
+ }), Ue(n), { graph: n };
2329
+ }, "prepareLayoutForDagre"), qo = /* @__PURE__ */ e(async (e, { element: t, preparedLayout: r }) => {
2330
+ let i = r ?? Ko(e), a = n(), o = await Ro({
2331
+ element: t,
2332
+ graph: i.graph,
2333
+ diagramType: e.type,
2334
+ id: e.diagramId,
2335
+ parentCluster: void 0,
2336
+ siteConfig: a
2337
+ });
2338
+ return i.measuredLayout = o, o;
2339
+ }, "measureDagreLayout"), Jo = /* @__PURE__ */ e((e, t) => {
2340
+ let n = t.preparedLayout?.measuredLayout;
2341
+ if (!n) throw Error("runDagreLayoutCore requires measureDagreLayout to run first");
2342
+ return zo(n.graph), Uo(e, n), n;
2343
+ }, "runDagreLayoutCore"), Yo = Ve({
2344
+ prepareLayout: Ko,
2345
+ measureLayout: qo,
2346
+ runLayoutCore: Jo,
2347
+ paintOptions: {
2348
+ clusterDb: j,
2349
+ getNodes: /* @__PURE__ */ e((e, { measure: t }) => Re(t.graph).map((e) => t.graph.node(e)).filter(Boolean), "getDagrePaintNodes"),
2350
+ getEdgeNode: /* @__PURE__ */ e((e, t, { measure: n }) => e ? n.graph.node(e) : void 0, "getDagreEdgeNode"),
2351
+ skipNode: /* @__PURE__ */ e((e, { measure: t }) => !t.graph.hasNode(e.id), "skipNode"),
2352
+ isCluster: /* @__PURE__ */ e((e, { measure: t }) => t.graph.hasNode(e.id) && (t.graph.children(e.id) ?? []).length > 0, "isCluster")
2353
+ }
2354
+ });
2355
+ //#endregion
2356
+ export { Uo as applyDagreLayoutResult, Lo as getEdgesToRender, qo as measureDagreLayout, Ko as prepareLayoutForDagre, Yo as render, Jo as runDagreLayoutCore };