mio-previewer 0.2.73 → 0.2.76
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/README.md +1 -0
- package/README.zh-CN.md +2 -1
- package/dist/_basePickBy-CXmXW7jd.js +166 -0
- package/dist/_basePickBy-CtuVwROD.cjs +1 -0
- package/dist/_baseUniq-CGoiOkSa.js +682 -0
- package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
- package/dist/_createAssigner-DqH64jc7.cjs +1 -0
- package/dist/_createAssigner-IEX8lwxm.js +573 -0
- package/dist/arc-C78br9Yj.cjs +1 -0
- package/dist/arc-vLgDTVZZ.js +80 -0
- package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
- package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
- package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
- package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
- package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
- package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
- package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
- package/dist/channel-BWHkpgVD.cjs +1 -0
- package/dist/channel-JT7eWw2w.js +5 -0
- package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
- package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
- package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
- package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
- package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
- package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
- package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
- package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
- package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
- package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
- package/dist/chunk-BNMv73og.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
- package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
- package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
- package/dist/chunk-Dbv0sNQl.js +20 -0
- package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
- package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
- package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
- package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
- package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
- package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
- package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
- package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
- package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
- package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
- package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
- package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
- package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
- package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
- package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
- package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
- package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
- package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
- package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
- package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
- package/dist/clone-B0KDIkSS.js +8 -0
- package/dist/clone-wvtBTB6v.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
- package/dist/custom-Bl_fVJZ0.cjs +84 -0
- package/dist/custom-D-TzPpWT.js +5281 -0
- package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
- package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
- package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
- package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
- package/dist/dagre-BfAHSwtP.js +1472 -0
- package/dist/dagre-Buvkww-e.cjs +1 -0
- package/dist/defaultLocale-B5dSAwiC.js +201 -0
- package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
- package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
- package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
- package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
- package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
- package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
- package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
- package/dist/dist-DC-lM4uX.cjs +1 -0
- package/dist/dist-zNcLEPGR.js +51 -0
- package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
- package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
- package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
- package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
- package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
- package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
- package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
- package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
- package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
- package/dist/graphlib-C3tPLMbC.js +225 -0
- package/dist/graphlib-Cdg0u3TT.cjs +1 -0
- package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
- package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
- package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
- package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Bwwdo3M6.js +15 -0
- package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
- package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
- package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
- package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
- package/dist/katex-6UpFeIdV.cjs +261 -0
- package/dist/katex-BHcJffnM.js +22112 -0
- package/dist/line-DYhVGH2B.js +34 -0
- package/dist/line-DdNAPGaw.cjs +1 -0
- package/dist/linear-n4_iirEu.js +289 -0
- package/dist/linear-rQLpRrSH.cjs +1 -0
- package/dist/loadCss-D6257oR0.js +8 -0
- package/dist/loadCss-DhrQh6-A.cjs +1 -0
- package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
- package/dist/markdown-it-D-hH4G7k.js +173 -0
- package/dist/math-G8rF7UWn.cjs +1 -0
- package/dist/math-H49DsxYR.js +10 -0
- package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
- package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
- package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
- package/dist/mio-previewer.cjs.js +11 -21
- package/dist/mio-previewer.css +2 -9
- package/dist/mio-previewer.esm.js +4939 -0
- package/dist/ordinal-C55HfHHp.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
- package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
- package/dist/path-DNvJyUE8.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
- package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
- package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
- package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.esm.js +2 -0
- package/dist/plugins/markdown-it.cjs.js +1 -3
- package/dist/plugins/markdown-it.esm.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
- package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
- package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
- package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
- package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
- package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
- package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
- package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
- package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
- package/dist/src-BMjps4Ui.cjs +1 -0
- package/dist/src-BuisGndr.js +2149 -0
- package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
- package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
- package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
- package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
- package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
- package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
- package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
- package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
- package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
- package/package.json +2 -2
- package/dist/_basePickBy-Be3yyf2d.js +0 -151
- package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
- package/dist/_baseUniq-BXkA0Pgx.js +0 -614
- package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
- package/dist/arc-B-QGG8RZ.cjs +0 -1
- package/dist/arc-djW14lrn.js +0 -83
- package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
- package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
- package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
- package/dist/assets/parser.worker-67NQKZt5.js +0 -16
- package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
- package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
- package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
- package/dist/channel-D_ITz6Jy.cjs +0 -1
- package/dist/channel-sXy9EduO.js +0 -5
- package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
- package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
- package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
- package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
- package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
- package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
- package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
- package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
- package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
- package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
- package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
- package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
- package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
- package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
- package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
- package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
- package/dist/clone-DOYxaT_d.js +0 -8
- package/dist/clone-DSlm33NG.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
- package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
- package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
- package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
- package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
- package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
- package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
- package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
- package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
- package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
- package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
- package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
- package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
- package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
- package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
- package/dist/graph-DEnt0OtZ.js +0 -247
- package/dist/graph-Dgcjs2XL.cjs +0 -1
- package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
- package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
- package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
- package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
- package/dist/katex-CmGeg_OO.js +0 -11692
- package/dist/katex-DEiiRhcn.cjs +0 -261
- package/dist/layout-BDNzBIaA.cjs +0 -1
- package/dist/layout-DTBfbHzy.js +0 -1324
- package/dist/linear-BRl2UYUr.cjs +0 -1
- package/dist/linear-CwbXkgvF.js +0 -259
- package/dist/loadCss-BbD6mdv-.cjs +0 -1
- package/dist/loadCss-DS0Fuaxe.js +0 -8
- package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
- package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
- package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
- package/dist/mio-previewer.es.js +0 -6171
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/ordinal-DfAQgscy.js +0 -61
- package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
- package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
- package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
- package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
- package/dist/plugins/custom.es.js +0 -85
- package/dist/plugins/markdown-it.es.js +0 -173
- package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
- package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
- package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
- package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
- package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
- package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
- package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
- package/dist/viewer-CZUSHxhf.js +0 -19131
- package/dist/viewer-Canph5Zx.cjs +0 -305
- package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-BuisGndr.js";
|
|
2
|
+
import { b as r, h as i } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
|
|
3
|
+
import { C as a, D as o, E as s, O as c, S as l, T as u, b as d, h as f, k as p, v as m, w as h, x as g, y as _ } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
|
|
4
|
+
import { t as v } from "./line-DYhVGH2B.js";
|
|
5
|
+
import { n as y, r as b, t as x } from "./chunk-HN2XXSSU-CJL8wAZ2.js";
|
|
6
|
+
import { t as S } from "./chunk-CVBHYZKI-CiCGetln.js";
|
|
7
|
+
import { i as C, n as w } from "./chunk-ATLVNIR6-DHlCNWnJ.js";
|
|
8
|
+
import { n as T } from "./chunk-JA3XYJ7Z-CpKHrbOX.js";
|
|
9
|
+
import { d as E, r as D } from "./chunk-JZLCHNYA-CYo7ykJf.js";
|
|
10
|
+
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.mjs
|
|
11
|
+
var ee = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
12
|
+
t.arrowTypeStart && k(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && k(e, "end", t.arrowTypeEnd, n, r, i, a);
|
|
13
|
+
}, "addEdgeMarkers"), O = {
|
|
14
|
+
arrow_cross: {
|
|
15
|
+
type: "cross",
|
|
16
|
+
fill: !1
|
|
17
|
+
},
|
|
18
|
+
arrow_point: {
|
|
19
|
+
type: "point",
|
|
20
|
+
fill: !0
|
|
21
|
+
},
|
|
22
|
+
arrow_barb: {
|
|
23
|
+
type: "barb",
|
|
24
|
+
fill: !0
|
|
25
|
+
},
|
|
26
|
+
arrow_circle: {
|
|
27
|
+
type: "circle",
|
|
28
|
+
fill: !1
|
|
29
|
+
},
|
|
30
|
+
aggregation: {
|
|
31
|
+
type: "aggregation",
|
|
32
|
+
fill: !1
|
|
33
|
+
},
|
|
34
|
+
extension: {
|
|
35
|
+
type: "extension",
|
|
36
|
+
fill: !1
|
|
37
|
+
},
|
|
38
|
+
composition: {
|
|
39
|
+
type: "composition",
|
|
40
|
+
fill: !0
|
|
41
|
+
},
|
|
42
|
+
dependency: {
|
|
43
|
+
type: "dependency",
|
|
44
|
+
fill: !0
|
|
45
|
+
},
|
|
46
|
+
lollipop: {
|
|
47
|
+
type: "lollipop",
|
|
48
|
+
fill: !1
|
|
49
|
+
},
|
|
50
|
+
only_one: {
|
|
51
|
+
type: "onlyOne",
|
|
52
|
+
fill: !1
|
|
53
|
+
},
|
|
54
|
+
zero_or_one: {
|
|
55
|
+
type: "zeroOrOne",
|
|
56
|
+
fill: !1
|
|
57
|
+
},
|
|
58
|
+
one_or_more: {
|
|
59
|
+
type: "oneOrMore",
|
|
60
|
+
fill: !1
|
|
61
|
+
},
|
|
62
|
+
zero_or_more: {
|
|
63
|
+
type: "zeroOrMore",
|
|
64
|
+
fill: !1
|
|
65
|
+
},
|
|
66
|
+
requirement_arrow: {
|
|
67
|
+
type: "requirement_arrow",
|
|
68
|
+
fill: !1
|
|
69
|
+
},
|
|
70
|
+
requirement_contains: {
|
|
71
|
+
type: "requirement_contains",
|
|
72
|
+
fill: !1
|
|
73
|
+
}
|
|
74
|
+
}, k = /* @__PURE__ */ t((t, n, r, i, a, o, s) => {
|
|
75
|
+
let c = O[r];
|
|
76
|
+
if (!c) {
|
|
77
|
+
e.warn(`Unknown arrow type: ${r}`);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let l = `${a}_${o}-${c.type}${n === "start" ? "Start" : "End"}`;
|
|
81
|
+
if (s && s.trim() !== "") {
|
|
82
|
+
let e = `${l}_${s.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
83
|
+
if (!document.getElementById(e)) {
|
|
84
|
+
let t = document.getElementById(l);
|
|
85
|
+
if (t) {
|
|
86
|
+
let n = t.cloneNode(!0);
|
|
87
|
+
n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
|
|
88
|
+
e.setAttribute("stroke", s), c.fill && e.setAttribute("fill", s);
|
|
89
|
+
}), t.parentNode?.appendChild(n);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
t.attr(`marker-${n}`, `url(${i}#${e})`);
|
|
93
|
+
} else t.attr(`marker-${n}`, `url(${i}#${l})`);
|
|
94
|
+
}, "addEdgeMarker"), A = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ t(() => {
|
|
95
|
+
A.clear(), j.clear();
|
|
96
|
+
}, "clear"), N = /* @__PURE__ */ t((e) => e ? e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), P = /* @__PURE__ */ t(async (t, a) => {
|
|
97
|
+
let o = i(r().flowchart.htmlLabels), { labelStyles: s } = C(a);
|
|
98
|
+
a.labelStyle = s;
|
|
99
|
+
let c = await T(t, a.label, {
|
|
100
|
+
style: a.labelStyle,
|
|
101
|
+
useHtmlLabels: o,
|
|
102
|
+
addSvgBackground: !0,
|
|
103
|
+
isNode: !1
|
|
104
|
+
});
|
|
105
|
+
e.info("abc82", a, a.labelType);
|
|
106
|
+
let l = t.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", a.id);
|
|
107
|
+
u.node().appendChild(c);
|
|
108
|
+
let d = c.getBBox();
|
|
109
|
+
if (o) {
|
|
110
|
+
let e = c.children[0], t = n(c);
|
|
111
|
+
d = e.getBoundingClientRect(), t.attr("width", d.width), t.attr("height", d.height);
|
|
112
|
+
}
|
|
113
|
+
u.attr("transform", "translate(" + -d.width / 2 + ", " + -d.height / 2 + ")"), A.set(a.id, l), a.width = d.width, a.height = d.height;
|
|
114
|
+
let f;
|
|
115
|
+
if (a.startLabelLeft) {
|
|
116
|
+
let e = await D(a.startLabelLeft, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
|
|
117
|
+
f = r.node().appendChild(e);
|
|
118
|
+
let i = e.getBBox();
|
|
119
|
+
r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), j.get(a.id) || j.set(a.id, {}), j.get(a.id).startLeft = n, F(f, a.startLabelLeft);
|
|
120
|
+
}
|
|
121
|
+
if (a.startLabelRight) {
|
|
122
|
+
let e = await D(a.startLabelRight, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
|
|
123
|
+
f = n.node().appendChild(e), r.node().appendChild(e);
|
|
124
|
+
let i = e.getBBox();
|
|
125
|
+
r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), j.get(a.id) || j.set(a.id, {}), j.get(a.id).startRight = n, F(f, a.startLabelRight);
|
|
126
|
+
}
|
|
127
|
+
if (a.endLabelLeft) {
|
|
128
|
+
let e = await D(a.endLabelLeft, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
|
|
129
|
+
f = r.node().appendChild(e);
|
|
130
|
+
let i = e.getBBox();
|
|
131
|
+
r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), n.node().appendChild(e), j.get(a.id) || j.set(a.id, {}), j.get(a.id).endLeft = n, F(f, a.endLabelLeft);
|
|
132
|
+
}
|
|
133
|
+
if (a.endLabelRight) {
|
|
134
|
+
let e = await D(a.endLabelRight, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
|
|
135
|
+
f = r.node().appendChild(e);
|
|
136
|
+
let i = e.getBBox();
|
|
137
|
+
r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), n.node().appendChild(e), j.get(a.id) || j.set(a.id, {}), j.get(a.id).endRight = n, F(f, a.endLabelRight);
|
|
138
|
+
}
|
|
139
|
+
return c;
|
|
140
|
+
}, "insertEdgeLabel");
|
|
141
|
+
function F(e, t) {
|
|
142
|
+
r().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
143
|
+
}
|
|
144
|
+
t(F, "setTerminalWidth");
|
|
145
|
+
var I = /* @__PURE__ */ t((t, n) => {
|
|
146
|
+
e.debug("Moving label abc88 ", t.id, t.label, A.get(t.id), n);
|
|
147
|
+
let i = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: a } = S(r());
|
|
148
|
+
if (t.label) {
|
|
149
|
+
let r = A.get(t.id), o = t.x, s = t.y;
|
|
150
|
+
if (i) {
|
|
151
|
+
let r = f.calcLabelPosition(i);
|
|
152
|
+
e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", r.x, ",", r.y, ") abc88"), n.updatedPath && (o = r.x, s = r.y);
|
|
153
|
+
}
|
|
154
|
+
r.attr("transform", `translate(${o}, ${s + a / 2})`);
|
|
155
|
+
}
|
|
156
|
+
if (t.startLabelLeft) {
|
|
157
|
+
let e = j.get(t.id).startLeft, n = t.x, r = t.y;
|
|
158
|
+
if (i) {
|
|
159
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", i);
|
|
160
|
+
n = e.x, r = e.y;
|
|
161
|
+
}
|
|
162
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
163
|
+
}
|
|
164
|
+
if (t.startLabelRight) {
|
|
165
|
+
let e = j.get(t.id).startRight, n = t.x, r = t.y;
|
|
166
|
+
if (i) {
|
|
167
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", i);
|
|
168
|
+
n = e.x, r = e.y;
|
|
169
|
+
}
|
|
170
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
171
|
+
}
|
|
172
|
+
if (t.endLabelLeft) {
|
|
173
|
+
let e = j.get(t.id).endLeft, n = t.x, r = t.y;
|
|
174
|
+
if (i) {
|
|
175
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", i);
|
|
176
|
+
n = e.x, r = e.y;
|
|
177
|
+
}
|
|
178
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
179
|
+
}
|
|
180
|
+
if (t.endLabelRight) {
|
|
181
|
+
let e = j.get(t.id).endRight, n = t.x, r = t.y;
|
|
182
|
+
if (i) {
|
|
183
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", i);
|
|
184
|
+
n = e.x, r = e.y;
|
|
185
|
+
}
|
|
186
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
187
|
+
}
|
|
188
|
+
}, "positionEdgeLabel"), L = /* @__PURE__ */ t((e, t) => {
|
|
189
|
+
let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
|
|
190
|
+
return i >= o || a >= s;
|
|
191
|
+
}, "outsideNode"), R = /* @__PURE__ */ t((t, n, r) => {
|
|
192
|
+
e.debug(`intersection calc abc89:
|
|
193
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
194
|
+
insidePoint : ${JSON.stringify(r)}
|
|
195
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
|
|
196
|
+
let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
|
|
197
|
+
if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
|
|
198
|
+
let t = r.y < n.y ? n.y - l - a : a - l - n.y;
|
|
199
|
+
c = d * t / u;
|
|
200
|
+
let i = {
|
|
201
|
+
x: r.x < n.x ? r.x + c : r.x - d + c,
|
|
202
|
+
y: r.y < n.y ? r.y + u - t : r.y - u + t
|
|
203
|
+
};
|
|
204
|
+
return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
|
|
205
|
+
} else {
|
|
206
|
+
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
207
|
+
let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
|
|
208
|
+
return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
|
|
209
|
+
_x: a,
|
|
210
|
+
_y: o
|
|
211
|
+
}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
|
|
212
|
+
x: a,
|
|
213
|
+
y: o
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}, "intersection"), z = /* @__PURE__ */ t((t, n) => {
|
|
217
|
+
e.warn("abc88 cutPathAtIntersect", t, n);
|
|
218
|
+
let r = [], i = t[0], a = !1;
|
|
219
|
+
return t.forEach((t) => {
|
|
220
|
+
if (e.info("abc88 checking point", t, n), !L(n, t) && !a) {
|
|
221
|
+
let o = R(n, i, t);
|
|
222
|
+
e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
|
|
223
|
+
let s = !1;
|
|
224
|
+
r.forEach((e) => {
|
|
225
|
+
s ||= e.x === o.x && e.y === o.y;
|
|
226
|
+
}), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
|
|
227
|
+
} else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
|
|
228
|
+
}), e.debug("returning points", r), r;
|
|
229
|
+
}, "cutPathAtIntersect");
|
|
230
|
+
function B(e) {
|
|
231
|
+
let t = [], n = [];
|
|
232
|
+
for (let r = 1; r < e.length - 1; r++) {
|
|
233
|
+
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
234
|
+
(i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
cornerPoints: t,
|
|
238
|
+
cornerPointPositions: n
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
t(B, "extractCornerPoints");
|
|
242
|
+
var V = /* @__PURE__ */ t(function(e, t, n) {
|
|
243
|
+
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
244
|
+
return {
|
|
245
|
+
x: t.x - a * r,
|
|
246
|
+
y: t.y - a * i
|
|
247
|
+
};
|
|
248
|
+
}, "findAdjacentPoint"), H = /* @__PURE__ */ t(function(t) {
|
|
249
|
+
let { cornerPointPositions: n } = B(t), r = [];
|
|
250
|
+
for (let i = 0; i < t.length; i++) if (n.includes(i)) {
|
|
251
|
+
let n = t[i - 1], a = t[i + 1], o = t[i], s = V(n, o, 5), c = V(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
252
|
+
r.push(s);
|
|
253
|
+
let d = Math.sqrt(2) * 2, f = {
|
|
254
|
+
x: o.x,
|
|
255
|
+
y: o.y
|
|
256
|
+
};
|
|
257
|
+
Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (e.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
|
|
258
|
+
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
259
|
+
y: u < 0 ? s.y - d : s.y + d
|
|
260
|
+
} : {
|
|
261
|
+
x: l < 0 ? s.x - d : s.x + d,
|
|
262
|
+
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
263
|
+
}) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
264
|
+
} else r.push(t[i]);
|
|
265
|
+
return r;
|
|
266
|
+
}, "fixCorners"), U = /* @__PURE__ */ t((e, t, n) => {
|
|
267
|
+
let r = e - t - n, i = Math.floor(r / 4);
|
|
268
|
+
return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
|
|
269
|
+
}, "generateDashArray"), W = /* @__PURE__ */ t(function(t, i, y, S, C, T, D, O = !1) {
|
|
270
|
+
let { handDrawnSeed: k } = r(), A = i.points, j = !1, M = C;
|
|
271
|
+
var N = T;
|
|
272
|
+
let P = [];
|
|
273
|
+
for (let e in i.cssCompiledStyles) w(e) || P.push(i.cssCompiledStyles[e]);
|
|
274
|
+
e.debug("UIO intersect check", i.points, N.x, M.x), N.intersect && M.intersect && !O && (A = A.slice(1, i.points.length - 1), A.unshift(M.intersect(A[0])), e.debug("Last point UIO", i.start, "-->", i.end, A[A.length - 1], N, N.intersect(A[A.length - 1])), A.push(N.intersect(A[A.length - 1])));
|
|
275
|
+
let F = btoa(JSON.stringify(A));
|
|
276
|
+
i.toCluster && (e.info("to cluster abc88", y.get(i.toCluster)), A = z(i.points, y.get(i.toCluster).node), j = !0), i.fromCluster && (e.debug("from cluster abc88", y.get(i.fromCluster), JSON.stringify(A, null, 2)), A = z(A.reverse(), y.get(i.fromCluster).node).reverse(), j = !0);
|
|
277
|
+
let I = A.filter((e) => !Number.isNaN(e.y));
|
|
278
|
+
I = H(I);
|
|
279
|
+
let L = s;
|
|
280
|
+
switch (L = p, i.curve) {
|
|
281
|
+
case "linear":
|
|
282
|
+
L = p;
|
|
283
|
+
break;
|
|
284
|
+
case "basis":
|
|
285
|
+
L = s;
|
|
286
|
+
break;
|
|
287
|
+
case "cardinal":
|
|
288
|
+
L = u;
|
|
289
|
+
break;
|
|
290
|
+
case "bumpX":
|
|
291
|
+
L = o;
|
|
292
|
+
break;
|
|
293
|
+
case "bumpY":
|
|
294
|
+
L = c;
|
|
295
|
+
break;
|
|
296
|
+
case "catmullRom":
|
|
297
|
+
L = h;
|
|
298
|
+
break;
|
|
299
|
+
case "monotoneX":
|
|
300
|
+
L = l;
|
|
301
|
+
break;
|
|
302
|
+
case "monotoneY":
|
|
303
|
+
L = a;
|
|
304
|
+
break;
|
|
305
|
+
case "natural":
|
|
306
|
+
L = g;
|
|
307
|
+
break;
|
|
308
|
+
case "step":
|
|
309
|
+
L = d;
|
|
310
|
+
break;
|
|
311
|
+
case "stepAfter":
|
|
312
|
+
L = m;
|
|
313
|
+
break;
|
|
314
|
+
case "stepBefore":
|
|
315
|
+
L = _;
|
|
316
|
+
break;
|
|
317
|
+
default: L = s;
|
|
318
|
+
}
|
|
319
|
+
let { x: R, y: B } = x(i), V = v().x(R).y(B).curve(L), W;
|
|
320
|
+
switch (i.thickness) {
|
|
321
|
+
case "normal":
|
|
322
|
+
W = "edge-thickness-normal";
|
|
323
|
+
break;
|
|
324
|
+
case "thick":
|
|
325
|
+
W = "edge-thickness-thick";
|
|
326
|
+
break;
|
|
327
|
+
case "invisible":
|
|
328
|
+
W = "edge-thickness-invisible";
|
|
329
|
+
break;
|
|
330
|
+
default: W = "edge-thickness-normal";
|
|
331
|
+
}
|
|
332
|
+
switch (i.pattern) {
|
|
333
|
+
case "solid":
|
|
334
|
+
W += " edge-pattern-solid";
|
|
335
|
+
break;
|
|
336
|
+
case "dotted":
|
|
337
|
+
W += " edge-pattern-dotted";
|
|
338
|
+
break;
|
|
339
|
+
case "dashed":
|
|
340
|
+
W += " edge-pattern-dashed";
|
|
341
|
+
break;
|
|
342
|
+
default: W += " edge-pattern-solid";
|
|
343
|
+
}
|
|
344
|
+
let K, J = i.curve === "rounded" ? G(q(I, i), 5) : V(I), Y = Array.isArray(i.style) ? i.style : [i.style], X = Y.find((e) => e?.startsWith("stroke:")), Z = !1;
|
|
345
|
+
if (i.look === "handDrawn") {
|
|
346
|
+
let e = E.svg(t);
|
|
347
|
+
Object.assign([], I);
|
|
348
|
+
let r = e.path(J, {
|
|
349
|
+
roughness: .3,
|
|
350
|
+
seed: k
|
|
351
|
+
});
|
|
352
|
+
W += " transition", K = n(r).select("path").attr("id", i.id).attr("class", " " + W + (i.classes ? " " + i.classes : "")).attr("style", Y ? Y.reduce((e, t) => e + ";" + t, "") : "");
|
|
353
|
+
let a = K.attr("d");
|
|
354
|
+
K.attr("d", a), t.node().appendChild(K.node());
|
|
355
|
+
} else {
|
|
356
|
+
let e = P.join(";"), n = Y ? Y.reduce((e, t) => e + t + ";", "") : "", r = "";
|
|
357
|
+
i.animate && (r = " edge-animation-fast"), i.animation && (r = " edge-animation-" + i.animation);
|
|
358
|
+
let a = (e ? e + ";" + n + ";" : n) + ";" + (Y ? Y.reduce((e, t) => e + ";" + t, "") : "");
|
|
359
|
+
K = t.append("path").attr("d", J).attr("id", i.id).attr("class", " " + W + (i.classes ? " " + i.classes : "") + (r ?? "")).attr("style", a), X = a.match(/stroke:([^;]+)/)?.[1], Z = i.animate === !0 || !!i.animation || e.includes("animation");
|
|
360
|
+
let o = K.node(), s = typeof o.getTotalLength == "function" ? o.getTotalLength() : 0, c = b[i.arrowTypeStart] || 0, l = b[i.arrowTypeEnd] || 0;
|
|
361
|
+
if (i.look === "neo" && !Z) {
|
|
362
|
+
let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? U(s, c, l) : `0 ${c} ${s - c - l} ${l}`}; stroke-dashoffset: 0;`;
|
|
363
|
+
K.attr("style", e + K.attr("style"));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
K.attr("data-edge", !0), K.attr("data-et", "edge"), K.attr("data-id", i.id), K.attr("data-points", F), i.showPoints && I.forEach((e) => {
|
|
367
|
+
t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
|
|
368
|
+
});
|
|
369
|
+
let Q = "";
|
|
370
|
+
(r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", i.arrowTypeStart), e.info("arrowTypeEnd", i.arrowTypeEnd), ee(K, i, Q, D, S, X);
|
|
371
|
+
let te = Math.floor(A.length / 2), ne = A[te];
|
|
372
|
+
f.isLabelCoordinateInPath(ne, K.attr("d")) || (j = !0);
|
|
373
|
+
let $ = {};
|
|
374
|
+
return j && ($.updatedPath = A), $.originalPath = i.points, $;
|
|
375
|
+
}, "insertEdge");
|
|
376
|
+
function G(e, t) {
|
|
377
|
+
if (e.length < 2) return "";
|
|
378
|
+
let n = "", r = e.length, i = 1e-5;
|
|
379
|
+
for (let a = 0; a < r; a++) {
|
|
380
|
+
let o = e[a], s = e[a - 1], c = e[a + 1];
|
|
381
|
+
if (a === 0) n += `M${o.x},${o.y}`;
|
|
382
|
+
else if (a === r - 1) n += `L${o.x},${o.y}`;
|
|
383
|
+
else {
|
|
384
|
+
let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
|
|
385
|
+
if (u < i || d < i) {
|
|
386
|
+
n += `L${o.x},${o.y}`;
|
|
387
|
+
continue;
|
|
388
|
+
}
|
|
389
|
+
let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
|
|
390
|
+
if (_ < i || Math.abs(Math.PI - _) < i) {
|
|
391
|
+
n += `L${o.x},${o.y}`;
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
|
|
395
|
+
n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return n;
|
|
399
|
+
}
|
|
400
|
+
t(G, "generateRoundedPath");
|
|
401
|
+
function K(e, t) {
|
|
402
|
+
if (!e || !t) return {
|
|
403
|
+
angle: 0,
|
|
404
|
+
deltaX: 0,
|
|
405
|
+
deltaY: 0
|
|
406
|
+
};
|
|
407
|
+
let n = t.x - e.x, r = t.y - e.y;
|
|
408
|
+
return {
|
|
409
|
+
angle: Math.atan2(r, n),
|
|
410
|
+
deltaX: n,
|
|
411
|
+
deltaY: r
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
t(K, "calculateDeltaAndAngle");
|
|
415
|
+
function q(e, t) {
|
|
416
|
+
let n = e.map((e) => ({ ...e }));
|
|
417
|
+
if (e.length >= 2 && y[t.arrowTypeStart]) {
|
|
418
|
+
let r = y[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = K(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
419
|
+
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
420
|
+
}
|
|
421
|
+
let r = e.length;
|
|
422
|
+
if (r >= 2 && y[t.arrowTypeEnd]) {
|
|
423
|
+
let i = y[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = K(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
424
|
+
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
425
|
+
}
|
|
426
|
+
return n;
|
|
427
|
+
}
|
|
428
|
+
t(q, "applyMarkerOffsetsToPoints");
|
|
429
|
+
var J = /* @__PURE__ */ t((e, t, n, r) => {
|
|
430
|
+
t.forEach((t) => {
|
|
431
|
+
Y[t](e, n, r);
|
|
432
|
+
});
|
|
433
|
+
}, "insertMarkers"), Y = {
|
|
434
|
+
extension: /* @__PURE__ */ t((t, n, r) => {
|
|
435
|
+
e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
436
|
+
}, "extension"),
|
|
437
|
+
composition: /* @__PURE__ */ t((e, t, n) => {
|
|
438
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
439
|
+
}, "composition"),
|
|
440
|
+
aggregation: /* @__PURE__ */ t((e, t, n) => {
|
|
441
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
442
|
+
}, "aggregation"),
|
|
443
|
+
dependency: /* @__PURE__ */ t((e, t, n) => {
|
|
444
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
445
|
+
}, "dependency"),
|
|
446
|
+
lollipop: /* @__PURE__ */ t((e, t, n) => {
|
|
447
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
448
|
+
}, "lollipop"),
|
|
449
|
+
point: /* @__PURE__ */ t((e, t, n) => {
|
|
450
|
+
e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
451
|
+
}, "point"),
|
|
452
|
+
circle: /* @__PURE__ */ t((e, t, n) => {
|
|
453
|
+
e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
454
|
+
}, "circle"),
|
|
455
|
+
cross: /* @__PURE__ */ t((e, t, n) => {
|
|
456
|
+
e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
457
|
+
}, "cross"),
|
|
458
|
+
barb: /* @__PURE__ */ t((e, t, n) => {
|
|
459
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
460
|
+
}, "barb"),
|
|
461
|
+
only_one: /* @__PURE__ */ t((e, t, n) => {
|
|
462
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
463
|
+
}, "only_one"),
|
|
464
|
+
zero_or_one: /* @__PURE__ */ t((e, t, n) => {
|
|
465
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
466
|
+
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
467
|
+
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
468
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
469
|
+
}, "zero_or_one"),
|
|
470
|
+
one_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
471
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
|
|
472
|
+
}, "one_or_more"),
|
|
473
|
+
zero_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
474
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
475
|
+
r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
|
|
476
|
+
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
477
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
478
|
+
}, "zero_or_more"),
|
|
479
|
+
requirement_arrow: /* @__PURE__ */ t((e, t, n) => {
|
|
480
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
|
|
481
|
+
}, "requirement_arrow"),
|
|
482
|
+
requirement_contains: /* @__PURE__ */ t((e, t, n) => {
|
|
483
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
484
|
+
r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
485
|
+
}, "requirement_contains")
|
|
486
|
+
}, X = J;
|
|
487
|
+
//#endregion
|
|
488
|
+
export { I as a, X as i, W as n, P as r, M as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./src-BMjps4Ui.cjs");var t=class{constructor(e){this.init=e,this.records=this.init()}static{e.h(this,`ImperativeState`)}reset(){this.records=this.init()}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h as e } from "./src-BuisGndr.js";
|
|
2
|
+
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
|
|
3
|
+
var t = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this.init = e, this.records = this.init();
|
|
6
|
+
}
|
|
7
|
+
static {
|
|
8
|
+
e(this, "ImperativeState");
|
|
9
|
+
}
|
|
10
|
+
reset() {
|
|
11
|
+
this.records = this.init();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./src-BMjps4Ui.cjs"),t=require("./chunk-ABZYJK2D-CbIYYZa_.cjs");require("./math-G8rF7UWn.cjs");const n=require("./dist-DC-lM4uX.cjs"),r=require("./_createAssigner-DqH64jc7.cjs");function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function a(e){return new i(e)}var o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function s(e){return new o(e,!0)}function c(e){return new o(e,!1)}function l(){}function u(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f(e){return new d(e)}function p(e){this._context=e}p.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){return new p(e)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new h(e)}function g(e,t){this._basis=new d(e),this._beta=t}g.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var te=(function e(t){function n(e){return t===1?new d(e):new g(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function _(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var y=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t){this._context=e,this._k=(1-t)/6}b.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ne=(function e(t){function n(e){return new b(e,t)}return n.tension=function(t){return e(+t)},n})(0);function x(e,t){this._context=e,this._k=(1-t)/6}x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var re=(function e(t){function n(e){return new x(e,t)}return n.tension=function(t){return e(+t)},n})(0);function S(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function C(e,t){this._context=e,this._alpha=t}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:S(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ie=(function e(t){function n(e){return t?new C(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ae(e,t){this._context=e,this._alpha=t}ae.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:S(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return t?new ae(e,t):new b(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function w(e,t){this._context=e,this._alpha=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var se=(function e(t){function n(e){return t?new w(e,t):new x(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function T(e){this._context=e}T.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ce(e){return new T(e)}function E(e){return e<0?-1:1}function le(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(E(a)+E(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ue(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function D(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function O(e){this._context=e}O.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:D(this,this._t0,ue(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,D(this,ue(this,n=le(this,e,t)),n);break;default:D(this,this._t0,n=le(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function de(e){this._context=new fe(e)}(de.prototype=Object.create(O.prototype)).point=function(e,t){O.prototype.point.call(this,t,e)};function fe(e){this._context=e}fe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function pe(e){return new O(e)}function me(e){return new de(e)}function k(e){this._context=e}k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=A(e),i=A(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function A(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function j(e){return new k(e)}function M(e,t){this._context=e,this._t=t}M.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function N(e){return new M(e,.5)}function P(e){return new M(e,0)}function F(e){return new M(e,1)}var he=n.t();function I(e,t,n){(n!==void 0&&!r.R(e[t],n)||n===void 0&&!(t in e))&&r.N(e,t,n)}var ge=`[object Object]`,_e=Function.prototype,ve=Object.prototype,L=_e.toString,ye=ve.hasOwnProperty,be=L.call(Object);function xe(e){if(!r.S(e)||r.U(e)!=ge)return!1;var t=r.T(e);if(t===null)return!0;var n=ye.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&L.call(n)==be}function R(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Se(e){return r.d(e,r.c(e))}function Ce(e,t,n,i,a,o,s){var c=R(e,n),l=R(t,n),u=s.get(l);if(u){I(e,n,u);return}var d=o?o(c,l,n+``,e,t,s):void 0,f=d===void 0;if(f){var p=r.b(l),m=!p&&r.g(l),h=!p&&!m&&r.p(l);d=l,p||m||h?r.b(c)?d=c:r._(c)?d=r.D(c):m?(f=!1,d=r.j(l,!0)):h?(f=!1,d=r.O(l,!0)):d=[]:xe(l)||r.x(l)?(d=c,r.x(c)?d=Se(c):(!r.H(c)||r.V(c))&&(d=r.C(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),I(e,n,d)}function z(e,t,n,i,a){e!==t&&r.M(t,function(o,s){if(a||=new r.P,r.H(o))Ce(e,t,s,n,z,i,a);else{var c=i?i(R(e,s),o,s+``,e,t,a):void 0;c===void 0&&(c=o),I(e,s,c)}},r.c)}var B=r.t(function(e,t,n){z(e,t,n)}),we={curveBasis:f,curveBasisClosed:m,curveBasisOpen:ee,curveBumpX:s,curveBumpY:c,curveBundle:te,curveCardinalClosed:ne,curveCardinalOpen:re,curveCardinal:y,curveCatmullRomClosed:oe,curveCatmullRomOpen:se,curveCatmullRom:ie,curveLinear:a,curveLinearClosed:ce,curveMonotoneX:pe,curveMonotoneY:me,curveNatural:j,curveStep:N,curveStepAfter:F,curveStepBefore:P},Te=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ee=e.h(function(e,n){let r=V(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let e=r.map(e=>e.args);t.F(e),i=t.r(i,[...e])}else i=r.args;if(!i)return;let a=t.f(e,n),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),V=e.h(function(n,r=null){try{let i=RegExp(`[%]{2}(?![{]${Te.source})(?=[}][%]{2}).*
|
|
2
|
+
`,`ig`);n=n.trim().replace(i,``).replace(/'/gm,`"`),e.g.debug(`Detecting diagram directive${r===null?``:` type:`+r} based on the text:${n}`);let a,o=[];for(;(a=t.m.exec(n))!==null;)if(a.index===t.m.lastIndex&&t.m.lastIndex++,a&&!r||r&&a[1]?.match(r)||r&&a[2]?.match(r)){let e=a[1]?a[1]:a[2],t=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:e,args:t})}return o.length===0?{type:n,args:null}:o.length===1?o[0]:o}catch(t){return e.g.error(`ERROR: ${t.message} - Unable to parse directive type: '${r}' based on the text: '${n}'`),{type:void 0,args:null}}},`detectDirective`),De=e.h(function(e){return e.replace(t.m,``)},`removeDirectives`),Oe=e.h(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function H(e,t){return e?we[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}e.h(H,`interpolateToCurve`);function U(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,he.sanitizeUrl)(n)}e.h(U,`formatUrl`);var ke=e.h((t,...n)=>{let r=t.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){e.g.error(`Function name: ${t} not found in window`);return}o[a](...n)},`runFunc`);function W(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e.h(W,`distance`);function Ae(e){let t,n=0;return e.forEach(e=>{n+=W(e,t),t=e}),K(e,n/2)}e.h(Ae,`traverseEdge`);function G(e){return e.length===1?e[0]:Ae(e)}e.h(G,`calcLabelPosition`);var je=e.h((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),K=e.h((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:je((1-i)*n.x+i*t.x,5),y:je((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),Me=e.h((t,n,r)=>{e.g.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=K(n,25),a=t?10:5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(n[0].x+i.x)/2,s.y=-Math.cos(o)*a+(n[0].y+i.y)/2,s},`calcCardinalityPosition`);function Ne(t,n,r){let i=structuredClone(r);e.g.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=K(i,25+t),o=10+t*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return n===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):n===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):n===`end_left`?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}e.h(Ne,`calcTerminalLabelPosition`);function q(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}e.h(q,`getStylesFromArray`);var Pe=0,Fe=e.h(()=>(Pe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+Pe),`generateId`);function Ie(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}e.h(Ie,`makeRandomHex`);var Le=e.h(e=>Ie(e.length),`random`),Re=e.h(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),ze=e.h(function(e,n){let r=n.text.replace(t.s.lineBreakRegex,` `),[,i]=Q(n.fontSize),a=e.append(`text`);a.attr(`x`,n.x),a.attr(`y`,n.y),a.style(`text-anchor`,n.anchor),a.style(`font-family`,n.fontFamily),a.style(`font-size`,i),a.style(`font-weight`,n.fontWeight),a.attr(`fill`,n.fill),n.class!==void 0&&a.attr(`class`,n.class);let o=a.append(`tspan`);return o.attr(`x`,n.x+n.textMargin*2),o.attr(`fill`,n.fill),o.text(r),a},`drawSimpleText`),Be=r.F((e,n,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},r),t.s.lineBreakRegex.test(e)))return e;let i=e.split(` `).filter(Boolean),a=[],o=``;return i.forEach((e,t)=>{let s=Y(`${e} `,r),c=Y(o,r);if(s>n){let{hyphenatedStrings:t,remainingWord:i}=Ve(e,n,`-`,r);a.push(o,...t),o=i}else c+s>=n?(a.push(o),o=e):o=[o,e].filter(Boolean).join(` `);t+1===i.length&&a.push(o)}),a.filter(e=>e!==``).join(r.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Ve=r.F((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}e.h(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}e.h(Y,`calculateTextWidth`);var X=r.F((n,r)=>{let{fontSize:i=12,fontFamily:a=`Arial`,fontWeight:o=400}=r;if(!n)return{width:0,height:0};let[,s]=Q(i),c=[`sans-serif`,a],l=n.split(t.s.lineBreakRegex),u=[],d=e.p(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of c){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=Re();i.text=r||``;let a=ze(f,i).style(`font-size`,s).style(`font-weight`,o).style(`font-family`,e),c=(a._groups||a)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),He=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{e.h(this,`InitIDGenerator`)}},Z,Ue=e.h(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function We(e){return`str`in e}e.h(We,`isDetailedError`);var Ge=e.h((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=e.h(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,t){return B({},e,t)}e.h($,`cleanAndMerge`);var Ke={assignWithDepth:t.r,wrapLabel:Be,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:Ee,detectDirective:V,isSubstringInArray:Oe,interpolateToCurve:H,calcLabelPosition:G,calcCardinalityPosition:Me,calcTerminalLabelPosition:Ne,formatUrl:U,getStylesFromArray:q,generateId:Fe,random:Le,runFunc:ke,entityDecode:Ue,insertTitle:Ge,isLabelCoordinateInPath:Ze,parseFontSize:Q,InitIDGenerator:He},qe=e.h(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Je=e.h(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),Ye=e.h((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function Xe(e){return e??null}e.h(Xe,`handleUndefinedAttr`);function Ze(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}e.h(Ze,`isLabelCoordinateInPath`),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return P}});
|