@pi-outpost/embed 0.32.4 → 0.34.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.
- package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
- package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
- package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
- package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
- package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
- package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
- package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
- package/dist/channel-BjC1TKrU.cjs +1 -0
- package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
- package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
- package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
- package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
- package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
- package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
- package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
- package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
- package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
- package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
- package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
- package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
- package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
- package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
- package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
- package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
- package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
- package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
- package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
- package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
- package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
- package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
- package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
- package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
- package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
- package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
- package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
- package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
- package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
- package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
- package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
- package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
- package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
- package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
- package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
- package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
- package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
- package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
- package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
- package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
- package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
- package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
- package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
- package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
- package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
- package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
- package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
- package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
- package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
- package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
- package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
- package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
- package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
- package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
- package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
- package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
- package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
- package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
- package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
- package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
- package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
- package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
- package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
- package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
- package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
- package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
- package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
- package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
- package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
- package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
- package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
- package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
- package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
- package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
- package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
- package/dist/pi-outpost-embed.cjs +9 -10
- package/dist/pi-outpost-embed.js +2833 -2786
- package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
- package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
- package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
- package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
- package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
- package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
- package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
- package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
- package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
- package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
- package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
- package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
- package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
- package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
- package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
- package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
- package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
- package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
- package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
- package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
- package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
- package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
- package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
- package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
- package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
- package/package.json +2 -2
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
- package/dist/channel-DcrLLvcO.cjs +0 -1
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
- package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
- package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
- package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
- package/dist/conversationHistory-BmpdU77I.cjs +0 -286
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
- package/dist/dagre-BMKbPnPh.js +0 -1934
- package/dist/dagre-EEW2OxRU.cjs +0 -1
- package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
- package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
- package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
- package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
- package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
- package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
- package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
- package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
- package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
- package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
- package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
- package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-VPRB5NB3-CT204jN6.cjs"),r=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),i=require("./chunk-XC4XBNZT-BTUjiQhE.cjs"),a=require("./chunk-DBDB3WZW-DSRcln4l.cjs"),o=require("./chunk-2BW5OAIV-FkhgcL6B.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-NTY3LDVX-DBVRlnMJ.cjs");function l(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}e.n(l,`createLayoutElementGroups`);async function u(e,t,n){if(t.label){let{shapeSvg:r,bbox:a}=await i.o(e,n===void 0?t:{...t,width:n});t.labelBBox={width:a.width,height:a.height},r.remove()}else t.labelBBox={width:0,height:0}}e.n(u,`measureGroupLabel`);async function d(e,t,n){let r=await a.r(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}e.n(d,`insertMeasuredNode`);function f(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}e.n(f,`resolveNodeDir`);async function p(e,t,r={}){let i=new s.t({multigraph:!0,compound:!0}),a=[...t.edges],c=n.b(),p=l(e),{edgeLabels:m,nodes:h}=p,g=new Map,_=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=r.unwrapGroupLabels&&e.labelType!==`markdown`;await u(h,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(y){let t=await d(h,e,{config:c,dir:f(e,_,v)});g.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)y&&o.r(e)&&await o.a(m,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>require("./sizeCapture-INFHLROL-bJ2ZX4Du.cjs"));n(e,t)}return{graph:i,groups:p,nodeElements:g}}e.n(p,`createGraphWithElements`);var m=new Map,h=new Map,g=new Map,_=e.n(()=>{h.clear(),g.clear(),m.clear()},`clear`),v=e.n((e,n)=>{let r=h.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),y=e.n((e,n)=>{let r=h.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||v(e.v,n)||v(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),b=e.n((e,n,r,i)=>{t.m.debug(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.debug(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)b(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.debug(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{y(a,i)?(t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),x=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)g.set(i,e),r=[...r,...x(i,t)];return r},`extractDescendants`),S=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),C=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=C(e,n,r),i=S(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),w=e.n(e=>!m.has(e)||!m.get(e).externalConnections?e:m.has(e)?m.get(e).id:e,`getAnchorId`),T=e.n((e,n)=>{if(!e||n>10){t.m.debug(`Opting out, no graph `);return}t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.debug(`Cluster identified`,n,` Replacement id in edges: `,C(n,e,n)),h.set(n,x(n,e)),m.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,h),i.forEach(e=>{v(e.v,n)^v(e.w,n)&&(t.m.debug(`Edge: `,e,` leaves cluster `,n),t.m.debug(`Descendants of XXX `,n,`: `,h.get(n)),m.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,h)});for(let t of m.keys()){let n=m.get(t).id,r=e.parent(n);r!==t&&m.has(r)&&!m.get(r).externalConnections&&(m.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&m.get(t)?.externalConnections&&i&&k(e,n,t)){let r=A(e,t,e.parent(n));r&&(m.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.debug(`Fix XXX`,m,`ids:`,n.v,n.w,`Translating: `,m.get(n.v),` --- `,m.get(n.w)),m.get(n.v)||m.get(n.w)){if(t.m.debug(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=w(n.v),a=w(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);m.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);m.get(t).externalConnections=!0,r.toCluster=n.w}t.m.debug(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),E(e,0),t.m.trace(m)},`adjustClustersAndEdges`),E=e.n((e,n)=>{if(n>10){t.m.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.m.debug(`Done, no node has children`,e.nodes());return}t.m.debug(`Nodes = `,r,n);for(let i of r)if(t.m.debug(`Extracting node`,i,m,m.has(i)&&!m.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!m.has(i))t.m.debug(`Not a cluster`,i,n);else if(!m.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.m.debug(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;m.get(i)?.clusterData?.dir&&(r=m.get(i).clusterData.dir,t.m.debug(`Fixing dir`,m.get(i).clusterData.dir,r));let a=new s.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:m.get(i).clusterData,label:m.get(i).label,graph:a})}else t.m.debug(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!m.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.m.debug(m);r=e.nodes(),t.m.debug(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.m.debug(` Now next level`,i,r),r?.clusterNode&&E(r.graph,n+1)}},`extractor`),D=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=D(e,e.children(t));n=[...n,...r]}),n},`sorter`),O=e.n(e=>D(e,e.children()),`sortNodesByHierarchy`),k=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=m.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),A=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||v(i,n))continue;let r=C(i,e,t);if(r&&!k(e,r,t))return r}return null},`findSafeAnchorNode`);function j({prepareLayout:t,measureLayout:n,runLayoutCore:r,paintLayout:i,afterPaint:a,paintOptions:s}){let c=n??N;return e.n(async function(e,n,l,u){let d=n.select(`g`);(l?.insertMarkers??o.c)(d,e.markers,e.type,e.diagramId),M();let f={element:d,helpers:l,options:u};f.preparedLayout=await t?.(e,f);let p=await c(e,f),m=await r(e,f),h={...f,measure:p};i?await i(e,h,m):await P(e,h,s),await a?.(e,h,m)},`render`)}e.n(j,`createCommonLayoutRenderer`);function M(){a.t(),o.t(),c.t(),_()}e.n(M,`clearLayoutRenderState`);async function N(e,{element:t},n){return await p(t,e,n)}e.n(N,`defaultMeasureLayout`);async function P(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await F(i,r,t,n);let a=L(e.nodes);for(let r of e.edges)R(r,n)||await z(i,r,a,e,n,t)}e.n(P,`paintLayoutData`);async function F(e,t,n,r){t.clusterNode?a.i(t):I(t,n,r)?await c.r(e.clusters,t):a.i(t)}e.n(F,`paintLayoutNode`);function I(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}e.n(I,`shouldPaintAsCluster`);function L(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}e.n(L,`buildNodeLookup`);function R(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}e.n(R,`shouldSkipPaintEdge`);async function z(e,t,n,r,i,a){let s=o.i(e.edgePaths,{...t},i.clusterDb??new Map,r.type,B(t.start,t,n,a,i),B(t.end,t,n,a,i),r.diagramId,V(t,i));o.r(t)&&(o.n.has(t.id)||await o.a(e.edgeLabels,t),H(t,s))}e.n(z,`paintLayoutEdge`);function B(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}e.n(B,`getRenderedNode`);function V(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}e.n(V,`shouldSkipIntersect`);function H(e,t){let r=t?.updatedPath??t?.originalPath,i=n.y(),{subGraphTitleTotalMargin:s}=a.n({flowchart:i.flowchart??{}});if(e.label){let n=o.n.get(e.id),{x:r,y:i}=o.u(e,t);n.attr(`transform`,`translate(${r}, ${i+s/2})`)}for(let[t,n]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(n){let{x:n,y:i}=W(e,t,r);o.d.get(e.id)[t].attr(`transform`,`translate(${n}, ${i})`)}}e.n(H,`positionRenderedEdgeLabel`);var U={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function W(e,t,n){let i=e.terminalLabelCenters?.[t];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let a=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return r._.calcTerminalLabelPosition(a?10:0,U[t],n)}e.n(W,`terminalLabelTranslate`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
|
@@ -0,0 +1,356 @@
|
|
|
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, y as r } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
|
+
import { _ as i } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
5
|
+
import { o as a } from "./chunk-XC4XBNZT-CSiWBPH9.js";
|
|
6
|
+
import { i as o, n as s, r as c, t as l } from "./chunk-DBDB3WZW-DpEOsLsQ.js";
|
|
7
|
+
import { a as u, c as d, d as f, i as p, n as m, r as h, t as g, u as ee } from "./chunk-2BW5OAIV-DWtmlmt_.js";
|
|
8
|
+
import { t as _ } from "./graphlib-CQa_B3rm.js";
|
|
9
|
+
import { r as v, t as y } from "./chunk-NTY3LDVX-CvRtOCpm.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-FVRAUYC3.mjs
|
|
11
|
+
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
12
|
+
let n = e.insert("g").attr("class", "root");
|
|
13
|
+
return {
|
|
14
|
+
clusters: n.insert("g").attr("class", "clusters"),
|
|
15
|
+
edgePaths: n.insert("g").attr("class", t),
|
|
16
|
+
edgeLabels: n.insert("g").attr("class", "edgeLabels"),
|
|
17
|
+
nodes: n.insert("g").attr("class", "nodes"),
|
|
18
|
+
rootGroups: n
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
e(b, "createLayoutElementGroups");
|
|
22
|
+
async function x(e, t, n) {
|
|
23
|
+
if (t.label) {
|
|
24
|
+
let { shapeSvg: r, bbox: i } = await a(e, n === void 0 ? t : {
|
|
25
|
+
...t,
|
|
26
|
+
width: n
|
|
27
|
+
});
|
|
28
|
+
t.labelBBox = {
|
|
29
|
+
width: i.width,
|
|
30
|
+
height: i.height
|
|
31
|
+
}, r.remove();
|
|
32
|
+
} else t.labelBBox = {
|
|
33
|
+
width: 0,
|
|
34
|
+
height: 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
e(x, "measureGroupLabel");
|
|
38
|
+
async function S(e, t, n) {
|
|
39
|
+
let r = await c(e, t, n), i = r.node()?.getBBox() ?? {
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 0
|
|
42
|
+
};
|
|
43
|
+
return t.width = i.width, t.height = i.height, r;
|
|
44
|
+
}
|
|
45
|
+
e(S, "insertMeasuredNode");
|
|
46
|
+
function C(e, t, n) {
|
|
47
|
+
let r = e, i = /* @__PURE__ */ new Set();
|
|
48
|
+
for (; r;) {
|
|
49
|
+
if (r.dir) return r.dir;
|
|
50
|
+
if (!r.parentId || i.has(r.parentId)) break;
|
|
51
|
+
i.add(r.parentId), r = t.get(r.parentId);
|
|
52
|
+
}
|
|
53
|
+
return n;
|
|
54
|
+
}
|
|
55
|
+
e(C, "resolveNodeDir");
|
|
56
|
+
async function w(e, t, r = {}) {
|
|
57
|
+
let i = new _({
|
|
58
|
+
multigraph: !0,
|
|
59
|
+
compound: !0
|
|
60
|
+
}), a = [...t.edges], o = n(), s = b(e), { edgeLabels: c, nodes: l } = s, d = /* @__PURE__ */ new Map(), f = new Map(t.nodes.map((e) => [e.id, e])), p = t.direction, m = e.node() != null;
|
|
61
|
+
await Promise.all(t.nodes.map(async (e) => {
|
|
62
|
+
if (e.isGroup) {
|
|
63
|
+
if (m) {
|
|
64
|
+
let t = r.unwrapGroupLabels && e.labelType !== "markdown";
|
|
65
|
+
await x(l, e, t ? Infinity : void 0);
|
|
66
|
+
}
|
|
67
|
+
i.setNode(e.id, { ...e });
|
|
68
|
+
} else {
|
|
69
|
+
if (m) {
|
|
70
|
+
let t = await S(l, e, {
|
|
71
|
+
config: o,
|
|
72
|
+
dir: C(e, f, p)
|
|
73
|
+
});
|
|
74
|
+
d.set(e.id, t);
|
|
75
|
+
}
|
|
76
|
+
i.setNode(e.id, { ...e });
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
for (let e of a) m && h(e) && await u(c, e), i.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
80
|
+
if (globalThis.mermaidCaptureSizes) {
|
|
81
|
+
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-B5Lg3qGn.js");
|
|
82
|
+
n(e, t);
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
graph: i,
|
|
86
|
+
groups: s,
|
|
87
|
+
nodeElements: d
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
e(w, "createGraphWithElements");
|
|
91
|
+
var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ e(() => {
|
|
92
|
+
E.clear(), D.clear(), T.clear();
|
|
93
|
+
}, "clear"), k = /* @__PURE__ */ e((e, n) => {
|
|
94
|
+
let r = E.get(n) || [];
|
|
95
|
+
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
96
|
+
}, "isDescendant"), A = /* @__PURE__ */ e((e, n) => {
|
|
97
|
+
let r = E.get(n) || [];
|
|
98
|
+
return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || k(e.v, n) || k(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
99
|
+
}, "edgeInCluster"), j = /* @__PURE__ */ e((e, n, r, i) => {
|
|
100
|
+
t.debug("Copying children of ", e, "root", i, "data", n.node(e), i);
|
|
101
|
+
let a = n.children(e) || [];
|
|
102
|
+
e !== i && a.push(e), t.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
|
|
103
|
+
if (n.children(a).length > 0) j(a, n, r, i);
|
|
104
|
+
else {
|
|
105
|
+
let o = n.node(a);
|
|
106
|
+
t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.debug("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
|
|
107
|
+
let s = n.edges(a);
|
|
108
|
+
t.debug("Copying Edges", s), s.forEach((a) => {
|
|
109
|
+
t.info("Edge", a);
|
|
110
|
+
let o = n.edge(a.v, a.w, a.name);
|
|
111
|
+
t.info("Edge data", o, i);
|
|
112
|
+
try {
|
|
113
|
+
A(a, i) ? (t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
|
|
114
|
+
} catch (e) {
|
|
115
|
+
t.error(e);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
t.debug("Removing node", a), n.removeNode(a);
|
|
120
|
+
});
|
|
121
|
+
}, "copy"), M = /* @__PURE__ */ e((e, t) => {
|
|
122
|
+
let n = t.children(e), r = [...n];
|
|
123
|
+
for (let i of n) D.set(i, e), r = [...r, ...M(i, t)];
|
|
124
|
+
return r;
|
|
125
|
+
}, "extractDescendants"), N = /* @__PURE__ */ e((e, t, n) => {
|
|
126
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
127
|
+
v: e.v === t ? n : e.v,
|
|
128
|
+
w: e.w === t ? t : e.w
|
|
129
|
+
})), o = i.map((e) => ({
|
|
130
|
+
v: e.v,
|
|
131
|
+
w: e.w
|
|
132
|
+
}));
|
|
133
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
134
|
+
}, "findCommonEdges"), P = /* @__PURE__ */ e((e, n, r) => {
|
|
135
|
+
let i = n.children(e);
|
|
136
|
+
if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
|
|
137
|
+
let a;
|
|
138
|
+
for (let e of i) {
|
|
139
|
+
let t = P(e, n, r), i = N(n, r, t);
|
|
140
|
+
if (t) {
|
|
141
|
+
if (i.length > 0) a = t;
|
|
142
|
+
else return t;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return a;
|
|
146
|
+
}, "findNonClusterChild"), F = /* @__PURE__ */ e((e) => !T.has(e) || !T.get(e).externalConnections ? e : T.has(e) ? T.get(e).id : e, "getAnchorId"), I = /* @__PURE__ */ e((e, n) => {
|
|
147
|
+
if (!e || n > 10) {
|
|
148
|
+
t.debug("Opting out, no graph ");
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
t.debug("Opting in, graph "), e.nodes().forEach(function(n) {
|
|
152
|
+
e.children(n).length > 0 && (t.debug("Cluster identified", n, " Replacement id in edges: ", P(n, e, n)), E.set(n, M(n, e)), T.set(n, {
|
|
153
|
+
id: P(n, e, n),
|
|
154
|
+
clusterData: e.node(n)
|
|
155
|
+
}));
|
|
156
|
+
}), e.nodes().forEach(function(n) {
|
|
157
|
+
let r = e.children(n), i = e.edges();
|
|
158
|
+
r.length > 0 ? (t.debug("Cluster identified", n, E), i.forEach((e) => {
|
|
159
|
+
k(e.v, n) ^ k(e.w, n) && (t.debug("Edge: ", e, " leaves cluster ", n), t.debug("Descendants of XXX ", n, ": ", E.get(n)), T.get(n).externalConnections = !0);
|
|
160
|
+
})) : t.debug("Not a cluster ", n, E);
|
|
161
|
+
});
|
|
162
|
+
for (let t of T.keys()) {
|
|
163
|
+
let n = T.get(t).id, r = e.parent(n);
|
|
164
|
+
r !== t && T.has(r) && !T.get(r).externalConnections && (T.get(t).id = r);
|
|
165
|
+
let i = e.edges().some((e) => e.v === t);
|
|
166
|
+
if (n && T.get(t)?.externalConnections && i && B(e, n, t)) {
|
|
167
|
+
let r = te(e, t, e.parent(n));
|
|
168
|
+
r && (T.get(t).id = r);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
e.edges().forEach(function(n) {
|
|
172
|
+
let r = e.edge(n);
|
|
173
|
+
t.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
174
|
+
let i = n.v, a = n.w;
|
|
175
|
+
if (t.debug("Fix XXX", T, "ids:", n.v, n.w, "Translating: ", T.get(n.v), " --- ", T.get(n.w)), T.get(n.v) || T.get(n.w)) {
|
|
176
|
+
if (t.debug("Fixing and trying - removing XXX", n.v, n.w, n.name), i = F(n.v), a = F(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
177
|
+
let t = e.parent(i);
|
|
178
|
+
T.get(t).externalConnections = !0, r.fromCluster = n.v;
|
|
179
|
+
}
|
|
180
|
+
if (a !== n.w) {
|
|
181
|
+
let t = e.parent(a);
|
|
182
|
+
T.get(t).externalConnections = !0, r.toCluster = n.w;
|
|
183
|
+
}
|
|
184
|
+
t.debug("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
|
|
185
|
+
}
|
|
186
|
+
}), L(e, 0), t.trace(T);
|
|
187
|
+
}, "adjustClustersAndEdges"), L = /* @__PURE__ */ e((e, n) => {
|
|
188
|
+
if (n > 10) {
|
|
189
|
+
t.error("Bailing out");
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
let r = e.nodes(), i = !1;
|
|
193
|
+
for (let t of r) {
|
|
194
|
+
let n = e.children(t);
|
|
195
|
+
i ||= n.length > 0;
|
|
196
|
+
}
|
|
197
|
+
if (!i) {
|
|
198
|
+
t.debug("Done, no node has children", e.nodes());
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
t.debug("Nodes = ", r, n);
|
|
202
|
+
for (let i of r) if (t.debug("Extracting node", i, T, T.has(i) && !T.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !T.has(i)) t.debug("Not a cluster", i, n);
|
|
203
|
+
else if (!T.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
|
|
204
|
+
t.debug("Cluster without external connections, without a parent and with children", i, n);
|
|
205
|
+
let r = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
206
|
+
T.get(i)?.clusterData?.dir && (r = T.get(i).clusterData.dir, t.debug("Fixing dir", T.get(i).clusterData.dir, r));
|
|
207
|
+
let a = new _({
|
|
208
|
+
multigraph: !0,
|
|
209
|
+
compound: !0
|
|
210
|
+
}).setGraph({
|
|
211
|
+
rankdir: r,
|
|
212
|
+
nodesep: 50,
|
|
213
|
+
ranksep: 50,
|
|
214
|
+
marginx: 8,
|
|
215
|
+
marginy: 8
|
|
216
|
+
}).setDefaultEdgeLabel(function() {
|
|
217
|
+
return {};
|
|
218
|
+
});
|
|
219
|
+
j(i, e, a, i), e.setNode(i, {
|
|
220
|
+
clusterNode: !0,
|
|
221
|
+
id: i,
|
|
222
|
+
clusterData: T.get(i).clusterData,
|
|
223
|
+
label: T.get(i).label,
|
|
224
|
+
graph: a
|
|
225
|
+
});
|
|
226
|
+
} else t.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !T.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), t.debug(T);
|
|
227
|
+
r = e.nodes(), t.debug("New list of nodes", r);
|
|
228
|
+
for (let i of r) {
|
|
229
|
+
let r = e.node(i);
|
|
230
|
+
t.debug(" Now next level", i, r), r?.clusterNode && L(r.graph, n + 1);
|
|
231
|
+
}
|
|
232
|
+
}, "extractor"), R = /* @__PURE__ */ e((e, t) => {
|
|
233
|
+
if (t.length === 0) return [];
|
|
234
|
+
let n = Object.assign([], t);
|
|
235
|
+
return t.forEach((t) => {
|
|
236
|
+
let r = R(e, e.children(t));
|
|
237
|
+
n = [...n, ...r];
|
|
238
|
+
}), n;
|
|
239
|
+
}, "sorter"), z = /* @__PURE__ */ e((e) => R(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ e((e, t, n) => {
|
|
240
|
+
let r = e.parent(t);
|
|
241
|
+
for (; r && r !== n;) {
|
|
242
|
+
let t = T.get(r);
|
|
243
|
+
if (t && !t.externalConnections) return !0;
|
|
244
|
+
r = e.parent(r);
|
|
245
|
+
}
|
|
246
|
+
return !1;
|
|
247
|
+
}, "isNodeInExtractableCluster"), te = /* @__PURE__ */ e((e, t, n) => {
|
|
248
|
+
let r = e.children(t) ?? [];
|
|
249
|
+
for (let i of r) {
|
|
250
|
+
if (i === n || k(i, n)) continue;
|
|
251
|
+
let r = P(i, e, t);
|
|
252
|
+
if (r && !B(e, r, t)) return r;
|
|
253
|
+
}
|
|
254
|
+
return null;
|
|
255
|
+
}, "findSafeAnchorNode");
|
|
256
|
+
function V({ prepareLayout: t, measureLayout: n, runLayoutCore: r, paintLayout: i, afterPaint: a, paintOptions: o }) {
|
|
257
|
+
let s = n ?? U;
|
|
258
|
+
return /* @__PURE__ */ e(async function(e, n, c, l) {
|
|
259
|
+
let u = n.select("g");
|
|
260
|
+
(c?.insertMarkers ?? d)(u, e.markers, e.type, e.diagramId), H();
|
|
261
|
+
let f = {
|
|
262
|
+
element: u,
|
|
263
|
+
helpers: c,
|
|
264
|
+
options: l
|
|
265
|
+
};
|
|
266
|
+
f.preparedLayout = await t?.(e, f);
|
|
267
|
+
let p = await s(e, f), m = await r(e, f), h = {
|
|
268
|
+
...f,
|
|
269
|
+
measure: p
|
|
270
|
+
};
|
|
271
|
+
i ? await i(e, h, m) : await W(e, h, o), await a?.(e, h, m);
|
|
272
|
+
}, "render");
|
|
273
|
+
}
|
|
274
|
+
e(V, "createCommonLayoutRenderer");
|
|
275
|
+
function H() {
|
|
276
|
+
l(), g(), y(), O();
|
|
277
|
+
}
|
|
278
|
+
e(H, "clearLayoutRenderState");
|
|
279
|
+
async function U(e, { element: t }, n) {
|
|
280
|
+
return await w(t, e, n);
|
|
281
|
+
}
|
|
282
|
+
e(U, "defaultMeasureLayout");
|
|
283
|
+
async function W(e, t, n = {}) {
|
|
284
|
+
let { measure: r } = t, { groups: i } = r;
|
|
285
|
+
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await G(i, r, t, n);
|
|
286
|
+
let a = q(e.nodes);
|
|
287
|
+
for (let r of e.edges) J(r, n) || await Y(i, r, a, e, n, t);
|
|
288
|
+
}
|
|
289
|
+
e(W, "paintLayoutData");
|
|
290
|
+
async function G(e, t, n, r) {
|
|
291
|
+
t.clusterNode ? o(t) : K(t, n, r) ? await v(e.clusters, t) : o(t);
|
|
292
|
+
}
|
|
293
|
+
e(G, "paintLayoutNode");
|
|
294
|
+
function K(e, t, n) {
|
|
295
|
+
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
296
|
+
}
|
|
297
|
+
e(K, "shouldPaintAsCluster");
|
|
298
|
+
function q(e) {
|
|
299
|
+
let t = /* @__PURE__ */ new Map();
|
|
300
|
+
for (let n of e) n?.id && t.set(n.id, n);
|
|
301
|
+
return t;
|
|
302
|
+
}
|
|
303
|
+
e(q, "buildNodeLookup");
|
|
304
|
+
function J(e, t) {
|
|
305
|
+
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
306
|
+
}
|
|
307
|
+
e(J, "shouldSkipPaintEdge");
|
|
308
|
+
async function Y(e, t, n, r, i, a) {
|
|
309
|
+
let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, X(t.start, t, n, a, i), X(t.end, t, n, a, i), r.diagramId, Z(t, i));
|
|
310
|
+
h(t) && (m.has(t.id) || await u(e.edgeLabels, t), Q(t, o));
|
|
311
|
+
}
|
|
312
|
+
e(Y, "paintLayoutEdge");
|
|
313
|
+
function X(e, t, n, r, i) {
|
|
314
|
+
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
315
|
+
}
|
|
316
|
+
e(X, "getRenderedNode");
|
|
317
|
+
function Z(e, t) {
|
|
318
|
+
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
319
|
+
}
|
|
320
|
+
e(Z, "shouldSkipIntersect");
|
|
321
|
+
function Q(e, t) {
|
|
322
|
+
let n = t?.updatedPath ?? t?.originalPath, i = r(), { subGraphTitleTotalMargin: a } = s({ flowchart: i.flowchart ?? {} });
|
|
323
|
+
if (e.label) {
|
|
324
|
+
let n = m.get(e.id), { x: r, y: i } = ee(e, t);
|
|
325
|
+
n.attr("transform", `translate(${r}, ${i + a / 2})`);
|
|
326
|
+
}
|
|
327
|
+
for (let [t, r] of [
|
|
328
|
+
["startLeft", e.startLabelLeft],
|
|
329
|
+
["startRight", e.startLabelRight],
|
|
330
|
+
["endLeft", e.endLabelLeft],
|
|
331
|
+
["endRight", e.endLabelRight]
|
|
332
|
+
]) if (r) {
|
|
333
|
+
let { x: r, y: i } = $(e, t, n);
|
|
334
|
+
f.get(e.id)[t].attr("transform", `translate(${r}, ${i})`);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
e(Q, "positionRenderedEdgeLabel");
|
|
338
|
+
var ne = {
|
|
339
|
+
startLeft: "start_left",
|
|
340
|
+
startRight: "start_right",
|
|
341
|
+
endLeft: "end_left",
|
|
342
|
+
endRight: "end_right"
|
|
343
|
+
};
|
|
344
|
+
function $(e, t, n) {
|
|
345
|
+
let r = e.terminalLabelCenters?.[t];
|
|
346
|
+
if (r) return { ...r };
|
|
347
|
+
if (!n) return {
|
|
348
|
+
x: e.x,
|
|
349
|
+
y: e.y
|
|
350
|
+
};
|
|
351
|
+
let a = t.startsWith("start") ? e.arrowTypeStart : e.arrowTypeEnd;
|
|
352
|
+
return i.calcTerminalLabelPosition(a ? 10 : 0, ne[t], n);
|
|
353
|
+
}
|
|
354
|
+
e($, "terminalLabelTranslate");
|
|
355
|
+
//#endregion
|
|
356
|
+
export { U as a, z as c, b as i, T as n, P as o, V as r, S as s, I as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { y as n, z as r } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
4
|
//#region ../node_modules/@iconify/utils/lib/icon/defaults.js
|
|
5
5
|
var i = Object.freeze({
|
|
6
6
|
left: 0,
|
|
@@ -219,7 +219,7 @@ function k(e, t) {
|
|
|
219
219
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
222
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-HJ2JQQFS.mjs
|
|
223
223
|
var A = {
|
|
224
224
|
body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
|
|
225
225
|
height: 80,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-VPRB5NB3-CT204jN6.cjs");var r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...r,...i}),o=Object.freeze({...a,body:``,hidden:!1}),s=Object.freeze({width:null,height:null}),c=Object.freeze({...s,...i}),l=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!u(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!u(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!u(e,n)?null:e}return null},u=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function d(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function f(e,t){let n=d(e,t);for(let r in o)r in i?r in e&&!(r in n)&&(n[r]=i[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function p(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function m(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=f(r[e]||i[e],a)}return o(t),n.forEach(o),f(e,a)}function h(e,t){if(e.icons[t])return m(e,t,[]);let n=p(e,[t])[t];return n?m(e,t,n):null}var g=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function v(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(g);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=_.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function y(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function b(e,t){return e?`<defs>`+e+`</defs>`+t:t}function x(e,t,n){let r=y(e);return b(r.defs,t+r.content+n)}var S=e=>e===`unset`||e===`undefined`||e===`none`;function C(e,t){let n={...a,...e},r={...c,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},o=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,a=e.rotate;n?r?a+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(a<0&&(a-=Math.floor(a/4)*4),a%=4,a){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}a%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(o=x(o,`<g transform="`+t.join(` `)+`">`,`</g>`))});let s=r.width,l=r.height,u=i.width,d=i.height,f,p;s===null?(p=l===null?`1em`:l===`auto`?d:l,f=v(p,u/d)):(f=s===`auto`?u:s,p=l===null?v(f,d/u):l===`auto`?d:l);let m={},h=(e,t)=>{S(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[i.left,i.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:o}}var w=/\sid="(\S+)"/g,T=new Map;function E(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=T.get(e)||0;return T.set(e,t+1),t?`${e}${t}`:e}function D(e){let t=[],n;for(;n=w.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=E(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function O(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var k={body:`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>`,height:80,width:80},A=new Map,j=new Map,M=e.n(e=>{for(let n of e){if(!n.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(t.m.debug(`Registering icon pack:`,n.name),`loader`in n)j.set(n.name,n.loader);else if(`icons`in n)A.set(n.name,n.icons);else throw t.m.error(`Invalid icon loader:`,n),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),N=e.n(async(e,n)=>{let r=l(e,!0,n!==void 0);if(!r)throw Error(`Invalid icon name: ${e}`);let i=r.prefix||n;if(!i)throw Error(`Icon name must contain a prefix: ${e}`);let a=A.get(i);if(!a){let e=j.get(i);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:i},A.set(i,a)}catch(e){throw t.m.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=h(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},`getRegisteredIconData`),P=e.n(async e=>{try{return await N(e),!0}catch{return!1}},`isIconAvailable`),F=e.n(async(e,r,i)=>{let a;try{a=await N(e,r?.fallbackPrefix)}catch(e){t.m.error(e),a=k}let o=C(a,r),s=O(D(o.body),{...o.attributes,...i});return n.z(s,n.y())},`getIconSVG`);Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return F}});
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
+
import { o as t } from "./chunk-2BW5OAIV-DWtmlmt_.js";
|
|
3
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-HTAEGDNF.mjs
|
|
4
|
+
var n = 5, r = 1e-5, i = 2, a = .6, o = 1e-6;
|
|
5
|
+
function s(e) {
|
|
6
|
+
let t = [];
|
|
7
|
+
for (let n = 0; n < e.length - 1; n++) t.push({
|
|
8
|
+
a: e[n],
|
|
9
|
+
b: e[n + 1]
|
|
10
|
+
});
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
e(s, "buildSegmentList");
|
|
14
|
+
function c(e, t, n, r) {
|
|
15
|
+
let i = t.x - e.x, a = t.y - e.y, s = r.x - n.x, c = r.y - n.y, l = i * c - a * s;
|
|
16
|
+
if (l === 0) return null;
|
|
17
|
+
let u = n.x - e.x, d = n.y - e.y, f = (u * c - d * s) / l, p = (u * a - d * i) / l;
|
|
18
|
+
return f <= o || f >= 1 - o || p <= o || p >= 1 - o ? null : {
|
|
19
|
+
point: {
|
|
20
|
+
x: e.x + f * i,
|
|
21
|
+
y: e.y + f * a
|
|
22
|
+
},
|
|
23
|
+
tA: f,
|
|
24
|
+
tB: p
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
e(c, "segmentIntersection");
|
|
28
|
+
function l(e) {
|
|
29
|
+
return Math.abs(e.b.x - e.a.x) >= Math.abs(e.b.y - e.a.y);
|
|
30
|
+
}
|
|
31
|
+
e(l, "isHorizontalSeg");
|
|
32
|
+
function u(e, t, r) {
|
|
33
|
+
if (e.curve !== "rounded") return !1;
|
|
34
|
+
let i = e.points, a = i[t], o = i[t + 1];
|
|
35
|
+
if (!a || !o) return !1;
|
|
36
|
+
let s = Math.hypot(o.x - a.x, o.y - a.y), c = r * s, l = t > 0 ? _(i[t - 1], a, o, n) : null;
|
|
37
|
+
if (l && c < l.cutLen) return !0;
|
|
38
|
+
let u = t + 2 < i.length ? _(a, o, i[t + 2], n) : null;
|
|
39
|
+
return u !== null && s - c < u.cutLen;
|
|
40
|
+
}
|
|
41
|
+
e(u, "crossingSitsInRoundedCorner");
|
|
42
|
+
function d(e) {
|
|
43
|
+
let t = [];
|
|
44
|
+
for (let n = 0; n < e.length; n++) {
|
|
45
|
+
let r = e[n], i = s(r.points);
|
|
46
|
+
for (let a = n + 1; a < e.length; a++) {
|
|
47
|
+
let n = e[a], o = s(n.points);
|
|
48
|
+
for (let [e, a] of i.entries()) for (let [i, s] of o.entries()) {
|
|
49
|
+
let o = c(a.a, a.b, s.a, s.b);
|
|
50
|
+
if (!o || u(r, e, o.tA) || u(n, i, o.tB)) continue;
|
|
51
|
+
let d = l(a);
|
|
52
|
+
d !== l(s) && d ? t.push({
|
|
53
|
+
jumpEdgeId: r.id,
|
|
54
|
+
otherEdgeId: n.id,
|
|
55
|
+
segIndex: e,
|
|
56
|
+
t: o.tA,
|
|
57
|
+
point: o.point
|
|
58
|
+
}) : t.push({
|
|
59
|
+
jumpEdgeId: n.id,
|
|
60
|
+
otherEdgeId: r.id,
|
|
61
|
+
segIndex: i,
|
|
62
|
+
t: o.tB,
|
|
63
|
+
point: o.point
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
e(d, "findEdgeIntersections");
|
|
71
|
+
function f(e) {
|
|
72
|
+
return `${Math.round(e * 1e3) / 1e3}`;
|
|
73
|
+
}
|
|
74
|
+
e(f, "fmt");
|
|
75
|
+
function p(e) {
|
|
76
|
+
return `${f(e.x)},${f(e.y)}`;
|
|
77
|
+
}
|
|
78
|
+
e(p, "pointToString");
|
|
79
|
+
function m(e) {
|
|
80
|
+
let t = e.b.x - e.a.x, n = e.b.y - e.a.y;
|
|
81
|
+
return Math.abs(t) >= Math.abs(n) ? +(t >= 0) : +(n >= 0);
|
|
82
|
+
}
|
|
83
|
+
e(m, "getArcSweepFlag");
|
|
84
|
+
function h(e, n) {
|
|
85
|
+
if (e.length < 2) return e.map((e) => ({ ...e }));
|
|
86
|
+
let r = e.map((e) => ({ ...e })), i = n.arrowTypeStart && t[n.arrowTypeStart];
|
|
87
|
+
if (i) {
|
|
88
|
+
let t = e[0], n = e[1], a = Math.atan2(n.y - t.y, n.x - t.x);
|
|
89
|
+
r[0].x = t.x + i * Math.cos(a), r[0].y = t.y + i * Math.sin(a);
|
|
90
|
+
}
|
|
91
|
+
let a = n.arrowTypeEnd && t[n.arrowTypeEnd];
|
|
92
|
+
if (a) {
|
|
93
|
+
let t = e.length, n = e[t - 2], i = e[t - 1], o = Math.atan2(i.y - n.y, i.x - n.x);
|
|
94
|
+
r[t - 1].x = i.x - a * Math.cos(o), r[t - 1].y = i.y - a * Math.sin(o);
|
|
95
|
+
}
|
|
96
|
+
return r;
|
|
97
|
+
}
|
|
98
|
+
e(h, "applyMarkerOffsets");
|
|
99
|
+
function g(e, t, n, r, i) {
|
|
100
|
+
let a = e.point.x, o = e.point.y, s = {
|
|
101
|
+
x: a - t * e.r,
|
|
102
|
+
y: o - n * e.r
|
|
103
|
+
}, c = {
|
|
104
|
+
x: a + t * e.r,
|
|
105
|
+
y: o + n * e.r
|
|
106
|
+
}, l = [`L${p(s)}`];
|
|
107
|
+
return i === "arc" ? l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`) : l.push(`M${p(c)}`), l;
|
|
108
|
+
}
|
|
109
|
+
e(g, "emitJump");
|
|
110
|
+
function _(e, t, n, i) {
|
|
111
|
+
let a = t.x - e.x, o = t.y - e.y, s = n.x - t.x, c = n.y - t.y, l = Math.hypot(a, o), u = Math.hypot(s, c);
|
|
112
|
+
if (l < r || u < r) return null;
|
|
113
|
+
let d = a / l, f = o / l, p = s / u, m = c / u, h = d * p + f * m, g = Math.acos(Math.max(-1, Math.min(1, h)));
|
|
114
|
+
if (g < r || Math.abs(Math.PI - g) < r) return null;
|
|
115
|
+
let _ = Math.min(i / Math.sin(g / 2), l / 2, u / 2);
|
|
116
|
+
return {
|
|
117
|
+
startX: t.x - d * _,
|
|
118
|
+
startY: t.y - f * _,
|
|
119
|
+
endX: t.x + p * _,
|
|
120
|
+
endY: t.y + m * _,
|
|
121
|
+
ctrlX: t.x,
|
|
122
|
+
ctrlY: t.y,
|
|
123
|
+
cutLen: _
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
e(_, "computeRoundedCorner");
|
|
127
|
+
function v(e, t, r) {
|
|
128
|
+
let o = e.points;
|
|
129
|
+
if (o.length < 2) return "";
|
|
130
|
+
let c = h(o, e), l = e.curve === "rounded", u = s(c), d = /* @__PURE__ */ new Map();
|
|
131
|
+
for (let e of t) {
|
|
132
|
+
let t = u[e.segIndex];
|
|
133
|
+
if (!t) continue;
|
|
134
|
+
let n = Math.hypot(t.b.x - t.a.x, t.b.y - t.a.y), i = d.get(e.segIndex) ?? [];
|
|
135
|
+
i.push({
|
|
136
|
+
t: e.t,
|
|
137
|
+
point: e.point,
|
|
138
|
+
d: e.t * n,
|
|
139
|
+
r: r.jumpRadius
|
|
140
|
+
}), d.set(e.segIndex, i);
|
|
141
|
+
}
|
|
142
|
+
let v = [`M${p(c[0])}`];
|
|
143
|
+
for (let e = 0; e < u.length; e++) {
|
|
144
|
+
let t = u[e], o = Math.hypot(t.b.x - t.a.x, t.b.y - t.a.y), s = o === 0 ? 0 : (t.b.x - t.a.x) / o, h = o === 0 ? 0 : (t.b.y - t.a.y) / o, y = m(t), b = 0;
|
|
145
|
+
if (l && e > 0) {
|
|
146
|
+
let t = _(c[e - 1], c[e], c[e + 1] ?? c[e], n);
|
|
147
|
+
t && (b = t.cutLen);
|
|
148
|
+
}
|
|
149
|
+
let x = o, S = null;
|
|
150
|
+
l && e < u.length - 1 && (S = _(c[e], c[e + 1], c[e + 2] ?? c[e + 1], n), S && (x = o - S.cutLen));
|
|
151
|
+
let C = r.jumpRadius * a, w = [...d.get(e) ?? []].sort((e, t) => e.t - t.t).filter((e) => {
|
|
152
|
+
let t = Math.min(e.d - b, x - e.d) - i;
|
|
153
|
+
return e.r = Math.min(e.r, t), e.r >= C;
|
|
154
|
+
});
|
|
155
|
+
for (let e = 0; e < w.length - 1; e++) {
|
|
156
|
+
let t = w[e + 1].d - w[e].d;
|
|
157
|
+
if (w[e].r + w[e + 1].r > t) {
|
|
158
|
+
let n = t / 2;
|
|
159
|
+
w[e].r = Math.min(w[e].r, n), w[e + 1].r = Math.min(w[e + 1].r, n);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
for (let e of w) e.r < C || v.push(...g(e, s, h, y, r.jumpStyle));
|
|
163
|
+
l && S ? (v.push(`L${f(S.startX)},${f(S.startY)}`), v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)) : v.push(`L${p(t.b)}`);
|
|
164
|
+
}
|
|
165
|
+
return v.join(" ");
|
|
166
|
+
}
|
|
167
|
+
e(v, "rewriteEdgePath");
|
|
168
|
+
function y(e) {
|
|
169
|
+
return /^[\d\s+,.LMelm-]*$/.test(e);
|
|
170
|
+
}
|
|
171
|
+
e(y, "isStraightPath");
|
|
172
|
+
function b(e) {
|
|
173
|
+
return !e || e === "linear" || e === "rounded" || e === "step" || e === "stepBefore" || e === "stepAfter";
|
|
174
|
+
}
|
|
175
|
+
e(b, "curveSupportsLineHops");
|
|
176
|
+
function x(e) {
|
|
177
|
+
if (!e) return null;
|
|
178
|
+
try {
|
|
179
|
+
let t = typeof atob == "function" ? atob(e) : Buffer.from(e, "base64").toString(), n = JSON.parse(t);
|
|
180
|
+
if (!Array.isArray(n)) return null;
|
|
181
|
+
let r = [];
|
|
182
|
+
for (let e of n) e && typeof e.x == "number" && typeof e.y == "number" && r.push({
|
|
183
|
+
x: e.x,
|
|
184
|
+
y: e.y
|
|
185
|
+
});
|
|
186
|
+
return r.length >= 2 ? r : null;
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
e(x, "decodeDataPoints");
|
|
192
|
+
function S(e, t, n) {
|
|
193
|
+
if (!n.enabled) return;
|
|
194
|
+
let r = e.node();
|
|
195
|
+
if (!r) return;
|
|
196
|
+
let i = /* @__PURE__ */ new Map();
|
|
197
|
+
for (let e of t) i.set(e.id, e);
|
|
198
|
+
let a = /* @__PURE__ */ new Map();
|
|
199
|
+
for (let e of r.querySelectorAll("path[data-id]")) {
|
|
200
|
+
let t = e.getAttribute("data-id");
|
|
201
|
+
t !== null && !a.has(t) && a.set(t, e);
|
|
202
|
+
}
|
|
203
|
+
let o = [];
|
|
204
|
+
for (let e of t) {
|
|
205
|
+
let t = a.get(e.id);
|
|
206
|
+
if (!t) continue;
|
|
207
|
+
let n = x(t.getAttribute("data-points")) ?? e.points;
|
|
208
|
+
o.push({
|
|
209
|
+
...e,
|
|
210
|
+
points: n
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
let s = d(o);
|
|
214
|
+
if (s.length === 0) return;
|
|
215
|
+
let c = /* @__PURE__ */ new Map();
|
|
216
|
+
for (let e of s) {
|
|
217
|
+
let t = c.get(e.jumpEdgeId) ?? [];
|
|
218
|
+
t.push(e), c.set(e.jumpEdgeId, t);
|
|
219
|
+
}
|
|
220
|
+
for (let e of o) {
|
|
221
|
+
let t = c.get(e.id);
|
|
222
|
+
if (!t || t.length === 0) continue;
|
|
223
|
+
let r = i.get(e.id)?.curve;
|
|
224
|
+
if (r !== void 0 && !b(r)) continue;
|
|
225
|
+
let o = a.get(e.id);
|
|
226
|
+
if (!o || r === void 0 && !y(o.getAttribute("d") ?? "")) continue;
|
|
227
|
+
let s = o.getAttribute("style") ?? "", l = /stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s), u = l ? Number.parseFloat(l[1]) : null, d = l ? Number.parseFloat(l[2]) : null, f = v(e, t, n);
|
|
228
|
+
if (o.setAttribute("d", f), u !== null && d !== null && typeof o.getTotalLength == "function") {
|
|
229
|
+
let e = o.getTotalLength(), t = `0 ${u} ${Math.max(0, e - u - d)} ${d}`, n = s.replace(/stroke-dasharray\s*:[^;]*;?/g, `stroke-dasharray: ${t};`).replace(/;\s*;+/g, ";");
|
|
230
|
+
o.setAttribute("style", n);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
e(S, "applyLineJumpsToSvg");
|
|
235
|
+
//#endregion
|
|
236
|
+
export { S as t };
|