@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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-DArdT4gl.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { h as n, m as r, p as i } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import { $ as a,
|
|
5
|
-
import {
|
|
6
|
-
import { r as
|
|
7
|
-
import {
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
15
|
-
var
|
|
16
|
-
let { securityLevel: t } =
|
|
4
|
+
import { $ as a, I as o, J as s, K as c, L as l, N as u, P as d, Q as f, S as p, T as m, V as h, W as g, Z as _, b as v, c as y, et as b, f as x, g as S, j as C, l as w, m as T, n as E, p as D, r as O, s as k, t as A, u as j, w as M, x as N, y as P } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
|
+
import { C as F, S as I, _ as L, a as R, b as z, f as ee, g as te, i as ne, l as re, o as ie, p as ae, y as oe } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
6
|
+
import { r as se } from "./chunk-HJ2JQQFS-CgYTXthn.js";
|
|
7
|
+
import { a as ce } from "./chunk-E2ZNV5FY-Bu796yUY.js";
|
|
8
|
+
import { t as le } from "./chunk-DUW6YSOI-CVhxvrBO.js";
|
|
9
|
+
import "./chunk-4EA7E6EY-B5P7n2an.js";
|
|
10
|
+
import { o as ue } from "./chunk-XC4XBNZT-CSiWBPH9.js";
|
|
11
|
+
import { r as de } from "./chunk-DBDB3WZW-DpEOsLsQ.js";
|
|
12
|
+
import { a as fe, c as B, i as pe, l as me } from "./chunk-2BW5OAIV-DWtmlmt_.js";
|
|
13
|
+
import { r as he } from "./chunk-NTY3LDVX-CvRtOCpm.js";
|
|
14
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-Z6ETV63D.mjs
|
|
15
|
+
var ge = /* @__PURE__ */ t((e) => {
|
|
16
|
+
let { securityLevel: t } = v(), n = i("body");
|
|
17
17
|
if (t === "sandbox") {
|
|
18
18
|
let t = i(`#i${e}`).node()?.contentDocument ?? document;
|
|
19
19
|
n = i(t.body);
|
|
@@ -22,420 +22,97 @@ var Se = /* @__PURE__ */ t((e) => {
|
|
|
22
22
|
}, "selectSvgElement");
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region ../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
25
|
-
function
|
|
25
|
+
function _e(e) {
|
|
26
26
|
let t = e?.constructor;
|
|
27
27
|
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
31
|
-
function
|
|
31
|
+
function ve(e) {
|
|
32
32
|
if (e == null) return !0;
|
|
33
|
-
if (
|
|
33
|
+
if (I(e)) return typeof e.splice != "function" && typeof e != "string" && !F(e) && !oe(e) && !z(e) ? !1 : e.length === 0;
|
|
34
34
|
if (typeof e == "object" || typeof e == "function") {
|
|
35
35
|
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
36
36
|
let t = Object.keys(e);
|
|
37
|
-
return
|
|
37
|
+
return _e(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
38
38
|
}
|
|
39
39
|
return !0;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
43
|
-
var
|
|
42
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVEVUXB4.mjs
|
|
43
|
+
var ye = {
|
|
44
44
|
common: k,
|
|
45
|
-
getConfig:
|
|
46
|
-
insertCluster:
|
|
47
|
-
insertEdge:
|
|
48
|
-
insertEdgeLabel:
|
|
49
|
-
insertMarkers:
|
|
45
|
+
getConfig: P,
|
|
46
|
+
insertCluster: he,
|
|
47
|
+
insertEdge: pe,
|
|
48
|
+
insertEdgeLabel: fe,
|
|
49
|
+
insertMarkers: B,
|
|
50
50
|
insertNode: de,
|
|
51
|
-
interpolateToCurve:
|
|
52
|
-
labelHelper:
|
|
51
|
+
interpolateToCurve: ee,
|
|
52
|
+
labelHelper: ue,
|
|
53
53
|
log: r,
|
|
54
54
|
positionEdgeLabel: me
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
}, be = [
|
|
56
|
+
"elk.stress",
|
|
57
|
+
"elk.force",
|
|
58
|
+
"elk.mrtree",
|
|
59
|
+
"elk.sporeOverlap",
|
|
60
|
+
"elk.box",
|
|
61
|
+
"elk.rectpacking"
|
|
62
|
+
], xe = /* @__PURE__ */ Object.create(null), Se = /* @__PURE__ */ t((e) => {
|
|
63
|
+
for (let t of e) xe[t.name] = t;
|
|
64
|
+
}, "registerLayoutLoaders"), Ce = /* @__PURE__ */ t(() => {
|
|
65
|
+
let e = /* @__PURE__ */ t(async () => await import("./elk-IJKZMXRS-V31is6hS.js"), "loader");
|
|
66
|
+
return [{
|
|
67
|
+
name: "elk",
|
|
68
|
+
loader: e,
|
|
69
|
+
algorithm: "elk.layered"
|
|
70
|
+
}, ...be.map((t) => ({
|
|
71
|
+
name: t,
|
|
72
|
+
loader: e,
|
|
73
|
+
algorithm: t
|
|
74
|
+
}))];
|
|
75
|
+
}, "elkLayoutLoaders");
|
|
58
76
|
(/* @__PURE__ */ t(() => {
|
|
59
|
-
|
|
77
|
+
Se([
|
|
60
78
|
{
|
|
61
79
|
name: "dagre",
|
|
62
|
-
loader: /* @__PURE__ */ t(async () => await import("./dagre-
|
|
80
|
+
loader: /* @__PURE__ */ t(async () => await import("./dagre-W4DXFKR2-ECmxkO0T.js"), "loader")
|
|
63
81
|
},
|
|
64
82
|
{
|
|
65
83
|
name: "swimlane",
|
|
66
|
-
loader: /* @__PURE__ */ t(async () => await import("./swimlanes-
|
|
84
|
+
loader: /* @__PURE__ */ t(async () => await import("./swimlanes-N4OXWK64-DipLcZla.js"), "loader")
|
|
67
85
|
},
|
|
68
86
|
{
|
|
69
87
|
name: "cose-bilkent",
|
|
70
88
|
loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-JH36ORCC-qPjrc3_9.js"), "loader")
|
|
71
|
-
}
|
|
89
|
+
},
|
|
90
|
+
...Ce()
|
|
72
91
|
]);
|
|
73
92
|
}, "registerDefaultLayoutLoaders"))();
|
|
74
|
-
var
|
|
75
|
-
if (!(e.layoutAlgorithm
|
|
93
|
+
var we = /* @__PURE__ */ t(async (e, t) => {
|
|
94
|
+
if (!Object.hasOwn(xe, e.layoutAlgorithm)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
76
95
|
if (e.diagramId) for (let t of e.nodes) {
|
|
77
96
|
let n = t.domId || t.id;
|
|
78
97
|
t.domId = `${e.diagramId}-${n}`;
|
|
79
98
|
}
|
|
80
|
-
let n =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}, "render"), ke = /* @__PURE__ */ t((e = "", { fallback: t = "dagre" } = {}) => {
|
|
87
|
-
if (e in Ee) return e;
|
|
88
|
-
if (t in Ee) return r.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
89
|
-
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
99
|
+
let n = xe[e.layoutAlgorithm], r = await n.loader();
|
|
100
|
+
return le(t, e.config), r.render(e, t, ye, { algorithm: n.algorithm });
|
|
101
|
+
}, "render"), Te = "dagre", Ee = /* @__PURE__ */ t((e = "", { fallback: t = Te } = {}) => {
|
|
102
|
+
if (Object.hasOwn(xe, e)) return e;
|
|
103
|
+
for (let n of [t, Te]) if (Object.hasOwn(xe, n)) return r.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`), n;
|
|
104
|
+
throw Error(`Neither layout algorithm ${e}, ${t}, nor ${Te} is registered.`);
|
|
90
105
|
}, "getRegisteredLayoutAlgorithm");
|
|
91
106
|
//#endregion
|
|
92
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2I77ZZE.mjs
|
|
93
|
-
function Ae(e, { edgePathsClass: t = "edges edgePath" } = {}) {
|
|
94
|
-
let n = e.insert("g").attr("class", "root");
|
|
95
|
-
return {
|
|
96
|
-
clusters: n.insert("g").attr("class", "clusters"),
|
|
97
|
-
edgePaths: n.insert("g").attr("class", t),
|
|
98
|
-
edgeLabels: n.insert("g").attr("class", "edgeLabels"),
|
|
99
|
-
nodes: n.insert("g").attr("class", "nodes"),
|
|
100
|
-
rootGroups: n
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
t(Ae, "createLayoutElementGroups");
|
|
104
|
-
async function je(e, t) {
|
|
105
|
-
if (t.label) {
|
|
106
|
-
let { shapeSvg: n, bbox: r } = await ce(e, t);
|
|
107
|
-
t.labelBBox = {
|
|
108
|
-
width: r.width,
|
|
109
|
-
height: r.height
|
|
110
|
-
}, n.remove();
|
|
111
|
-
} else t.labelBBox = {
|
|
112
|
-
width: 0,
|
|
113
|
-
height: 0
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
t(je, "measureGroupLabel");
|
|
117
|
-
async function Me(e, t, n) {
|
|
118
|
-
let r = await de(e, t, n), i = r.node()?.getBBox() ?? {
|
|
119
|
-
width: 0,
|
|
120
|
-
height: 0
|
|
121
|
-
};
|
|
122
|
-
return t.width = i.width, t.height = i.height, r;
|
|
123
|
-
}
|
|
124
|
-
t(Me, "insertMeasuredNode");
|
|
125
|
-
async function Ne(e, t) {
|
|
126
|
-
let n = new ye({
|
|
127
|
-
multigraph: !0,
|
|
128
|
-
compound: !0
|
|
129
|
-
}), r = [...t.edges], i = j(), a = Ae(e), { edgeLabels: o, nodes: s } = a, c = /* @__PURE__ */ new Map(), l = e.node() != null;
|
|
130
|
-
await Promise.all(t.nodes.map(async (e) => {
|
|
131
|
-
if (e.isGroup) l && await je(s, e), n.setNode(e.id, { ...e });
|
|
132
|
-
else {
|
|
133
|
-
if (l) {
|
|
134
|
-
let t = await Me(s, e, {
|
|
135
|
-
config: i,
|
|
136
|
-
dir: e.dir
|
|
137
|
-
});
|
|
138
|
-
c.set(e.id, t);
|
|
139
|
-
}
|
|
140
|
-
n.setNode(e.id, { ...e });
|
|
141
|
-
}
|
|
142
|
-
}));
|
|
143
|
-
for (let e of r) l && ge(e) && await pe(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
144
|
-
if (globalThis.mermaidCaptureSizes) {
|
|
145
|
-
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-B5Lg3qGn.js");
|
|
146
|
-
n(e, t);
|
|
147
|
-
}
|
|
148
|
-
return {
|
|
149
|
-
graph: n,
|
|
150
|
-
groups: a,
|
|
151
|
-
nodeElements: c
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
t(Ne, "createGraphWithElements");
|
|
155
|
-
var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ t(() => {
|
|
156
|
-
V.clear(), Pe.clear(), B.clear();
|
|
157
|
-
}, "clear"), Ie = /* @__PURE__ */ t((e, t) => {
|
|
158
|
-
let n = V.get(t) || [];
|
|
159
|
-
return r.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
160
|
-
}, "isDescendant"), Le = /* @__PURE__ */ t((e, t) => {
|
|
161
|
-
let n = V.get(t) || [];
|
|
162
|
-
return r.info("Descendants of ", t, " is ", n), r.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || Ie(e.v, t) || Ie(e.w, t) || n.includes(e.w) : (r.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
163
|
-
}, "edgeInCluster"), Re = /* @__PURE__ */ t((e, t, n, i) => {
|
|
164
|
-
r.debug("Copying children of ", e, "root", i, "data", t.node(e), i);
|
|
165
|
-
let a = t.children(e) || [];
|
|
166
|
-
e !== i && a.push(e), r.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
|
|
167
|
-
if (t.children(a).length > 0) Re(a, t, n, i);
|
|
168
|
-
else {
|
|
169
|
-
let o = t.node(a);
|
|
170
|
-
r.info("cp ", a, " to ", i, " with parent ", e), n.setNode(a, o), i !== t.parent(a) && (r.debug("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== i && a !== e ? (r.debug("Setting parent", a, e), n.setParent(a, e)) : (r.info("In copy ", e, "root", i, "data", t.node(e), i), r.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
|
|
171
|
-
let s = t.edges(a);
|
|
172
|
-
r.debug("Copying Edges", s), s.forEach((a) => {
|
|
173
|
-
r.info("Edge", a);
|
|
174
|
-
let o = t.edge(a.v, a.w, a.name);
|
|
175
|
-
r.info("Edge data", o, i);
|
|
176
|
-
try {
|
|
177
|
-
Le(a, i) ? (r.info("Copying as ", a.v, a.w, o, a.name), n.setEdge(a.v, a.w, o, a.name), r.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : r.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
|
|
178
|
-
} catch (e) {
|
|
179
|
-
r.error(e);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
r.debug("Removing node", a), t.removeNode(a);
|
|
184
|
-
});
|
|
185
|
-
}, "copy"), ze = /* @__PURE__ */ t((e, t) => {
|
|
186
|
-
let n = t.children(e), r = [...n];
|
|
187
|
-
for (let i of n) Pe.set(i, e), r = [...r, ...ze(i, t)];
|
|
188
|
-
return r;
|
|
189
|
-
}, "extractDescendants"), Be = /* @__PURE__ */ t((e, t, n) => {
|
|
190
|
-
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) => ({
|
|
191
|
-
v: e.v === t ? n : e.v,
|
|
192
|
-
w: e.w === t ? t : e.w
|
|
193
|
-
})), o = i.map((e) => ({
|
|
194
|
-
v: e.v,
|
|
195
|
-
w: e.w
|
|
196
|
-
}));
|
|
197
|
-
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
198
|
-
}, "findCommonEdges"), Ve = /* @__PURE__ */ t((e, t, n) => {
|
|
199
|
-
let i = t.children(e);
|
|
200
|
-
if (r.trace("Searching children of id ", e, i), i.length < 1) return e;
|
|
201
|
-
let a;
|
|
202
|
-
for (let e of i) {
|
|
203
|
-
let r = Ve(e, t, n), i = Be(t, n, r);
|
|
204
|
-
if (r) {
|
|
205
|
-
if (i.length > 0) a = r;
|
|
206
|
-
else return r;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return a;
|
|
210
|
-
}, "findNonClusterChild"), He = /* @__PURE__ */ t((e) => !B.has(e) || !B.get(e).externalConnections ? e : B.has(e) ? B.get(e).id : e, "getAnchorId"), Ue = /* @__PURE__ */ t((e, t) => {
|
|
211
|
-
if (!e || t > 10) {
|
|
212
|
-
r.debug("Opting out, no graph ");
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
r.debug("Opting in, graph "), e.nodes().forEach(function(t) {
|
|
216
|
-
e.children(t).length > 0 && (r.debug("Cluster identified", t, " Replacement id in edges: ", Ve(t, e, t)), V.set(t, ze(t, e)), B.set(t, {
|
|
217
|
-
id: Ve(t, e, t),
|
|
218
|
-
clusterData: e.node(t)
|
|
219
|
-
}));
|
|
220
|
-
}), e.nodes().forEach(function(t) {
|
|
221
|
-
let n = e.children(t), i = e.edges();
|
|
222
|
-
n.length > 0 ? (r.debug("Cluster identified", t, V), i.forEach((e) => {
|
|
223
|
-
Ie(e.v, t) ^ Ie(e.w, t) && (r.debug("Edge: ", e, " leaves cluster ", t), r.debug("Descendants of XXX ", t, ": ", V.get(t)), B.get(t).externalConnections = !0);
|
|
224
|
-
})) : r.debug("Not a cluster ", t, V);
|
|
225
|
-
});
|
|
226
|
-
for (let t of B.keys()) {
|
|
227
|
-
let n = B.get(t).id, r = e.parent(n);
|
|
228
|
-
r !== t && B.has(r) && !B.get(r).externalConnections && (B.get(t).id = r);
|
|
229
|
-
let i = e.edges().some((e) => e.v === t);
|
|
230
|
-
if (n && B.get(t)?.externalConnections && i && qe(e, n, t)) {
|
|
231
|
-
let r = Je(e, t, e.parent(n));
|
|
232
|
-
r && (B.get(t).id = r);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
e.edges().forEach(function(t) {
|
|
236
|
-
let n = e.edge(t);
|
|
237
|
-
r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
238
|
-
let i = t.v, a = t.w;
|
|
239
|
-
if (r.debug("Fix XXX", B, "ids:", t.v, t.w, "Translating: ", B.get(t.v), " --- ", B.get(t.w)), B.get(t.v) || B.get(t.w)) {
|
|
240
|
-
if (r.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), i = He(t.v), a = He(t.w), e.removeEdge(t.v, t.w, t.name), i !== t.v) {
|
|
241
|
-
let r = e.parent(i);
|
|
242
|
-
B.get(r).externalConnections = !0, n.fromCluster = t.v;
|
|
243
|
-
}
|
|
244
|
-
if (a !== t.w) {
|
|
245
|
-
let r = e.parent(a);
|
|
246
|
-
B.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
247
|
-
}
|
|
248
|
-
r.debug("Fix Replacing with XXX", i, a, t.name), e.setEdge(i, a, n, t.name);
|
|
249
|
-
}
|
|
250
|
-
}), We(e, 0), r.trace(B);
|
|
251
|
-
}, "adjustClustersAndEdges"), We = /* @__PURE__ */ t((e, t) => {
|
|
252
|
-
if (t > 10) {
|
|
253
|
-
r.error("Bailing out");
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
let n = e.nodes(), i = !1;
|
|
257
|
-
for (let t of n) {
|
|
258
|
-
let n = e.children(t);
|
|
259
|
-
i ||= n.length > 0;
|
|
260
|
-
}
|
|
261
|
-
if (!i) {
|
|
262
|
-
r.debug("Done, no node has children", e.nodes());
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
r.debug("Nodes = ", n, t);
|
|
266
|
-
for (let i of n) if (r.debug("Extracting node", i, B, B.has(i) && !B.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", t), !B.has(i)) r.debug("Not a cluster", i, t);
|
|
267
|
-
else if (!B.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
|
|
268
|
-
r.debug("Cluster without external connections, without a parent and with children", i, t);
|
|
269
|
-
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
270
|
-
B.get(i)?.clusterData?.dir && (n = B.get(i).clusterData.dir, r.debug("Fixing dir", B.get(i).clusterData.dir, n));
|
|
271
|
-
let a = new ye({
|
|
272
|
-
multigraph: !0,
|
|
273
|
-
compound: !0
|
|
274
|
-
}).setGraph({
|
|
275
|
-
rankdir: n,
|
|
276
|
-
nodesep: 50,
|
|
277
|
-
ranksep: 50,
|
|
278
|
-
marginx: 8,
|
|
279
|
-
marginy: 8
|
|
280
|
-
}).setDefaultEdgeLabel(function() {
|
|
281
|
-
return {};
|
|
282
|
-
});
|
|
283
|
-
Re(i, e, a, i), e.setNode(i, {
|
|
284
|
-
clusterNode: !0,
|
|
285
|
-
id: i,
|
|
286
|
-
clusterData: B.get(i).clusterData,
|
|
287
|
-
label: B.get(i).label,
|
|
288
|
-
graph: a
|
|
289
|
-
});
|
|
290
|
-
} else r.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !B.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), t), r.debug(B);
|
|
291
|
-
n = e.nodes(), r.debug("New list of nodes", n);
|
|
292
|
-
for (let i of n) {
|
|
293
|
-
let n = e.node(i);
|
|
294
|
-
r.debug(" Now next level", i, n), n?.clusterNode && We(n.graph, t + 1);
|
|
295
|
-
}
|
|
296
|
-
}, "extractor"), Ge = /* @__PURE__ */ t((e, t) => {
|
|
297
|
-
if (t.length === 0) return [];
|
|
298
|
-
let n = Object.assign([], t);
|
|
299
|
-
return t.forEach((t) => {
|
|
300
|
-
let r = Ge(e, e.children(t));
|
|
301
|
-
n = [...n, ...r];
|
|
302
|
-
}), n;
|
|
303
|
-
}, "sorter"), Ke = /* @__PURE__ */ t((e) => Ge(e, e.children()), "sortNodesByHierarchy"), qe = /* @__PURE__ */ t((e, t, n) => {
|
|
304
|
-
let r = e.parent(t);
|
|
305
|
-
for (; r && r !== n;) {
|
|
306
|
-
let t = B.get(r);
|
|
307
|
-
if (t && !t.externalConnections) return !0;
|
|
308
|
-
r = e.parent(r);
|
|
309
|
-
}
|
|
310
|
-
return !1;
|
|
311
|
-
}, "isNodeInExtractableCluster"), Je = /* @__PURE__ */ t((e, t, n) => {
|
|
312
|
-
let r = e.children(t) ?? [];
|
|
313
|
-
for (let i of r) {
|
|
314
|
-
if (i === n || Ie(i, n)) continue;
|
|
315
|
-
let r = Ve(i, e, t);
|
|
316
|
-
if (r && !qe(e, r, t)) return r;
|
|
317
|
-
}
|
|
318
|
-
return null;
|
|
319
|
-
}, "findSafeAnchorNode");
|
|
320
|
-
function Ye({ prepareLayout: e, measureLayout: n, runLayoutCore: r, paintLayout: i, afterPaint: a, paintOptions: o }) {
|
|
321
|
-
let s = n ?? Ze;
|
|
322
|
-
return /* @__PURE__ */ t(async function(t, n, c, l) {
|
|
323
|
-
let u = n.select("g");
|
|
324
|
-
(c?.insertMarkers ?? _e)(u, t.markers, t.type, t.diagramId), Xe();
|
|
325
|
-
let d = {
|
|
326
|
-
element: u,
|
|
327
|
-
helpers: c,
|
|
328
|
-
options: l
|
|
329
|
-
};
|
|
330
|
-
d.preparedLayout = await e?.(t, d);
|
|
331
|
-
let f = await s(t, d), p = await r(t, d), m = {
|
|
332
|
-
...d,
|
|
333
|
-
measure: f
|
|
334
|
-
};
|
|
335
|
-
i ? await i(t, m, p) : await Qe(t, m, o), await a?.(t, m, p);
|
|
336
|
-
}, "render");
|
|
337
|
-
}
|
|
338
|
-
t(Ye, "createCommonLayoutRenderer");
|
|
339
|
-
function Xe() {
|
|
340
|
-
fe(), ve(), xe(), Fe();
|
|
341
|
-
}
|
|
342
|
-
t(Xe, "clearLayoutRenderState");
|
|
343
|
-
async function Ze(e, { element: t }) {
|
|
344
|
-
return await Ne(t, e);
|
|
345
|
-
}
|
|
346
|
-
t(Ze, "defaultMeasureLayout");
|
|
347
|
-
async function Qe(e, t, n = {}) {
|
|
348
|
-
let { measure: r } = t, { groups: i } = r;
|
|
349
|
-
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await $e(i, r, t, n);
|
|
350
|
-
let a = tt(e.nodes);
|
|
351
|
-
for (let r of e.edges) nt(r, n) || await rt(i, r, a, e, n, t);
|
|
352
|
-
}
|
|
353
|
-
t(Qe, "paintLayoutData");
|
|
354
|
-
async function $e(e, t, n, r) {
|
|
355
|
-
t.clusterNode ? le(t) : et(t, n, r) ? await be(e.clusters, t) : le(t);
|
|
356
|
-
}
|
|
357
|
-
t($e, "paintLayoutNode");
|
|
358
|
-
function et(e, t, n) {
|
|
359
|
-
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
360
|
-
}
|
|
361
|
-
t(et, "shouldPaintAsCluster");
|
|
362
|
-
function tt(e) {
|
|
363
|
-
let t = /* @__PURE__ */ new Map();
|
|
364
|
-
for (let n of e) n?.id && t.set(n.id, n);
|
|
365
|
-
return t;
|
|
366
|
-
}
|
|
367
|
-
t(tt, "buildNodeLookup");
|
|
368
|
-
function nt(e, t) {
|
|
369
|
-
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
370
|
-
}
|
|
371
|
-
t(nt, "shouldSkipPaintEdge");
|
|
372
|
-
async function rt(e, t, n, r, i, a) {
|
|
373
|
-
let o = R(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, it(t.start, t, n, a, i), it(t.end, t, n, a, i), r.diagramId, at(t, i));
|
|
374
|
-
ge(t) && (he.has(t.id) || await pe(e.edgeLabels, t), ot(t, o));
|
|
375
|
-
}
|
|
376
|
-
t(rt, "paintLayoutEdge");
|
|
377
|
-
function it(e, t, n, r, i) {
|
|
378
|
-
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
379
|
-
}
|
|
380
|
-
t(it, "getRenderedNode");
|
|
381
|
-
function at(e, t) {
|
|
382
|
-
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
383
|
-
}
|
|
384
|
-
t(at, "shouldSkipIntersect");
|
|
385
|
-
function ot(e, t) {
|
|
386
|
-
let n = t?.updatedPath ?? t?.originalPath, i = b(), { subGraphTitleTotalMargin: a } = ue({ flowchart: i.flowchart ?? {} });
|
|
387
|
-
if (e.label) {
|
|
388
|
-
let i = he.get(e.id), o = e.x, s = e.y;
|
|
389
|
-
if (n) {
|
|
390
|
-
let i = F.calcLabelPosition(n);
|
|
391
|
-
r.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), t?.updatedPath && (o = i.x, s = i.y);
|
|
392
|
-
}
|
|
393
|
-
i.attr("transform", `translate(${o}, ${s + a / 2})`);
|
|
394
|
-
}
|
|
395
|
-
if (e?.startLabelLeft) {
|
|
396
|
-
let t = z.get(e.id).startLeft, r = e?.x, i = e?.y;
|
|
397
|
-
if (n) {
|
|
398
|
-
let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
|
|
399
|
-
r = t.x, i = t.y;
|
|
400
|
-
}
|
|
401
|
-
t.attr("transform", `translate(${r}, ${i})`);
|
|
402
|
-
}
|
|
403
|
-
if (e.startLabelRight) {
|
|
404
|
-
let t = z.get(e.id).startRight, r = e.x, i = e.y;
|
|
405
|
-
if (n) {
|
|
406
|
-
let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
|
|
407
|
-
r = t.x, i = t.y;
|
|
408
|
-
}
|
|
409
|
-
t.attr("transform", `translate(${r}, ${i})`);
|
|
410
|
-
}
|
|
411
|
-
if (e.endLabelLeft) {
|
|
412
|
-
let t = z.get(e.id).endLeft, r = e.x, i = e.y;
|
|
413
|
-
if (n) {
|
|
414
|
-
let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
|
|
415
|
-
r = t.x, i = t.y;
|
|
416
|
-
}
|
|
417
|
-
t.attr("transform", `translate(${r}, ${i})`);
|
|
418
|
-
}
|
|
419
|
-
if (e.endLabelRight) {
|
|
420
|
-
let t = z.get(e.id).endRight, r = e.x, i = e.y;
|
|
421
|
-
if (n) {
|
|
422
|
-
let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
|
|
423
|
-
r = t.x, i = t.y;
|
|
424
|
-
}
|
|
425
|
-
t.attr("transform", `translate(${r}, ${i})`);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
t(ot, "positionRenderedEdgeLabel");
|
|
429
|
-
//#endregion
|
|
430
107
|
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
|
|
431
|
-
function
|
|
108
|
+
function De(e) {
|
|
432
109
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
433
110
|
}
|
|
434
|
-
t(
|
|
435
|
-
var
|
|
436
|
-
function
|
|
437
|
-
if (
|
|
438
|
-
|
|
111
|
+
t(De, "getDefaultExportFromCjs");
|
|
112
|
+
var V = {}, Oe = {}, H = {}, ke;
|
|
113
|
+
function U() {
|
|
114
|
+
if (ke) return H;
|
|
115
|
+
ke = 1;
|
|
439
116
|
function e(e) {
|
|
440
117
|
return e == null;
|
|
441
118
|
}
|
|
@@ -468,13 +145,13 @@ function W() {
|
|
|
468
145
|
function o(e) {
|
|
469
146
|
return e === 0 && 1 / e == -Infinity;
|
|
470
147
|
}
|
|
471
|
-
return t(o, "isNegativeZero"),
|
|
148
|
+
return t(o, "isNegativeZero"), H.isNothing = e, H.isObject = n, H.toArray = r, H.repeat = a, H.isNegativeZero = o, H.extend = i, H;
|
|
472
149
|
}
|
|
473
|
-
t(
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
if (
|
|
477
|
-
|
|
150
|
+
t(U, "requireCommon");
|
|
151
|
+
var Ae, je;
|
|
152
|
+
function W() {
|
|
153
|
+
if (je) return Ae;
|
|
154
|
+
je = 1;
|
|
478
155
|
function e(e, t) {
|
|
479
156
|
let n = "", r = e.reason || "(unknown reason)";
|
|
480
157
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
@@ -485,14 +162,14 @@ function G() {
|
|
|
485
162
|
}
|
|
486
163
|
return t(n, "YAMLException2"), n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.prototype.toString = /* @__PURE__ */ t(function(t) {
|
|
487
164
|
return this.name + ": " + e(this, t);
|
|
488
|
-
}, "toString"),
|
|
489
|
-
}
|
|
490
|
-
t(
|
|
491
|
-
var
|
|
492
|
-
function
|
|
493
|
-
if (
|
|
494
|
-
|
|
495
|
-
let e =
|
|
165
|
+
}, "toString"), Ae = n, Ae;
|
|
166
|
+
}
|
|
167
|
+
t(W, "requireException");
|
|
168
|
+
var Me, Ne;
|
|
169
|
+
function Pe() {
|
|
170
|
+
if (Ne) return Me;
|
|
171
|
+
Ne = 1;
|
|
172
|
+
let e = U();
|
|
496
173
|
function n(e, t, n, r, i) {
|
|
497
174
|
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
498
175
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
@@ -524,14 +201,14 @@ function mt() {
|
|
|
524
201
|
}
|
|
525
202
|
return u.replace(/\n$/, "");
|
|
526
203
|
}
|
|
527
|
-
return t(i, "makeSnippet"),
|
|
204
|
+
return t(i, "makeSnippet"), Me = i, Me;
|
|
528
205
|
}
|
|
529
|
-
t(
|
|
530
|
-
var
|
|
531
|
-
function
|
|
532
|
-
if (
|
|
533
|
-
|
|
534
|
-
let e =
|
|
206
|
+
t(Pe, "requireSnippet");
|
|
207
|
+
var Fe, Ie;
|
|
208
|
+
function G() {
|
|
209
|
+
if (Ie) return Fe;
|
|
210
|
+
Ie = 1;
|
|
211
|
+
let e = W(), n = [
|
|
535
212
|
"kind",
|
|
536
213
|
"multi",
|
|
537
214
|
"resolve",
|
|
@@ -565,14 +242,14 @@ function K() {
|
|
|
565
242
|
return e;
|
|
566
243
|
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = i(a.styleAliases || null), r.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + t + "\" YAML type.");
|
|
567
244
|
}
|
|
568
|
-
return t(a, "Type2"),
|
|
245
|
+
return t(a, "Type2"), Fe = a, Fe;
|
|
569
246
|
}
|
|
570
|
-
t(
|
|
571
|
-
var
|
|
572
|
-
function
|
|
573
|
-
if (
|
|
574
|
-
|
|
575
|
-
let e =
|
|
247
|
+
t(G, "requireType");
|
|
248
|
+
var Le, Re;
|
|
249
|
+
function ze() {
|
|
250
|
+
if (Re) return Le;
|
|
251
|
+
Re = 1;
|
|
252
|
+
let e = W(), n = G();
|
|
576
253
|
function r(e, t) {
|
|
577
254
|
let n = [];
|
|
578
255
|
return e[t].forEach(function(e) {
|
|
@@ -622,53 +299,53 @@ function yt() {
|
|
|
622
299
|
});
|
|
623
300
|
let c = Object.create(a.prototype);
|
|
624
301
|
return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = r(c, "implicit"), c.compiledExplicit = r(c, "explicit"), c.compiledTypeMap = i(c.compiledImplicit, c.compiledExplicit), c;
|
|
625
|
-
}, "extend"),
|
|
302
|
+
}, "extend"), Le = a, Le;
|
|
626
303
|
}
|
|
627
|
-
t(
|
|
628
|
-
var
|
|
629
|
-
function
|
|
630
|
-
return
|
|
304
|
+
t(ze, "requireSchema");
|
|
305
|
+
var Be, Ve;
|
|
306
|
+
function He() {
|
|
307
|
+
return Ve ? Be : (Ve = 1, Be = new (G())("tag:yaml.org,2002:str", {
|
|
631
308
|
kind: "scalar",
|
|
632
309
|
construct: /* @__PURE__ */ t(function(e) {
|
|
633
310
|
return e === null ? "" : e;
|
|
634
311
|
}, "construct")
|
|
635
|
-
}),
|
|
312
|
+
}), Be);
|
|
636
313
|
}
|
|
637
|
-
t(
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
return
|
|
314
|
+
t(He, "requireStr");
|
|
315
|
+
var Ue, We;
|
|
316
|
+
function Ge() {
|
|
317
|
+
return We ? Ue : (We = 1, Ue = new (G())("tag:yaml.org,2002:seq", {
|
|
641
318
|
kind: "sequence",
|
|
642
319
|
construct: /* @__PURE__ */ t(function(e) {
|
|
643
320
|
return e === null ? [] : e;
|
|
644
321
|
}, "construct")
|
|
645
|
-
}),
|
|
322
|
+
}), Ue);
|
|
646
323
|
}
|
|
647
|
-
t(
|
|
648
|
-
var
|
|
649
|
-
function
|
|
650
|
-
return
|
|
324
|
+
t(Ge, "requireSeq");
|
|
325
|
+
var Ke, qe;
|
|
326
|
+
function Je() {
|
|
327
|
+
return qe ? Ke : (qe = 1, Ke = new (G())("tag:yaml.org,2002:map", {
|
|
651
328
|
kind: "mapping",
|
|
652
329
|
construct: /* @__PURE__ */ t(function(e) {
|
|
653
330
|
return e === null ? {} : e;
|
|
654
331
|
}, "construct")
|
|
655
|
-
}),
|
|
656
|
-
}
|
|
657
|
-
t(
|
|
658
|
-
var
|
|
659
|
-
function
|
|
660
|
-
return
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
] }),
|
|
665
|
-
}
|
|
666
|
-
t(
|
|
667
|
-
var
|
|
668
|
-
function
|
|
669
|
-
if (
|
|
670
|
-
|
|
671
|
-
let e =
|
|
332
|
+
}), Ke);
|
|
333
|
+
}
|
|
334
|
+
t(Je, "requireMap");
|
|
335
|
+
var Ye, Xe;
|
|
336
|
+
function Ze() {
|
|
337
|
+
return Xe ? Ye : (Xe = 1, Ye = new (ze())({ explicit: [
|
|
338
|
+
He(),
|
|
339
|
+
Ge(),
|
|
340
|
+
Je()
|
|
341
|
+
] }), Ye);
|
|
342
|
+
}
|
|
343
|
+
t(Ze, "requireFailsafe");
|
|
344
|
+
var Qe, $e;
|
|
345
|
+
function et() {
|
|
346
|
+
if ($e) return Qe;
|
|
347
|
+
$e = 1;
|
|
348
|
+
let e = G();
|
|
672
349
|
function n(e) {
|
|
673
350
|
if (e === null) return !0;
|
|
674
351
|
let t = e.length;
|
|
@@ -682,7 +359,7 @@ function Pt() {
|
|
|
682
359
|
function i(e) {
|
|
683
360
|
return e === null;
|
|
684
361
|
}
|
|
685
|
-
return t(i, "isNull"),
|
|
362
|
+
return t(i, "isNull"), Qe = new e("tag:yaml.org,2002:null", {
|
|
686
363
|
kind: "scalar",
|
|
687
364
|
resolve: n,
|
|
688
365
|
construct: r,
|
|
@@ -705,14 +382,14 @@ function Pt() {
|
|
|
705
382
|
}, "empty")
|
|
706
383
|
},
|
|
707
384
|
defaultStyle: "lowercase"
|
|
708
|
-
}),
|
|
709
|
-
}
|
|
710
|
-
t(
|
|
711
|
-
var
|
|
712
|
-
function
|
|
713
|
-
if (
|
|
714
|
-
|
|
715
|
-
let e =
|
|
385
|
+
}), Qe;
|
|
386
|
+
}
|
|
387
|
+
t(et, "require_null");
|
|
388
|
+
var tt, nt;
|
|
389
|
+
function rt() {
|
|
390
|
+
if (nt) return tt;
|
|
391
|
+
nt = 1;
|
|
392
|
+
let e = G();
|
|
716
393
|
function n(e) {
|
|
717
394
|
if (e === null) return !1;
|
|
718
395
|
let t = e.length;
|
|
@@ -726,7 +403,7 @@ function Lt() {
|
|
|
726
403
|
function i(e) {
|
|
727
404
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
728
405
|
}
|
|
729
|
-
return t(i, "isBoolean"),
|
|
406
|
+
return t(i, "isBoolean"), tt = new e("tag:yaml.org,2002:bool", {
|
|
730
407
|
kind: "scalar",
|
|
731
408
|
resolve: n,
|
|
732
409
|
construct: r,
|
|
@@ -743,14 +420,14 @@ function Lt() {
|
|
|
743
420
|
}, "camelcase")
|
|
744
421
|
},
|
|
745
422
|
defaultStyle: "lowercase"
|
|
746
|
-
}),
|
|
747
|
-
}
|
|
748
|
-
t(
|
|
749
|
-
var
|
|
750
|
-
function
|
|
751
|
-
if (
|
|
752
|
-
|
|
753
|
-
let e =
|
|
423
|
+
}), tt;
|
|
424
|
+
}
|
|
425
|
+
t(rt, "requireBool");
|
|
426
|
+
var it, at;
|
|
427
|
+
function ot() {
|
|
428
|
+
if (at) return it;
|
|
429
|
+
at = 1;
|
|
430
|
+
let e = U(), n = G();
|
|
754
431
|
function r(e) {
|
|
755
432
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
756
433
|
}
|
|
@@ -817,7 +494,7 @@ function Bt() {
|
|
|
817
494
|
function l(t) {
|
|
818
495
|
return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
|
|
819
496
|
}
|
|
820
|
-
return t(l, "isInteger"),
|
|
497
|
+
return t(l, "isInteger"), it = new n("tag:yaml.org,2002:int", {
|
|
821
498
|
kind: "scalar",
|
|
822
499
|
resolve: o,
|
|
823
500
|
construct: c,
|
|
@@ -843,14 +520,14 @@ function Bt() {
|
|
|
843
520
|
decimal: [10, "dec"],
|
|
844
521
|
hexadecimal: [16, "hex"]
|
|
845
522
|
}
|
|
846
|
-
}),
|
|
523
|
+
}), it;
|
|
847
524
|
}
|
|
848
|
-
t(
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
if (
|
|
852
|
-
|
|
853
|
-
let e =
|
|
525
|
+
t(ot, "requireInt");
|
|
526
|
+
var st, ct;
|
|
527
|
+
function lt() {
|
|
528
|
+
if (ct) return st;
|
|
529
|
+
ct = 1;
|
|
530
|
+
let e = U(), n = G(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
854
531
|
function a(e) {
|
|
855
532
|
return e === null || !r.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : i.test(e);
|
|
856
533
|
}
|
|
@@ -885,36 +562,36 @@ function Ut() {
|
|
|
885
562
|
function l(t) {
|
|
886
563
|
return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
|
|
887
564
|
}
|
|
888
|
-
return t(l, "isFloat"),
|
|
565
|
+
return t(l, "isFloat"), st = new n("tag:yaml.org,2002:float", {
|
|
889
566
|
kind: "scalar",
|
|
890
567
|
resolve: a,
|
|
891
568
|
construct: o,
|
|
892
569
|
predicate: l,
|
|
893
570
|
represent: c,
|
|
894
571
|
defaultStyle: "lowercase"
|
|
895
|
-
}),
|
|
896
|
-
}
|
|
897
|
-
t(
|
|
898
|
-
var
|
|
899
|
-
function
|
|
900
|
-
return
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
] }),
|
|
906
|
-
}
|
|
907
|
-
t(
|
|
908
|
-
var
|
|
909
|
-
function
|
|
910
|
-
return
|
|
911
|
-
}
|
|
912
|
-
t(
|
|
913
|
-
var
|
|
914
|
-
function
|
|
915
|
-
if (
|
|
916
|
-
|
|
917
|
-
let e =
|
|
572
|
+
}), st;
|
|
573
|
+
}
|
|
574
|
+
t(lt, "requireFloat");
|
|
575
|
+
var ut, dt;
|
|
576
|
+
function ft() {
|
|
577
|
+
return dt ? ut : (dt = 1, ut = Ze().extend({ implicit: [
|
|
578
|
+
et(),
|
|
579
|
+
rt(),
|
|
580
|
+
ot(),
|
|
581
|
+
lt()
|
|
582
|
+
] }), ut);
|
|
583
|
+
}
|
|
584
|
+
t(ft, "requireJson");
|
|
585
|
+
var pt, mt;
|
|
586
|
+
function ht() {
|
|
587
|
+
return mt ? pt : (mt = 1, pt = ft(), pt);
|
|
588
|
+
}
|
|
589
|
+
t(ht, "requireCore");
|
|
590
|
+
var gt, _t;
|
|
591
|
+
function vt() {
|
|
592
|
+
if (_t) return gt;
|
|
593
|
+
_t = 1;
|
|
594
|
+
let e = G(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
918
595
|
function i(e) {
|
|
919
596
|
return e === null ? !1 : n.exec(e) !== null || r.exec(e) !== null;
|
|
920
597
|
}
|
|
@@ -940,34 +617,34 @@ function Qt() {
|
|
|
940
617
|
function o(e) {
|
|
941
618
|
return e.toISOString();
|
|
942
619
|
}
|
|
943
|
-
return t(o, "representYamlTimestamp"),
|
|
620
|
+
return t(o, "representYamlTimestamp"), gt = new e("tag:yaml.org,2002:timestamp", {
|
|
944
621
|
kind: "scalar",
|
|
945
622
|
resolve: i,
|
|
946
623
|
construct: a,
|
|
947
624
|
instanceOf: Date,
|
|
948
625
|
represent: o
|
|
949
|
-
}),
|
|
950
|
-
}
|
|
951
|
-
t(
|
|
952
|
-
var
|
|
953
|
-
function
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
-
let e =
|
|
626
|
+
}), gt;
|
|
627
|
+
}
|
|
628
|
+
t(vt, "requireTimestamp");
|
|
629
|
+
var yt, bt;
|
|
630
|
+
function xt() {
|
|
631
|
+
if (bt) return yt;
|
|
632
|
+
bt = 1;
|
|
633
|
+
let e = G();
|
|
957
634
|
function n(e) {
|
|
958
635
|
return e === "<<" || e === null;
|
|
959
636
|
}
|
|
960
|
-
return t(n, "resolveYamlMerge"),
|
|
637
|
+
return t(n, "resolveYamlMerge"), yt = new e("tag:yaml.org,2002:merge", {
|
|
961
638
|
kind: "scalar",
|
|
962
639
|
resolve: n
|
|
963
|
-
}),
|
|
964
|
-
}
|
|
965
|
-
t(
|
|
966
|
-
var
|
|
967
|
-
function
|
|
968
|
-
if (
|
|
969
|
-
|
|
970
|
-
let e =
|
|
640
|
+
}), yt;
|
|
641
|
+
}
|
|
642
|
+
t(xt, "requireMerge");
|
|
643
|
+
var St, Ct;
|
|
644
|
+
function wt() {
|
|
645
|
+
if (Ct) return St;
|
|
646
|
+
Ct = 1;
|
|
647
|
+
let e = G();
|
|
971
648
|
function n(e) {
|
|
972
649
|
if (e === null) return !1;
|
|
973
650
|
let t = 0, n = e.length;
|
|
@@ -998,20 +675,20 @@ function an() {
|
|
|
998
675
|
function a(e) {
|
|
999
676
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1000
677
|
}
|
|
1001
|
-
return t(a, "isBinary"),
|
|
678
|
+
return t(a, "isBinary"), St = new e("tag:yaml.org,2002:binary", {
|
|
1002
679
|
kind: "scalar",
|
|
1003
680
|
resolve: n,
|
|
1004
681
|
construct: r,
|
|
1005
682
|
predicate: a,
|
|
1006
683
|
represent: i
|
|
1007
|
-
}),
|
|
1008
|
-
}
|
|
1009
|
-
t(
|
|
1010
|
-
var
|
|
1011
|
-
function
|
|
1012
|
-
if (
|
|
1013
|
-
|
|
1014
|
-
let e =
|
|
684
|
+
}), St;
|
|
685
|
+
}
|
|
686
|
+
t(wt, "requireBinary");
|
|
687
|
+
var Tt, Et;
|
|
688
|
+
function Dt() {
|
|
689
|
+
if (Et) return Tt;
|
|
690
|
+
Et = 1;
|
|
691
|
+
let e = G(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
|
|
1015
692
|
function i(e) {
|
|
1016
693
|
if (e === null) return !0;
|
|
1017
694
|
let t = [], i = e;
|
|
@@ -1033,18 +710,18 @@ function cn() {
|
|
|
1033
710
|
function a(e) {
|
|
1034
711
|
return e === null ? [] : e;
|
|
1035
712
|
}
|
|
1036
|
-
return t(a, "constructYamlOmap"),
|
|
713
|
+
return t(a, "constructYamlOmap"), Tt = new e("tag:yaml.org,2002:omap", {
|
|
1037
714
|
kind: "sequence",
|
|
1038
715
|
resolve: i,
|
|
1039
716
|
construct: a
|
|
1040
|
-
}),
|
|
1041
|
-
}
|
|
1042
|
-
t(
|
|
1043
|
-
var
|
|
1044
|
-
function
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1047
|
-
let e =
|
|
717
|
+
}), Tt;
|
|
718
|
+
}
|
|
719
|
+
t(Dt, "requireOmap");
|
|
720
|
+
var Ot, kt;
|
|
721
|
+
function At() {
|
|
722
|
+
if (kt) return Ot;
|
|
723
|
+
kt = 1;
|
|
724
|
+
let e = G(), n = Object.prototype.toString;
|
|
1048
725
|
function r(e) {
|
|
1049
726
|
if (e === null) return !0;
|
|
1050
727
|
let t = e, r = Array(t.length);
|
|
@@ -1067,18 +744,18 @@ function dn() {
|
|
|
1067
744
|
}
|
|
1068
745
|
return n;
|
|
1069
746
|
}
|
|
1070
|
-
return t(i, "constructYamlPairs"),
|
|
747
|
+
return t(i, "constructYamlPairs"), Ot = new e("tag:yaml.org,2002:pairs", {
|
|
1071
748
|
kind: "sequence",
|
|
1072
749
|
resolve: r,
|
|
1073
750
|
construct: i
|
|
1074
|
-
}),
|
|
1075
|
-
}
|
|
1076
|
-
t(
|
|
1077
|
-
var
|
|
1078
|
-
function
|
|
1079
|
-
if (
|
|
1080
|
-
|
|
1081
|
-
let e =
|
|
751
|
+
}), Ot;
|
|
752
|
+
}
|
|
753
|
+
t(At, "requirePairs");
|
|
754
|
+
var jt, Mt;
|
|
755
|
+
function Nt() {
|
|
756
|
+
if (Mt) return jt;
|
|
757
|
+
Mt = 1;
|
|
758
|
+
let e = G(), n = Object.prototype.hasOwnProperty;
|
|
1082
759
|
function r(e) {
|
|
1083
760
|
if (e === null) return !0;
|
|
1084
761
|
let t = e;
|
|
@@ -1089,31 +766,31 @@ function mn() {
|
|
|
1089
766
|
function i(e) {
|
|
1090
767
|
return e === null ? {} : e;
|
|
1091
768
|
}
|
|
1092
|
-
return t(i, "constructYamlSet"),
|
|
769
|
+
return t(i, "constructYamlSet"), jt = new e("tag:yaml.org,2002:set", {
|
|
1093
770
|
kind: "mapping",
|
|
1094
771
|
resolve: r,
|
|
1095
772
|
construct: i
|
|
1096
|
-
}),
|
|
773
|
+
}), jt;
|
|
1097
774
|
}
|
|
1098
|
-
t(
|
|
1099
|
-
var
|
|
1100
|
-
function
|
|
1101
|
-
return
|
|
1102
|
-
implicit: [
|
|
775
|
+
t(Nt, "requireSet");
|
|
776
|
+
var Pt, Ft;
|
|
777
|
+
function It() {
|
|
778
|
+
return Ft ? Pt : (Ft = 1, Pt = ht().extend({
|
|
779
|
+
implicit: [vt(), xt()],
|
|
1103
780
|
explicit: [
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
781
|
+
wt(),
|
|
782
|
+
Dt(),
|
|
783
|
+
At(),
|
|
784
|
+
Nt()
|
|
1108
785
|
]
|
|
1109
|
-
}),
|
|
1110
|
-
}
|
|
1111
|
-
t(
|
|
1112
|
-
var
|
|
1113
|
-
function
|
|
1114
|
-
if (
|
|
1115
|
-
|
|
1116
|
-
let e =
|
|
786
|
+
}), Pt);
|
|
787
|
+
}
|
|
788
|
+
t(It, "require_default");
|
|
789
|
+
var Lt;
|
|
790
|
+
function Rt() {
|
|
791
|
+
if (Lt) return Oe;
|
|
792
|
+
Lt = 1;
|
|
793
|
+
let e = U(), n = W(), r = Pe(), i = It(), a = Object.prototype.hasOwnProperty, o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s = /[\x85\u2028\u2029]/, c = /[,\[\]{}]/, l = /^(?:!|!!|![0-9A-Za-z-]+!)$/, u = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1117
794
|
function d(e) {
|
|
1118
795
|
return Object.prototype.toString.call(e);
|
|
1119
796
|
}
|
|
@@ -1226,7 +903,7 @@ function yn() {
|
|
|
1226
903
|
e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
1227
904
|
}
|
|
1228
905
|
t(k, "beginAnchorTransaction");
|
|
1229
|
-
function
|
|
906
|
+
function A(e) {
|
|
1230
907
|
let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
|
|
1231
908
|
if (n.length === 0) return;
|
|
1232
909
|
let r = n[n.length - 1], i = Object.keys(t);
|
|
@@ -1235,16 +912,16 @@ function yn() {
|
|
|
1235
912
|
a.call(r, n) || (r[n] = t[n]);
|
|
1236
913
|
}
|
|
1237
914
|
}
|
|
1238
|
-
t(
|
|
1239
|
-
function
|
|
915
|
+
t(A, "commitAnchorTransaction");
|
|
916
|
+
function j(e) {
|
|
1240
917
|
let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
|
|
1241
918
|
for (let r = n.length - 1; r >= 0; --r) {
|
|
1242
919
|
let i = t[n[r]];
|
|
1243
920
|
i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
|
|
1244
921
|
}
|
|
1245
922
|
}
|
|
1246
|
-
t(
|
|
1247
|
-
function
|
|
923
|
+
t(j, "rollbackAnchorTransaction");
|
|
924
|
+
function M(e) {
|
|
1248
925
|
return {
|
|
1249
926
|
position: e.position,
|
|
1250
927
|
line: e.line,
|
|
@@ -1257,12 +934,12 @@ function yn() {
|
|
|
1257
934
|
result: e.result
|
|
1258
935
|
};
|
|
1259
936
|
}
|
|
1260
|
-
t(
|
|
1261
|
-
function
|
|
937
|
+
t(M, "snapshotState");
|
|
938
|
+
function N(e, t) {
|
|
1262
939
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
|
|
1263
940
|
}
|
|
1264
|
-
t(
|
|
1265
|
-
let
|
|
941
|
+
t(N, "restoreState");
|
|
942
|
+
let P = {
|
|
1266
943
|
YAML: /* @__PURE__ */ t(function(e, t, n) {
|
|
1267
944
|
e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument");
|
|
1268
945
|
let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
|
|
@@ -1283,7 +960,7 @@ function yn() {
|
|
|
1283
960
|
e.tagMap[i] = r;
|
|
1284
961
|
}, "handleTagDirective")
|
|
1285
962
|
};
|
|
1286
|
-
function
|
|
963
|
+
function F(e, t, n, r) {
|
|
1287
964
|
if (t < n) {
|
|
1288
965
|
let i = e.input.slice(t, n);
|
|
1289
966
|
if (r) for (let t = 0, n = i.length; t < n; t += 1) {
|
|
@@ -1294,8 +971,8 @@ function yn() {
|
|
|
1294
971
|
e.result += i;
|
|
1295
972
|
}
|
|
1296
973
|
}
|
|
1297
|
-
t(
|
|
1298
|
-
function
|
|
974
|
+
t(F, "captureSegment");
|
|
975
|
+
function I(t, n, r, i) {
|
|
1299
976
|
e.isObject(r) || E(t, "cannot merge mappings; the provided source object is unacceptable");
|
|
1300
977
|
let o = Object.keys(r);
|
|
1301
978
|
for (let e = 0, s = o.length; e < s; e += 1) {
|
|
@@ -1303,47 +980,47 @@ function yn() {
|
|
|
1303
980
|
t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && E(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), a.call(n, s) || (x(n, s, r[s]), i[s] = !0);
|
|
1304
981
|
}
|
|
1305
982
|
}
|
|
1306
|
-
t(
|
|
1307
|
-
function
|
|
983
|
+
t(I, "mergeMappings");
|
|
984
|
+
function L(e, t, n, r, i, o, s, c, l) {
|
|
1308
985
|
if (Array.isArray(i)) {
|
|
1309
986
|
i = Array.prototype.slice.call(i);
|
|
1310
987
|
for (let t = 0, n = i.length; t < n; t += 1) Array.isArray(i[t]) && E(e, "nested arrays are not supported inside keys"), typeof i == "object" && d(i[t]) === "[object Object]" && (i[t] = "[object Object]");
|
|
1311
988
|
}
|
|
1312
989
|
if (typeof i == "object" && d(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
|
|
1313
|
-
if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1)
|
|
1314
|
-
else
|
|
990
|
+
if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) I(e, t, o[r], n);
|
|
991
|
+
else I(e, t, o, n);
|
|
1315
992
|
} else !e.json && !a.call(n, i) && a.call(t, i) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), x(t, i, o), delete n[i];
|
|
1316
993
|
return t;
|
|
1317
994
|
}
|
|
1318
|
-
t(
|
|
1319
|
-
function
|
|
995
|
+
t(L, "storeMappingPair");
|
|
996
|
+
function R(e) {
|
|
1320
997
|
let t = e.input.charCodeAt(e.position);
|
|
1321
998
|
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1322
999
|
}
|
|
1323
|
-
t(
|
|
1324
|
-
function
|
|
1000
|
+
t(R, "readLineBreak");
|
|
1001
|
+
function z(e, t, n) {
|
|
1325
1002
|
let r = 0, i = e.input.charCodeAt(e.position);
|
|
1326
1003
|
for (; i !== 0;) {
|
|
1327
1004
|
for (; p(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1328
1005
|
if (t && i === 35) do
|
|
1329
1006
|
i = e.input.charCodeAt(++e.position);
|
|
1330
1007
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1331
|
-
if (f(i)) for (
|
|
1008
|
+
if (f(i)) for (R(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1332
1009
|
else break;
|
|
1333
1010
|
}
|
|
1334
1011
|
return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
|
|
1335
1012
|
}
|
|
1336
|
-
t(
|
|
1337
|
-
function
|
|
1013
|
+
t(z, "skipSeparationSpace");
|
|
1014
|
+
function ee(e) {
|
|
1338
1015
|
let t = e.position, n = e.input.charCodeAt(t);
|
|
1339
1016
|
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || m(n)));
|
|
1340
1017
|
}
|
|
1341
|
-
t(
|
|
1342
|
-
function
|
|
1018
|
+
t(ee, "testDocumentSeparator");
|
|
1019
|
+
function te(t, n) {
|
|
1343
1020
|
n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
|
|
1344
1021
|
}
|
|
1345
|
-
t(
|
|
1346
|
-
function
|
|
1022
|
+
t(te, "writeFoldedLines");
|
|
1023
|
+
function ne(e, t, n) {
|
|
1347
1024
|
let r, i, a, o, s, c, l = e.kind, u = e.result, d = e.input.charCodeAt(e.position);
|
|
1348
1025
|
if (m(d) || h(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96) return !1;
|
|
1349
1026
|
if (d === 63 || d === 45) {
|
|
@@ -1356,36 +1033,36 @@ function yn() {
|
|
|
1356
1033
|
if (m(t) || n && h(t)) break;
|
|
1357
1034
|
} else if (d === 35) {
|
|
1358
1035
|
if (m(e.input.charCodeAt(e.position - 1))) break;
|
|
1359
|
-
} else if (e.position === e.lineStart &&
|
|
1036
|
+
} else if (e.position === e.lineStart && ee(e) || n && h(d)) break;
|
|
1360
1037
|
else if (f(d)) {
|
|
1361
|
-
if (o = e.line, s = e.lineStart, c = e.lineIndent,
|
|
1038
|
+
if (o = e.line, s = e.lineStart, c = e.lineIndent, z(e, !1, -1), e.lineIndent >= t) {
|
|
1362
1039
|
a = !0, d = e.input.charCodeAt(e.position);
|
|
1363
1040
|
continue;
|
|
1364
1041
|
}
|
|
1365
1042
|
e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
|
|
1366
1043
|
break;
|
|
1367
1044
|
}
|
|
1368
|
-
a &&= (
|
|
1045
|
+
a &&= (F(e, r, i, !1), te(e, e.line - o), r = i = e.position, !1), p(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
|
|
1369
1046
|
}
|
|
1370
|
-
return
|
|
1047
|
+
return F(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
|
|
1371
1048
|
}
|
|
1372
|
-
t(
|
|
1373
|
-
function
|
|
1049
|
+
t(ne, "readPlainScalar");
|
|
1050
|
+
function re(e, t) {
|
|
1374
1051
|
let n, r, i = e.input.charCodeAt(e.position);
|
|
1375
1052
|
if (i !== 39) return !1;
|
|
1376
1053
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
|
|
1377
|
-
if (
|
|
1054
|
+
if (F(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
|
|
1378
1055
|
else return !0;
|
|
1379
|
-
} else f(i) ? (
|
|
1056
|
+
} else f(i) ? (F(e, n, r, !0), te(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ee(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, p(i) || (r = e.position));
|
|
1380
1057
|
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
1381
1058
|
}
|
|
1382
|
-
t(
|
|
1383
|
-
function
|
|
1059
|
+
t(re, "readSingleQuotedScalar");
|
|
1060
|
+
function ie(e, t) {
|
|
1384
1061
|
let n, r, i, a = e.input.charCodeAt(e.position);
|
|
1385
1062
|
if (a !== 34) return !1;
|
|
1386
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return
|
|
1063
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return F(e, n, e.position, !0), e.position++, !0;
|
|
1387
1064
|
else if (a === 92) {
|
|
1388
|
-
if (
|
|
1065
|
+
if (F(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), f(a)) z(e, !1, t);
|
|
1389
1066
|
else if (a < 256 && S[a]) e.result += C[a], e.position++;
|
|
1390
1067
|
else if ((i = _(a)) > 0) {
|
|
1391
1068
|
let t = i, n = 0;
|
|
@@ -1393,23 +1070,23 @@ function yn() {
|
|
|
1393
1070
|
e.result += b(n), e.position++;
|
|
1394
1071
|
} else E(e, "unknown escape sequence");
|
|
1395
1072
|
n = r = e.position;
|
|
1396
|
-
} else f(a) ? (
|
|
1073
|
+
} else f(a) ? (F(e, n, r, !0), te(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ee(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, p(a) || (r = e.position));
|
|
1397
1074
|
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
1398
1075
|
}
|
|
1399
|
-
t(
|
|
1400
|
-
function
|
|
1076
|
+
t(ie, "readDoubleQuotedScalar");
|
|
1077
|
+
function ae(e, t) {
|
|
1401
1078
|
let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
1402
1079
|
if (v === 91) l = 93, f = !1, s = [];
|
|
1403
1080
|
else if (v === 123) l = 125, f = !0, s = {};
|
|
1404
1081
|
else return !1;
|
|
1405
1082
|
for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
1406
|
-
if (
|
|
1407
|
-
n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && m(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++,
|
|
1083
|
+
if (z(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1084
|
+
n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && m(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, z(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, z(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), z(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? L(e, s, p, g, h, _, r, i, a) : u ? s.push(L(e, null, p, g, h, _, r, i, a)) : s.push(h), z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1408
1085
|
}
|
|
1409
1086
|
E(e, "unexpected end of the stream within a flow collection");
|
|
1410
1087
|
}
|
|
1411
|
-
t(
|
|
1412
|
-
function
|
|
1088
|
+
t(ae, "readFlowCollection");
|
|
1089
|
+
function oe(t, n) {
|
|
1413
1090
|
let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, d = t.input.charCodeAt(t.position);
|
|
1414
1091
|
if (d === 124) r = !1;
|
|
1415
1092
|
else if (d === 62) r = !0;
|
|
@@ -1426,7 +1103,7 @@ function yn() {
|
|
|
1426
1103
|
while (!f(d) && d !== 0);
|
|
1427
1104
|
}
|
|
1428
1105
|
for (; d !== 0;) {
|
|
1429
|
-
for (
|
|
1106
|
+
for (R(t), t.lineIndent = 0, d = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && d === 32;) t.lineIndent++, d = t.input.charCodeAt(++t.position);
|
|
1430
1107
|
if (!o && t.lineIndent > s && (s = t.lineIndent), f(d)) {
|
|
1431
1108
|
c++;
|
|
1432
1109
|
continue;
|
|
@@ -1438,29 +1115,29 @@ function yn() {
|
|
|
1438
1115
|
r ? p(d) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
|
|
1439
1116
|
let n = t.position;
|
|
1440
1117
|
for (; !f(d) && d !== 0;) d = t.input.charCodeAt(++t.position);
|
|
1441
|
-
|
|
1118
|
+
F(t, n, t.position, !1);
|
|
1442
1119
|
}
|
|
1443
1120
|
return !0;
|
|
1444
1121
|
}
|
|
1445
|
-
t(
|
|
1446
|
-
function
|
|
1122
|
+
t(oe, "readBlockScalar");
|
|
1123
|
+
function se(e, t) {
|
|
1447
1124
|
let n = e.tag, r = e.anchor, i = [], a = !1;
|
|
1448
1125
|
if (e.firstTabInLine !== -1) return !1;
|
|
1449
1126
|
e.anchor !== null && O(e, e.anchor, i);
|
|
1450
1127
|
let o = e.input.charCodeAt(e.position);
|
|
1451
1128
|
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(o !== 45 || !m(e.input.charCodeAt(e.position + 1))));) {
|
|
1452
|
-
if (a = !0, e.position++,
|
|
1129
|
+
if (a = !0, e.position++, z(e, !0, -1) && e.lineIndent <= t) {
|
|
1453
1130
|
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1454
1131
|
continue;
|
|
1455
1132
|
}
|
|
1456
1133
|
let n = e.line;
|
|
1457
|
-
if (
|
|
1134
|
+
if (B(e, t, 3, !1, !0), i.push(e.result), z(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
|
|
1458
1135
|
else if (e.lineIndent < t) break;
|
|
1459
1136
|
}
|
|
1460
1137
|
return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1461
1138
|
}
|
|
1462
|
-
t(
|
|
1463
|
-
function
|
|
1139
|
+
t(se, "readBlockSequence");
|
|
1140
|
+
function ce(e, t, n) {
|
|
1464
1141
|
let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, f = null, h = null, g = !1, _ = !1;
|
|
1465
1142
|
if (e.firstTabInLine !== -1) return !1;
|
|
1466
1143
|
e.anchor !== null && O(e, e.anchor, l);
|
|
@@ -1468,24 +1145,24 @@ function yn() {
|
|
|
1468
1145
|
for (; v !== 0;) {
|
|
1469
1146
|
!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
|
|
1470
1147
|
let y = e.input.charCodeAt(e.position + 1), b = e.line;
|
|
1471
|
-
if ((v === 63 || v === 58) && m(y)) v === 63 ? (g && (
|
|
1148
|
+
if ((v === 63 || v === 58) && m(y)) v === 63 ? (g && (L(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
|
|
1472
1149
|
else {
|
|
1473
|
-
if (i = e.line, a = e.lineStart, o = e.position, !
|
|
1150
|
+
if (i = e.line, a = e.lineStart, o = e.position, !B(e, n, 2, !1, !0)) break;
|
|
1474
1151
|
if (e.line === b) {
|
|
1475
1152
|
for (v = e.input.charCodeAt(e.position); p(v);) v = e.input.charCodeAt(++e.position);
|
|
1476
|
-
if (v === 58) v = e.input.charCodeAt(++e.position), m(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (
|
|
1153
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), m(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (L(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !1, r = !1, d = e.tag, f = e.result;
|
|
1477
1154
|
else if (_) E(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1478
1155
|
else return e.tag = s, e.anchor = c, !0;
|
|
1479
1156
|
} else if (_) E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1480
1157
|
else return e.tag = s, e.anchor = c, !0;
|
|
1481
1158
|
}
|
|
1482
|
-
if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position),
|
|
1159
|
+
if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? f = e.result : h = e.result), g || (L(e, l, u, d, f, h, i, a, o), d = f = h = null), z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
|
|
1483
1160
|
else if (e.lineIndent < t) break;
|
|
1484
1161
|
}
|
|
1485
|
-
return g &&
|
|
1162
|
+
return g && L(e, l, u, d, f, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
|
|
1486
1163
|
}
|
|
1487
|
-
t(
|
|
1488
|
-
function
|
|
1164
|
+
t(ce, "readBlockMapping");
|
|
1165
|
+
function le(e) {
|
|
1489
1166
|
let t = !1, n = !1, r, i, o = e.input.charCodeAt(e.position);
|
|
1490
1167
|
if (o !== 33) return !1;
|
|
1491
1168
|
e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
|
|
@@ -1507,8 +1184,8 @@ function yn() {
|
|
|
1507
1184
|
}
|
|
1508
1185
|
return t ? e.tag = i : a.call(e.tagMap, r) ? e.tag = e.tagMap[r] + i : r === "!" ? e.tag = "!" + i : r === "!!" ? e.tag = "tag:yaml.org,2002:" + i : E(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
1509
1186
|
}
|
|
1510
|
-
t(
|
|
1511
|
-
function
|
|
1187
|
+
t(le, "readTagProperty");
|
|
1188
|
+
function ue(e) {
|
|
1512
1189
|
let t = e.input.charCodeAt(e.position);
|
|
1513
1190
|
if (t !== 38) return !1;
|
|
1514
1191
|
e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
|
|
@@ -1516,8 +1193,8 @@ function yn() {
|
|
|
1516
1193
|
for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
|
|
1517
1194
|
return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1518
1195
|
}
|
|
1519
|
-
t(
|
|
1520
|
-
function
|
|
1196
|
+
t(ue, "readAnchorProperty");
|
|
1197
|
+
function de(e) {
|
|
1521
1198
|
let t = e.input.charCodeAt(e.position);
|
|
1522
1199
|
if (t !== 42) return !1;
|
|
1523
1200
|
t = e.input.charCodeAt(++e.position);
|
|
@@ -1525,31 +1202,31 @@ function yn() {
|
|
|
1525
1202
|
for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
|
|
1526
1203
|
e.position === n && E(e, "name of an alias node must contain at least one character");
|
|
1527
1204
|
let r = e.input.slice(n, e.position);
|
|
1528
|
-
return a.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r],
|
|
1205
|
+
return a.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], z(e, !0, -1), !0;
|
|
1529
1206
|
}
|
|
1530
|
-
t(
|
|
1531
|
-
function
|
|
1532
|
-
let i =
|
|
1533
|
-
return k(e),
|
|
1207
|
+
t(de, "readAlias");
|
|
1208
|
+
function fe(e, t, n, r) {
|
|
1209
|
+
let i = M(e);
|
|
1210
|
+
return k(e), N(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (A(e), !0) : (j(e), N(e, i), !1);
|
|
1534
1211
|
}
|
|
1535
|
-
t(
|
|
1536
|
-
function
|
|
1212
|
+
t(fe, "tryReadBlockMappingFromProperty");
|
|
1213
|
+
function B(e, t, n, r, i) {
|
|
1537
1214
|
let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
|
|
1538
1215
|
e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1539
1216
|
let h = o = s = n === 4 || n === 3;
|
|
1540
|
-
if (r &&
|
|
1541
|
-
let n = e.input.charCodeAt(e.position), r =
|
|
1542
|
-
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !
|
|
1543
|
-
d === null && (d = r),
|
|
1217
|
+
if (r && z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
|
|
1218
|
+
let n = e.input.charCodeAt(e.position), r = M(e);
|
|
1219
|
+
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !le(e) && !ue(e)) break;
|
|
1220
|
+
d === null && (d = r), z(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
1544
1221
|
}
|
|
1545
1222
|
if (s &&= l || i, c === 1 || n === 4) {
|
|
1546
1223
|
if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
|
|
1547
|
-
if (s && (
|
|
1224
|
+
if (s && (se(e, m) || ce(e, m, p)) || ae(e, p)) u = !0;
|
|
1548
1225
|
else {
|
|
1549
1226
|
let t = e.input.charCodeAt(e.position);
|
|
1550
|
-
d !== null && h && !s && t !== 124 && t !== 62 &&
|
|
1227
|
+
d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
|
|
1551
1228
|
}
|
|
1552
|
-
} else c === 0 && (u = s &&
|
|
1229
|
+
} else c === 0 && (u = s && se(e, m));
|
|
1553
1230
|
}
|
|
1554
1231
|
if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
|
|
1555
1232
|
else if (e.tag === "?") {
|
|
@@ -1572,10 +1249,10 @@ function yn() {
|
|
|
1572
1249
|
}
|
|
1573
1250
|
return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
|
|
1574
1251
|
}
|
|
1575
|
-
t(
|
|
1576
|
-
function
|
|
1252
|
+
t(B, "composeNode");
|
|
1253
|
+
function pe(e) {
|
|
1577
1254
|
let t = e.position, n = !1, r;
|
|
1578
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1255
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (z(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
|
|
1579
1256
|
n = !0, r = e.input.charCodeAt(++e.position);
|
|
1580
1257
|
let t = e.position;
|
|
1581
1258
|
for (; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
|
|
@@ -1592,45 +1269,45 @@ function yn() {
|
|
|
1592
1269
|
for (t = e.position; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
|
|
1593
1270
|
o.push(e.input.slice(t, e.position));
|
|
1594
1271
|
}
|
|
1595
|
-
r !== 0 &&
|
|
1272
|
+
r !== 0 && R(e), a.call(P, i) ? P[i](e, i, o) : D(e, "unknown document directive \"" + i + "\"");
|
|
1596
1273
|
}
|
|
1597
|
-
if (
|
|
1598
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1274
|
+
if (z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, z(e, !0, -1)) : n && E(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), z(e, !0, -1), e.checkLineBreaks && s.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ee(e)) {
|
|
1275
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
|
|
1599
1276
|
return;
|
|
1600
1277
|
}
|
|
1601
1278
|
e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
|
|
1602
1279
|
}
|
|
1603
|
-
t(
|
|
1604
|
-
function
|
|
1280
|
+
t(pe, "readDocument");
|
|
1281
|
+
function me(e, t) {
|
|
1605
1282
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1606
1283
|
let n = new w(e, t), r = e.indexOf("\0");
|
|
1607
1284
|
for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1608
|
-
for (; n.position < n.length - 1;)
|
|
1285
|
+
for (; n.position < n.length - 1;) pe(n);
|
|
1609
1286
|
return n.documents;
|
|
1610
1287
|
}
|
|
1611
|
-
t(
|
|
1612
|
-
function
|
|
1288
|
+
t(me, "loadDocuments");
|
|
1289
|
+
function he(e, t, n) {
|
|
1613
1290
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1614
|
-
let r =
|
|
1291
|
+
let r = me(e, n);
|
|
1615
1292
|
if (typeof t != "function") return r;
|
|
1616
1293
|
for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
|
|
1617
1294
|
}
|
|
1618
|
-
t(
|
|
1619
|
-
function
|
|
1620
|
-
let r =
|
|
1295
|
+
t(he, "loadAll2");
|
|
1296
|
+
function ge(e, t) {
|
|
1297
|
+
let r = me(e, t);
|
|
1621
1298
|
if (r.length !== 0) {
|
|
1622
1299
|
if (r.length === 1) return r[0];
|
|
1623
1300
|
throw new n("expected a single document in the stream, but found more");
|
|
1624
1301
|
}
|
|
1625
1302
|
}
|
|
1626
|
-
return t(
|
|
1303
|
+
return t(ge, "load2"), Oe.loadAll = he, Oe.load = ge, Oe;
|
|
1627
1304
|
}
|
|
1628
|
-
t(
|
|
1629
|
-
var
|
|
1630
|
-
function
|
|
1631
|
-
if (
|
|
1632
|
-
|
|
1633
|
-
let e =
|
|
1305
|
+
t(Rt, "requireLoader");
|
|
1306
|
+
var zt = {}, Bt;
|
|
1307
|
+
function Vt() {
|
|
1308
|
+
if (Bt) return zt;
|
|
1309
|
+
Bt = 1;
|
|
1310
|
+
let e = U(), n = W(), r = It(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, o = 65279, s = {};
|
|
1634
1311
|
s[0] = "\\0", s[7] = "\\a", s[8] = "\\b", s[9] = "\\t", s[10] = "\\n", s[11] = "\\v", s[12] = "\\f", s[13] = "\\r", s[27] = "\\e", s[34] = "\\\"", s[92] = "\\\\", s[133] = "\\N", s[160] = "\\_", s[8232] = "\\L", s[8233] = "\\P";
|
|
1635
1312
|
let c = [
|
|
1636
1313
|
"y",
|
|
@@ -1757,7 +1434,7 @@ function Sn() {
|
|
|
1757
1434
|
case 2: return "'" + r.replace(/'/g, "''") + "'";
|
|
1758
1435
|
case 3: return "|" + E(r, e.indent) + D(p(r, s));
|
|
1759
1436
|
case 4: return ">" + E(r, e.indent) + D(p(O(r, u), s));
|
|
1760
|
-
case 5: return "\"" +
|
|
1437
|
+
case 5: return "\"" + A(r) + "\"";
|
|
1761
1438
|
default: throw new n("impossible error: invalid scalar style");
|
|
1762
1439
|
}
|
|
1763
1440
|
})();
|
|
@@ -1791,7 +1468,7 @@ function Sn() {
|
|
|
1791
1468
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
1792
1469
|
}
|
|
1793
1470
|
t(k, "foldLine");
|
|
1794
|
-
function
|
|
1471
|
+
function A(e) {
|
|
1795
1472
|
let t = "", n = 0;
|
|
1796
1473
|
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
1797
1474
|
n = S(e, r);
|
|
@@ -1800,37 +1477,37 @@ function Sn() {
|
|
|
1800
1477
|
}
|
|
1801
1478
|
return t;
|
|
1802
1479
|
}
|
|
1803
|
-
t(
|
|
1804
|
-
function
|
|
1480
|
+
t(A, "escapeString");
|
|
1481
|
+
function j(e, t, n) {
|
|
1805
1482
|
let r = "", i = e.tag;
|
|
1806
1483
|
for (let i = 0, a = n.length; i < a; i += 1) {
|
|
1807
1484
|
let a = n[i];
|
|
1808
|
-
e.replacer && (a = e.replacer.call(n, String(i), a)), (
|
|
1485
|
+
e.replacer && (a = e.replacer.call(n, String(i), a)), (I(e, t, a, !1, !1) || a === void 0 && I(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1809
1486
|
}
|
|
1810
1487
|
e.tag = i, e.dump = "[" + r + "]";
|
|
1811
1488
|
}
|
|
1812
|
-
t(
|
|
1813
|
-
function
|
|
1489
|
+
t(j, "writeFlowSequence");
|
|
1490
|
+
function M(e, t, n, r) {
|
|
1814
1491
|
let i = "", a = e.tag;
|
|
1815
1492
|
for (let a = 0, o = n.length; a < o; a += 1) {
|
|
1816
1493
|
let o = n[a];
|
|
1817
|
-
e.replacer && (o = e.replacer.call(n, String(a), o)), (
|
|
1494
|
+
e.replacer && (o = e.replacer.call(n, String(a), o)), (I(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && I(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += m(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
|
|
1818
1495
|
}
|
|
1819
1496
|
e.tag = a, e.dump = i || "[]";
|
|
1820
1497
|
}
|
|
1821
|
-
t(
|
|
1822
|
-
function
|
|
1498
|
+
t(M, "writeBlockSequence");
|
|
1499
|
+
function N(e, t, n) {
|
|
1823
1500
|
let r = "", i = e.tag, a = Object.keys(n);
|
|
1824
1501
|
for (let i = 0, o = a.length; i < o; i += 1) {
|
|
1825
1502
|
let o = "";
|
|
1826
1503
|
r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
|
|
1827
1504
|
let s = a[i], c = n[s];
|
|
1828
|
-
e.replacer && (c = e.replacer.call(n, s, c)),
|
|
1505
|
+
e.replacer && (c = e.replacer.call(n, s, c)), I(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), I(e, t, c, !1, !1) && (o += e.dump, r += o));
|
|
1829
1506
|
}
|
|
1830
1507
|
e.tag = i, e.dump = "{" + r + "}";
|
|
1831
1508
|
}
|
|
1832
|
-
t(
|
|
1833
|
-
function
|
|
1509
|
+
t(N, "writeFlowMapping");
|
|
1510
|
+
function P(e, t, r, i) {
|
|
1834
1511
|
let a = "", o = e.tag, s = Object.keys(r);
|
|
1835
1512
|
if (e.sortKeys === !0) s.sort();
|
|
1836
1513
|
else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
|
|
@@ -1839,14 +1516,14 @@ function Sn() {
|
|
|
1839
1516
|
let o = "";
|
|
1840
1517
|
(!i || a !== "") && (o += m(e, t));
|
|
1841
1518
|
let c = s[n], l = r[c];
|
|
1842
|
-
if (e.replacer && (l = e.replacer.call(r, c, l)), !
|
|
1519
|
+
if (e.replacer && (l = e.replacer.call(r, c, l)), !I(e, t + 1, c, !0, !0, !0)) continue;
|
|
1843
1520
|
let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
|
|
1844
|
-
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += m(e, t)),
|
|
1521
|
+
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += m(e, t)), I(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
|
|
1845
1522
|
}
|
|
1846
1523
|
e.tag = o, e.dump = a || "{}";
|
|
1847
1524
|
}
|
|
1848
|
-
t(
|
|
1849
|
-
function
|
|
1525
|
+
t(P, "writeBlockMapping");
|
|
1526
|
+
function F(e, t, r) {
|
|
1850
1527
|
let o = r ? e.explicitTypes : e.implicitTypes;
|
|
1851
1528
|
for (let s = 0, c = o.length; s < c; s += 1) {
|
|
1852
1529
|
let c = o[s];
|
|
@@ -1863,16 +1540,16 @@ function Sn() {
|
|
|
1863
1540
|
}
|
|
1864
1541
|
return !1;
|
|
1865
1542
|
}
|
|
1866
|
-
t(
|
|
1867
|
-
function
|
|
1868
|
-
e.tag = null, e.dump = r,
|
|
1543
|
+
t(F, "detectType");
|
|
1544
|
+
function I(e, t, r, a, o, s, c) {
|
|
1545
|
+
e.tag = null, e.dump = r, F(e, r, !1) || F(e, r, !0);
|
|
1869
1546
|
let l = i.call(e.dump), u = a;
|
|
1870
1547
|
a &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
1871
1548
|
let d = l === "[object Object]" || l === "[object Array]", f, p;
|
|
1872
1549
|
if (d && (f = e.duplicates.indexOf(r), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1873
1550
|
else {
|
|
1874
|
-
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (
|
|
1875
|
-
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ?
|
|
1551
|
+
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (P(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1552
|
+
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? M(e, t - 1, e.dump, o) : M(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (j(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1876
1553
|
else if (l === "[object String]") e.tag !== "?" && T(e, e.dump, t, s, u);
|
|
1877
1554
|
else if (l === "[object Undefined]") return !1;
|
|
1878
1555
|
else {
|
|
@@ -1886,90 +1563,90 @@ function Sn() {
|
|
|
1886
1563
|
}
|
|
1887
1564
|
return !0;
|
|
1888
1565
|
}
|
|
1889
|
-
t(
|
|
1890
|
-
function
|
|
1566
|
+
t(I, "writeNode");
|
|
1567
|
+
function L(e, t) {
|
|
1891
1568
|
let n = [], r = [];
|
|
1892
|
-
|
|
1569
|
+
R(e, n, r);
|
|
1893
1570
|
let i = r.length;
|
|
1894
1571
|
for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
|
|
1895
1572
|
t.usedDuplicates = Array(i);
|
|
1896
1573
|
}
|
|
1897
|
-
t(
|
|
1898
|
-
function
|
|
1574
|
+
t(L, "getDuplicateReferences");
|
|
1575
|
+
function R(e, t, n) {
|
|
1899
1576
|
if (typeof e == "object" && e) {
|
|
1900
1577
|
let r = t.indexOf(e);
|
|
1901
1578
|
if (r !== -1) n.indexOf(r) === -1 && n.push(r);
|
|
1902
|
-
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1)
|
|
1579
|
+
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) R(e[r], t, n);
|
|
1903
1580
|
else {
|
|
1904
1581
|
let r = Object.keys(e);
|
|
1905
|
-
for (let i = 0, a = r.length; i < a; i += 1)
|
|
1582
|
+
for (let i = 0, a = r.length; i < a; i += 1) R(e[r[i]], t, n);
|
|
1906
1583
|
}
|
|
1907
1584
|
}
|
|
1908
1585
|
}
|
|
1909
|
-
t(
|
|
1910
|
-
function
|
|
1586
|
+
t(R, "inspectNode");
|
|
1587
|
+
function z(e, t) {
|
|
1911
1588
|
t ||= {};
|
|
1912
1589
|
let n = new f(t);
|
|
1913
|
-
n.noRefs ||
|
|
1590
|
+
n.noRefs || L(e, n);
|
|
1914
1591
|
let r = e;
|
|
1915
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
1592
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), I(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1916
1593
|
}
|
|
1917
|
-
return t(
|
|
1594
|
+
return t(z, "dump2"), zt.dump = z, zt;
|
|
1918
1595
|
}
|
|
1919
|
-
t(
|
|
1920
|
-
var
|
|
1921
|
-
function
|
|
1922
|
-
if (
|
|
1923
|
-
|
|
1924
|
-
let e =
|
|
1596
|
+
t(Vt, "requireDumper");
|
|
1597
|
+
var Ht;
|
|
1598
|
+
function Ut() {
|
|
1599
|
+
if (Ht) return V;
|
|
1600
|
+
Ht = 1;
|
|
1601
|
+
let e = Rt(), n = Vt();
|
|
1925
1602
|
function r(e, t) {
|
|
1926
1603
|
return function() {
|
|
1927
1604
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1928
1605
|
};
|
|
1929
1606
|
}
|
|
1930
|
-
return t(r, "renamed"),
|
|
1931
|
-
binary:
|
|
1932
|
-
float:
|
|
1933
|
-
map:
|
|
1934
|
-
null:
|
|
1935
|
-
pairs:
|
|
1936
|
-
set:
|
|
1937
|
-
timestamp:
|
|
1938
|
-
bool:
|
|
1939
|
-
int:
|
|
1940
|
-
merge:
|
|
1941
|
-
omap:
|
|
1942
|
-
seq:
|
|
1943
|
-
str:
|
|
1944
|
-
},
|
|
1945
|
-
}
|
|
1946
|
-
t(
|
|
1947
|
-
var { Type:
|
|
1948
|
-
function
|
|
1607
|
+
return t(r, "renamed"), V.Type = G(), V.Schema = ze(), V.FAILSAFE_SCHEMA = Ze(), V.JSON_SCHEMA = ft(), V.CORE_SCHEMA = ht(), V.DEFAULT_SCHEMA = It(), V.load = e.load, V.loadAll = e.loadAll, V.dump = n.dump, V.YAMLException = W(), V.types = {
|
|
1608
|
+
binary: wt(),
|
|
1609
|
+
float: lt(),
|
|
1610
|
+
map: Je(),
|
|
1611
|
+
null: et(),
|
|
1612
|
+
pairs: At(),
|
|
1613
|
+
set: Nt(),
|
|
1614
|
+
timestamp: vt(),
|
|
1615
|
+
bool: rt(),
|
|
1616
|
+
int: ot(),
|
|
1617
|
+
merge: xt(),
|
|
1618
|
+
omap: Dt(),
|
|
1619
|
+
seq: Ge(),
|
|
1620
|
+
str: He()
|
|
1621
|
+
}, V.safeLoad = r("safeLoad", "load"), V.safeLoadAll = r("safeLoadAll", "loadAll"), V.safeDump = r("safeDump", "dump"), V;
|
|
1622
|
+
}
|
|
1623
|
+
t(Ut, "requireJsYaml");
|
|
1624
|
+
var { Type: Wt, Schema: Gt, FAILSAFE_SCHEMA: Kt, JSON_SCHEMA: qt, CORE_SCHEMA: Jt, DEFAULT_SCHEMA: Yt, load: Xt, loadAll: Zt, dump: Qt, YAMLException: $t, types: en, safeLoad: tn, safeLoadAll: nn, safeDump: rn } = /* @__PURE__ */ De(Ut()), an = "comm", on = "rule", sn = "decl", cn = "@import", ln = "@namespace", un = "@keyframes", dn = "@layer", fn = Math.abs, pn = String.fromCharCode;
|
|
1625
|
+
function mn(e) {
|
|
1949
1626
|
return e.trim();
|
|
1950
1627
|
}
|
|
1951
|
-
function
|
|
1628
|
+
function hn(e, t, n) {
|
|
1952
1629
|
return e.replace(t, n);
|
|
1953
1630
|
}
|
|
1954
|
-
function
|
|
1631
|
+
function K(e, t) {
|
|
1955
1632
|
return e.charCodeAt(t) | 0;
|
|
1956
1633
|
}
|
|
1957
|
-
function
|
|
1634
|
+
function gn(e, t, n) {
|
|
1958
1635
|
return e.slice(t, n);
|
|
1959
1636
|
}
|
|
1960
1637
|
function q(e) {
|
|
1961
1638
|
return e.length;
|
|
1962
1639
|
}
|
|
1963
|
-
function
|
|
1640
|
+
function _n(e) {
|
|
1964
1641
|
return e.length;
|
|
1965
1642
|
}
|
|
1966
|
-
function
|
|
1643
|
+
function vn(e, t) {
|
|
1967
1644
|
return t.push(e), e;
|
|
1968
1645
|
}
|
|
1969
1646
|
//#endregion
|
|
1970
1647
|
//#region ../node_modules/stylis/src/Tokenizer.js
|
|
1971
|
-
var
|
|
1972
|
-
function
|
|
1648
|
+
var yn = 1, bn = 1, xn = 0, J = 0, Y = 0, Sn = "";
|
|
1649
|
+
function Cn(e, t, n, r, i, a, o, s) {
|
|
1973
1650
|
return {
|
|
1974
1651
|
value: e,
|
|
1975
1652
|
root: t,
|
|
@@ -1977,32 +1654,32 @@ function ir(e, t, n, r, i, a, o, s) {
|
|
|
1977
1654
|
type: r,
|
|
1978
1655
|
props: i,
|
|
1979
1656
|
children: a,
|
|
1980
|
-
line:
|
|
1981
|
-
column:
|
|
1657
|
+
line: yn,
|
|
1658
|
+
column: bn,
|
|
1982
1659
|
length: o,
|
|
1983
1660
|
return: "",
|
|
1984
1661
|
siblings: s
|
|
1985
1662
|
};
|
|
1986
1663
|
}
|
|
1987
|
-
function
|
|
1664
|
+
function wn() {
|
|
1988
1665
|
return Y;
|
|
1989
1666
|
}
|
|
1990
|
-
function
|
|
1991
|
-
return Y = J > 0 ?
|
|
1667
|
+
function Tn() {
|
|
1668
|
+
return Y = J > 0 ? K(Sn, --J) : 0, bn--, Y === 10 && (bn = 1, yn--), Y;
|
|
1992
1669
|
}
|
|
1993
1670
|
function X() {
|
|
1994
|
-
return Y = J <
|
|
1671
|
+
return Y = J < xn ? K(Sn, J++) : 0, bn++, Y === 10 && (bn = 1, yn++), Y;
|
|
1995
1672
|
}
|
|
1996
1673
|
function Z() {
|
|
1997
|
-
return
|
|
1674
|
+
return K(Sn, J);
|
|
1998
1675
|
}
|
|
1999
|
-
function
|
|
1676
|
+
function En() {
|
|
2000
1677
|
return J;
|
|
2001
1678
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
1679
|
+
function Dn(e, t) {
|
|
1680
|
+
return gn(Sn, e, t);
|
|
2004
1681
|
}
|
|
2005
|
-
function
|
|
1682
|
+
function On(e) {
|
|
2006
1683
|
switch (e) {
|
|
2007
1684
|
case 0:
|
|
2008
1685
|
case 9:
|
|
@@ -2029,32 +1706,32 @@ function lr(e) {
|
|
|
2029
1706
|
}
|
|
2030
1707
|
return 0;
|
|
2031
1708
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
1709
|
+
function kn(e) {
|
|
1710
|
+
return yn = bn = 1, xn = q(Sn = e), J = 0, [];
|
|
2034
1711
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
1712
|
+
function An(e) {
|
|
1713
|
+
return Sn = "", e;
|
|
2037
1714
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return
|
|
1715
|
+
function jn(e) {
|
|
1716
|
+
return mn(Dn(J - 1, Pn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2040
1717
|
}
|
|
2041
|
-
function
|
|
1718
|
+
function Mn(e) {
|
|
2042
1719
|
for (; (Y = Z()) && Y < 33;) X();
|
|
2043
|
-
return
|
|
1720
|
+
return On(e) > 2 || On(Y) > 3 ? "" : " ";
|
|
2044
1721
|
}
|
|
2045
|
-
function
|
|
1722
|
+
function Nn(e, t) {
|
|
2046
1723
|
for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
|
|
2047
|
-
return
|
|
1724
|
+
return Dn(e, En() + (t < 6 && Z() == 32 && X() == 32));
|
|
2048
1725
|
}
|
|
2049
|
-
function
|
|
1726
|
+
function Pn(e) {
|
|
2050
1727
|
for (; X();) switch (Y) {
|
|
2051
1728
|
case e: return J;
|
|
2052
1729
|
case 34:
|
|
2053
1730
|
case 39:
|
|
2054
|
-
e !== 34 && e !== 39 &&
|
|
1731
|
+
e !== 34 && e !== 39 && Pn(Y);
|
|
2055
1732
|
break;
|
|
2056
1733
|
case 40:
|
|
2057
|
-
e === 41 &&
|
|
1734
|
+
e === 41 && Pn(e);
|
|
2058
1735
|
break;
|
|
2059
1736
|
case 92:
|
|
2060
1737
|
X();
|
|
@@ -2062,23 +1739,23 @@ function hr(e) {
|
|
|
2062
1739
|
}
|
|
2063
1740
|
return J;
|
|
2064
1741
|
}
|
|
2065
|
-
function
|
|
1742
|
+
function Fn(e, t) {
|
|
2066
1743
|
for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
|
|
2067
|
-
return "/*" +
|
|
1744
|
+
return "/*" + Dn(t, J - 1) + "*" + pn(e === 47 ? e : X());
|
|
2068
1745
|
}
|
|
2069
|
-
function
|
|
2070
|
-
for (; !
|
|
2071
|
-
return
|
|
1746
|
+
function In(e) {
|
|
1747
|
+
for (; !On(Z());) X();
|
|
1748
|
+
return Dn(e, J);
|
|
2072
1749
|
}
|
|
2073
1750
|
//#endregion
|
|
2074
1751
|
//#region ../node_modules/stylis/src/Parser.js
|
|
2075
|
-
function
|
|
2076
|
-
return
|
|
1752
|
+
function Ln(e) {
|
|
1753
|
+
return An(Rn("", null, null, null, [""], e = kn(e), 0, [0], e));
|
|
2077
1754
|
}
|
|
2078
|
-
function
|
|
1755
|
+
function Rn(e, t, n, r, i, a, o, s, c) {
|
|
2079
1756
|
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
|
|
2080
1757
|
case 40:
|
|
2081
|
-
m != 108 &&
|
|
1758
|
+
m != 108 && K(w, d - 1) == 58 ? (v++, w += "(") : w += jn(y);
|
|
2082
1759
|
break;
|
|
2083
1760
|
case 41:
|
|
2084
1761
|
v--, w += ")";
|
|
@@ -2086,26 +1763,26 @@ function yr(e, t, n, r, i, a, o, s, c) {
|
|
|
2086
1763
|
case 34:
|
|
2087
1764
|
case 39:
|
|
2088
1765
|
case 91:
|
|
2089
|
-
w +=
|
|
1766
|
+
w += jn(y);
|
|
2090
1767
|
break;
|
|
2091
1768
|
case 9:
|
|
2092
1769
|
case 10:
|
|
2093
1770
|
case 13:
|
|
2094
1771
|
case 32:
|
|
2095
1772
|
if (v > 0) {
|
|
2096
|
-
w +=
|
|
1773
|
+
w += pn(y);
|
|
2097
1774
|
break;
|
|
2098
1775
|
}
|
|
2099
|
-
w +=
|
|
1776
|
+
w += Mn(m);
|
|
2100
1777
|
break;
|
|
2101
1778
|
case 92:
|
|
2102
|
-
w +=
|
|
1779
|
+
w += Nn(En() - 1, 7);
|
|
2103
1780
|
continue;
|
|
2104
1781
|
case 47:
|
|
2105
1782
|
switch (Z()) {
|
|
2106
1783
|
case 42:
|
|
2107
1784
|
case 47:
|
|
2108
|
-
|
|
1785
|
+
vn(Bn(Fn(X(), En()), t, n, c), c), (On(m || 1) == 5 || On(Z() || 1) == 5) && q(w) && gn(w, -1, void 0) !== " " && (w += " ");
|
|
2109
1786
|
break;
|
|
2110
1787
|
default: w += "/";
|
|
2111
1788
|
}
|
|
@@ -2115,28 +1792,28 @@ function yr(e, t, n, r, i, a, o, s, c) {
|
|
|
2115
1792
|
case 59:
|
|
2116
1793
|
case 0:
|
|
2117
1794
|
if (v > 0 && y) {
|
|
2118
|
-
w +=
|
|
1795
|
+
w += pn(y);
|
|
2119
1796
|
break;
|
|
2120
1797
|
}
|
|
2121
1798
|
switch (y) {
|
|
2122
1799
|
case 0:
|
|
2123
1800
|
case 125: g = 0;
|
|
2124
1801
|
case 59 + u:
|
|
2125
|
-
_ == -1 && (w =
|
|
1802
|
+
_ == -1 && (w = hn(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && vn(p > 32 ? Vn(w + ";", r, n, d - 1, c) : Vn(hn(w, " ", "") + ";", r, n, d - 2, c), c);
|
|
2126
1803
|
break;
|
|
2127
1804
|
case 59: w += ";";
|
|
2128
|
-
default: if (
|
|
2129
|
-
if (u === 0)
|
|
1805
|
+
default: if (vn(C = zn(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
|
|
1806
|
+
if (u === 0) Rn(w, t, C, C, x, a, d, s, S);
|
|
2130
1807
|
else {
|
|
2131
1808
|
switch (f) {
|
|
2132
|
-
case 99: if (
|
|
2133
|
-
case 108: if (
|
|
1809
|
+
case 99: if (K(w, 3) === 110) break;
|
|
1810
|
+
case 108: if (K(w, 2) === 97) break;
|
|
2134
1811
|
default: u = 0;
|
|
2135
1812
|
case 100:
|
|
2136
1813
|
case 109:
|
|
2137
1814
|
case 115:
|
|
2138
1815
|
}
|
|
2139
|
-
u ?
|
|
1816
|
+
u ? Rn(e, C, C, r && vn(zn(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : Rn(w, C, C, C, [""], S, 0, s, S);
|
|
2140
1817
|
}
|
|
2141
1818
|
}
|
|
2142
1819
|
}
|
|
@@ -2146,9 +1823,9 @@ function yr(e, t, n, r, i, a, o, s, c) {
|
|
|
2146
1823
|
default:
|
|
2147
1824
|
if (h < 1) {
|
|
2148
1825
|
if (y == 123) --h;
|
|
2149
|
-
else if (y == 125 && h++ == 0 &&
|
|
1826
|
+
else if (y == 125 && h++ == 0 && Tn() == 125) continue;
|
|
2150
1827
|
}
|
|
2151
|
-
switch (w +=
|
|
1828
|
+
switch (w += pn(y), y * h) {
|
|
2152
1829
|
case 38:
|
|
2153
1830
|
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
2154
1831
|
break;
|
|
@@ -2157,45 +1834,45 @@ function yr(e, t, n, r, i, a, o, s, c) {
|
|
|
2157
1834
|
s[l++] = (q(w) - 1) * _, _ = 1;
|
|
2158
1835
|
break;
|
|
2159
1836
|
case 64:
|
|
2160
|
-
Z() === 45 && (w +=
|
|
1837
|
+
Z() === 45 && (w += jn(X())), f = Z(), u = d = q(b = w += In(En())), y++;
|
|
2161
1838
|
break;
|
|
2162
1839
|
case 45: m === 45 && q(w) == 2 && (h = 0);
|
|
2163
1840
|
}
|
|
2164
1841
|
}
|
|
2165
1842
|
return a;
|
|
2166
1843
|
}
|
|
2167
|
-
function
|
|
2168
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m =
|
|
2169
|
-
return
|
|
1844
|
+
function zn(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
1845
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = _n(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = gn(e, f + 1, f = fn(g = o[h])), b = e; v < m; ++v) (b = mn(g > 0 ? p[v] + " " + y : hn(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
1846
|
+
return Cn(e, t, n, i === 0 ? on : s, c, l, u, d);
|
|
2170
1847
|
}
|
|
2171
|
-
function
|
|
2172
|
-
return
|
|
1848
|
+
function Bn(e, t, n, r) {
|
|
1849
|
+
return Cn(e, t, n, an, pn(wn()), gn(e, 2, -2), 0, r);
|
|
2173
1850
|
}
|
|
2174
|
-
function
|
|
2175
|
-
return
|
|
1851
|
+
function Vn(e, t, n, r, i) {
|
|
1852
|
+
return Cn(e, t, n, sn, gn(e, 0, r), gn(e, r + 1, -1), r, i);
|
|
2176
1853
|
}
|
|
2177
1854
|
//#endregion
|
|
2178
1855
|
//#region ../node_modules/stylis/src/Serializer.js
|
|
2179
|
-
function
|
|
1856
|
+
function Hn(e, t) {
|
|
2180
1857
|
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
2181
1858
|
return n;
|
|
2182
1859
|
}
|
|
2183
|
-
function
|
|
1860
|
+
function Un(e, t, n, r) {
|
|
2184
1861
|
switch (e.type) {
|
|
2185
|
-
case
|
|
2186
|
-
case
|
|
2187
|
-
case
|
|
2188
|
-
case
|
|
2189
|
-
case
|
|
2190
|
-
case
|
|
2191
|
-
case
|
|
1862
|
+
case dn: if (e.children.length) break;
|
|
1863
|
+
case cn:
|
|
1864
|
+
case ln:
|
|
1865
|
+
case sn: return e.return = e.return || e.value;
|
|
1866
|
+
case an: return "";
|
|
1867
|
+
case un: return e.return = e.value + "{" + Hn(e.children, r) + "}";
|
|
1868
|
+
case on: if (!q(e.value = e.props.join(","))) return "";
|
|
2192
1869
|
}
|
|
2193
|
-
return q(n =
|
|
1870
|
+
return q(n = Hn(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
2194
1871
|
}
|
|
2195
1872
|
//#endregion
|
|
2196
1873
|
//#region ../node_modules/stylis/src/Middleware.js
|
|
2197
|
-
function
|
|
2198
|
-
var t =
|
|
1874
|
+
function Wn(e) {
|
|
1875
|
+
var t = _n(e);
|
|
2199
1876
|
return function(n, r, i, a) {
|
|
2200
1877
|
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
2201
1878
|
return o;
|
|
@@ -2203,402 +1880,416 @@ function Tr(e) {
|
|
|
2203
1880
|
}
|
|
2204
1881
|
//#endregion
|
|
2205
1882
|
//#region ../node_modules/mermaid/dist/mermaid.core.mjs
|
|
2206
|
-
var
|
|
2207
|
-
|
|
2208
|
-
createCommonLayoutRenderer: () => Ye,
|
|
2209
|
-
default: () => ro,
|
|
2210
|
-
defaultMeasureLayout: () => Ze,
|
|
2211
|
-
paintLayoutData: () => Qe
|
|
2212
|
-
}), Dr = "c4", Or = {
|
|
2213
|
-
id: Dr,
|
|
1883
|
+
var Gn = /* @__PURE__ */ e({ default: () => Ta }), Kn = "c4", qn = {
|
|
1884
|
+
id: Kn,
|
|
2214
1885
|
detector: /* @__PURE__ */ t((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
2215
1886
|
loader: /* @__PURE__ */ t(async () => {
|
|
2216
|
-
let { diagram: e } = await import("./c4Diagram-
|
|
1887
|
+
let { diagram: e } = await import("./c4Diagram-CRA5TL53-CtJh9DsO.js");
|
|
2217
1888
|
return {
|
|
2218
|
-
id:
|
|
1889
|
+
id: Kn,
|
|
2219
1890
|
diagram: e
|
|
2220
1891
|
};
|
|
2221
1892
|
}, "loader")
|
|
2222
|
-
},
|
|
2223
|
-
id:
|
|
2224
|
-
detector: /* @__PURE__ */ t((e
|
|
1893
|
+
}, Jn = "flowchart-v2", Yn = {
|
|
1894
|
+
id: Jn,
|
|
1895
|
+
detector: /* @__PURE__ */ t((e) => /^\s*(graph|flowchart)/.test(e), "detector"),
|
|
2225
1896
|
loader: /* @__PURE__ */ t(async () => {
|
|
2226
|
-
let { diagram: e } = await import("./flowDiagram-
|
|
1897
|
+
let { diagram: e } = await import("./flowDiagram-OXPTDLAJ-R_xf7pNW.js");
|
|
2227
1898
|
return {
|
|
2228
|
-
id:
|
|
1899
|
+
id: Jn,
|
|
2229
1900
|
diagram: e
|
|
2230
1901
|
};
|
|
2231
1902
|
}, "loader")
|
|
2232
|
-
},
|
|
2233
|
-
id:
|
|
2234
|
-
detector: /* @__PURE__ */ t((e
|
|
1903
|
+
}, Xn = "agentflow", Zn = {
|
|
1904
|
+
id: Xn,
|
|
1905
|
+
detector: /* @__PURE__ */ t((e) => /^\s*agentflow-beta\b/.test(e), "detector"),
|
|
2235
1906
|
loader: /* @__PURE__ */ t(async () => {
|
|
2236
|
-
let { diagram: e } = await import("./
|
|
1907
|
+
let { diagram: e } = await import("./diagram-2UJZ2QOL-CJRsGDwn.js");
|
|
2237
1908
|
return {
|
|
2238
|
-
id:
|
|
1909
|
+
id: Xn,
|
|
2239
1910
|
diagram: e
|
|
2240
1911
|
};
|
|
2241
1912
|
}, "loader")
|
|
2242
|
-
},
|
|
2243
|
-
id:
|
|
1913
|
+
}, Qn = "swimlane", $n = {
|
|
1914
|
+
id: Qn,
|
|
2244
1915
|
detector: /* @__PURE__ */ t((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
|
|
2245
1916
|
loader: /* @__PURE__ */ t(async () => {
|
|
2246
|
-
let { diagram: e } = await import("./swimlanesDiagram-
|
|
1917
|
+
let { diagram: e } = await import("./swimlanesDiagram-K3J5GTZL-_MehEHMi.js");
|
|
2247
1918
|
return {
|
|
2248
|
-
id:
|
|
1919
|
+
id: Qn,
|
|
2249
1920
|
diagram: e
|
|
2250
1921
|
};
|
|
2251
1922
|
}, "loader")
|
|
2252
|
-
},
|
|
2253
|
-
id:
|
|
1923
|
+
}, er = "er", tr = {
|
|
1924
|
+
id: er,
|
|
2254
1925
|
detector: /* @__PURE__ */ t((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
2255
1926
|
loader: /* @__PURE__ */ t(async () => {
|
|
2256
|
-
let { diagram: e } = await import("./erDiagram-
|
|
1927
|
+
let { diagram: e } = await import("./erDiagram-O2IAPWRE-CP06GjjM.js");
|
|
2257
1928
|
return {
|
|
2258
|
-
id:
|
|
1929
|
+
id: er,
|
|
2259
1930
|
diagram: e
|
|
2260
1931
|
};
|
|
2261
1932
|
}, "loader")
|
|
2262
|
-
},
|
|
2263
|
-
id:
|
|
1933
|
+
}, nr = "gitGraph", rr = {
|
|
1934
|
+
id: nr,
|
|
2264
1935
|
detector: /* @__PURE__ */ t((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
2265
1936
|
loader: /* @__PURE__ */ t(async () => {
|
|
2266
|
-
let { diagram: e } = await import("./gitGraphDiagram-
|
|
1937
|
+
let { diagram: e } = await import("./gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js");
|
|
2267
1938
|
return {
|
|
2268
|
-
id:
|
|
1939
|
+
id: nr,
|
|
2269
1940
|
diagram: e
|
|
2270
1941
|
};
|
|
2271
1942
|
}, "loader")
|
|
2272
|
-
},
|
|
2273
|
-
id:
|
|
1943
|
+
}, ir = "gantt", ar = {
|
|
1944
|
+
id: ir,
|
|
2274
1945
|
detector: /* @__PURE__ */ t((e) => /^\s*gantt/.test(e), "detector"),
|
|
2275
1946
|
loader: /* @__PURE__ */ t(async () => {
|
|
2276
|
-
let { diagram: e } = await import("./ganttDiagram-
|
|
1947
|
+
let { diagram: e } = await import("./ganttDiagram-R7TSEDQI-y1bDU8Ba.js");
|
|
2277
1948
|
return {
|
|
2278
|
-
id:
|
|
1949
|
+
id: ir,
|
|
2279
1950
|
diagram: e
|
|
2280
1951
|
};
|
|
2281
1952
|
}, "loader")
|
|
2282
|
-
},
|
|
2283
|
-
id:
|
|
1953
|
+
}, or = "info", sr = {
|
|
1954
|
+
id: or,
|
|
2284
1955
|
detector: /* @__PURE__ */ t((e) => /^\s*info/.test(e), "detector"),
|
|
2285
1956
|
loader: /* @__PURE__ */ t(async () => {
|
|
2286
|
-
let { diagram: e } = await import("./infoDiagram-
|
|
1957
|
+
let { diagram: e } = await import("./infoDiagram-5W2HQ5XZ-Dw_D4zI1.js");
|
|
2287
1958
|
return {
|
|
2288
|
-
id:
|
|
1959
|
+
id: or,
|
|
2289
1960
|
diagram: e
|
|
2290
1961
|
};
|
|
2291
1962
|
}, "loader")
|
|
2292
|
-
},
|
|
2293
|
-
id:
|
|
1963
|
+
}, cr = "pie", lr = {
|
|
1964
|
+
id: cr,
|
|
2294
1965
|
detector: /* @__PURE__ */ t((e) => /^\s*pie/.test(e), "detector"),
|
|
2295
1966
|
loader: /* @__PURE__ */ t(async () => {
|
|
2296
|
-
let { diagram: e } = await import("./pieDiagram-
|
|
1967
|
+
let { diagram: e } = await import("./pieDiagram-CAPJLFHJ-uz37FR9I.js");
|
|
2297
1968
|
return {
|
|
2298
|
-
id:
|
|
1969
|
+
id: cr,
|
|
2299
1970
|
diagram: e
|
|
2300
1971
|
};
|
|
2301
1972
|
}, "loader")
|
|
2302
|
-
},
|
|
2303
|
-
id:
|
|
1973
|
+
}, ur = "quadrantChart", dr = {
|
|
1974
|
+
id: ur,
|
|
2304
1975
|
detector: /* @__PURE__ */ t((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
2305
1976
|
loader: /* @__PURE__ */ t(async () => {
|
|
2306
|
-
let { diagram: e } = await import("./quadrantDiagram-
|
|
1977
|
+
let { diagram: e } = await import("./quadrantDiagram-GDMTTRAM-C4rt8LIh.js");
|
|
2307
1978
|
return {
|
|
2308
|
-
id:
|
|
1979
|
+
id: ur,
|
|
2309
1980
|
diagram: e
|
|
2310
1981
|
};
|
|
2311
1982
|
}, "loader")
|
|
2312
|
-
},
|
|
2313
|
-
id:
|
|
1983
|
+
}, fr = "xychart", pr = {
|
|
1984
|
+
id: fr,
|
|
2314
1985
|
detector: /* @__PURE__ */ t((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
2315
1986
|
loader: /* @__PURE__ */ t(async () => {
|
|
2316
|
-
let { diagram: e } = await import("./xychartDiagram-
|
|
1987
|
+
let { diagram: e } = await import("./xychartDiagram-TAQBALBS-DlfKpBG9.js");
|
|
2317
1988
|
return {
|
|
2318
|
-
id:
|
|
1989
|
+
id: fr,
|
|
2319
1990
|
diagram: e
|
|
2320
1991
|
};
|
|
2321
1992
|
}, "loader")
|
|
2322
|
-
},
|
|
2323
|
-
id:
|
|
1993
|
+
}, mr = "requirement", hr = {
|
|
1994
|
+
id: mr,
|
|
2324
1995
|
detector: /* @__PURE__ */ t((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
2325
1996
|
loader: /* @__PURE__ */ t(async () => {
|
|
2326
|
-
let { diagram: e } = await import("./requirementDiagram-
|
|
1997
|
+
let { diagram: e } = await import("./requirementDiagram-X7JNWC4A-BEeCszC1.js");
|
|
2327
1998
|
return {
|
|
2328
|
-
id:
|
|
1999
|
+
id: mr,
|
|
2329
2000
|
diagram: e
|
|
2330
2001
|
};
|
|
2331
2002
|
}, "loader")
|
|
2332
|
-
},
|
|
2333
|
-
id:
|
|
2003
|
+
}, gr = "sequence", _r = {
|
|
2004
|
+
id: gr,
|
|
2334
2005
|
detector: /* @__PURE__ */ t((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
2335
2006
|
loader: /* @__PURE__ */ t(async () => {
|
|
2336
|
-
let { diagram: e } = await import("./sequenceDiagram-
|
|
2007
|
+
let { diagram: e } = await import("./sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js");
|
|
2337
2008
|
return {
|
|
2338
|
-
id:
|
|
2009
|
+
id: gr,
|
|
2339
2010
|
diagram: e
|
|
2340
2011
|
};
|
|
2341
2012
|
}, "loader")
|
|
2342
|
-
},
|
|
2343
|
-
id:
|
|
2344
|
-
detector: /* @__PURE__ */ t((e
|
|
2013
|
+
}, vr = "classDiagram", yr = {
|
|
2014
|
+
id: vr,
|
|
2015
|
+
detector: /* @__PURE__ */ t((e) => /^\s*classDiagram/.test(e), "detector"),
|
|
2345
2016
|
loader: /* @__PURE__ */ t(async () => {
|
|
2346
|
-
let { diagram: e } = await import("./classDiagram-
|
|
2017
|
+
let { diagram: e } = await import("./classDiagram-v2-K4WV4PDN-C39xKke0.js");
|
|
2347
2018
|
return {
|
|
2348
|
-
id:
|
|
2019
|
+
id: vr,
|
|
2349
2020
|
diagram: e
|
|
2350
2021
|
};
|
|
2351
2022
|
}, "loader")
|
|
2352
|
-
},
|
|
2353
|
-
id:
|
|
2354
|
-
detector: /* @__PURE__ */ t((e
|
|
2023
|
+
}, br = "stateDiagram", xr = {
|
|
2024
|
+
id: br,
|
|
2025
|
+
detector: /* @__PURE__ */ t((e) => /^\s*stateDiagram/.test(e), "detector"),
|
|
2355
2026
|
loader: /* @__PURE__ */ t(async () => {
|
|
2356
|
-
let { diagram: e } = await import("./
|
|
2027
|
+
let { diagram: e } = await import("./stateDiagram-v2-TBUQTH76-PRnBJSrY.js");
|
|
2357
2028
|
return {
|
|
2358
|
-
id:
|
|
2029
|
+
id: br,
|
|
2359
2030
|
diagram: e
|
|
2360
2031
|
};
|
|
2361
2032
|
}, "loader")
|
|
2362
|
-
},
|
|
2363
|
-
id:
|
|
2364
|
-
detector: /* @__PURE__ */ t((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
|
|
2365
|
-
loader: /* @__PURE__ */ t(async () => {
|
|
2366
|
-
let { diagram: e } = await import("./stateDiagram-XQSTLZYL-BhzcW44q.js");
|
|
2367
|
-
return {
|
|
2368
|
-
id: ri,
|
|
2369
|
-
diagram: e
|
|
2370
|
-
};
|
|
2371
|
-
}, "loader")
|
|
2372
|
-
}, ai = "stateDiagram", oi = {
|
|
2373
|
-
id: ai,
|
|
2374
|
-
detector: /* @__PURE__ */ t((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
2375
|
-
loader: /* @__PURE__ */ t(async () => {
|
|
2376
|
-
let { diagram: e } = await import("./stateDiagram-v2-IH3M54BS-BE5CXOTu.js");
|
|
2377
|
-
return {
|
|
2378
|
-
id: ai,
|
|
2379
|
-
diagram: e
|
|
2380
|
-
};
|
|
2381
|
-
}, "loader")
|
|
2382
|
-
}, si = "journey", ci = {
|
|
2383
|
-
id: si,
|
|
2033
|
+
}, Sr = "journey", Cr = {
|
|
2034
|
+
id: Sr,
|
|
2384
2035
|
detector: /* @__PURE__ */ t((e) => /^\s*journey/.test(e), "detector"),
|
|
2385
2036
|
loader: /* @__PURE__ */ t(async () => {
|
|
2386
|
-
let { diagram: e } = await import("./journeyDiagram-
|
|
2037
|
+
let { diagram: e } = await import("./journeyDiagram-COXZFDF6-B-qvdudB.js");
|
|
2387
2038
|
return {
|
|
2388
|
-
id:
|
|
2039
|
+
id: Sr,
|
|
2389
2040
|
diagram: e
|
|
2390
2041
|
};
|
|
2391
2042
|
}, "loader")
|
|
2392
|
-
},
|
|
2043
|
+
}, wr = 4, Tr = 75, Er = /* @__PURE__ */ t((e) => {
|
|
2044
|
+
let t = [];
|
|
2045
|
+
for (let n of e.split(/\s+/)) {
|
|
2046
|
+
let e = [...n];
|
|
2047
|
+
for (; e.length > Tr;) t.push(e.slice(0, Tr).join("")), e = e.slice(Tr);
|
|
2048
|
+
e.length > 0 && t.push(e.join(""));
|
|
2049
|
+
}
|
|
2050
|
+
let n = [], r = "";
|
|
2051
|
+
for (let e of t) {
|
|
2052
|
+
let t = r ? `${r} ${e}` : e;
|
|
2053
|
+
[...t].length > Tr ? (n.push(r), r = e) : r = t;
|
|
2054
|
+
}
|
|
2055
|
+
if (r && n.push(r), n.length > wr) {
|
|
2056
|
+
n.length = wr;
|
|
2057
|
+
let e = n[wr - 1] ?? "";
|
|
2058
|
+
n[wr - 1] = `${[...e].slice(0, Tr - 3).join("")}...`;
|
|
2059
|
+
}
|
|
2060
|
+
return n;
|
|
2061
|
+
}, "wrapErrorMessage"), Dr = { draw: /* @__PURE__ */ t((e, t, n, i) => {
|
|
2393
2062
|
r.debug("rendering svg for syntax error\n");
|
|
2394
|
-
let
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2063
|
+
let a = ge(t), o = a.append("g"), s = Er(i?.db.getErrorMessage?.() ?? ""), c = s.length > 0 ? 500 + s.length * 56 : 512;
|
|
2064
|
+
a.attr("viewBox", `0 0 2412 ${c}`), y(a, 100, c, !0), o.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), o.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), o.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), o.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), o.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`), s.forEach((e, t) => {
|
|
2065
|
+
o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 510 + t * 56).attr("font-size", "42px").style("text-anchor", "middle").text(e);
|
|
2066
|
+
});
|
|
2067
|
+
}, "draw") }, Or = Dr, kr, Ar = {
|
|
2068
|
+
db: {
|
|
2069
|
+
clear() {
|
|
2070
|
+
kr = void 0;
|
|
2071
|
+
},
|
|
2072
|
+
setErrorMessage(e) {
|
|
2073
|
+
kr = e;
|
|
2074
|
+
},
|
|
2075
|
+
getErrorMessage() {
|
|
2076
|
+
return kr;
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
2079
|
+
renderer: Dr,
|
|
2399
2080
|
parser: { parse: /* @__PURE__ */ t(() => {}, "parse") }
|
|
2400
|
-
},
|
|
2401
|
-
id:
|
|
2402
|
-
detector: /* @__PURE__ */ t((e, t = {}) => /^\s*flowchart-elk/.test(e)
|
|
2081
|
+
}, jr = "flowchart-elk", Mr = {
|
|
2082
|
+
id: jr,
|
|
2083
|
+
detector: /* @__PURE__ */ t((e, t = {}) => /^\s*flowchart-elk/.test(e) ? (t.layout = "elk", !0) : !1, "detector"),
|
|
2403
2084
|
loader: /* @__PURE__ */ t(async () => {
|
|
2404
|
-
let { diagram: e } = await import("./flowDiagram-
|
|
2085
|
+
let { diagram: e } = await import("./flowDiagram-OXPTDLAJ-R_xf7pNW.js");
|
|
2405
2086
|
return {
|
|
2406
|
-
id:
|
|
2087
|
+
id: jr,
|
|
2407
2088
|
diagram: e
|
|
2408
2089
|
};
|
|
2409
2090
|
}, "loader")
|
|
2410
|
-
},
|
|
2411
|
-
id:
|
|
2091
|
+
}, Nr = "timeline", Pr = {
|
|
2092
|
+
id: Nr,
|
|
2412
2093
|
detector: /* @__PURE__ */ t((e) => /^\s*timeline/.test(e), "detector"),
|
|
2413
2094
|
loader: /* @__PURE__ */ t(async () => {
|
|
2414
|
-
let { diagram: e } = await import("./timeline-definition-
|
|
2095
|
+
let { diagram: e } = await import("./timeline-definition-YOQAKGHF-h8_spxIb.js");
|
|
2415
2096
|
return {
|
|
2416
|
-
id:
|
|
2097
|
+
id: Nr,
|
|
2417
2098
|
diagram: e
|
|
2418
2099
|
};
|
|
2419
2100
|
}, "loader")
|
|
2420
|
-
},
|
|
2421
|
-
id:
|
|
2101
|
+
}, Fr = "mindmap", Ir = {
|
|
2102
|
+
id: Fr,
|
|
2422
2103
|
detector: /* @__PURE__ */ t((e) => /^\s*mindmap/.test(e), "detector"),
|
|
2423
2104
|
loader: /* @__PURE__ */ t(async () => {
|
|
2424
|
-
let { diagram: e } = await import("./mindmap-definition-
|
|
2105
|
+
let { diagram: e } = await import("./mindmap-definition-LZFPQGKD-gYumvdwo.js");
|
|
2425
2106
|
return {
|
|
2426
|
-
id:
|
|
2107
|
+
id: Fr,
|
|
2427
2108
|
diagram: e
|
|
2428
2109
|
};
|
|
2429
2110
|
}, "loader")
|
|
2430
|
-
},
|
|
2431
|
-
id:
|
|
2111
|
+
}, Lr = "kanban", Rr = {
|
|
2112
|
+
id: Lr,
|
|
2432
2113
|
detector: /* @__PURE__ */ t((e) => /^\s*kanban/.test(e), "detector"),
|
|
2433
2114
|
loader: /* @__PURE__ */ t(async () => {
|
|
2434
|
-
let { diagram: e } = await import("./kanban-definition-
|
|
2115
|
+
let { diagram: e } = await import("./kanban-definition-P3RFRI5V-D0XAXDl8.js");
|
|
2435
2116
|
return {
|
|
2436
|
-
id:
|
|
2117
|
+
id: Lr,
|
|
2437
2118
|
diagram: e
|
|
2438
2119
|
};
|
|
2439
2120
|
}, "loader")
|
|
2440
|
-
},
|
|
2441
|
-
id:
|
|
2121
|
+
}, zr = "sankey", Br = {
|
|
2122
|
+
id: zr,
|
|
2442
2123
|
detector: /* @__PURE__ */ t((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
2443
2124
|
loader: /* @__PURE__ */ t(async () => {
|
|
2444
|
-
let { diagram: e } = await import("./sankeyDiagram-
|
|
2125
|
+
let { diagram: e } = await import("./sankeyDiagram-UM26HJRW-DLDVzhPm.js");
|
|
2445
2126
|
return {
|
|
2446
|
-
id:
|
|
2127
|
+
id: zr,
|
|
2447
2128
|
diagram: e
|
|
2448
2129
|
};
|
|
2449
2130
|
}, "loader")
|
|
2450
|
-
},
|
|
2451
|
-
id:
|
|
2131
|
+
}, Vr = "packet", Hr = {
|
|
2132
|
+
id: Vr,
|
|
2452
2133
|
detector: /* @__PURE__ */ t((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
2453
2134
|
loader: /* @__PURE__ */ t(async () => {
|
|
2454
|
-
let { diagram: e } = await import("./diagram-
|
|
2135
|
+
let { diagram: e } = await import("./diagram-UMYRVEAY-blW7NpUU.js");
|
|
2455
2136
|
return {
|
|
2456
|
-
id:
|
|
2137
|
+
id: Vr,
|
|
2457
2138
|
diagram: e
|
|
2458
2139
|
};
|
|
2459
2140
|
}, "loader")
|
|
2460
|
-
},
|
|
2461
|
-
id:
|
|
2141
|
+
}, Ur = "radar", Wr = {
|
|
2142
|
+
id: Ur,
|
|
2462
2143
|
detector: /* @__PURE__ */ t((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
2463
2144
|
loader: /* @__PURE__ */ t(async () => {
|
|
2464
|
-
let { diagram: e } = await import("./diagram-
|
|
2145
|
+
let { diagram: e } = await import("./diagram-YEKJPTXX-BOgf87BN.js");
|
|
2465
2146
|
return {
|
|
2466
|
-
id:
|
|
2147
|
+
id: Ur,
|
|
2467
2148
|
diagram: e
|
|
2468
2149
|
};
|
|
2469
2150
|
}, "loader")
|
|
2470
|
-
},
|
|
2471
|
-
id:
|
|
2151
|
+
}, Gr = "block", Kr = {
|
|
2152
|
+
id: Gr,
|
|
2472
2153
|
detector: /* @__PURE__ */ t((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
2473
2154
|
loader: /* @__PURE__ */ t(async () => {
|
|
2474
|
-
let { diagram: e } = await import("./blockDiagram-
|
|
2155
|
+
let { diagram: e } = await import("./blockDiagram-E7TT5TSB-CEa2A5E9.js");
|
|
2475
2156
|
return {
|
|
2476
|
-
id:
|
|
2157
|
+
id: Gr,
|
|
2477
2158
|
diagram: e
|
|
2478
2159
|
};
|
|
2479
2160
|
}, "loader")
|
|
2480
|
-
},
|
|
2481
|
-
id:
|
|
2161
|
+
}, qr = "treeView", Jr = {
|
|
2162
|
+
id: qr,
|
|
2482
2163
|
detector: /* @__PURE__ */ t((e) => /^\s*treeView-beta/.test(e), "detector"),
|
|
2483
2164
|
loader: /* @__PURE__ */ t(async () => {
|
|
2484
|
-
let { diagram: e } = await import("./diagram-
|
|
2165
|
+
let { diagram: e } = await import("./diagram-PFPMY2P6-BpOJbdZ5.js");
|
|
2485
2166
|
return {
|
|
2486
|
-
id:
|
|
2167
|
+
id: qr,
|
|
2487
2168
|
diagram: e
|
|
2488
2169
|
};
|
|
2489
2170
|
}, "loader")
|
|
2490
|
-
},
|
|
2491
|
-
id:
|
|
2171
|
+
}, Yr = "architecture", Xr = {
|
|
2172
|
+
id: Yr,
|
|
2492
2173
|
detector: /* @__PURE__ */ t((e) => /^\s*architecture/.test(e), "detector"),
|
|
2493
2174
|
loader: /* @__PURE__ */ t(async () => {
|
|
2494
|
-
let { diagram: e } = await import("./architectureDiagram-
|
|
2175
|
+
let { diagram: e } = await import("./architectureDiagram-47P4ROYG-C_rUoWaO.js");
|
|
2495
2176
|
return {
|
|
2496
|
-
id:
|
|
2177
|
+
id: Yr,
|
|
2497
2178
|
diagram: e
|
|
2498
2179
|
};
|
|
2499
2180
|
}, "loader")
|
|
2500
|
-
},
|
|
2501
|
-
id:
|
|
2181
|
+
}, Zr = "eventmodeling", Qr = {
|
|
2182
|
+
id: Zr,
|
|
2502
2183
|
detector: /* @__PURE__ */ t((e) => /^\s*eventmodeling/.test(e), "detector"),
|
|
2503
2184
|
loader: /* @__PURE__ */ t(async () => {
|
|
2504
|
-
let { diagram: e } = await import("./diagram-
|
|
2185
|
+
let { diagram: e } = await import("./diagram-ZIFT7M5P-CZOnEYez.js");
|
|
2505
2186
|
return {
|
|
2506
|
-
id:
|
|
2187
|
+
id: Zr,
|
|
2507
2188
|
diagram: e
|
|
2508
2189
|
};
|
|
2509
2190
|
}, "loader")
|
|
2510
|
-
},
|
|
2511
|
-
id:
|
|
2191
|
+
}, $r = "ishikawa", ei = {
|
|
2192
|
+
id: $r,
|
|
2512
2193
|
detector: /* @__PURE__ */ t((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
|
|
2513
2194
|
loader: /* @__PURE__ */ t(async () => {
|
|
2514
|
-
let { diagram: e } = await import("./ishikawaDiagram-
|
|
2195
|
+
let { diagram: e } = await import("./ishikawaDiagram-K3B6WC7H-BeLiZFVY.js");
|
|
2515
2196
|
return {
|
|
2516
|
-
id:
|
|
2197
|
+
id: $r,
|
|
2517
2198
|
diagram: e
|
|
2518
2199
|
};
|
|
2519
2200
|
}, "loader")
|
|
2520
|
-
},
|
|
2521
|
-
id:
|
|
2201
|
+
}, ti = "venn", ni = {
|
|
2202
|
+
id: ti,
|
|
2522
2203
|
detector: /* @__PURE__ */ t((e) => /^\s*venn-beta/.test(e), "detector"),
|
|
2523
2204
|
loader: /* @__PURE__ */ t(async () => {
|
|
2524
|
-
let { diagram: e } = await import("./vennDiagram-
|
|
2205
|
+
let { diagram: e } = await import("./vennDiagram-BLWOH2XV-_zHkfDVB.js");
|
|
2525
2206
|
return {
|
|
2526
|
-
id:
|
|
2207
|
+
id: ti,
|
|
2527
2208
|
diagram: e
|
|
2528
2209
|
};
|
|
2529
2210
|
}, "loader")
|
|
2530
|
-
},
|
|
2531
|
-
id:
|
|
2211
|
+
}, ri = "treemap", ii = {
|
|
2212
|
+
id: ri,
|
|
2532
2213
|
detector: /* @__PURE__ */ t((e) => /^\s*treemap/.test(e), "detector"),
|
|
2533
2214
|
loader: /* @__PURE__ */ t(async () => {
|
|
2534
|
-
let { diagram: e } = await import("./diagram-
|
|
2215
|
+
let { diagram: e } = await import("./diagram-OVF4WLC6-D6r6aTeO.js");
|
|
2216
|
+
return {
|
|
2217
|
+
id: ri,
|
|
2218
|
+
diagram: e
|
|
2219
|
+
};
|
|
2220
|
+
}, "loader")
|
|
2221
|
+
}, ai = "usecase", oi = {
|
|
2222
|
+
id: ai,
|
|
2223
|
+
detector: /* @__PURE__ */ t((e) => /^\s*usecase-beta(?:\s|$)/.test(e), "detector"),
|
|
2224
|
+
loader: /* @__PURE__ */ t(async () => {
|
|
2225
|
+
let { diagram: e } = await import("./usecaseDiagram-VIAY4XPW-DCfwvERR.js");
|
|
2535
2226
|
return {
|
|
2536
|
-
id:
|
|
2227
|
+
id: ai,
|
|
2537
2228
|
diagram: e
|
|
2538
2229
|
};
|
|
2539
2230
|
}, "loader")
|
|
2540
|
-
},
|
|
2541
|
-
id:
|
|
2231
|
+
}, si = "wardley", ci = {
|
|
2232
|
+
id: si,
|
|
2542
2233
|
detector: /* @__PURE__ */ t((e) => /^\s*wardley-beta/i.test(e), "detector"),
|
|
2543
2234
|
loader: /* @__PURE__ */ t(async () => {
|
|
2544
|
-
let { diagram: e } = await import("./wardleyDiagram-
|
|
2235
|
+
let { diagram: e } = await import("./wardleyDiagram-YMQ3BMBF-BKvQkiZP.js");
|
|
2545
2236
|
return {
|
|
2546
|
-
id:
|
|
2237
|
+
id: si,
|
|
2547
2238
|
diagram: e
|
|
2548
2239
|
};
|
|
2549
2240
|
}, "loader")
|
|
2550
|
-
},
|
|
2551
|
-
id:
|
|
2241
|
+
}, li = "cynefin", ui = {
|
|
2242
|
+
id: li,
|
|
2552
2243
|
detector: /* @__PURE__ */ t((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
|
|
2553
2244
|
loader: /* @__PURE__ */ t(async () => {
|
|
2554
|
-
let { diagram: e } = await import("./cynefinDiagram-
|
|
2245
|
+
let { diagram: e } = await import("./cynefinDiagram-3GCD6N5R-C2CRSeJl.js");
|
|
2555
2246
|
return {
|
|
2556
|
-
id:
|
|
2247
|
+
id: li,
|
|
2557
2248
|
diagram: e
|
|
2558
2249
|
};
|
|
2559
2250
|
}, "loader")
|
|
2560
|
-
},
|
|
2561
|
-
id:
|
|
2251
|
+
}, di = "railroad", fi = {
|
|
2252
|
+
id: di,
|
|
2562
2253
|
detector: /* @__PURE__ */ t((e) => /^\s*railroad-beta/i.test(e), "detector"),
|
|
2563
2254
|
loader: /* @__PURE__ */ t(async () => {
|
|
2564
|
-
let { diagram: e } = await import("./railroadDiagram-
|
|
2255
|
+
let { diagram: e } = await import("./railroadDiagram-SM67HX2B-T5SG0kEf.js");
|
|
2565
2256
|
return {
|
|
2566
|
-
id:
|
|
2257
|
+
id: di,
|
|
2567
2258
|
diagram: e
|
|
2568
2259
|
};
|
|
2569
2260
|
}, "loader")
|
|
2570
|
-
},
|
|
2571
|
-
id:
|
|
2261
|
+
}, pi = "railroadEbnf", mi = {
|
|
2262
|
+
id: pi,
|
|
2572
2263
|
detector: /* @__PURE__ */ t((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
|
|
2573
2264
|
loader: /* @__PURE__ */ t(async () => {
|
|
2574
|
-
let { diagram: e } = await import("./ebnfDiagram-
|
|
2265
|
+
let { diagram: e } = await import("./ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js");
|
|
2575
2266
|
return {
|
|
2576
|
-
id:
|
|
2267
|
+
id: pi,
|
|
2577
2268
|
diagram: e
|
|
2578
2269
|
};
|
|
2579
2270
|
}, "loader")
|
|
2580
|
-
},
|
|
2581
|
-
id:
|
|
2271
|
+
}, hi = "railroadAbnf", gi = {
|
|
2272
|
+
id: hi,
|
|
2582
2273
|
detector: /* @__PURE__ */ t((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
|
|
2583
2274
|
loader: /* @__PURE__ */ t(async () => {
|
|
2584
|
-
let { diagram: e } = await import("./abnfDiagram-
|
|
2275
|
+
let { diagram: e } = await import("./abnfDiagram-YUKMZFIV-dNHR2FX4.js");
|
|
2585
2276
|
return {
|
|
2586
|
-
id:
|
|
2277
|
+
id: hi,
|
|
2587
2278
|
diagram: e
|
|
2588
2279
|
};
|
|
2589
2280
|
}, "loader")
|
|
2590
|
-
},
|
|
2591
|
-
id:
|
|
2281
|
+
}, _i = "railroadPeg", vi = {
|
|
2282
|
+
id: _i,
|
|
2592
2283
|
detector: /* @__PURE__ */ t((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
|
|
2593
2284
|
loader: /* @__PURE__ */ t(async () => {
|
|
2594
|
-
let { diagram: e } = await import("./pegDiagram-
|
|
2285
|
+
let { diagram: e } = await import("./pegDiagram-BGZESJAR-Dw9pRv5d.js");
|
|
2595
2286
|
return {
|
|
2596
|
-
id:
|
|
2287
|
+
id: _i,
|
|
2597
2288
|
diagram: e
|
|
2598
2289
|
};
|
|
2599
2290
|
}, "loader")
|
|
2600
|
-
},
|
|
2601
|
-
|
|
2291
|
+
}, yi = !1, bi = /* @__PURE__ */ t(() => {
|
|
2292
|
+
yi || (yi = !0, u("error", Ar, (e) => e.toLowerCase().trim() === "error"), u("---", {
|
|
2602
2293
|
db: { clear: /* @__PURE__ */ t(() => {}, "clear") },
|
|
2603
2294
|
styles: {},
|
|
2604
2295
|
renderer: { draw: /* @__PURE__ */ t(() => {}, "draw") },
|
|
@@ -2606,18 +2297,18 @@ var Er = /* @__PURE__ */ e({
|
|
|
2606
2297
|
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
2607
2298
|
}, "parse") },
|
|
2608
2299
|
init: /* @__PURE__ */ t(() => null, "init")
|
|
2609
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), d(
|
|
2610
|
-
}, "addDiagrams"),
|
|
2300
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), d(Mr, Ir, Xr), d(Zn, qn, Rr, yr, tr, ar, sr, lr, hr, _r, $n, Yn, Pr, rr, xr, Cr, dr, Br, Hr, pr, Kr, Qr, Jr, Wr, ei, ii, fi, mi, gi, vi, ni, ci, ui, oi));
|
|
2301
|
+
}, "addDiagrams"), xi = /* @__PURE__ */ t(async () => {
|
|
2611
2302
|
r.debug("Loading registered diagrams");
|
|
2612
|
-
let e = (await Promise.allSettled(Object.entries(
|
|
2303
|
+
let e = (await Promise.allSettled(Object.entries(T).map(async ([e, { detector: t, loader: n }]) => {
|
|
2613
2304
|
if (n) try {
|
|
2614
|
-
|
|
2305
|
+
N(e);
|
|
2615
2306
|
} catch {
|
|
2616
2307
|
try {
|
|
2617
2308
|
let { diagram: e, id: r } = await n();
|
|
2618
2309
|
u(r, e, t);
|
|
2619
2310
|
} catch (t) {
|
|
2620
|
-
throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete
|
|
2311
|
+
throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete T[e], t;
|
|
2621
2312
|
}
|
|
2622
2313
|
}
|
|
2623
2314
|
}))).filter((e) => e.status === "rejected");
|
|
@@ -2626,12 +2317,12 @@ var Er = /* @__PURE__ */ e({
|
|
|
2626
2317
|
for (let t of e) r.error(t);
|
|
2627
2318
|
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
2628
2319
|
}
|
|
2629
|
-
}, "loadRegisteredDiagrams"),
|
|
2630
|
-
function
|
|
2631
|
-
e.attr("role",
|
|
2320
|
+
}, "loadRegisteredDiagrams"), Si = "graphics-document document";
|
|
2321
|
+
function Ci(e, t) {
|
|
2322
|
+
e.attr("role", Si), t !== "" && e.attr("aria-roledescription", t);
|
|
2632
2323
|
}
|
|
2633
|
-
t(
|
|
2634
|
-
function
|
|
2324
|
+
t(Ci, "setA11yDiagramInfo");
|
|
2325
|
+
function wi(e, t, n, r) {
|
|
2635
2326
|
if (e.insert !== void 0) {
|
|
2636
2327
|
if (n) {
|
|
2637
2328
|
let t = `chart-desc-${r}`;
|
|
@@ -2643,8 +2334,8 @@ function ra(e, t, n, r) {
|
|
|
2643
2334
|
}
|
|
2644
2335
|
}
|
|
2645
2336
|
}
|
|
2646
|
-
t(
|
|
2647
|
-
var
|
|
2337
|
+
t(wi, "addSVGa11yTitleDescription");
|
|
2338
|
+
var Ti = class e {
|
|
2648
2339
|
constructor(e, t, n, r, i) {
|
|
2649
2340
|
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
2650
2341
|
}
|
|
@@ -2652,18 +2343,27 @@ var ia = class e {
|
|
|
2652
2343
|
t(this, "Diagram");
|
|
2653
2344
|
}
|
|
2654
2345
|
static async fromText(t, n = {}) {
|
|
2655
|
-
let
|
|
2656
|
-
|
|
2346
|
+
let i = typeof t == "string" ? {
|
|
2347
|
+
raw: t,
|
|
2348
|
+
cleaned: t
|
|
2349
|
+
} : t, a = P(), o = D(i.cleaned, a);
|
|
2657
2350
|
try {
|
|
2658
|
-
|
|
2351
|
+
N(o);
|
|
2659
2352
|
} catch {
|
|
2660
|
-
let e = o
|
|
2661
|
-
if (!e) throw new
|
|
2353
|
+
let e = p(o);
|
|
2354
|
+
if (!e) throw new A(`Diagram ${o} not found.`);
|
|
2662
2355
|
let { id: t, diagram: n } = await e();
|
|
2663
2356
|
u(t, n);
|
|
2664
2357
|
}
|
|
2665
|
-
let { db:
|
|
2666
|
-
|
|
2358
|
+
let { db: s, parser: c, renderer: l, init: d } = N(o);
|
|
2359
|
+
c.parser && (c.parser.yy = s), s.clear?.(), d?.(a), n.title && s.setDiagramTitle?.(n.title);
|
|
2360
|
+
let f = i.cleaned;
|
|
2361
|
+
if (s.preserveCommentsWhenParsing && i.withComments) {
|
|
2362
|
+
let e = a.maxTextSize ?? x.maxTextSize;
|
|
2363
|
+
i.withComments.length > e ? r.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`) : f = i.withComments;
|
|
2364
|
+
}
|
|
2365
|
+
let m = ie(f) + "\n";
|
|
2366
|
+
return i.frontmatterLineOffset && s.setFrontmatterLineOffset?.(i.frontmatterLineOffset), await c.parse(m), new e(o, m, s, c, l);
|
|
2667
2367
|
}
|
|
2668
2368
|
async render(e, t) {
|
|
2669
2369
|
await this.renderer.draw(this.text, e, t, this);
|
|
@@ -2674,78 +2374,92 @@ var ia = class e {
|
|
|
2674
2374
|
getType() {
|
|
2675
2375
|
return this.type;
|
|
2676
2376
|
}
|
|
2677
|
-
},
|
|
2678
|
-
|
|
2377
|
+
}, Ei = [], Di = /* @__PURE__ */ t(() => {
|
|
2378
|
+
Ei.forEach((e) => {
|
|
2679
2379
|
e();
|
|
2680
|
-
}),
|
|
2681
|
-
}, "attachFunctions"),
|
|
2682
|
-
function
|
|
2683
|
-
let t = e
|
|
2380
|
+
}), Ei = [];
|
|
2381
|
+
}, "attachFunctions"), Oi = /* @__PURE__ */ t((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
2382
|
+
function ki(e) {
|
|
2383
|
+
let t = C(e);
|
|
2684
2384
|
if (!t) return {
|
|
2685
2385
|
text: e,
|
|
2686
2386
|
metadata: {}
|
|
2687
2387
|
};
|
|
2688
|
-
let n = t
|
|
2388
|
+
let n = t.indent, r = Xt(n ? t.body.split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t.body, { schema: qt }) ?? {};
|
|
2689
2389
|
r = typeof r == "object" && !Array.isArray(r) ? r : {};
|
|
2690
2390
|
let i = {};
|
|
2691
2391
|
return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
|
|
2692
|
-
text: e.slice(t
|
|
2392
|
+
text: e.slice(t.length),
|
|
2693
2393
|
metadata: i
|
|
2694
2394
|
};
|
|
2695
2395
|
}
|
|
2696
|
-
t(
|
|
2697
|
-
var
|
|
2698
|
-
let { text: t, metadata: n } =
|
|
2396
|
+
t(ki, "extractFrontMatter");
|
|
2397
|
+
var Ai = /* @__PURE__ */ t((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ji = /* @__PURE__ */ t((e) => {
|
|
2398
|
+
let { text: t, metadata: n } = ki(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
2699
2399
|
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
2700
2400
|
title: i,
|
|
2701
2401
|
config: a,
|
|
2702
2402
|
text: t
|
|
2703
2403
|
};
|
|
2704
|
-
}, "processFrontmatter"),
|
|
2705
|
-
let t =
|
|
2404
|
+
}, "processFrontmatter"), Mi = /* @__PURE__ */ t((e) => {
|
|
2405
|
+
let t = L.detectInit(e) ?? {}, n = L.detectDirective(e, "wrap");
|
|
2706
2406
|
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
2707
|
-
text:
|
|
2407
|
+
text: te(e),
|
|
2708
2408
|
directive: t
|
|
2709
2409
|
};
|
|
2710
2410
|
}, "processDirectives");
|
|
2711
|
-
function
|
|
2712
|
-
let t =
|
|
2713
|
-
return
|
|
2714
|
-
code:
|
|
2715
|
-
|
|
2716
|
-
|
|
2411
|
+
function Ni(e) {
|
|
2412
|
+
let t = e, n = Ai(e), r = ji(n), i = Mi(r.text), a = ne(r.config, i.directive), o = i.text;
|
|
2413
|
+
return {
|
|
2414
|
+
code: {
|
|
2415
|
+
raw: t,
|
|
2416
|
+
cleaned: Oi(o),
|
|
2417
|
+
withComments: o,
|
|
2418
|
+
frontmatterLineOffset: n.length > r.text.length ? (n.substring(0, n.length - r.text.length).match(/\n/g) ?? []).length : 0
|
|
2419
|
+
},
|
|
2420
|
+
title: r.title,
|
|
2421
|
+
config: a
|
|
2717
2422
|
};
|
|
2718
2423
|
}
|
|
2719
|
-
t(
|
|
2720
|
-
function
|
|
2424
|
+
t(Ni, "preprocessDiagram");
|
|
2425
|
+
function Pi(e) {
|
|
2721
2426
|
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
2722
2427
|
return btoa(n);
|
|
2723
2428
|
}
|
|
2724
|
-
t(
|
|
2725
|
-
var
|
|
2726
|
-
function
|
|
2727
|
-
let t =
|
|
2728
|
-
|
|
2429
|
+
t(Pi, "toBase64");
|
|
2430
|
+
var Fi = 5e4, Ii = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Li = "sandbox", Ri = "loose", zi = "http://www.w3.org/2000/svg", Bi = "http://www.w3.org/1999/xlink", Vi = "http://www.w3.org/1999/xhtml", Hi = "100%", Ui = "100%", Wi = "border:0;margin:0;", Gi = "margin:0", Ki = "allow-top-navigation-by-user-activation allow-popups", qi = "The \"iframe\" tag is not supported by your browser.", Ji = ["foreignobject"], Yi = ["dominant-baseline"];
|
|
2431
|
+
function Xi(e) {
|
|
2432
|
+
let t = Ni(e);
|
|
2433
|
+
o();
|
|
2434
|
+
let n;
|
|
2435
|
+
try {
|
|
2436
|
+
n = D(t.code.cleaned, P());
|
|
2437
|
+
} catch {
|
|
2438
|
+
n = void 0;
|
|
2439
|
+
}
|
|
2440
|
+
return c(n), E(t.config ?? {}), t;
|
|
2729
2441
|
}
|
|
2730
|
-
t(
|
|
2731
|
-
async function
|
|
2732
|
-
|
|
2442
|
+
t(Xi, "processAndSetConfigs");
|
|
2443
|
+
async function Zi(e, t) {
|
|
2444
|
+
bi();
|
|
2733
2445
|
try {
|
|
2734
|
-
let { code: t, config: n } =
|
|
2446
|
+
let { code: t, config: n } = Xi(e);
|
|
2735
2447
|
return {
|
|
2736
|
-
diagramType: (await
|
|
2448
|
+
diagramType: (await Ti.fromText(t)).type,
|
|
2737
2449
|
config: n
|
|
2738
2450
|
};
|
|
2739
2451
|
} catch (e) {
|
|
2740
2452
|
if (t?.suppressErrors) return !1;
|
|
2741
2453
|
throw e;
|
|
2454
|
+
} finally {
|
|
2455
|
+
c(void 0);
|
|
2742
2456
|
}
|
|
2743
2457
|
}
|
|
2744
|
-
t(
|
|
2745
|
-
var
|
|
2458
|
+
t(Zi, "parse");
|
|
2459
|
+
var Qi = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), $i = /* @__PURE__ */ t((e, t = /* @__PURE__ */ new Map()) => {
|
|
2746
2460
|
let n = new CSSStyleSheet();
|
|
2747
2461
|
if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
|
|
2748
|
-
let r =
|
|
2462
|
+
let r = M(e) ? ["> *", "span"] : [
|
|
2749
2463
|
"rect",
|
|
2750
2464
|
"polygon",
|
|
2751
2465
|
"ellipse",
|
|
@@ -2753,21 +2467,21 @@ var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !impo
|
|
|
2753
2467
|
"path"
|
|
2754
2468
|
];
|
|
2755
2469
|
t.forEach((e) => {
|
|
2756
|
-
|
|
2757
|
-
n.insertRule(
|
|
2758
|
-
}),
|
|
2470
|
+
ve(e.styles) || r.forEach((t) => {
|
|
2471
|
+
n.insertRule(Qi(e.id, t, e.styles), n.cssRules.length);
|
|
2472
|
+
}), ve(e.textStyles) || n.insertRule(Qi(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
|
|
2759
2473
|
});
|
|
2760
2474
|
}
|
|
2761
2475
|
let r = "";
|
|
2762
2476
|
if (e.themeCSS !== void 0) {
|
|
2763
2477
|
if (typeof n.replaceSync == "function") {
|
|
2764
2478
|
let t = new CSSStyleSheet();
|
|
2765
|
-
t.replaceSync(e.themeCSS), r =
|
|
2479
|
+
t.replaceSync(e.themeCSS), r = w(t) + "\n";
|
|
2766
2480
|
} else r += `${e.themeCSS}
|
|
2767
2481
|
`;
|
|
2768
2482
|
}
|
|
2769
|
-
return r +
|
|
2770
|
-
}, "createCssStyles"),
|
|
2483
|
+
return r + w(n);
|
|
2484
|
+
}, "createCssStyles"), ea = /* @__PURE__ */ t((e, n) => Hn(Ln(`${e}{${n}}`), Wn([/* @__PURE__ */ t(function(t, n, i, a) {
|
|
2771
2485
|
if (t.type === "rule" && Array.isArray(t.props)) {
|
|
2772
2486
|
if (t.parent && t.parent.type === "@keyframes") return;
|
|
2773
2487
|
t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
|
|
@@ -2783,125 +2497,136 @@ var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !impo
|
|
|
2783
2497
|
"@container",
|
|
2784
2498
|
"@starting-style",
|
|
2785
2499
|
"@keyframes"
|
|
2786
|
-
].includes(t.type) || (r.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type =
|
|
2787
|
-
}, "addNamespace"),
|
|
2788
|
-
let i =
|
|
2789
|
-
return
|
|
2500
|
+
].includes(t.type) || (r.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = an));
|
|
2501
|
+
}, "addNamespace"), Un])), "compileCSS"), ta = /* @__PURE__ */ t((e, t, n, r) => {
|
|
2502
|
+
let i = $i(e, n);
|
|
2503
|
+
return ea(r, _(t, i, {
|
|
2790
2504
|
...e.themeVariables,
|
|
2791
2505
|
theme: e.theme,
|
|
2792
2506
|
look: e.look
|
|
2793
2507
|
}, r));
|
|
2794
|
-
}, "createUserStyles"),
|
|
2508
|
+
}, "createUserStyles"), na = /* @__PURE__ */ t((e = "", t, n) => {
|
|
2795
2509
|
let r = e;
|
|
2796
|
-
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r =
|
|
2797
|
-
}, "cleanUpSvgCode"),
|
|
2798
|
-
${
|
|
2799
|
-
</iframe>`, "putIntoIFrame"),
|
|
2510
|
+
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = R(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
2511
|
+
}, "cleanUpSvgCode"), ra = /* @__PURE__ */ t((e = "", t) => `<iframe style="width:${Hi};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Ui};${Wi}" src="data:text/html;charset=UTF-8;base64,${Pi(`<body style="${Gi}">${e}</body>`)}" sandbox="${Ki}">
|
|
2512
|
+
${qi}
|
|
2513
|
+
</iframe>`, "putIntoIFrame"), ia = /* @__PURE__ */ t((e, t, n, r, i) => {
|
|
2800
2514
|
let a = e.append("div");
|
|
2801
2515
|
a.attr("id", n), r && a.attr("style", r);
|
|
2802
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns",
|
|
2516
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", zi);
|
|
2803
2517
|
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
2804
2518
|
}, "appendDivSvgG");
|
|
2805
|
-
function
|
|
2519
|
+
function aa(e, t) {
|
|
2806
2520
|
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
2807
2521
|
}
|
|
2808
|
-
t(
|
|
2809
|
-
var
|
|
2522
|
+
t(aa, "sandboxedIframe");
|
|
2523
|
+
var oa = /* @__PURE__ */ t((e, t, n, r) => {
|
|
2810
2524
|
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
2811
|
-
}, "removeExistingElements"),
|
|
2812
|
-
|
|
2813
|
-
let
|
|
2814
|
-
n = s.
|
|
2815
|
-
let c =
|
|
2816
|
-
r.debug(c), n.length > (c?.maxTextSize ??
|
|
2525
|
+
}, "removeExistingElements"), sa = /* @__PURE__ */ t(async function(e, n, a) {
|
|
2526
|
+
bi();
|
|
2527
|
+
let o = Xi(n), s = o.code;
|
|
2528
|
+
n = s.cleaned;
|
|
2529
|
+
let c = P();
|
|
2530
|
+
r.debug(c), n.length > (c?.maxTextSize ?? Fi) && (n = Ii, s = {
|
|
2531
|
+
raw: n,
|
|
2532
|
+
cleaned: n
|
|
2533
|
+
});
|
|
2817
2534
|
let l = `#${e}`, u = "i" + e, d = "#" + u, f = "d" + e, p = "#" + f, m = /* @__PURE__ */ t(() => {
|
|
2818
2535
|
let e = i(g ? d : p).node();
|
|
2819
2536
|
e && "remove" in e && e.remove();
|
|
2820
|
-
}, "removeTempElements"), h = i(document.body), g = c.securityLevel ===
|
|
2821
|
-
if (
|
|
2822
|
-
if (
|
|
2823
|
-
let e =
|
|
2537
|
+
}, "removeTempElements"), h = i(document.body), g = c.securityLevel === Li, _ = c.securityLevel === Ri, v = c.fontFamily;
|
|
2538
|
+
if (a !== void 0) {
|
|
2539
|
+
if (a && (a.innerHTML = ""), g) {
|
|
2540
|
+
let e = aa(i(a), u);
|
|
2824
2541
|
h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
|
|
2825
|
-
} else h = i(
|
|
2826
|
-
|
|
2542
|
+
} else h = i(a);
|
|
2543
|
+
ia(h, e, f, `font-family: ${v}`, Bi);
|
|
2827
2544
|
} else {
|
|
2828
|
-
if (
|
|
2829
|
-
let e =
|
|
2545
|
+
if (oa(document, e, f, u), g) {
|
|
2546
|
+
let e = aa(i(document.body), u);
|
|
2830
2547
|
h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
|
|
2831
2548
|
} else h = i("body");
|
|
2832
|
-
|
|
2549
|
+
ia(h, e, f);
|
|
2833
2550
|
}
|
|
2834
2551
|
let y, x;
|
|
2835
2552
|
try {
|
|
2836
|
-
y = await
|
|
2553
|
+
y = await Ti.fromText(s, { title: o.title });
|
|
2837
2554
|
} catch (e) {
|
|
2838
2555
|
if (c.suppressErrorRendering) throw m(), e;
|
|
2839
|
-
y = await
|
|
2556
|
+
y = await Ti.fromText("error"), x = e, y.db.setErrorMessage?.(re(e));
|
|
2840
2557
|
}
|
|
2841
|
-
let C = h.select(p).node(), w = y.type, T = C.firstChild, E = T.firstChild, D = y.renderer.getClasses?.(n, y), O =
|
|
2558
|
+
let C = h.select(p).node(), w = y.type, T = C.firstChild, E = T.firstChild, D = y.renderer.getClasses?.(n, y), O = ta(c, w, D, l), k = document.createElement("style");
|
|
2842
2559
|
k.innerHTML = O, T.insertBefore(k, E);
|
|
2843
2560
|
try {
|
|
2844
|
-
await y.renderer.draw(n, e, "
|
|
2561
|
+
await y.renderer.draw(n, e, "12.1.0", y);
|
|
2845
2562
|
} catch (t) {
|
|
2846
|
-
throw c.suppressErrorRendering ? m() :
|
|
2563
|
+
throw c.suppressErrorRendering ? m() : Or.draw(n, e, "12.1.0"), t;
|
|
2847
2564
|
}
|
|
2848
|
-
let
|
|
2849
|
-
|
|
2850
|
-
let
|
|
2851
|
-
h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",
|
|
2565
|
+
let A = h.select(`${p} svg`), j = y.db.getAccTitle?.(), M = y.db.getAccDescription?.();
|
|
2566
|
+
da(w, A, j, M);
|
|
2567
|
+
let N = (/* @__PURE__ */ t(() => {
|
|
2568
|
+
h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Vi);
|
|
2852
2569
|
let t = h.select(p).node().innerHTML;
|
|
2853
|
-
if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), t =
|
|
2570
|
+
if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), t = na(t, g, S(c.arrowMarkerAbsolute)), g) {
|
|
2854
2571
|
let e = h.select(p + " svg").node();
|
|
2855
|
-
t =
|
|
2856
|
-
} else _ || (t =
|
|
2857
|
-
ADD_TAGS:
|
|
2858
|
-
ADD_ATTR:
|
|
2572
|
+
t = ra(t, e);
|
|
2573
|
+
} else _ || (t = b.sanitize(t, {
|
|
2574
|
+
ADD_TAGS: Ji,
|
|
2575
|
+
ADD_ATTR: Yi,
|
|
2859
2576
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
2860
2577
|
}));
|
|
2861
|
-
return
|
|
2578
|
+
return Di(), t;
|
|
2862
2579
|
}, "serializeSvg"))();
|
|
2863
2580
|
if (x) throw x;
|
|
2864
2581
|
return m(), {
|
|
2865
2582
|
diagramType: w,
|
|
2866
|
-
svg:
|
|
2583
|
+
svg: N,
|
|
2867
2584
|
bindFunctions: y.db.bindFunctions
|
|
2868
2585
|
};
|
|
2586
|
+
}, "renderDiagram"), ca = /* @__PURE__ */ t(async function(e, t, n) {
|
|
2587
|
+
try {
|
|
2588
|
+
return await sa(e, t, n);
|
|
2589
|
+
} finally {
|
|
2590
|
+
c(void 0);
|
|
2591
|
+
}
|
|
2869
2592
|
}, "render");
|
|
2870
|
-
function
|
|
2593
|
+
function la(e = {}) {
|
|
2871
2594
|
let t = O({}, e);
|
|
2872
|
-
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), h(t)
|
|
2873
|
-
let r =
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2595
|
+
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), h(t);
|
|
2596
|
+
let r = j.theme;
|
|
2597
|
+
t?.theme && Object.hasOwn(f, t.theme) ? t.themeVariables = f[t.theme].getThemeVariables(t.themeVariables) : t && (t.theme != null && t.theme !== "null" && (t.theme = r), t.themeVariables = f[r].getThemeVariables(t.themeVariables));
|
|
2598
|
+
let i = typeof t == "object" ? s(t) : m();
|
|
2599
|
+
n(i.logLevel), bi();
|
|
2600
|
+
}
|
|
2601
|
+
t(la, "initialize");
|
|
2602
|
+
var ua = /* @__PURE__ */ t((e, t = {}) => {
|
|
2603
|
+
let { code: n } = Ni(e);
|
|
2604
|
+
return Ti.fromText(n, t);
|
|
2880
2605
|
}, "getDiagramFromText");
|
|
2881
|
-
function
|
|
2882
|
-
|
|
2606
|
+
function da(e, t, n, r) {
|
|
2607
|
+
Ci(t, e), wi(t, n, r, t.attr("id"));
|
|
2883
2608
|
}
|
|
2884
|
-
t(
|
|
2609
|
+
t(da, "addA11yInfo");
|
|
2885
2610
|
var Q = Object.freeze({
|
|
2886
|
-
render:
|
|
2887
|
-
parse:
|
|
2888
|
-
getDiagramFromText:
|
|
2889
|
-
initialize:
|
|
2890
|
-
getConfig:
|
|
2611
|
+
render: ca,
|
|
2612
|
+
parse: Zi,
|
|
2613
|
+
getDiagramFromText: ua,
|
|
2614
|
+
initialize: la,
|
|
2615
|
+
getConfig: P,
|
|
2891
2616
|
setConfig: g,
|
|
2892
|
-
getSiteConfig:
|
|
2893
|
-
updateSiteConfig:
|
|
2617
|
+
getSiteConfig: m,
|
|
2618
|
+
updateSiteConfig: a,
|
|
2894
2619
|
reset: /* @__PURE__ */ t(() => {
|
|
2895
|
-
|
|
2620
|
+
o();
|
|
2896
2621
|
}, "reset"),
|
|
2897
2622
|
globalReset: /* @__PURE__ */ t(() => {
|
|
2898
|
-
|
|
2623
|
+
o(j);
|
|
2899
2624
|
}, "globalReset"),
|
|
2900
|
-
defaultConfig:
|
|
2625
|
+
defaultConfig: j
|
|
2901
2626
|
});
|
|
2902
|
-
n(
|
|
2903
|
-
var
|
|
2904
|
-
r.warn(e),
|
|
2627
|
+
n(P().logLevel), o(P());
|
|
2628
|
+
var fa = /* @__PURE__ */ t((e, t, n) => {
|
|
2629
|
+
r.warn(e), ae(e) ? (n && n(e.str, e.hash), t.push({
|
|
2905
2630
|
...e,
|
|
2906
2631
|
message: e.str,
|
|
2907
2632
|
error: e
|
|
@@ -2911,13 +2636,13 @@ var Wa = /* @__PURE__ */ t((e, t, n) => {
|
|
|
2911
2636
|
hash: e.name,
|
|
2912
2637
|
error: e
|
|
2913
2638
|
}));
|
|
2914
|
-
}, "handleError"),
|
|
2639
|
+
}, "handleError"), pa = /* @__PURE__ */ t(async function(e = { querySelector: ".mermaid" }) {
|
|
2915
2640
|
try {
|
|
2916
|
-
await
|
|
2641
|
+
await ma(e);
|
|
2917
2642
|
} catch (t) {
|
|
2918
|
-
if (
|
|
2643
|
+
if (ae(t) && r.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw r.error("Use the suppressErrors option to suppress these errors"), t;
|
|
2919
2644
|
}
|
|
2920
|
-
}, "run"),
|
|
2645
|
+
}, "run"), ma = /* @__PURE__ */ t(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
2921
2646
|
let i = Q.getConfig();
|
|
2922
2647
|
r.debug(`${e ? "" : "No "}Callback function found`);
|
|
2923
2648
|
let a;
|
|
@@ -2925,55 +2650,55 @@ var Wa = /* @__PURE__ */ t((e, t, n) => {
|
|
|
2925
2650
|
else if (t) a = document.querySelectorAll(t);
|
|
2926
2651
|
else throw Error("Nodes and querySelector are both undefined");
|
|
2927
2652
|
r.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (r.debug("Start On Load: " + i?.startOnLoad), Q.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
|
|
2928
|
-
let o = new
|
|
2653
|
+
let o = new L.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
|
|
2929
2654
|
for (let t of Array.from(a)) {
|
|
2930
2655
|
if (r.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
2931
2656
|
t.setAttribute("data-processed", "true");
|
|
2932
2657
|
let n = `mermaid-${o.next()}`;
|
|
2933
|
-
s = t.innerHTML, s =
|
|
2934
|
-
let i =
|
|
2658
|
+
s = t.innerHTML, s = ce(L.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
2659
|
+
let i = L.detectInit(s);
|
|
2935
2660
|
i && r.debug("Detected early reinit: ", i);
|
|
2936
2661
|
try {
|
|
2937
|
-
let { svg: r, bindFunctions: i } = await
|
|
2662
|
+
let { svg: r, bindFunctions: i } = await wa(n, s, t);
|
|
2938
2663
|
t.innerHTML = r, e && await e(n), i && i(t);
|
|
2939
2664
|
} catch (e) {
|
|
2940
|
-
|
|
2665
|
+
fa(e, c, $.parseError);
|
|
2941
2666
|
}
|
|
2942
2667
|
}
|
|
2943
2668
|
if (c.length > 0) throw c[0];
|
|
2944
|
-
}, "runThrowsErrors"),
|
|
2669
|
+
}, "runThrowsErrors"), ha = /* @__PURE__ */ t(function(e) {
|
|
2945
2670
|
Q.initialize(e);
|
|
2946
|
-
}, "initialize"),
|
|
2947
|
-
r.warn("mermaid.init is deprecated. Please use run instead."), e &&
|
|
2671
|
+
}, "initialize"), ga = /* @__PURE__ */ t(async function(e, t, n) {
|
|
2672
|
+
r.warn("mermaid.init is deprecated. Please use run instead."), e && ha(e);
|
|
2948
2673
|
let i = {
|
|
2949
2674
|
postRenderCallback: n,
|
|
2950
2675
|
querySelector: ".mermaid"
|
|
2951
2676
|
};
|
|
2952
|
-
typeof t == "string" ? i.querySelector = t : t && (i.nodes = t instanceof HTMLElement ? [t] : t), await
|
|
2953
|
-
}, "init"),
|
|
2954
|
-
|
|
2955
|
-
}, "registerExternalDiagrams"),
|
|
2677
|
+
typeof t == "string" ? i.querySelector = t : t && (i.nodes = t instanceof HTMLElement ? [t] : t), await pa(i);
|
|
2678
|
+
}, "init"), _a = /* @__PURE__ */ t(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
2679
|
+
bi(), d(...e), t === !1 && await xi();
|
|
2680
|
+
}, "registerExternalDiagrams"), va = /* @__PURE__ */ t(function() {
|
|
2956
2681
|
if ($.startOnLoad) {
|
|
2957
2682
|
let { startOnLoad: e } = Q.getConfig();
|
|
2958
2683
|
e && $.run().catch((e) => r.error("Mermaid failed to initialize", e));
|
|
2959
2684
|
}
|
|
2960
2685
|
}, "contentLoaded");
|
|
2961
|
-
typeof document < "u" && window.addEventListener("load",
|
|
2962
|
-
var
|
|
2686
|
+
typeof document < "u" && window.addEventListener("load", va, !1);
|
|
2687
|
+
var ya = /* @__PURE__ */ t(function(e) {
|
|
2963
2688
|
$.parseError = e;
|
|
2964
|
-
}, "setParseErrorHandler"),
|
|
2965
|
-
if (
|
|
2966
|
-
for (
|
|
2967
|
-
let e =
|
|
2689
|
+
}, "setParseErrorHandler"), ba = [], xa = !1, Sa = /* @__PURE__ */ t(async () => {
|
|
2690
|
+
if (!xa) {
|
|
2691
|
+
for (xa = !0; ba.length > 0;) {
|
|
2692
|
+
let e = ba.shift();
|
|
2968
2693
|
if (e) try {
|
|
2969
2694
|
await e();
|
|
2970
2695
|
} catch (e) {
|
|
2971
2696
|
r.error("Error executing queue", e);
|
|
2972
2697
|
}
|
|
2973
2698
|
}
|
|
2974
|
-
|
|
2699
|
+
xa = !1;
|
|
2975
2700
|
}
|
|
2976
|
-
}, "executeQueue"),
|
|
2701
|
+
}, "executeQueue"), Ca = /* @__PURE__ */ t(async (e, n) => new Promise((i, a) => {
|
|
2977
2702
|
let o = /* @__PURE__ */ t(() => new Promise((t, o) => {
|
|
2978
2703
|
Q.parse(e, n).then((e) => {
|
|
2979
2704
|
t(e), i(e);
|
|
@@ -2981,8 +2706,8 @@ var Za = /* @__PURE__ */ t(function(e) {
|
|
|
2981
2706
|
r.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
|
|
2982
2707
|
});
|
|
2983
2708
|
}), "performCall");
|
|
2984
|
-
|
|
2985
|
-
}), "parse"),
|
|
2709
|
+
ba.push(o), Sa().catch(a);
|
|
2710
|
+
}), "parse"), wa = /* @__PURE__ */ t((e, n, i) => new Promise((a, o) => {
|
|
2986
2711
|
let s = /* @__PURE__ */ t(() => new Promise((t, s) => {
|
|
2987
2712
|
Q.render(e, n, i).then((e) => {
|
|
2988
2713
|
t(e), a(e);
|
|
@@ -2990,23 +2715,23 @@ var Za = /* @__PURE__ */ t(function(e) {
|
|
|
2990
2715
|
r.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
|
|
2991
2716
|
});
|
|
2992
2717
|
}), "performCall");
|
|
2993
|
-
|
|
2718
|
+
ba.push(s), Sa().catch(o);
|
|
2994
2719
|
}), "render"), $ = {
|
|
2995
2720
|
startOnLoad: !0,
|
|
2996
2721
|
mermaidAPI: Q,
|
|
2997
|
-
parse:
|
|
2998
|
-
render:
|
|
2999
|
-
init:
|
|
3000
|
-
run:
|
|
3001
|
-
registerExternalDiagrams:
|
|
3002
|
-
registerLayoutLoaders:
|
|
3003
|
-
initialize:
|
|
2722
|
+
parse: Ca,
|
|
2723
|
+
render: wa,
|
|
2724
|
+
init: ga,
|
|
2725
|
+
run: pa,
|
|
2726
|
+
registerExternalDiagrams: _a,
|
|
2727
|
+
registerLayoutLoaders: Se,
|
|
2728
|
+
initialize: ha,
|
|
3004
2729
|
parseError: void 0,
|
|
3005
|
-
contentLoaded:
|
|
3006
|
-
setParseErrorHandler:
|
|
3007
|
-
detectType:
|
|
3008
|
-
registerIconPacks:
|
|
3009
|
-
getRegisteredDiagramsMetadata: /* @__PURE__ */ t(() => Object.keys(
|
|
3010
|
-
},
|
|
2730
|
+
contentLoaded: va,
|
|
2731
|
+
setParseErrorHandler: ya,
|
|
2732
|
+
detectType: D,
|
|
2733
|
+
registerIconPacks: se,
|
|
2734
|
+
getRegisteredDiagramsMetadata: /* @__PURE__ */ t(() => Object.keys(T).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
2735
|
+
}, Ta = $;
|
|
3011
2736
|
//#endregion
|
|
3012
|
-
export {
|
|
2737
|
+
export { we as a, Ta as default, Ee as i, qt as n, ge as o, Xt as r, Gn as t };
|