mio-previewer 0.2.74 → 0.2.77
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/_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.es.js +4915 -6147
- 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.es.js +2 -85
- package/dist/plugins/markdown-it.cjs.js +1 -3
- package/dist/plugins/markdown-it.es.js +2 -173
- 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/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/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,65 @@
|
|
|
1
|
+
import { t as e } from "./init-Bwwdo3M6.js";
|
|
2
|
+
//#region node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js
|
|
3
|
+
var t = class extends Map {
|
|
4
|
+
constructor(e, t = a) {
|
|
5
|
+
if (super(), Object.defineProperties(this, {
|
|
6
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
7
|
+
_key: { value: t }
|
|
8
|
+
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
return super.get(n(this, e));
|
|
12
|
+
}
|
|
13
|
+
has(e) {
|
|
14
|
+
return super.has(n(this, e));
|
|
15
|
+
}
|
|
16
|
+
set(e, t) {
|
|
17
|
+
return super.set(r(this, e), t);
|
|
18
|
+
}
|
|
19
|
+
delete(e) {
|
|
20
|
+
return super.delete(i(this, e));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function n({ _intern: e, _key: t }, n) {
|
|
24
|
+
let r = t(n);
|
|
25
|
+
return e.has(r) ? e.get(r) : n;
|
|
26
|
+
}
|
|
27
|
+
function r({ _intern: e, _key: t }, n) {
|
|
28
|
+
let r = t(n);
|
|
29
|
+
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
30
|
+
}
|
|
31
|
+
function i({ _intern: e, _key: t }, n) {
|
|
32
|
+
let r = t(n);
|
|
33
|
+
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
34
|
+
}
|
|
35
|
+
function a(e) {
|
|
36
|
+
return typeof e == "object" && e ? e.valueOf() : e;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js
|
|
40
|
+
var o = Symbol("implicit");
|
|
41
|
+
function s() {
|
|
42
|
+
var n = new t(), r = [], i = [], a = o;
|
|
43
|
+
function c(e) {
|
|
44
|
+
let t = n.get(e);
|
|
45
|
+
if (t === void 0) {
|
|
46
|
+
if (a !== o) return a;
|
|
47
|
+
n.set(e, t = r.push(e) - 1);
|
|
48
|
+
}
|
|
49
|
+
return i[t % i.length];
|
|
50
|
+
}
|
|
51
|
+
return c.domain = function(e) {
|
|
52
|
+
if (!arguments.length) return r.slice();
|
|
53
|
+
r = [], n = new t();
|
|
54
|
+
for (let t of e) n.has(t) || n.set(t, r.push(t) - 1);
|
|
55
|
+
return c;
|
|
56
|
+
}, c.range = function(e) {
|
|
57
|
+
return arguments.length ? (i = Array.from(e), c) : i.slice();
|
|
58
|
+
}, c.unknown = function(e) {
|
|
59
|
+
return arguments.length ? (a = e, c) : a;
|
|
60
|
+
}, c.copy = function() {
|
|
61
|
+
return s(r, i).unknown(a);
|
|
62
|
+
}, e.apply(c, arguments), c;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { s as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./init-07zIhv_j.cjs");var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.t.apply(c,arguments),c}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./mermaid-parser.core-C9EbhVVg.cjs");exports.createPacketServices=e.l;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
|
|
2
|
+
var e = Math.PI, t = 2 * e, n = 1e-6, r = t - n;
|
|
3
|
+
function i(e) {
|
|
4
|
+
this._ += e[0];
|
|
5
|
+
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
6
|
+
}
|
|
7
|
+
function a(e) {
|
|
8
|
+
let t = Math.floor(e);
|
|
9
|
+
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
|
|
10
|
+
if (t > 15) return i;
|
|
11
|
+
let n = 10 ** t;
|
|
12
|
+
return function(e) {
|
|
13
|
+
this._ += e[0];
|
|
14
|
+
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var o = class {
|
|
18
|
+
constructor(e) {
|
|
19
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? i : a(e);
|
|
20
|
+
}
|
|
21
|
+
moveTo(e, t) {
|
|
22
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
|
|
23
|
+
}
|
|
24
|
+
closePath() {
|
|
25
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
26
|
+
}
|
|
27
|
+
lineTo(e, t) {
|
|
28
|
+
this._append`L${this._x1 = +e},${this._y1 = +t}`;
|
|
29
|
+
}
|
|
30
|
+
quadraticCurveTo(e, t, n, r) {
|
|
31
|
+
this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
|
|
32
|
+
}
|
|
33
|
+
bezierCurveTo(e, t, n, r, i, a) {
|
|
34
|
+
this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
|
|
35
|
+
}
|
|
36
|
+
arcTo(t, r, i, a, o) {
|
|
37
|
+
if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
|
|
38
|
+
let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
|
|
39
|
+
if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
|
|
40
|
+
else if (p > n) if (!(Math.abs(f * l - u * d) > n) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
|
|
41
|
+
else {
|
|
42
|
+
let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((e - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
|
|
43
|
+
Math.abs(x - 1) > n && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
arc(i, a, o, s, c, l) {
|
|
47
|
+
if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
|
|
48
|
+
let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
|
|
49
|
+
this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > n || Math.abs(this._y1 - p) > n) && this._append`L${f},${p}`, o && (h < 0 && (h = h % t + t), h > r ? this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}` : h > n && this._append`A${o},${o},0,${+(h >= e)},${m},${this._x1 = i + o * Math.cos(c)},${this._y1 = a + o * Math.sin(c)}`);
|
|
50
|
+
}
|
|
51
|
+
rect(e, t, n, r) {
|
|
52
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this._;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function s() {
|
|
59
|
+
return new o();
|
|
60
|
+
}
|
|
61
|
+
s.prototype = o.prototype;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
|
|
64
|
+
function c(e) {
|
|
65
|
+
return function() {
|
|
66
|
+
return e;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
|
|
71
|
+
function l(e) {
|
|
72
|
+
let t = 3;
|
|
73
|
+
return e.digits = function(n) {
|
|
74
|
+
if (!arguments.length) return t;
|
|
75
|
+
if (n == null) t = null;
|
|
76
|
+
else {
|
|
77
|
+
let e = Math.floor(n);
|
|
78
|
+
if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
79
|
+
t = e;
|
|
80
|
+
}
|
|
81
|
+
return e;
|
|
82
|
+
}, () => new o(t);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { c as n, l as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n)if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function s(){return new o}s.prototype=o.prototype;function c(e){return function(){return e}}function l(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./mermaid-parser.core-C9EbhVVg.cjs");exports.createPieServices=e.s;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { f as e } from "./custom-D-TzPpWT.js";
|
|
2
|
+
import { g as t, h as n } from "./src-BuisGndr.js";
|
|
3
|
+
import { B as r, C as i, U as a, _ as o, a as s, b as c, c as l, d as u, v as d, z as f } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
|
|
4
|
+
import { t as p } from "./ordinal-C55HfHHp.js";
|
|
5
|
+
import { n as m } from "./path-DNvJyUE8.js";
|
|
6
|
+
import { p as h } from "./math-H49DsxYR.js";
|
|
7
|
+
import { t as g } from "./arc-vLgDTVZZ.js";
|
|
8
|
+
import { t as _ } from "./array-CApNbSU9.js";
|
|
9
|
+
import { f as v, r as y } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
|
|
10
|
+
import { t as b } from "./mermaid-parser.core-B84fnaGG.js";
|
|
11
|
+
import { t as x } from "./chunk-4BX2VUAB-BZTgbbzC.js";
|
|
12
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.js
|
|
13
|
+
function S(e, t) {
|
|
14
|
+
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.js
|
|
18
|
+
function C(e) {
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.js
|
|
23
|
+
function w() {
|
|
24
|
+
var e = C, t = S, n = null, r = m(0), i = m(h), a = m(0);
|
|
25
|
+
function o(o) {
|
|
26
|
+
var s, c = (o = _(o)).length, l, u, d = 0, f = Array(c), p = Array(c), m = +r.apply(this, arguments), g = Math.min(h, Math.max(-h, i.apply(this, arguments) - m)), v, y = Math.min(Math.abs(g) / c, a.apply(this, arguments)), b = y * (g < 0 ? -1 : 1), x;
|
|
27
|
+
for (s = 0; s < c; ++s) (x = p[f[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
|
|
28
|
+
for (t == null ? n != null && f.sort(function(e, t) {
|
|
29
|
+
return n(o[e], o[t]);
|
|
30
|
+
}) : f.sort(function(e, n) {
|
|
31
|
+
return t(p[e], p[n]);
|
|
32
|
+
}), s = 0, u = d ? (g - c * b) / d : 0; s < c; ++s, m = v) l = f[s], x = p[l], v = m + (x > 0 ? x * u : 0) + b, p[l] = {
|
|
33
|
+
data: o[l],
|
|
34
|
+
index: s,
|
|
35
|
+
value: x,
|
|
36
|
+
startAngle: m,
|
|
37
|
+
endAngle: v,
|
|
38
|
+
padAngle: y
|
|
39
|
+
};
|
|
40
|
+
return p;
|
|
41
|
+
}
|
|
42
|
+
return o.value = function(t) {
|
|
43
|
+
return arguments.length ? (e = typeof t == "function" ? t : m(+t), o) : e;
|
|
44
|
+
}, o.sortValues = function(e) {
|
|
45
|
+
return arguments.length ? (t = e, n = null, o) : t;
|
|
46
|
+
}, o.sort = function(e) {
|
|
47
|
+
return arguments.length ? (n = e, t = null, o) : n;
|
|
48
|
+
}, o.startAngle = function(e) {
|
|
49
|
+
return arguments.length ? (r = typeof e == "function" ? e : m(+e), o) : r;
|
|
50
|
+
}, o.endAngle = function(e) {
|
|
51
|
+
return arguments.length ? (i = typeof e == "function" ? e : m(+e), o) : i;
|
|
52
|
+
}, o.padAngle = function(e) {
|
|
53
|
+
return arguments.length ? (a = typeof e == "function" ? e : m(+e), o) : a;
|
|
54
|
+
}, o;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.mjs
|
|
58
|
+
var T = u.pie, E = {
|
|
59
|
+
sections: /* @__PURE__ */ new Map(),
|
|
60
|
+
showData: !1,
|
|
61
|
+
config: T
|
|
62
|
+
}, D = E.sections, O = E.showData, k = structuredClone(T), A = {
|
|
63
|
+
getConfig: /* @__PURE__ */ n(() => structuredClone(k), "getConfig"),
|
|
64
|
+
clear: /* @__PURE__ */ n(() => {
|
|
65
|
+
D = /* @__PURE__ */ new Map(), O = E.showData, s();
|
|
66
|
+
}, "clear"),
|
|
67
|
+
setDiagramTitle: a,
|
|
68
|
+
getDiagramTitle: i,
|
|
69
|
+
setAccTitle: r,
|
|
70
|
+
getAccTitle: d,
|
|
71
|
+
setAccDescription: f,
|
|
72
|
+
getAccDescription: o,
|
|
73
|
+
addSection: /* @__PURE__ */ n(({ label: e, value: n }) => {
|
|
74
|
+
if (n < 0) throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
|
|
75
|
+
D.has(e) || (D.set(e, n), t.debug(`added new section: ${e}, with value: ${n}`));
|
|
76
|
+
}, "addSection"),
|
|
77
|
+
getSections: /* @__PURE__ */ n(() => D, "getSections"),
|
|
78
|
+
setShowData: /* @__PURE__ */ n((e) => {
|
|
79
|
+
O = e;
|
|
80
|
+
}, "setShowData"),
|
|
81
|
+
getShowData: /* @__PURE__ */ n(() => O, "getShowData")
|
|
82
|
+
}, j = /* @__PURE__ */ n((e, t) => {
|
|
83
|
+
x(e, t), t.setShowData(e.showData), e.sections.map(t.addSection);
|
|
84
|
+
}, "populateDb"), M = { parse: /* @__PURE__ */ n(async (e) => {
|
|
85
|
+
let n = await b("pie", e);
|
|
86
|
+
t.debug(n), j(n, A);
|
|
87
|
+
}, "parse") }, N = /* @__PURE__ */ n((e) => `
|
|
88
|
+
.pieCircle{
|
|
89
|
+
stroke: ${e.pieStrokeColor};
|
|
90
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
91
|
+
opacity : ${e.pieOpacity};
|
|
92
|
+
}
|
|
93
|
+
.pieOuterCircle{
|
|
94
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
95
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
96
|
+
fill: none;
|
|
97
|
+
}
|
|
98
|
+
.pieTitleText {
|
|
99
|
+
text-anchor: middle;
|
|
100
|
+
font-size: ${e.pieTitleTextSize};
|
|
101
|
+
fill: ${e.pieTitleTextColor};
|
|
102
|
+
font-family: ${e.fontFamily};
|
|
103
|
+
}
|
|
104
|
+
.slice {
|
|
105
|
+
font-family: ${e.fontFamily};
|
|
106
|
+
fill: ${e.pieSectionTextColor};
|
|
107
|
+
font-size:${e.pieSectionTextSize};
|
|
108
|
+
// fill: white;
|
|
109
|
+
}
|
|
110
|
+
.legend text {
|
|
111
|
+
fill: ${e.pieLegendTextColor};
|
|
112
|
+
font-family: ${e.fontFamily};
|
|
113
|
+
font-size: ${e.pieLegendTextSize};
|
|
114
|
+
}
|
|
115
|
+
`, "getStyles"), P = /* @__PURE__ */ n((e) => {
|
|
116
|
+
let t = [...e.values()].reduce((e, t) => e + t, 0), n = [...e.entries()].map(([e, t]) => ({
|
|
117
|
+
label: e,
|
|
118
|
+
value: t
|
|
119
|
+
})).filter((e) => e.value / t * 100 >= 1).sort((e, t) => t.value - e.value);
|
|
120
|
+
return w().value((e) => e.value)(n);
|
|
121
|
+
}, "createPieArcs"), F = {
|
|
122
|
+
parser: M,
|
|
123
|
+
db: A,
|
|
124
|
+
renderer: { draw: /* @__PURE__ */ n((n, r, i, a) => {
|
|
125
|
+
t.debug("rendering pie chart\n" + n);
|
|
126
|
+
let o = a.db, s = c(), u = y(o.getConfig(), s.pie), d = e(r), f = d.append("g");
|
|
127
|
+
f.attr("transform", "translate(225,225)");
|
|
128
|
+
let { themeVariables: m } = s, [h] = v(m.pieOuterStrokeWidth);
|
|
129
|
+
h ??= 2;
|
|
130
|
+
let _ = u.textPosition, b = g().innerRadius(0).outerRadius(185), x = g().innerRadius(185 * _).outerRadius(185 * _);
|
|
131
|
+
f.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + h / 2).attr("class", "pieOuterCircle");
|
|
132
|
+
let S = o.getSections(), C = P(S), w = [
|
|
133
|
+
m.pie1,
|
|
134
|
+
m.pie2,
|
|
135
|
+
m.pie3,
|
|
136
|
+
m.pie4,
|
|
137
|
+
m.pie5,
|
|
138
|
+
m.pie6,
|
|
139
|
+
m.pie7,
|
|
140
|
+
m.pie8,
|
|
141
|
+
m.pie9,
|
|
142
|
+
m.pie10,
|
|
143
|
+
m.pie11,
|
|
144
|
+
m.pie12
|
|
145
|
+
], T = 0;
|
|
146
|
+
S.forEach((e) => {
|
|
147
|
+
T += e;
|
|
148
|
+
});
|
|
149
|
+
let E = C.filter((e) => (e.data.value / T * 100).toFixed(0) !== "0"), D = p(w);
|
|
150
|
+
f.selectAll("mySlices").data(E).enter().append("path").attr("d", b).attr("fill", (e) => D(e.data.label)).attr("class", "pieCircle"), f.selectAll("mySlices").data(E).enter().append("text").text((e) => (e.data.value / T * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + x.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice"), f.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
|
|
151
|
+
let O = [...S.entries()].map(([e, t]) => ({
|
|
152
|
+
label: e,
|
|
153
|
+
value: t
|
|
154
|
+
})), k = f.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (e, t) => {
|
|
155
|
+
let n = 22 * O.length / 2;
|
|
156
|
+
return "translate(216," + (t * 22 - n) + ")";
|
|
157
|
+
});
|
|
158
|
+
k.append("rect").attr("width", 18).attr("height", 18).style("fill", (e) => D(e.label)).style("stroke", (e) => D(e.label)), k.append("text").attr("x", 22).attr("y", 14).text((e) => o.getShowData() ? `${e.label} [${e.value}]` : e.label);
|
|
159
|
+
let A = 512 + Math.max(...k.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0));
|
|
160
|
+
d.attr("viewBox", `0 0 ${A} 450`), l(d, 450, A, u.useMaxWidth);
|
|
161
|
+
}, "draw") },
|
|
162
|
+
styles: N
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
export { F as diagram };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const e=require("./custom-Bl_fVJZ0.cjs"),t=require("./src-BMjps4Ui.cjs"),n=require("./chunk-ABZYJK2D-CbIYYZa_.cjs"),r=require("./ordinal-CUPR-p0T.cjs"),i=require("./path-Kklx0M1v.cjs"),a=require("./math-G8rF7UWn.cjs"),o=require("./arc-C78br9Yj.cjs"),s=require("./array-DZSRzHA_.cjs"),c=require("./chunk-S3R3BYOJ-B2ozcJNg.cjs"),l=require("./mermaid-parser.core-C9EbhVVg.cjs"),u=require("./chunk-4BX2VUAB-HXFjpyQg.cjs");function d(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function f(e){return e}function p(){var e=f,t=d,n=null,r=i.n(0),o=i.n(a.p),c=i.n(0);function l(i){var l,u=(i=s.t(i)).length,d,f,p=0,m=Array(u),h=Array(u),g=+r.apply(this,arguments),_=Math.min(a.p,Math.max(-a.p,o.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/u,c.apply(this,arguments)),b=y*(_<0?-1:1),x;for(l=0;l<u;++l)(x=h[m[l]=l]=+e(i[l],l,i))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(i[e],i[t])}):m.sort(function(e,n){return t(h[e],h[n])}),l=0,f=p?(_-u*b)/p:0;l<u;++l,g=v)d=m[l],x=h[d],v=g+(x>0?x*f:0)+b,h[d]={data:i[d],index:l,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return l.value=function(t){return arguments.length?(e=typeof t==`function`?t:i.n(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,n=null,l):t},l.sort=function(e){return arguments.length?(n=e,t=null,l):n},l.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:i.n(+e),l):r},l.endAngle=function(e){return arguments.length?(o=typeof e==`function`?e:i.n(+e),l):o},l.padAngle=function(e){return arguments.length?(c=typeof e==`function`?e:i.n(+e),l):c},l}var m=n.d.pie,h={sections:new Map,showData:!1,config:m},g=h.sections,_=h.showData,v=structuredClone(m),y={getConfig:t.h(()=>structuredClone(v),`getConfig`),clear:t.h(()=>{g=new Map,_=h.showData,n.a()},`clear`),setDiagramTitle:n.U,getDiagramTitle:n.C,setAccTitle:n.B,getAccTitle:n.v,setAccDescription:n.z,getAccDescription:n._,addSection:t.h(({label:e,value:n})=>{if(n<0)throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);g.has(e)||(g.set(e,n),t.g.debug(`added new section: ${e}, with value: ${n}`))},`addSection`),getSections:t.h(()=>g,`getSections`),setShowData:t.h(e=>{_=e},`setShowData`),getShowData:t.h(()=>_,`getShowData`)},b=t.h((e,t)=>{u.t(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),x={parse:t.h(async e=>{let n=await l.t(`pie`,e);t.g.debug(n),b(n,y)},`parse`)},S=t.h(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieOuterCircle{
|
|
8
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
+
fill: none;
|
|
11
|
+
}
|
|
12
|
+
.pieTitleText {
|
|
13
|
+
text-anchor: middle;
|
|
14
|
+
font-size: ${e.pieTitleTextSize};
|
|
15
|
+
fill: ${e.pieTitleTextColor};
|
|
16
|
+
font-family: ${e.fontFamily};
|
|
17
|
+
}
|
|
18
|
+
.slice {
|
|
19
|
+
font-family: ${e.fontFamily};
|
|
20
|
+
fill: ${e.pieSectionTextColor};
|
|
21
|
+
font-size:${e.pieSectionTextSize};
|
|
22
|
+
// fill: white;
|
|
23
|
+
}
|
|
24
|
+
.legend text {
|
|
25
|
+
fill: ${e.pieLegendTextColor};
|
|
26
|
+
font-family: ${e.fontFamily};
|
|
27
|
+
font-size: ${e.pieLegendTextSize};
|
|
28
|
+
}
|
|
29
|
+
`,`getStyles`),C=t.h(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1).sort((e,t)=>t.value-e.value);return p().value(e=>e.value)(n)},`createPieArcs`),w={parser:x,db:y,renderer:{draw:t.h((i,a,s,l)=>{t.g.debug(`rendering pie chart
|
|
30
|
+
`+i);let u=l.db,d=n.b(),f=c.r(u.getConfig(),d.pie),p=e.f(a),m=p.append(`g`);m.attr(`transform`,`translate(225,225)`);let{themeVariables:h}=d,[g]=c.f(h.pieOuterStrokeWidth);g??=2;let _=f.textPosition,v=o.t().innerRadius(0).outerRadius(185),y=o.t().innerRadius(185*_).outerRadius(185*_);m.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let b=u.getSections(),x=C(b),S=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],w=0;b.forEach(e=>{w+=e});let T=x.filter(e=>(e.data.value/w*100).toFixed(0)!==`0`),E=r.t(S);m.selectAll(`mySlices`).data(T).enter().append(`path`).attr(`d`,v).attr(`fill`,e=>E(e.data.label)).attr(`class`,`pieCircle`),m.selectAll(`mySlices`).data(T).enter().append(`text`).text(e=>(e.data.value/w*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+y.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`),m.append(`text`).text(u.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`);let D=[...b.entries()].map(([e,t])=>({label:e,value:t})),O=m.selectAll(`.legend`).data(D).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*D.length/2;return`translate(216,`+(t*22-n)+`)`});O.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>E(e.label)).style(`stroke`,e=>E(e.label)),O.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>u.getShowData()?`${e.label} [${e.value}]`:e.label);let k=512+Math.max(...O.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0));p.attr(`viewBox`,`0 0 ${k} 450`),n.c(p,450,k,f.useMaxWidth)},`draw`)},styles:S};exports.diagram=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../custom-Bl_fVJZ0.cjs");exports.codeBlockPlugin=e.h,exports.cursorPlugin=e.n,exports.emojiPlugin=e.m,exports.imageViewerPlugin=e.t,exports.mermaidPlugin=e.r;
|
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { defineComponent as f, ref as x, inject as h, computed as g, onMounted as v, onUnmounted as w, createElementBlock as p, openBlock as I, h as y } from "vue";
|
|
4
|
-
const k = ["src", "alt", "title", "data-original", "data-index", "crossorigin"], b = /* @__PURE__ */ f({
|
|
5
|
-
__name: "ImageViewer",
|
|
6
|
-
props: {
|
|
7
|
-
src: {},
|
|
8
|
-
alt: { default: "" },
|
|
9
|
-
title: { default: "" },
|
|
10
|
-
index: { default: 0 },
|
|
11
|
-
crossOrigin: { type: Boolean, default: !1 },
|
|
12
|
-
context: {}
|
|
13
|
-
},
|
|
14
|
-
setup(t) {
|
|
15
|
-
const i = t, n = x(null), r = h("imageViewerManager", null), e = {
|
|
16
|
-
cursor: "pointer",
|
|
17
|
-
maxWidth: "100%",
|
|
18
|
-
height: "auto"
|
|
19
|
-
}, l = g(() => {
|
|
20
|
-
const a = i.context?.images || [];
|
|
21
|
-
if (i.src && a.length > 0) {
|
|
22
|
-
const s = a.findIndex((c) => c.src === i.src);
|
|
23
|
-
return s !== -1 ? s : 0;
|
|
24
|
-
}
|
|
25
|
-
return 0;
|
|
26
|
-
}), u = g(() => i.crossOrigin ? i.src.startsWith("http") && !i.src.includes(window.location.host) : !1);
|
|
27
|
-
v(() => {
|
|
28
|
-
r && n.value && r.registerImage(n.value);
|
|
29
|
-
}), w(() => {
|
|
30
|
-
r && n.value && r.unregisterImage(n.value);
|
|
31
|
-
});
|
|
32
|
-
function o() {
|
|
33
|
-
r && r.show(l.value);
|
|
34
|
-
}
|
|
35
|
-
return (a, s) => (I(), p("img", {
|
|
36
|
-
ref_key: "imgRef",
|
|
37
|
-
ref: n,
|
|
38
|
-
src: t.src,
|
|
39
|
-
alt: t.alt,
|
|
40
|
-
title: t.title,
|
|
41
|
-
"data-original": t.src,
|
|
42
|
-
"data-index": t.index,
|
|
43
|
-
class: "mio-image-viewer",
|
|
44
|
-
crossorigin: u.value ? "anonymous" : void 0,
|
|
45
|
-
style: e,
|
|
46
|
-
onClick: o
|
|
47
|
-
}, null, 8, k));
|
|
48
|
-
}
|
|
49
|
-
}), C = /* @__PURE__ */ d(b, [["__scopeId", "data-v-768757af"]]);
|
|
50
|
-
function V(t) {
|
|
51
|
-
const {
|
|
52
|
-
priority: i = 50,
|
|
53
|
-
viewerOptions: n = {},
|
|
54
|
-
crossOrigin: r = !1
|
|
55
|
-
} = t || {};
|
|
56
|
-
return {
|
|
57
|
-
name: "imageViewer",
|
|
58
|
-
priority: i,
|
|
59
|
-
test: (e) => e.type === "tag" && e.name === "img",
|
|
60
|
-
render: (e, l, u, o) => {
|
|
61
|
-
const a = o?.images || [];
|
|
62
|
-
let s = 0;
|
|
63
|
-
if (e.attribs?.src && a.length > 0) {
|
|
64
|
-
const c = a.findIndex((m) => m.src === e.attribs?.src);
|
|
65
|
-
c !== -1 && (s = c);
|
|
66
|
-
}
|
|
67
|
-
return y(C, {
|
|
68
|
-
src: e.attribs?.src || "",
|
|
69
|
-
alt: e.attribs?.alt || "",
|
|
70
|
-
title: e.attribs?.title || "",
|
|
71
|
-
index: s,
|
|
72
|
-
viewerOptions: n,
|
|
73
|
-
crossOrigin: r,
|
|
74
|
-
context: o
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
M as codeBlockPlugin,
|
|
81
|
-
R as cursorPlugin,
|
|
82
|
-
j as emojiPlugin,
|
|
83
|
-
V as imageViewerPlugin,
|
|
84
|
-
S as mermaidPlugin
|
|
85
|
-
};
|
|
1
|
+
import { h as e, m as t, n, r, t as i } from "../custom-D-TzPpWT.js";
|
|
2
|
+
export { e as codeBlockPlugin, n as cursorPlugin, t as emojiPlugin, i as imageViewerPlugin, r as mermaidPlugin };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
`:`</div>
|
|
3
|
-
`}})})}function D(u){return C(u)}function I(u){const{cssUrl:a}=u||{};return k=>(a&&typeof window<"u"&&E.loadCss(a),C(k))}function C(u){const a=[{open:"$$",close:"$$",display:!0},{open:"\\[",close:"\\]",display:!0},{open:"\\(",close:"\\)",display:!1},{open:"$",close:"$",display:!1}],k=(n,i)=>{const f=n.src;for(const t of a){if(!f.startsWith(t.open,n.pos))continue;const c=n.pos+t.open.length;let s=c,p=-1;for(;(s=f.indexOf(t.close,s))!==-1;){let r=s-1,m=0;for(;r>=0&&f[r]==="\\";)m++,r--;if(m%2===0){p=s;break}s+=t.close.length}if(p===-1)return i||(n.pending+=t.open),n.pos+=t.open.length,!0;const e=f.slice(c,p);if(!i){const r=n.push("math","math",0);r.content=e,r.markup=t.open,r.meta={display:t.display}}return n.pos=p+t.close.length,!0}return!1},b=(n,i)=>{const f=n[i],t=f.meta?.display||!1;try{const c=w.default.renderToString(f.content,{displayMode:t,throwOnError:!1,output:"mathml",trust:!1});return t?`<div class="katex-block">${c}</div>`:c}catch(c){const s=c instanceof Error?c.message:String(c),p=u.utils?u.utils.escapeHtml(f.content):f.content;return`<span class="katex-error" title="${u.utils?u.utils.escapeHtml(s):s}">${p}</span>`}};u.inline.ruler.before("escape","math",k),u.renderer.rules.math=b;const g=(n,i,f,t)=>{for(const c of a){if(!c.display)continue;let s=n.bMarks[i]+n.tShift[i],p=n.eMarks[i];if(s+c.open.length>p||n.src.slice(s,s+c.open.length)!==c.open)continue;s+=c.open.length;const e=n.src.slice(s,p);if(e.trim().endsWith(c.close)){const l=e.trim().slice(0,-c.close.length);if(!t){const d=n.push("math","math",0);d.block=!0,d.content=l,d.markup=c.open,d.meta={display:c.display},d.map=[i,i+1]}return n.line=i+1,!0}let r=i,m=!1;for(;r<f&&(r++,!(r>=f||(s=n.bMarks[r]+n.tShift[r],p=n.eMarks[r],s<p&&n.tShift[r]<n.blkIndent)));)if(n.src.slice(s,p).trim()===c.close){m=!0;break}if(!m)continue;const y=n.parentType,o=n.lineMax;n.parentType="math";let x="";for(let l=i+1;l<r;l++){const d=n.getLines(l,l+1,n.tShift[i],!1);x+=d}if(!t){const l=n.push("math","math",0);l.block=!0,l.content=x.trim(),l.markup=c.open,l.meta={display:c.display},l.map=[i,r+1]}return n.parentType=y,n.lineMax=o,n.line=r+1,!0}return!1};u.block.ruler.before("fence","math_block",g)}exports.alertPlugin=A;exports.createKatexPlugin=I;exports.katexPlugin=D;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../markdown-it-Cz3KGZjR.cjs");exports.alertPlugin=e.r,exports.createKatexPlugin=e.t,exports.katexPlugin=e.n;
|
|
@@ -1,173 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function A(u, a, k) {
|
|
4
|
-
function b(e) {
|
|
5
|
-
return e.trim().split(" ", 2)[0] === a;
|
|
6
|
-
}
|
|
7
|
-
function g(e, r, m, y, o) {
|
|
8
|
-
return e[r].nesting === 1 && e[r].attrJoin("class", a), o.renderToken(e, r, m, y, o);
|
|
9
|
-
}
|
|
10
|
-
k = k || {};
|
|
11
|
-
const n = 3, i = k.marker || ":", f = i.charCodeAt(0), t = i.length, c = k.validate || b, s = k.render || g;
|
|
12
|
-
function p(e, r, m, y) {
|
|
13
|
-
let o, x = !1, l = e.bMarks[r] + e.tShift[r], d = e.eMarks[r];
|
|
14
|
-
if (f !== e.src.charCodeAt(l))
|
|
15
|
-
return !1;
|
|
16
|
-
for (o = l + 1; o <= d && i[(o - l) % t] === e.src[o]; o++)
|
|
17
|
-
;
|
|
18
|
-
const M = Math.floor((o - l) / t);
|
|
19
|
-
if (M < n)
|
|
20
|
-
return !1;
|
|
21
|
-
o -= (o - l) % t;
|
|
22
|
-
const $ = e.src.slice(l, o), v = e.src.slice(o, d);
|
|
23
|
-
if (!c(v, $))
|
|
24
|
-
return !1;
|
|
25
|
-
if (y)
|
|
26
|
-
return !0;
|
|
27
|
-
let h = r;
|
|
28
|
-
for (; h++, !(h >= m || (l = e.bMarks[h] + e.tShift[h], d = e.eMarks[h], l < d && e.sCount[h] < e.blkIndent)); )
|
|
29
|
-
if (f === e.src.charCodeAt(l) && !(e.sCount[h] - e.blkIndent >= 4)) {
|
|
30
|
-
for (o = l + 1; o <= d && i[(o - l) % t] === e.src[o]; o++)
|
|
31
|
-
;
|
|
32
|
-
if (!(Math.floor((o - l) / t) < M) && (o -= (o - l) % t, o = e.skipSpaces(o), !(o < d))) {
|
|
33
|
-
x = !0;
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const C = e.parentType, T = e.lineMax;
|
|
38
|
-
e.parentType = "container", e.lineMax = h;
|
|
39
|
-
const _ = e.push("container_" + a + "_open", "div", 1);
|
|
40
|
-
_.markup = $, _.block = !0, _.info = v, _.map = [r, h], e.md.block.tokenize(e, r + 1, h);
|
|
41
|
-
const S = e.push("container_" + a + "_close", "div", -1);
|
|
42
|
-
return S.markup = e.src.slice(l, o), S.block = !0, e.parentType = C, e.lineMax = T, e.line = h + (x ? 1 : 0), !0;
|
|
43
|
-
}
|
|
44
|
-
u.block.ruler.before("fence", "container_" + a, p, {
|
|
45
|
-
alt: ["paragraph", "reference", "blockquote", "list"]
|
|
46
|
-
}), u.renderer.rules["container_" + a + "_open"] = s, u.renderer.rules["container_" + a + "_close"] = s;
|
|
47
|
-
}
|
|
48
|
-
function R(u) {
|
|
49
|
-
const a = ["info", "warning", "error", "success"], k = {
|
|
50
|
-
info: "#0ea5e9",
|
|
51
|
-
warning: "#f59e0b",
|
|
52
|
-
error: "#ef4444",
|
|
53
|
-
success: "#10b981"
|
|
54
|
-
};
|
|
55
|
-
a.forEach((b) => {
|
|
56
|
-
u.use(A, b, {
|
|
57
|
-
render: (g, n) => {
|
|
58
|
-
const i = k[b];
|
|
59
|
-
return g[n].nesting === 1 ? `<div class="custom-alert alert-${b}" style="padding: 12px 16px; border-left: 4px solid ${i}; background-color: ${i}15; margin: 8px 0; border-radius: 4px; font-family: system-ui, -apple-system, sans-serif;">
|
|
60
|
-
` : `</div>
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function H(u) {
|
|
67
|
-
return w(u);
|
|
68
|
-
}
|
|
69
|
-
function K(u) {
|
|
70
|
-
const { cssUrl: a } = u || {};
|
|
71
|
-
return (k) => (a && typeof window < "u" && P(a), w(k));
|
|
72
|
-
}
|
|
73
|
-
function w(u) {
|
|
74
|
-
const a = [
|
|
75
|
-
{ open: "$$", close: "$$", display: !0 },
|
|
76
|
-
{ open: "\\[", close: "\\]", display: !0 },
|
|
77
|
-
{ open: "\\(", close: "\\)", display: !1 },
|
|
78
|
-
{ open: "$", close: "$", display: !1 }
|
|
79
|
-
], k = (n, i) => {
|
|
80
|
-
const f = n.src;
|
|
81
|
-
for (const t of a) {
|
|
82
|
-
if (!f.startsWith(t.open, n.pos)) continue;
|
|
83
|
-
const c = n.pos + t.open.length;
|
|
84
|
-
let s = c, p = -1;
|
|
85
|
-
for (; (s = f.indexOf(t.close, s)) !== -1; ) {
|
|
86
|
-
let r = s - 1, m = 0;
|
|
87
|
-
for (; r >= 0 && f[r] === "\\"; )
|
|
88
|
-
m++, r--;
|
|
89
|
-
if (m % 2 === 0) {
|
|
90
|
-
p = s;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
s += t.close.length;
|
|
94
|
-
}
|
|
95
|
-
if (p === -1)
|
|
96
|
-
return i || (n.pending += t.open), n.pos += t.open.length, !0;
|
|
97
|
-
const e = f.slice(c, p);
|
|
98
|
-
if (!i) {
|
|
99
|
-
const r = n.push("math", "math", 0);
|
|
100
|
-
r.content = e, r.markup = t.open, r.meta = { display: t.display };
|
|
101
|
-
}
|
|
102
|
-
return n.pos = p + t.close.length, !0;
|
|
103
|
-
}
|
|
104
|
-
return !1;
|
|
105
|
-
}, b = (n, i) => {
|
|
106
|
-
const f = n[i], t = f.meta?.display || !1;
|
|
107
|
-
try {
|
|
108
|
-
const c = E.renderToString(f.content, {
|
|
109
|
-
displayMode: t,
|
|
110
|
-
throwOnError: !1,
|
|
111
|
-
// Only output MathML markup (remove the HTML output). This keeps the
|
|
112
|
-
// MathML representation and prevents the HTML portion // appended alongside it.
|
|
113
|
-
output: "mathml",
|
|
114
|
-
// Do not trust input to avoid inserting raw text nodes
|
|
115
|
-
trust: !1
|
|
116
|
-
});
|
|
117
|
-
return t ? `<div class="katex-block">${c}</div>` : c;
|
|
118
|
-
} catch (c) {
|
|
119
|
-
const s = c instanceof Error ? c.message : String(c), p = u.utils ? u.utils.escapeHtml(f.content) : f.content;
|
|
120
|
-
return `<span class="katex-error" title="${u.utils ? u.utils.escapeHtml(s) : s}">${p}</span>`;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
u.inline.ruler.before("escape", "math", k), u.renderer.rules.math = b;
|
|
124
|
-
const g = (n, i, f, t) => {
|
|
125
|
-
for (const c of a) {
|
|
126
|
-
if (!c.display) continue;
|
|
127
|
-
let s = n.bMarks[i] + n.tShift[i], p = n.eMarks[i];
|
|
128
|
-
if (s + c.open.length > p || n.src.slice(s, s + c.open.length) !== c.open)
|
|
129
|
-
continue;
|
|
130
|
-
s += c.open.length;
|
|
131
|
-
const e = n.src.slice(s, p);
|
|
132
|
-
if (e.trim().endsWith(c.close)) {
|
|
133
|
-
const l = e.trim().slice(0, -c.close.length);
|
|
134
|
-
if (!t) {
|
|
135
|
-
const d = n.push("math", "math", 0);
|
|
136
|
-
d.block = !0, d.content = l, d.markup = c.open, d.meta = { display: c.display }, d.map = [i, i + 1];
|
|
137
|
-
}
|
|
138
|
-
return n.line = i + 1, !0;
|
|
139
|
-
}
|
|
140
|
-
let r = i, m = !1;
|
|
141
|
-
for (; r < f && (r++, !(r >= f || (s = n.bMarks[r] + n.tShift[r], p = n.eMarks[r], s < p && n.tShift[r] < n.blkIndent))); )
|
|
142
|
-
if (n.src.slice(s, p).trim() === c.close) {
|
|
143
|
-
m = !0;
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
if (!m) continue;
|
|
147
|
-
const y = n.parentType, o = n.lineMax;
|
|
148
|
-
n.parentType = "math";
|
|
149
|
-
let x = "";
|
|
150
|
-
for (let l = i + 1; l < r; l++) {
|
|
151
|
-
const d = n.getLines(
|
|
152
|
-
l,
|
|
153
|
-
l + 1,
|
|
154
|
-
n.tShift[i],
|
|
155
|
-
!1
|
|
156
|
-
);
|
|
157
|
-
x += d;
|
|
158
|
-
}
|
|
159
|
-
if (!t) {
|
|
160
|
-
const l = n.push("math", "math", 0);
|
|
161
|
-
l.block = !0, l.content = x.trim(), l.markup = c.open, l.meta = { display: c.display }, l.map = [i, r + 1];
|
|
162
|
-
}
|
|
163
|
-
return n.parentType = y, n.lineMax = o, n.line = r + 1, !0;
|
|
164
|
-
}
|
|
165
|
-
return !1;
|
|
166
|
-
};
|
|
167
|
-
u.block.ruler.before("fence", "math_block", g);
|
|
168
|
-
}
|
|
169
|
-
export {
|
|
170
|
-
R as alertPlugin,
|
|
171
|
-
K as createKatexPlugin,
|
|
172
|
-
H as katexPlugin
|
|
173
|
-
};
|
|
1
|
+
import { n as e, r as t, t as n } from "../markdown-it-D-hH4G7k.js";
|
|
2
|
+
export { t as alertPlugin, n as createKatexPlugin, e as katexPlugin };
|