@sme.up/ketchup2 2.7.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/graphlib-CkkG5MuS.cjs +0 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/rough.esm-r0QOSzHM.cjs +0 -1
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/v4-Dyp-SQ1c.cjs +0 -1
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,228 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rotate: 0,
|
|
12
|
-
vFlip: !1,
|
|
13
|
-
hFlip: !1
|
|
14
|
-
}), d = Object.freeze({
|
|
15
|
-
...l,
|
|
16
|
-
...u
|
|
17
|
-
}), f = Object.freeze({
|
|
18
|
-
...d,
|
|
19
|
-
body: "",
|
|
20
|
-
hidden: !1
|
|
21
|
-
}), p = Object.freeze({
|
|
22
|
-
width: null,
|
|
23
|
-
height: null
|
|
24
|
-
}), m = Object.freeze({
|
|
25
|
-
...p,
|
|
26
|
-
...u
|
|
27
|
-
}), h = (e, t, n, r = "") => {
|
|
28
|
-
let i = e.split(":");
|
|
29
|
-
if (e.slice(0, 1) === "@") {
|
|
30
|
-
if (i.length < 2 || i.length > 3) return null;
|
|
31
|
-
r = i.shift().slice(1);
|
|
32
|
-
}
|
|
33
|
-
if (i.length > 3 || !i.length) return null;
|
|
34
|
-
if (i.length > 1) {
|
|
35
|
-
let e = i.pop(), n = i.pop(), a = {
|
|
36
|
-
provider: i.length > 0 ? i[0] : r,
|
|
37
|
-
prefix: n,
|
|
38
|
-
name: e
|
|
1
|
+
import { _ as e, m as t, p as n, y as r } from "./src-DQoflmwT.js";
|
|
2
|
+
import { A as i, F as a, b as o, s, z as c } from "./chunk-DU6HZSFF-waeanndy.js";
|
|
3
|
+
import { n as l } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { a as u } from "./chunk-75Z2AOVW-Drsj7a97.js";
|
|
5
|
+
import { n as d, t as f } from "./chunk-PWAF6VOD-D37VoZ8H.js";
|
|
6
|
+
//#region node_modules/fastdom/fastdom.js
|
|
7
|
+
var p = /* @__PURE__ */ e(((e, t) => {
|
|
8
|
+
(function(e) {
|
|
9
|
+
var n = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
|
|
10
|
+
return setTimeout(e, 16);
|
|
39
11
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
12
|
+
function r() {
|
|
13
|
+
var t = this;
|
|
14
|
+
t.reads = [], t.writes = [], t.raf = n.bind(e);
|
|
15
|
+
}
|
|
16
|
+
r.prototype = {
|
|
17
|
+
constructor: r,
|
|
18
|
+
runTasks: function(e) {
|
|
19
|
+
for (var t; t = e.shift();) t();
|
|
20
|
+
},
|
|
21
|
+
measure: function(e, t) {
|
|
22
|
+
var n = t ? e.bind(t) : e;
|
|
23
|
+
return this.reads.push(n), i(this), n;
|
|
24
|
+
},
|
|
25
|
+
mutate: function(e, t) {
|
|
26
|
+
var n = t ? e.bind(t) : e;
|
|
27
|
+
return this.writes.push(n), i(this), n;
|
|
28
|
+
},
|
|
29
|
+
clear: function(e) {
|
|
30
|
+
return o(this.reads, e) || o(this.writes, e);
|
|
31
|
+
},
|
|
32
|
+
extend: function(e) {
|
|
33
|
+
if (typeof e != "object") throw Error("expected object");
|
|
34
|
+
var t = Object.create(this);
|
|
35
|
+
return s(t, e), t.fastdom = this, t.initialize && t.initialize(), t;
|
|
36
|
+
},
|
|
37
|
+
catch: null
|
|
56
38
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return null;
|
|
60
|
-
}, g = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region node_modules/@iconify/utils/lib/icon/transformations.js
|
|
63
|
-
function ee(e, t) {
|
|
64
|
-
let n = {};
|
|
65
|
-
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
66
|
-
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
67
|
-
return r && (n.rotate = r), n;
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region node_modules/@iconify/utils/lib/icon/merge.js
|
|
71
|
-
function te(e, t) {
|
|
72
|
-
let n = ee(e, t);
|
|
73
|
-
for (let r in f) r in u ? r in e && !(r in n) && (n[r] = u[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
74
|
-
return n;
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region node_modules/@iconify/utils/lib/icon-set/tree.js
|
|
78
|
-
function ne(e, t) {
|
|
79
|
-
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
80
|
-
function a(e) {
|
|
81
|
-
if (n[e]) return i[e] = [];
|
|
82
|
-
if (!(e in i)) {
|
|
83
|
-
i[e] = null;
|
|
84
|
-
let t = r[e] && r[e].parent, n = t && a(t);
|
|
85
|
-
n && (i[e] = [t].concat(n));
|
|
39
|
+
function i(e) {
|
|
40
|
+
e.scheduled || (e.scheduled = !0, e.raf(a.bind(null, e)));
|
|
86
41
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return o(t), n.forEach(o), te(e, a);
|
|
99
|
-
}
|
|
100
|
-
function ie(e, t) {
|
|
101
|
-
if (e.icons[t]) return re(e, t, []);
|
|
102
|
-
let n = ne(e, [t])[t];
|
|
103
|
-
return n ? re(e, t, n) : null;
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region node_modules/@iconify/utils/lib/svg/size.js
|
|
107
|
-
var ae = /(-?[0-9.]*[0-9]+[0-9.]*)/g, oe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
108
|
-
function se(e, t, n) {
|
|
109
|
-
if (t === 1) return e;
|
|
110
|
-
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
111
|
-
if (typeof e != "string") return e;
|
|
112
|
-
let r = e.split(ae);
|
|
113
|
-
if (r === null || !r.length) return e;
|
|
114
|
-
let i = [], a = r.shift(), o = oe.test(a);
|
|
115
|
-
for (;;) {
|
|
116
|
-
if (o) {
|
|
117
|
-
let e = parseFloat(a);
|
|
118
|
-
isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
|
|
119
|
-
} else i.push(a);
|
|
120
|
-
if (a = r.shift(), a === void 0) return i.join("");
|
|
121
|
-
o = !o;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region node_modules/@iconify/utils/lib/svg/defs.js
|
|
126
|
-
function ce(e, t = "defs") {
|
|
127
|
-
let n = "", r = e.indexOf("<" + t);
|
|
128
|
-
for (; r >= 0;) {
|
|
129
|
-
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
130
|
-
if (i === -1 || a === -1) break;
|
|
131
|
-
let o = e.indexOf(">", a);
|
|
132
|
-
if (o === -1) break;
|
|
133
|
-
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
134
|
-
}
|
|
135
|
-
return {
|
|
136
|
-
defs: n,
|
|
137
|
-
content: e
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function le(e, t) {
|
|
141
|
-
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
142
|
-
}
|
|
143
|
-
function ue(e, t, n) {
|
|
144
|
-
let r = ce(e);
|
|
145
|
-
return le(r.defs, t + r.content + n);
|
|
146
|
-
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region node_modules/@iconify/utils/lib/svg/build.js
|
|
149
|
-
var de = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
150
|
-
function fe(e, t) {
|
|
151
|
-
let n = {
|
|
152
|
-
...d,
|
|
153
|
-
...e
|
|
154
|
-
}, r = {
|
|
155
|
-
...m,
|
|
156
|
-
...t
|
|
157
|
-
}, i = {
|
|
158
|
-
left: n.left,
|
|
159
|
-
top: n.top,
|
|
160
|
-
width: n.width,
|
|
161
|
-
height: n.height
|
|
162
|
-
}, a = n.body;
|
|
163
|
-
[n, r].forEach((e) => {
|
|
164
|
-
let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
|
|
165
|
-
n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
|
|
166
|
-
let s;
|
|
167
|
-
switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
|
|
168
|
-
case 1:
|
|
169
|
-
s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
170
|
-
break;
|
|
171
|
-
case 2:
|
|
172
|
-
t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
|
|
173
|
-
break;
|
|
174
|
-
case 3:
|
|
175
|
-
s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
176
|
-
break;
|
|
42
|
+
function a(e) {
|
|
43
|
+
var t = e.writes, n = e.reads, r;
|
|
44
|
+
try {
|
|
45
|
+
n.length, e.runTasks(n), t.length, e.runTasks(t);
|
|
46
|
+
} catch (e) {
|
|
47
|
+
r = e;
|
|
48
|
+
}
|
|
49
|
+
if (e.scheduled = !1, (n.length || t.length) && i(e), r) {
|
|
50
|
+
if (r.message, e.catch) e.catch(r);
|
|
51
|
+
else throw r;
|
|
52
|
+
}
|
|
177
53
|
}
|
|
178
|
-
o
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
function
|
|
54
|
+
function o(e, t) {
|
|
55
|
+
var n = e.indexOf(t);
|
|
56
|
+
return !!~n && !!e.splice(n, 1);
|
|
57
|
+
}
|
|
58
|
+
function s(e, t) {
|
|
59
|
+
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
60
|
+
}
|
|
61
|
+
var c = e.fastdom = e.fastdom || new r();
|
|
62
|
+
typeof define == "function" ? define(function() {
|
|
63
|
+
return c;
|
|
64
|
+
}) : typeof t == "object" && (t.exports = c);
|
|
65
|
+
})(typeof window < "u" ? window : e === void 0 ? globalThis : e);
|
|
66
|
+
})), m = /* @__PURE__ */ e(((e, t) => {
|
|
67
|
+
(function() {
|
|
68
|
+
var e = {
|
|
69
|
+
initialize: function() {
|
|
70
|
+
this._tasks = /* @__PURE__ */ new Map();
|
|
71
|
+
},
|
|
72
|
+
mutate: function(e, t) {
|
|
73
|
+
return n(this, "mutate", e, t);
|
|
74
|
+
},
|
|
75
|
+
measure: function(e, t) {
|
|
76
|
+
return n(this, "measure", e, t);
|
|
77
|
+
},
|
|
78
|
+
clear: function(e) {
|
|
79
|
+
var t = this._tasks, n = t.get(e);
|
|
80
|
+
this.fastdom.clear(n), t.delete(e);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
function n(e, t, n, r) {
|
|
84
|
+
var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
|
|
85
|
+
o = a[t](function() {
|
|
86
|
+
i.delete(s);
|
|
87
|
+
try {
|
|
88
|
+
e(r ? n.call(r) : n());
|
|
89
|
+
} catch (e) {
|
|
90
|
+
c(e);
|
|
91
|
+
}
|
|
92
|
+
}, r);
|
|
93
|
+
});
|
|
94
|
+
return i.set(s, o), s;
|
|
95
|
+
}
|
|
96
|
+
(typeof define)[0] == "f" ? define(function() {
|
|
97
|
+
return e;
|
|
98
|
+
}) : (typeof t)[0] == "o" ? t.exports = e : window.fastdomPromised = e;
|
|
99
|
+
})();
|
|
100
|
+
})), h = /* @__PURE__ */ r(p(), 1), ee = /* @__PURE__ */ r(m(), 1);
|
|
101
|
+
function g() {
|
|
226
102
|
return {
|
|
227
103
|
async: !1,
|
|
228
104
|
breaks: !1,
|
|
@@ -236,22 +112,22 @@ function _() {
|
|
|
236
112
|
walkTokens: null
|
|
237
113
|
};
|
|
238
114
|
}
|
|
239
|
-
var
|
|
240
|
-
function
|
|
241
|
-
|
|
115
|
+
var _ = g();
|
|
116
|
+
function te(e) {
|
|
117
|
+
_ = e;
|
|
242
118
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
119
|
+
var v = { exec: () => null };
|
|
120
|
+
function y(e, t = "") {
|
|
245
121
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
246
122
|
replace: (e, t) => {
|
|
247
123
|
let i = typeof t == "string" ? t : t.source;
|
|
248
|
-
return i = i.replace(
|
|
124
|
+
return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
|
|
249
125
|
},
|
|
250
126
|
getRegex: () => new RegExp(n, t)
|
|
251
127
|
};
|
|
252
128
|
return r;
|
|
253
129
|
}
|
|
254
|
-
var
|
|
130
|
+
var b = {
|
|
255
131
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
256
132
|
outputLinkReplace: /\\([\[\]])/g,
|
|
257
133
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -308,111 +184,113 @@ var x = {
|
|
|
308
184
|
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
309
185
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
310
186
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
311
|
-
},
|
|
312
|
-
blockquote:
|
|
313
|
-
code:
|
|
314
|
-
def:
|
|
315
|
-
fences:
|
|
316
|
-
heading:
|
|
317
|
-
hr:
|
|
318
|
-
html:
|
|
319
|
-
lheading:
|
|
320
|
-
list:
|
|
321
|
-
newline:
|
|
322
|
-
paragraph:
|
|
323
|
-
table:
|
|
324
|
-
text:
|
|
325
|
-
},
|
|
326
|
-
...
|
|
327
|
-
lheading:
|
|
328
|
-
table:
|
|
329
|
-
paragraph:
|
|
330
|
-
},
|
|
331
|
-
...
|
|
332
|
-
html:
|
|
187
|
+
}, ne = /^(?:[ \t]*(?:\n|$))+/, re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ie = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, x = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ae = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, S = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = y(oe).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ce = y(oe).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), C = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, le = /^[^\n]+/, w = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ue = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", w).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), de = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, S).getRegex(), T = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", E = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, fe = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", E).replace("tag", T).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pe = y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), D = {
|
|
188
|
+
blockquote: y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(),
|
|
189
|
+
code: re,
|
|
190
|
+
def: ue,
|
|
191
|
+
fences: ie,
|
|
192
|
+
heading: ae,
|
|
193
|
+
hr: x,
|
|
194
|
+
html: fe,
|
|
195
|
+
lheading: se,
|
|
196
|
+
list: de,
|
|
197
|
+
newline: ne,
|
|
198
|
+
paragraph: pe,
|
|
199
|
+
table: v,
|
|
200
|
+
text: le
|
|
201
|
+
}, me = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), he = {
|
|
202
|
+
...D,
|
|
203
|
+
lheading: ce,
|
|
204
|
+
table: me,
|
|
205
|
+
paragraph: y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", me).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex()
|
|
206
|
+
}, ge = {
|
|
207
|
+
...D,
|
|
208
|
+
html: y("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", E).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
333
209
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
334
210
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
335
|
-
fences:
|
|
211
|
+
fences: v,
|
|
336
212
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
337
|
-
paragraph:
|
|
338
|
-
},
|
|
339
|
-
_backpedal:
|
|
340
|
-
anyPunctuation:
|
|
341
|
-
autolink:
|
|
342
|
-
blockSkip:
|
|
343
|
-
br:
|
|
344
|
-
code:
|
|
345
|
-
del:
|
|
346
|
-
emStrongLDelim:
|
|
347
|
-
emStrongRDelimAst:
|
|
348
|
-
emStrongRDelimUnd:
|
|
349
|
-
escape:
|
|
350
|
-
link:
|
|
351
|
-
nolink:
|
|
352
|
-
punctuation:
|
|
353
|
-
reflink:
|
|
354
|
-
reflinkSearch:
|
|
355
|
-
tag:
|
|
356
|
-
text:
|
|
357
|
-
url:
|
|
358
|
-
},
|
|
359
|
-
...
|
|
360
|
-
link:
|
|
361
|
-
reflink:
|
|
362
|
-
},
|
|
363
|
-
...
|
|
364
|
-
emStrongRDelimAst:
|
|
365
|
-
emStrongLDelim:
|
|
366
|
-
url:
|
|
213
|
+
paragraph: y(C).replace("hr", x).replace("heading", " *#{1,6} *[^\n]").replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
214
|
+
}, _e = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ve = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ye = /^( {2,}|\\)\n(?!\s*$)/, be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, O = /[\p{P}\p{S}]/u, k = /[\s\p{P}\p{S}]/u, xe = /[^\s\p{P}\p{S}]/u, Se = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, k).getRegex(), Ce = /(?!~)[\p{P}\p{S}]/u, we = /(?!~)[\s\p{P}\p{S}]/u, Te = /(?:[^\s\p{P}\p{S}]|~)/u, Ee = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, De = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oe = y(De, "u").replace(/punct/g, O).getRegex(), ke = y(De, "u").replace(/punct/g, Ce).getRegex(), Ae = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", je = y(Ae, "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Me = y(Ae, "gu").replace(/notPunctSpace/g, Te).replace(/punctSpace/g, we).replace(/punct/g, Ce).getRegex(), Ne = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Pe = y(/\\(punct)/, "gu").replace(/punct/g, O).getRegex(), Fe = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ie = y(E).replace("(?:-->|$)", "-->").getRegex(), Le = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ie).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), A = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Re = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", A).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ze = y(/^!?\[(label)\]\[(ref)\]/).replace("label", A).replace("ref", w).getRegex(), Be = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", w).getRegex(), j = {
|
|
215
|
+
_backpedal: v,
|
|
216
|
+
anyPunctuation: Pe,
|
|
217
|
+
autolink: Fe,
|
|
218
|
+
blockSkip: Ee,
|
|
219
|
+
br: ye,
|
|
220
|
+
code: ve,
|
|
221
|
+
del: v,
|
|
222
|
+
emStrongLDelim: Oe,
|
|
223
|
+
emStrongRDelimAst: je,
|
|
224
|
+
emStrongRDelimUnd: Ne,
|
|
225
|
+
escape: _e,
|
|
226
|
+
link: Re,
|
|
227
|
+
nolink: Be,
|
|
228
|
+
punctuation: Se,
|
|
229
|
+
reflink: ze,
|
|
230
|
+
reflinkSearch: y("reflink|nolink(?!\\()", "g").replace("reflink", ze).replace("nolink", Be).getRegex(),
|
|
231
|
+
tag: Le,
|
|
232
|
+
text: be,
|
|
233
|
+
url: v
|
|
234
|
+
}, Ve = {
|
|
235
|
+
...j,
|
|
236
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", A).getRegex(),
|
|
237
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", A).getRegex()
|
|
238
|
+
}, M = {
|
|
239
|
+
...j,
|
|
240
|
+
emStrongRDelimAst: Me,
|
|
241
|
+
emStrongLDelim: ke,
|
|
242
|
+
url: y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
367
243
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
368
244
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
369
245
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
370
|
-
},
|
|
371
|
-
...
|
|
372
|
-
br:
|
|
373
|
-
text:
|
|
246
|
+
}, He = {
|
|
247
|
+
...M,
|
|
248
|
+
br: y(ye).replace("{2,}", "*").getRegex(),
|
|
249
|
+
text: y(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
250
|
+
}, N = {
|
|
251
|
+
normal: D,
|
|
252
|
+
gfm: he,
|
|
253
|
+
pedantic: ge
|
|
374
254
|
}, P = {
|
|
375
|
-
normal:
|
|
376
|
-
gfm:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
gfm: N,
|
|
381
|
-
breaks: at,
|
|
382
|
-
pedantic: it
|
|
383
|
-
}, ot = {
|
|
255
|
+
normal: j,
|
|
256
|
+
gfm: M,
|
|
257
|
+
breaks: He,
|
|
258
|
+
pedantic: Ve
|
|
259
|
+
}, Ue = {
|
|
384
260
|
"&": "&",
|
|
385
261
|
"<": "<",
|
|
386
262
|
">": ">",
|
|
387
263
|
"\"": """,
|
|
388
264
|
"'": "'"
|
|
389
|
-
},
|
|
390
|
-
function
|
|
265
|
+
}, We = (e) => Ue[e];
|
|
266
|
+
function F(e, t) {
|
|
391
267
|
if (t) {
|
|
392
|
-
if (
|
|
393
|
-
} else if (
|
|
268
|
+
if (b.escapeTest.test(e)) return e.replace(b.escapeReplace, We);
|
|
269
|
+
} else if (b.escapeTestNoEncode.test(e)) return e.replace(b.escapeReplaceNoEncode, We);
|
|
394
270
|
return e;
|
|
395
271
|
}
|
|
396
|
-
function
|
|
272
|
+
function Ge(e) {
|
|
397
273
|
try {
|
|
398
|
-
e = encodeURI(e).replace(
|
|
274
|
+
e = encodeURI(e).replace(b.percentDecode, "%");
|
|
399
275
|
} catch {
|
|
400
276
|
return null;
|
|
401
277
|
}
|
|
402
278
|
return e;
|
|
403
279
|
}
|
|
404
|
-
function
|
|
405
|
-
let n = e.replace(
|
|
280
|
+
function Ke(e, t) {
|
|
281
|
+
let n = e.replace(b.findPipe, (e, t, n) => {
|
|
406
282
|
let r = !1, i = t;
|
|
407
283
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
408
284
|
return r ? "|" : " |";
|
|
409
|
-
}).split(
|
|
410
|
-
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t)
|
|
411
|
-
|
|
412
|
-
|
|
285
|
+
}).split(b.splitPipe), r = 0;
|
|
286
|
+
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
287
|
+
if (n.length > t) n.splice(t);
|
|
288
|
+
else for (; n.length < t;) n.push("");
|
|
289
|
+
}
|
|
290
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
|
|
413
291
|
return n;
|
|
414
292
|
}
|
|
415
|
-
function
|
|
293
|
+
function I(e, t, n) {
|
|
416
294
|
let r = e.length;
|
|
417
295
|
if (r === 0) return "";
|
|
418
296
|
let i = 0;
|
|
@@ -424,7 +302,7 @@ function L(e, t, n) {
|
|
|
424
302
|
}
|
|
425
303
|
return e.slice(0, r - i);
|
|
426
304
|
}
|
|
427
|
-
function
|
|
305
|
+
function qe(e, t) {
|
|
428
306
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
429
307
|
let n = 0;
|
|
430
308
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -432,7 +310,7 @@ function ut(e, t) {
|
|
|
432
310
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
433
311
|
return n > 0 ? -2 : -1;
|
|
434
312
|
}
|
|
435
|
-
function
|
|
313
|
+
function Je(e, t, n, r, i) {
|
|
436
314
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
437
315
|
r.state.inLink = !0;
|
|
438
316
|
let c = {
|
|
@@ -445,7 +323,7 @@ function dt(e, t, n, r, i) {
|
|
|
445
323
|
};
|
|
446
324
|
return r.state.inLink = !1, c;
|
|
447
325
|
}
|
|
448
|
-
function
|
|
326
|
+
function Ye(e, t, n) {
|
|
449
327
|
let r = e.match(n.other.indentCodeCompensation);
|
|
450
328
|
if (r === null) return t;
|
|
451
329
|
let i = r[1];
|
|
@@ -456,12 +334,12 @@ function ft(e, t, n) {
|
|
|
456
334
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
457
335
|
}).join("\n");
|
|
458
336
|
}
|
|
459
|
-
var
|
|
337
|
+
var L = class {
|
|
460
338
|
options;
|
|
461
339
|
rules;
|
|
462
340
|
lexer;
|
|
463
341
|
constructor(e) {
|
|
464
|
-
this.options = e ||
|
|
342
|
+
this.options = e || _;
|
|
465
343
|
}
|
|
466
344
|
space(e) {
|
|
467
345
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -478,14 +356,14 @@ var R = class {
|
|
|
478
356
|
type: "code",
|
|
479
357
|
raw: t[0],
|
|
480
358
|
codeBlockStyle: "indented",
|
|
481
|
-
text: this.options.pedantic ? e :
|
|
359
|
+
text: this.options.pedantic ? e : I(e, "\n")
|
|
482
360
|
};
|
|
483
361
|
}
|
|
484
362
|
}
|
|
485
363
|
fences(e) {
|
|
486
364
|
let t = this.rules.block.fences.exec(e);
|
|
487
365
|
if (t) {
|
|
488
|
-
let e = t[0], n =
|
|
366
|
+
let e = t[0], n = Ye(e, t[3] || "", this.rules);
|
|
489
367
|
return {
|
|
490
368
|
type: "code",
|
|
491
369
|
raw: e,
|
|
@@ -499,7 +377,7 @@ var R = class {
|
|
|
499
377
|
if (t) {
|
|
500
378
|
let e = t[2].trim();
|
|
501
379
|
if (this.rules.other.endingHash.test(e)) {
|
|
502
|
-
let t =
|
|
380
|
+
let t = I(e, "#");
|
|
503
381
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
504
382
|
}
|
|
505
383
|
return {
|
|
@@ -515,13 +393,13 @@ var R = class {
|
|
|
515
393
|
let t = this.rules.block.hr.exec(e);
|
|
516
394
|
if (t) return {
|
|
517
395
|
type: "hr",
|
|
518
|
-
raw:
|
|
396
|
+
raw: I(t[0], "\n")
|
|
519
397
|
};
|
|
520
398
|
}
|
|
521
399
|
blockquote(e) {
|
|
522
400
|
let t = this.rules.block.blockquote.exec(e);
|
|
523
401
|
if (t) {
|
|
524
|
-
let e =
|
|
402
|
+
let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
525
403
|
for (; e.length > 0;) {
|
|
526
404
|
let t = !1, a = [], o;
|
|
527
405
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -540,7 +418,8 @@ ${c}` : c;
|
|
|
540
418
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
541
419
|
i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
|
|
542
420
|
break;
|
|
543
|
-
}
|
|
421
|
+
}
|
|
422
|
+
if (u?.type === "list") {
|
|
544
423
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
545
424
|
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
546
425
|
continue;
|
|
@@ -635,7 +514,7 @@ ${c}` : c;
|
|
|
635
514
|
table(e) {
|
|
636
515
|
let t = this.rules.block.table.exec(e);
|
|
637
516
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
638
|
-
let n =
|
|
517
|
+
let n = Ke(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
639
518
|
type: "table",
|
|
640
519
|
raw: t[0],
|
|
641
520
|
header: [],
|
|
@@ -650,7 +529,7 @@ ${c}` : c;
|
|
|
650
529
|
header: !0,
|
|
651
530
|
align: a.align[e]
|
|
652
531
|
});
|
|
653
|
-
for (let e of i) a.rows.push(
|
|
532
|
+
for (let e of i) a.rows.push(Ke(e, a.header.length).map((e, t) => ({
|
|
654
533
|
text: e,
|
|
655
534
|
tokens: this.lexer.inline(e),
|
|
656
535
|
header: !1,
|
|
@@ -715,10 +594,10 @@ ${c}` : c;
|
|
|
715
594
|
let e = t[2].trim();
|
|
716
595
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
717
596
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
718
|
-
let t =
|
|
597
|
+
let t = I(e.slice(0, -1), "\\");
|
|
719
598
|
if ((e.length - t.length) % 2 == 0) return;
|
|
720
599
|
} else {
|
|
721
|
-
let e =
|
|
600
|
+
let e = qe(t[2], "()");
|
|
722
601
|
if (e === -2) return;
|
|
723
602
|
if (e > -1) {
|
|
724
603
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -730,7 +609,7 @@ ${c}` : c;
|
|
|
730
609
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
731
610
|
e && (n = e[1], r = e[3]);
|
|
732
611
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
733
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
612
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Je(t, {
|
|
734
613
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
735
614
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
736
615
|
}, t[0], this.lexer, this.rules);
|
|
@@ -748,7 +627,7 @@ ${c}` : c;
|
|
|
748
627
|
text: e
|
|
749
628
|
};
|
|
750
629
|
}
|
|
751
|
-
return
|
|
630
|
+
return Je(n, e, n[0], this.lexer, this.rules);
|
|
752
631
|
}
|
|
753
632
|
}
|
|
754
633
|
emStrong(e, t, n = "") {
|
|
@@ -760,7 +639,8 @@ ${c}` : c;
|
|
|
760
639
|
if (a = [...i].length, r[3] || r[4]) {
|
|
761
640
|
o += a;
|
|
762
641
|
continue;
|
|
763
|
-
}
|
|
642
|
+
}
|
|
643
|
+
if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
764
644
|
s += a;
|
|
765
645
|
continue;
|
|
766
646
|
}
|
|
@@ -867,29 +747,29 @@ ${c}` : c;
|
|
|
867
747
|
};
|
|
868
748
|
}
|
|
869
749
|
}
|
|
870
|
-
},
|
|
750
|
+
}, R = class e {
|
|
871
751
|
tokens;
|
|
872
752
|
options;
|
|
873
753
|
state;
|
|
874
754
|
tokenizer;
|
|
875
755
|
inlineQueue;
|
|
876
756
|
constructor(e) {
|
|
877
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
757
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _, this.options.tokenizer = this.options.tokenizer || new L(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
878
758
|
inLink: !1,
|
|
879
759
|
inRawBlock: !1,
|
|
880
760
|
top: !0
|
|
881
761
|
};
|
|
882
762
|
let t = {
|
|
883
|
-
other:
|
|
884
|
-
block:
|
|
885
|
-
inline:
|
|
763
|
+
other: b,
|
|
764
|
+
block: N.normal,
|
|
765
|
+
inline: P.normal
|
|
886
766
|
};
|
|
887
|
-
this.options.pedantic ? (t.block =
|
|
767
|
+
this.options.pedantic ? (t.block = N.pedantic, t.inline = P.pedantic) : this.options.gfm && (t.block = N.gfm, t.inline = this.options.breaks ? P.breaks : P.gfm), this.tokenizer.rules = t;
|
|
888
768
|
}
|
|
889
769
|
static get rules() {
|
|
890
770
|
return {
|
|
891
|
-
block:
|
|
892
|
-
inline:
|
|
771
|
+
block: N,
|
|
772
|
+
inline: P
|
|
893
773
|
};
|
|
894
774
|
}
|
|
895
775
|
static lex(t, n) {
|
|
@@ -899,7 +779,7 @@ ${c}` : c;
|
|
|
899
779
|
return new e(n).inlineTokens(t);
|
|
900
780
|
}
|
|
901
781
|
lex(e) {
|
|
902
|
-
e = e.replace(
|
|
782
|
+
e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
903
783
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
904
784
|
let t = this.inlineQueue[e];
|
|
905
785
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -907,7 +787,7 @@ ${c}` : c;
|
|
|
907
787
|
return this.inlineQueue = [], this.tokens;
|
|
908
788
|
}
|
|
909
789
|
blockTokens(e, t = [], n = !1) {
|
|
910
|
-
for (this.options.pedantic && (e = e.replace(
|
|
790
|
+
for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
|
|
911
791
|
let r;
|
|
912
792
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
913
793
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -965,10 +845,10 @@ ${c}` : c;
|
|
|
965
845
|
}
|
|
966
846
|
let i = e;
|
|
967
847
|
if (this.options.extensions?.startBlock) {
|
|
968
|
-
let t =
|
|
848
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
969
849
|
this.options.extensions.startBlock.forEach((e) => {
|
|
970
850
|
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
971
|
-
}), t <
|
|
851
|
+
}), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
|
|
972
852
|
}
|
|
973
853
|
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
974
854
|
let a = t.at(-1);
|
|
@@ -986,7 +866,8 @@ ${c}` : c;
|
|
|
986
866
|
if (this.options.silent) {
|
|
987
867
|
console.error(t);
|
|
988
868
|
break;
|
|
989
|
-
}
|
|
869
|
+
}
|
|
870
|
+
throw Error(t);
|
|
990
871
|
}
|
|
991
872
|
}
|
|
992
873
|
return this.state.top = !0, t;
|
|
@@ -1055,10 +936,10 @@ ${c}` : c;
|
|
|
1055
936
|
}
|
|
1056
937
|
let o = e;
|
|
1057
938
|
if (this.options.extensions?.startInline) {
|
|
1058
|
-
let t =
|
|
939
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
1059
940
|
this.options.extensions.startInline.forEach((e) => {
|
|
1060
941
|
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
1061
|
-
}), t <
|
|
942
|
+
}), t < 1 / 0 && t >= 0 && (o = e.substring(0, t + 1));
|
|
1062
943
|
}
|
|
1063
944
|
if (r = this.tokenizer.inlineText(o)) {
|
|
1064
945
|
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (a = r.raw.slice(-1)), i = !0;
|
|
@@ -1071,23 +952,24 @@ ${c}` : c;
|
|
|
1071
952
|
if (this.options.silent) {
|
|
1072
953
|
console.error(t);
|
|
1073
954
|
break;
|
|
1074
|
-
}
|
|
955
|
+
}
|
|
956
|
+
throw Error(t);
|
|
1075
957
|
}
|
|
1076
958
|
}
|
|
1077
959
|
return t;
|
|
1078
960
|
}
|
|
1079
|
-
},
|
|
961
|
+
}, z = class {
|
|
1080
962
|
options;
|
|
1081
963
|
parser;
|
|
1082
964
|
constructor(e) {
|
|
1083
|
-
this.options = e ||
|
|
965
|
+
this.options = e || _;
|
|
1084
966
|
}
|
|
1085
967
|
space(e) {
|
|
1086
968
|
return "";
|
|
1087
969
|
}
|
|
1088
970
|
code({ text: e, lang: t, escaped: n }) {
|
|
1089
|
-
let r = (t || "").match(
|
|
1090
|
-
return r ? "<pre><code class=\"language-" +
|
|
971
|
+
let r = (t || "").match(b.notSpaceStart)?.[0], i = e.replace(b.endingNewline, "") + "\n";
|
|
972
|
+
return r ? "<pre><code class=\"language-" + F(r) + "\">" + (n ? i : F(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : F(i, !0)) + "</code></pre>\n";
|
|
1091
973
|
}
|
|
1092
974
|
blockquote({ tokens: e }) {
|
|
1093
975
|
return `<blockquote>
|
|
@@ -1120,7 +1002,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
1120
1002
|
let t = "";
|
|
1121
1003
|
if (e.task) {
|
|
1122
1004
|
let n = this.checkbox({ checked: !!e.checked });
|
|
1123
|
-
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " +
|
|
1005
|
+
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + F(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
1124
1006
|
type: "text",
|
|
1125
1007
|
raw: n + " ",
|
|
1126
1008
|
text: n + " ",
|
|
@@ -1167,7 +1049,7 @@ ${e}</tr>
|
|
|
1167
1049
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1168
1050
|
}
|
|
1169
1051
|
codespan({ text: e }) {
|
|
1170
|
-
return `<code>${
|
|
1052
|
+
return `<code>${F(e, !0)}</code>`;
|
|
1171
1053
|
}
|
|
1172
1054
|
br(e) {
|
|
1173
1055
|
return "<br>";
|
|
@@ -1176,24 +1058,24 @@ ${e}</tr>
|
|
|
1176
1058
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1177
1059
|
}
|
|
1178
1060
|
link({ href: e, title: t, tokens: n }) {
|
|
1179
|
-
let r = this.parser.parseInline(n), i =
|
|
1061
|
+
let r = this.parser.parseInline(n), i = Ge(e);
|
|
1180
1062
|
if (i === null) return r;
|
|
1181
1063
|
e = i;
|
|
1182
1064
|
let a = "<a href=\"" + e + "\"";
|
|
1183
|
-
return t && (a += " title=\"" +
|
|
1065
|
+
return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
|
|
1184
1066
|
}
|
|
1185
1067
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1186
1068
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1187
|
-
let i =
|
|
1188
|
-
if (i === null) return
|
|
1069
|
+
let i = Ge(e);
|
|
1070
|
+
if (i === null) return F(n);
|
|
1189
1071
|
e = i;
|
|
1190
1072
|
let a = `<img src="${e}" alt="${n}"`;
|
|
1191
|
-
return t && (a += ` title="${
|
|
1073
|
+
return t && (a += ` title="${F(t)}"`), a += ">", a;
|
|
1192
1074
|
}
|
|
1193
1075
|
text(e) {
|
|
1194
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
1076
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
|
|
1195
1077
|
}
|
|
1196
|
-
},
|
|
1078
|
+
}, B = class {
|
|
1197
1079
|
strong({ text: e }) {
|
|
1198
1080
|
return e;
|
|
1199
1081
|
}
|
|
@@ -1221,12 +1103,12 @@ ${e}</tr>
|
|
|
1221
1103
|
br() {
|
|
1222
1104
|
return "";
|
|
1223
1105
|
}
|
|
1224
|
-
},
|
|
1106
|
+
}, V = class e {
|
|
1225
1107
|
options;
|
|
1226
1108
|
renderer;
|
|
1227
1109
|
textRenderer;
|
|
1228
1110
|
constructor(e) {
|
|
1229
|
-
this.options = e ||
|
|
1111
|
+
this.options = e || _, this.options.renderer = this.options.renderer || new z(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new B();
|
|
1230
1112
|
}
|
|
1231
1113
|
static parse(t, n) {
|
|
1232
1114
|
return new e(n).parse(t);
|
|
@@ -1292,7 +1174,7 @@ ${e}</tr>
|
|
|
1292
1174
|
case "text": {
|
|
1293
1175
|
let i = a, o = this.renderer.text(i);
|
|
1294
1176
|
for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
|
|
1295
|
-
t ?
|
|
1177
|
+
n += t ? this.renderer.paragraph({
|
|
1296
1178
|
type: "paragraph",
|
|
1297
1179
|
raw: o,
|
|
1298
1180
|
text: o,
|
|
@@ -1302,7 +1184,7 @@ ${e}</tr>
|
|
|
1302
1184
|
text: o,
|
|
1303
1185
|
escaped: !0
|
|
1304
1186
|
}]
|
|
1305
|
-
}) :
|
|
1187
|
+
}) : o;
|
|
1306
1188
|
continue;
|
|
1307
1189
|
}
|
|
1308
1190
|
default: {
|
|
@@ -1377,19 +1259,19 @@ ${e}</tr>
|
|
|
1377
1259
|
}
|
|
1378
1260
|
return n;
|
|
1379
1261
|
}
|
|
1380
|
-
},
|
|
1262
|
+
}, H = class {
|
|
1381
1263
|
options;
|
|
1382
1264
|
block;
|
|
1383
1265
|
constructor(e) {
|
|
1384
|
-
this.options = e ||
|
|
1266
|
+
this.options = e || _;
|
|
1385
1267
|
}
|
|
1386
|
-
static passThroughHooks = new Set([
|
|
1268
|
+
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
1387
1269
|
"preprocess",
|
|
1388
1270
|
"postprocess",
|
|
1389
1271
|
"processAllTokens",
|
|
1390
1272
|
"emStrongMask"
|
|
1391
1273
|
]);
|
|
1392
|
-
static passThroughHooksRespectAsync = new Set([
|
|
1274
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set([
|
|
1393
1275
|
"preprocess",
|
|
1394
1276
|
"postprocess",
|
|
1395
1277
|
"processAllTokens"
|
|
@@ -1407,22 +1289,22 @@ ${e}</tr>
|
|
|
1407
1289
|
return e;
|
|
1408
1290
|
}
|
|
1409
1291
|
provideLexer() {
|
|
1410
|
-
return this.block ?
|
|
1292
|
+
return this.block ? R.lex : R.lexInline;
|
|
1411
1293
|
}
|
|
1412
1294
|
provideParser() {
|
|
1413
|
-
return this.block ?
|
|
1295
|
+
return this.block ? V.parse : V.parseInline;
|
|
1414
1296
|
}
|
|
1415
|
-
},
|
|
1416
|
-
defaults =
|
|
1297
|
+
}, U = new class {
|
|
1298
|
+
defaults = g();
|
|
1417
1299
|
options = this.setOptions;
|
|
1418
1300
|
parse = this.parseMarkdown(!0);
|
|
1419
1301
|
parseInline = this.parseMarkdown(!1);
|
|
1420
|
-
Parser =
|
|
1421
|
-
Renderer =
|
|
1422
|
-
TextRenderer =
|
|
1423
|
-
Lexer =
|
|
1424
|
-
Tokenizer =
|
|
1425
|
-
Hooks =
|
|
1302
|
+
Parser = V;
|
|
1303
|
+
Renderer = z;
|
|
1304
|
+
TextRenderer = B;
|
|
1305
|
+
Lexer = R;
|
|
1306
|
+
Tokenizer = L;
|
|
1307
|
+
Hooks = H;
|
|
1426
1308
|
constructor(...e) {
|
|
1427
1309
|
this.use(...e);
|
|
1428
1310
|
}
|
|
@@ -1443,7 +1325,7 @@ ${e}</tr>
|
|
|
1443
1325
|
default: {
|
|
1444
1326
|
let e = r;
|
|
1445
1327
|
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
1446
|
-
let i = e[r].flat(
|
|
1328
|
+
let i = e[r].flat(1 / 0);
|
|
1447
1329
|
n = n.concat(this.walkTokens(i, t));
|
|
1448
1330
|
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
1449
1331
|
}
|
|
@@ -1473,7 +1355,7 @@ ${e}</tr>
|
|
|
1473
1355
|
}
|
|
1474
1356
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
1475
1357
|
}), n.extensions = t), e.renderer) {
|
|
1476
|
-
let t = this.defaults.renderer || new
|
|
1358
|
+
let t = this.defaults.renderer || new z(this.defaults);
|
|
1477
1359
|
for (let n in e.renderer) {
|
|
1478
1360
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
1479
1361
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -1486,7 +1368,7 @@ ${e}</tr>
|
|
|
1486
1368
|
n.renderer = t;
|
|
1487
1369
|
}
|
|
1488
1370
|
if (e.tokenizer) {
|
|
1489
|
-
let t = this.defaults.tokenizer || new
|
|
1371
|
+
let t = this.defaults.tokenizer || new L(this.defaults);
|
|
1490
1372
|
for (let n in e.tokenizer) {
|
|
1491
1373
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
1492
1374
|
if ([
|
|
@@ -1503,16 +1385,16 @@ ${e}</tr>
|
|
|
1503
1385
|
n.tokenizer = t;
|
|
1504
1386
|
}
|
|
1505
1387
|
if (e.hooks) {
|
|
1506
|
-
let t = this.defaults.hooks || new
|
|
1388
|
+
let t = this.defaults.hooks || new H();
|
|
1507
1389
|
for (let n in e.hooks) {
|
|
1508
1390
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
1509
1391
|
if (["options", "block"].includes(n)) continue;
|
|
1510
1392
|
let r = n, i = e.hooks[r], a = t[r];
|
|
1511
|
-
|
|
1512
|
-
if (this.defaults.async &&
|
|
1393
|
+
t[r] = H.passThroughHooks.has(n) ? (e) => {
|
|
1394
|
+
if (this.defaults.async && H.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
|
|
1513
1395
|
let r = i.call(t, e);
|
|
1514
1396
|
return a.call(t, r);
|
|
1515
|
-
} :
|
|
1397
|
+
} : (...e) => {
|
|
1516
1398
|
let n = i.apply(t, e);
|
|
1517
1399
|
return n === !1 && (n = a.apply(t, e)), n;
|
|
1518
1400
|
};
|
|
@@ -1539,10 +1421,10 @@ ${e}</tr>
|
|
|
1539
1421
|
}, this;
|
|
1540
1422
|
}
|
|
1541
1423
|
lexer(e, t) {
|
|
1542
|
-
return
|
|
1424
|
+
return R.lex(e, t ?? this.defaults);
|
|
1543
1425
|
}
|
|
1544
1426
|
parser(e, t) {
|
|
1545
|
-
return
|
|
1427
|
+
return V.parse(e, t ?? this.defaults);
|
|
1546
1428
|
}
|
|
1547
1429
|
parseMarkdown(e) {
|
|
1548
1430
|
return (t, n) => {
|
|
@@ -1554,7 +1436,7 @@ ${e}</tr>
|
|
|
1554
1436
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
1555
1437
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
1556
1438
|
i.hooks && (i.hooks.options = i, i.hooks.block = e);
|
|
1557
|
-
let o = i.hooks ? i.hooks.provideLexer() : e ?
|
|
1439
|
+
let o = i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline;
|
|
1558
1440
|
if (i.async) return Promise.resolve(i.hooks ? i.hooks.preprocess(t) : t).then((e) => o(e, i)).then((e) => i.hooks ? i.hooks.processAllTokens(e) : e).then((e) => i.walkTokens ? Promise.all(this.walkTokens(e, i.walkTokens)).then(() => e) : e).then((e) => s(e, i)).then((e) => i.hooks ? i.hooks.postprocess(e) : e).catch(a);
|
|
1559
1441
|
try {
|
|
1560
1442
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
@@ -1570,7 +1452,7 @@ ${e}</tr>
|
|
|
1570
1452
|
onError(e, t) {
|
|
1571
1453
|
return (n) => {
|
|
1572
1454
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
1573
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
1455
|
+
let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
|
|
1574
1456
|
return t ? Promise.resolve(e) : e;
|
|
1575
1457
|
}
|
|
1576
1458
|
if (t) return Promise.reject(n);
|
|
@@ -1578,19 +1460,19 @@ ${e}</tr>
|
|
|
1578
1460
|
};
|
|
1579
1461
|
}
|
|
1580
1462
|
}();
|
|
1581
|
-
function
|
|
1582
|
-
return
|
|
1463
|
+
function W(e, t) {
|
|
1464
|
+
return U.parse(e, t);
|
|
1583
1465
|
}
|
|
1584
|
-
|
|
1585
|
-
return
|
|
1586
|
-
},
|
|
1587
|
-
return
|
|
1588
|
-
},
|
|
1589
|
-
return
|
|
1590
|
-
},
|
|
1466
|
+
W.options = W.setOptions = function(e) {
|
|
1467
|
+
return U.setOptions(e), W.defaults = U.defaults, te(W.defaults), W;
|
|
1468
|
+
}, W.getDefaults = g, W.defaults = _, W.use = function(...e) {
|
|
1469
|
+
return U.use(...e), W.defaults = U.defaults, te(W.defaults), W;
|
|
1470
|
+
}, W.walkTokens = function(e, t) {
|
|
1471
|
+
return U.walkTokens(e, t);
|
|
1472
|
+
}, W.parseInline = U.parseInline, W.Parser = V, W.parser = V.parse, W.Renderer = z, W.TextRenderer = B, W.Lexer = R, W.lexer = R.lex, W.Tokenizer = L, W.Hooks = H, W.parse = W, W.options, W.setOptions, W.use, W.walkTokens, W.parseInline, V.parse, R.lex;
|
|
1591
1473
|
//#endregion
|
|
1592
1474
|
//#region node_modules/ts-dedent/esm/index.js
|
|
1593
|
-
function
|
|
1475
|
+
function Xe(e) {
|
|
1594
1476
|
var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
|
|
1595
1477
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
1596
1478
|
var r = n.reduce(function(e, t) {
|
|
@@ -1615,119 +1497,203 @@ function pt(e) {
|
|
|
1615
1497
|
}), a;
|
|
1616
1498
|
}
|
|
1617
1499
|
//#endregion
|
|
1618
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
1619
|
-
var
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1500
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GMAD6QVW.mjs
|
|
1501
|
+
var G = typeof performance < "u" && typeof performance.now == "function", K = /* @__PURE__ */ l(() => G ? performance.now() : 0, "now"), q = "🧜 ", Ze = "Mermaid render", Qe = "Mermaid", $e = {
|
|
1502
|
+
parse: "tertiary",
|
|
1503
|
+
prepare: "secondary",
|
|
1504
|
+
measure: "primary",
|
|
1505
|
+
layout: "primary-dark",
|
|
1506
|
+
layoutCore: "error",
|
|
1507
|
+
draw: "primary-light",
|
|
1508
|
+
paint: "secondary-dark",
|
|
1509
|
+
serialize: "tertiary-dark",
|
|
1510
|
+
render: "primary-light"
|
|
1511
|
+
};
|
|
1512
|
+
(class {
|
|
1513
|
+
constructor() {
|
|
1514
|
+
this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
|
|
1515
|
+
}
|
|
1516
|
+
static {
|
|
1517
|
+
l(this, "Profiler");
|
|
1518
|
+
}
|
|
1519
|
+
enable() {
|
|
1520
|
+
return this.enabled = !0, this;
|
|
1521
|
+
}
|
|
1522
|
+
disable() {
|
|
1523
|
+
return this.enabled = !1, this;
|
|
1524
|
+
}
|
|
1525
|
+
start(e) {
|
|
1526
|
+
this.enabled && (this.roots = [], this.stack = [], this.buckets = {}, this.begin(e));
|
|
1527
|
+
}
|
|
1528
|
+
tickSync(e, t) {
|
|
1529
|
+
if (!this.enabled) return t();
|
|
1530
|
+
let n = K();
|
|
1639
1531
|
try {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
}, K.set(i, a);
|
|
1644
|
-
} catch (t) {
|
|
1645
|
-
throw e.error(t), Error(`Failed to load icon set: ${r.prefix}`);
|
|
1532
|
+
return t();
|
|
1533
|
+
} finally {
|
|
1534
|
+
this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
|
|
1646
1535
|
}
|
|
1647
1536
|
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1537
|
+
async tick(e, t) {
|
|
1538
|
+
if (!this.enabled) return t();
|
|
1539
|
+
let n = K();
|
|
1540
|
+
try {
|
|
1541
|
+
return await t();
|
|
1542
|
+
} finally {
|
|
1543
|
+
this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
|
|
1544
|
+
}
|
|
1656
1545
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1546
|
+
stop() {
|
|
1547
|
+
if (!this.enabled) return;
|
|
1548
|
+
for (; this.stack.length > 0;) this.end();
|
|
1549
|
+
let e = this.roots.at(-1), t = this.runLabel ?? e?.name;
|
|
1550
|
+
return e && (this.records.push({
|
|
1551
|
+
label: t ?? e.name,
|
|
1552
|
+
tree: e,
|
|
1553
|
+
buckets: { ...this.buckets }
|
|
1554
|
+
}), this.records.length > this.maxRecords && this.records.splice(0, this.records.length - this.maxRecords), this.autoPrint && this.printSummary(e, t)), this.runLabel = void 0, e;
|
|
1555
|
+
}
|
|
1556
|
+
begin(e) {
|
|
1557
|
+
if (!this.enabled) return;
|
|
1558
|
+
let t = {
|
|
1559
|
+
name: e,
|
|
1560
|
+
start: K(),
|
|
1561
|
+
duration: -1,
|
|
1562
|
+
children: []
|
|
1563
|
+
}, n = this.stack.at(-1);
|
|
1564
|
+
if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), G && typeof performance.mark == "function") try {
|
|
1565
|
+
performance.mark(`${q}${e} \u25B6`);
|
|
1566
|
+
} catch {}
|
|
1567
|
+
}
|
|
1568
|
+
end() {
|
|
1569
|
+
if (!this.enabled) return;
|
|
1570
|
+
let e = this.stack.pop();
|
|
1571
|
+
if (!e) return;
|
|
1572
|
+
let t = K();
|
|
1573
|
+
if (e.duration = t - e.start, G && typeof performance.measure == "function") try {
|
|
1574
|
+
performance.measure(`${q}${e.name}`, {
|
|
1575
|
+
start: e.start,
|
|
1576
|
+
end: t,
|
|
1577
|
+
detail: { devtools: {
|
|
1578
|
+
dataType: "track-entry",
|
|
1579
|
+
track: Ze,
|
|
1580
|
+
trackGroup: Qe,
|
|
1581
|
+
color: $e[e.name] ?? "primary",
|
|
1582
|
+
tooltipText: `${e.name} \u2014 ${e.duration.toFixed(1)} ms`
|
|
1583
|
+
} }
|
|
1584
|
+
});
|
|
1585
|
+
} catch {}
|
|
1586
|
+
}
|
|
1587
|
+
async span(e, t) {
|
|
1588
|
+
if (!this.enabled) return t();
|
|
1589
|
+
this.begin(e);
|
|
1590
|
+
try {
|
|
1591
|
+
return await t();
|
|
1592
|
+
} finally {
|
|
1593
|
+
this.end();
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
report() {
|
|
1597
|
+
return this.records.at(-1)?.tree ?? this.roots.at(-1);
|
|
1598
|
+
}
|
|
1599
|
+
clear() {
|
|
1600
|
+
this.records.length = 0, this.roots = [], this.stack = [], this.runLabel = void 0;
|
|
1601
|
+
}
|
|
1602
|
+
reset() {
|
|
1603
|
+
this.roots = [], this.stack = [];
|
|
1604
|
+
}
|
|
1605
|
+
printSummary(e = this.report(), t) {
|
|
1606
|
+
if (!e) return;
|
|
1607
|
+
let n = e.duration, r = t && t !== e.name ? `${e.name} [${t}]` : e.name, i = ["ms % phase"], a = /* @__PURE__ */ l((e, t) => {
|
|
1608
|
+
let r = " ".repeat(t), o = e.duration.toFixed(1).padStart(8), s = n > 0 ? `${(e.duration / n * 100).toFixed(0).padStart(3)}%` : " -";
|
|
1609
|
+
i.push(`${o} ${s} ${r}${e.name}`);
|
|
1610
|
+
for (let n of e.children) a(n, t + 1);
|
|
1611
|
+
if (e.children.length > 0) {
|
|
1612
|
+
let t = e.children.reduce((e, t) => e + t.duration, 0), n = e.duration - t;
|
|
1613
|
+
if (n > .5) {
|
|
1614
|
+
let e = n.toFixed(1).padStart(8);
|
|
1615
|
+
i.push(`${e} ${r} (self)`);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
}, "walk");
|
|
1619
|
+
a(e, 0);
|
|
1620
|
+
let o = Object.keys(this.buckets);
|
|
1621
|
+
if (o.length > 0) {
|
|
1622
|
+
i.push("—— buckets (summed) ——");
|
|
1623
|
+
for (let e of o) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
|
|
1624
|
+
}
|
|
1625
|
+
console.log(`${q}mermaid render profile \xB7 ${r}
|
|
1626
|
+
${i.join("\n")}`);
|
|
1627
|
+
}
|
|
1628
|
+
}), globalThis.injected ??= {
|
|
1629
|
+
includeLargeFeatures: !0,
|
|
1630
|
+
profiling: !1,
|
|
1631
|
+
version: "0.0.0"
|
|
1632
|
+
};
|
|
1633
|
+
var et = h.default.extend({ raf(e) {
|
|
1634
|
+
typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
|
|
1635
|
+
} }).extend(ee.default);
|
|
1636
|
+
function tt(e, { markdownAutoWrap: t }) {
|
|
1637
|
+
return Xe(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
1672
1638
|
}
|
|
1673
|
-
|
|
1674
|
-
function
|
|
1639
|
+
l(tt, "preprocessMarkdown");
|
|
1640
|
+
function nt(e) {
|
|
1675
1641
|
return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
|
|
1676
1642
|
content: e,
|
|
1677
1643
|
type: "normal"
|
|
1678
1644
|
})) ?? []);
|
|
1679
1645
|
}
|
|
1680
|
-
|
|
1681
|
-
function
|
|
1682
|
-
let
|
|
1683
|
-
function
|
|
1646
|
+
l(nt, "nonMarkdownToLines");
|
|
1647
|
+
function rt(e, t = {}) {
|
|
1648
|
+
let n = tt(e, t), r = W.lexer(n), i = [[]], a = 0;
|
|
1649
|
+
function o(e, t = "normal") {
|
|
1684
1650
|
e.type === "text" ? e.text.split("\n").forEach((e, n) => {
|
|
1685
|
-
n !== 0 && (
|
|
1686
|
-
e = e.replace(/'/g, "'"), e && a
|
|
1651
|
+
n !== 0 && (a++, i.push([])), e.split(" ").forEach((e) => {
|
|
1652
|
+
e = e.replace(/'/g, "'"), e && i[a].push({
|
|
1687
1653
|
content: e,
|
|
1688
1654
|
type: t
|
|
1689
1655
|
});
|
|
1690
1656
|
});
|
|
1691
1657
|
}) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
|
|
1692
|
-
|
|
1693
|
-
}) : e.type === "html" && a
|
|
1658
|
+
o(t, e.type);
|
|
1659
|
+
}) : e.type === "html" && i[a].push({
|
|
1694
1660
|
content: e.text,
|
|
1695
1661
|
type: "normal"
|
|
1696
1662
|
});
|
|
1697
1663
|
}
|
|
1698
|
-
return
|
|
1664
|
+
return l(o, "processNode"), r.forEach((e) => {
|
|
1699
1665
|
e.type === "paragraph" ? e.tokens?.forEach((e) => {
|
|
1700
|
-
|
|
1701
|
-
}) : e.type === "html" ? a
|
|
1666
|
+
o(e);
|
|
1667
|
+
}) : e.type === "html" ? i[a].push({
|
|
1702
1668
|
content: e.text,
|
|
1703
1669
|
type: "normal"
|
|
1704
|
-
}) : a
|
|
1670
|
+
}) : i[a].push({
|
|
1705
1671
|
content: e.raw,
|
|
1706
1672
|
type: "normal"
|
|
1707
1673
|
});
|
|
1708
|
-
}),
|
|
1674
|
+
}), i;
|
|
1709
1675
|
}
|
|
1710
|
-
|
|
1711
|
-
function
|
|
1676
|
+
l(rt, "markdownToLines");
|
|
1677
|
+
function it(e) {
|
|
1712
1678
|
return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
|
|
1713
1679
|
}
|
|
1714
|
-
|
|
1715
|
-
function
|
|
1716
|
-
let
|
|
1717
|
-
function
|
|
1718
|
-
return
|
|
1680
|
+
l(it, "nonMarkdownToHTML");
|
|
1681
|
+
function at(e, { markdownAutoWrap: n } = {}) {
|
|
1682
|
+
let r = W.lexer(e);
|
|
1683
|
+
function i(e) {
|
|
1684
|
+
return e.type === "text" ? n === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, " ") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(i).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(i).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(i).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (t.warn(`Unsupported markdown: ${e.type}`), e.raw);
|
|
1719
1685
|
}
|
|
1720
|
-
return
|
|
1686
|
+
return l(i, "output"), r.map(i).join("");
|
|
1721
1687
|
}
|
|
1722
|
-
|
|
1723
|
-
function
|
|
1688
|
+
l(at, "markdownToHTML");
|
|
1689
|
+
function ot(e) {
|
|
1724
1690
|
return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
|
|
1725
1691
|
}
|
|
1726
|
-
|
|
1727
|
-
function
|
|
1728
|
-
return J(e, [],
|
|
1692
|
+
l(ot, "splitTextToChars");
|
|
1693
|
+
function st(e, t) {
|
|
1694
|
+
return J(e, [], ot(t.content), t.type);
|
|
1729
1695
|
}
|
|
1730
|
-
|
|
1696
|
+
l(st, "splitWordToFitWidth");
|
|
1731
1697
|
function J(e, t, n, r) {
|
|
1732
1698
|
if (n.length === 0) return [{
|
|
1733
1699
|
content: t.join(""),
|
|
@@ -1748,12 +1714,12 @@ function J(e, t, n, r) {
|
|
|
1748
1714
|
type: r
|
|
1749
1715
|
}]);
|
|
1750
1716
|
}
|
|
1751
|
-
|
|
1752
|
-
function
|
|
1717
|
+
l(J, "splitWordToFitWidthRecursion");
|
|
1718
|
+
function ct(e, t) {
|
|
1753
1719
|
if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
|
|
1754
1720
|
return Y(e, t);
|
|
1755
1721
|
}
|
|
1756
|
-
|
|
1722
|
+
l(ct, "splitLineToFitWidth");
|
|
1757
1723
|
function Y(e, t, n = [], r = []) {
|
|
1758
1724
|
if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
|
|
1759
1725
|
let i = "";
|
|
@@ -1768,39 +1734,37 @@ function Y(e, t, n = [], r = []) {
|
|
|
1768
1734
|
}), o.push(a), t(o)) return Y(e, t, n, o);
|
|
1769
1735
|
if (r.length > 0) n.push(r), e.unshift(a);
|
|
1770
1736
|
else if (a.content) {
|
|
1771
|
-
let [r, i] =
|
|
1737
|
+
let [r, i] = st(t, a);
|
|
1772
1738
|
n.push([r]), i.content && e.unshift(i);
|
|
1773
1739
|
}
|
|
1774
1740
|
return Y(e, t, n);
|
|
1775
1741
|
}
|
|
1776
|
-
|
|
1742
|
+
l(Y, "splitLineToFitWidthRecursion");
|
|
1777
1743
|
function X(e, t) {
|
|
1778
1744
|
t && e.attr("style", t);
|
|
1779
1745
|
}
|
|
1780
|
-
|
|
1781
|
-
var
|
|
1782
|
-
async function
|
|
1746
|
+
l(X, "applyStyle");
|
|
1747
|
+
var lt = 16384;
|
|
1748
|
+
async function ut(e, t, n, r, l = !1, u = o()) {
|
|
1783
1749
|
let d = e.append("foreignObject");
|
|
1784
|
-
d.attr("width", `${Math.min(10 * n,
|
|
1785
|
-
let f = d.append("xhtml:div"), p =
|
|
1786
|
-
h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${
|
|
1787
|
-
let g = f.node().getBoundingClientRect();
|
|
1788
|
-
return g.width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px"), g = f.node().getBoundingClientRect()), d.node();
|
|
1750
|
+
d.attr("width", `${Math.min(10 * n, lt)}px`), d.attr("height", `${Math.min(10 * n, lt)}px`);
|
|
1751
|
+
let f = d.append("xhtml:div"), p = i(t.label) ? await a(t.label.replace(s.lineBreakRegex, "\n"), u) : c(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
|
|
1752
|
+
return h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${r}`), X(f, t.labelStyle), f.style("display", "table-cell"), f.style("white-space", "nowrap"), f.style("line-height", "1.5"), n !== Infinity && (f.style("max-width", n + "px"), f.style("text-align", "center")), f.attr("xmlns", "http://www.w3.org/1999/xhtml"), l && f.attr("class", "labelBkg"), (await et.measure(() => f.node().getBoundingClientRect())).width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px")), d.node();
|
|
1789
1753
|
}
|
|
1790
|
-
|
|
1754
|
+
l(ut, "addHtmlSpan");
|
|
1791
1755
|
function Z(e, t, n, r = !1) {
|
|
1792
1756
|
let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
|
|
1793
1757
|
return r && i.attr("text-anchor", "middle"), i;
|
|
1794
1758
|
}
|
|
1795
|
-
|
|
1796
|
-
function
|
|
1759
|
+
l(Z, "createTspan");
|
|
1760
|
+
function dt(e, t, n) {
|
|
1797
1761
|
let r = e.append("text"), i = Z(r, 1, t);
|
|
1798
1762
|
$(i, n);
|
|
1799
1763
|
let a = i.node().getComputedTextLength();
|
|
1800
1764
|
return r.remove(), a;
|
|
1801
1765
|
}
|
|
1802
|
-
|
|
1803
|
-
function
|
|
1766
|
+
l(dt, "computeWidthOfText");
|
|
1767
|
+
function ft(e, t, n) {
|
|
1804
1768
|
let r = e.append("text"), i = Z(r, 1, t);
|
|
1805
1769
|
$(i, [{
|
|
1806
1770
|
content: n,
|
|
@@ -1809,21 +1773,22 @@ function At(e, t, n) {
|
|
|
1809
1773
|
let a = i.node()?.getBoundingClientRect();
|
|
1810
1774
|
return a && r.remove(), a;
|
|
1811
1775
|
}
|
|
1812
|
-
|
|
1813
|
-
function
|
|
1814
|
-
let
|
|
1815
|
-
|
|
1776
|
+
l(ft, "computeDimensionOfText");
|
|
1777
|
+
function pt(e, t, n, r = !1, i = !1) {
|
|
1778
|
+
let a = 1.1, o = t.append("g"), s = o.insert("rect").attr("class", "background").attr("style", "stroke: none"), c = o.append("text").attr("y", "-10.1");
|
|
1779
|
+
i && c.attr("text-anchor", "middle");
|
|
1816
1780
|
let u = 0;
|
|
1817
|
-
for (let
|
|
1818
|
-
let
|
|
1819
|
-
for (let e of
|
|
1820
|
-
}
|
|
1821
|
-
if (
|
|
1822
|
-
let e =
|
|
1823
|
-
return
|
|
1824
|
-
}
|
|
1781
|
+
for (let t of n) {
|
|
1782
|
+
let n = /* @__PURE__ */ l((t) => dt(o, a, t) <= e, "checkWidth"), r = n(t) ? [t] : ct(t, n);
|
|
1783
|
+
for (let e of r) $(Z(c, u, a, i), e), u++;
|
|
1784
|
+
}
|
|
1785
|
+
if (r) {
|
|
1786
|
+
let e = c.node().getBBox();
|
|
1787
|
+
return s.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), o.node();
|
|
1788
|
+
}
|
|
1789
|
+
return c.node();
|
|
1825
1790
|
}
|
|
1826
|
-
|
|
1791
|
+
l(pt, "createFormattedText");
|
|
1827
1792
|
function Q(e) {
|
|
1828
1793
|
return e.replace(/&(amp|lt|gt);/g, (e, t) => {
|
|
1829
1794
|
switch (t) {
|
|
@@ -1834,46 +1799,47 @@ function Q(e) {
|
|
|
1834
1799
|
}
|
|
1835
1800
|
});
|
|
1836
1801
|
}
|
|
1837
|
-
|
|
1802
|
+
l(Q, "decodeHTMLEntities");
|
|
1838
1803
|
function $(e, t) {
|
|
1839
1804
|
e.text(""), t.forEach((t, n) => {
|
|
1840
1805
|
let r = e.append("tspan").attr("font-style", t.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", t.type === "strong" ? "bold" : "normal");
|
|
1841
1806
|
n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
|
|
1842
1807
|
});
|
|
1843
1808
|
}
|
|
1844
|
-
|
|
1845
|
-
async function
|
|
1809
|
+
l($, "updateTextContentAndStyles");
|
|
1810
|
+
async function mt(e, t = {}) {
|
|
1846
1811
|
let n = [];
|
|
1847
1812
|
e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
|
|
1848
1813
|
let n = `${r}:${i}`;
|
|
1849
|
-
return await
|
|
1814
|
+
return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${c(e, t).replace(":", " ")}'></i>`;
|
|
1850
1815
|
})()), e));
|
|
1851
1816
|
let r = await Promise.all(n);
|
|
1852
1817
|
return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
|
|
1853
1818
|
}
|
|
1854
|
-
|
|
1855
|
-
var
|
|
1856
|
-
if (
|
|
1857
|
-
let
|
|
1858
|
-
return await
|
|
1819
|
+
l(mt, "replaceIconSubstring");
|
|
1820
|
+
var ht = /* @__PURE__ */ l(async (e, r = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: c = !0, markdown: l = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
|
|
1821
|
+
if (t.debug("XYZ createText", r, a, o, s, c, d, "addSvgBackground: ", p), c) {
|
|
1822
|
+
let t = l ? at(r, m) : it(r), n = await mt(u(t), m), o = r.replace(/\\\\/g, "\\");
|
|
1823
|
+
return await ut(e, {
|
|
1859
1824
|
isNode: d,
|
|
1860
|
-
label: r
|
|
1825
|
+
label: i(r) ? o : n,
|
|
1861
1826
|
labelStyle: a.replace("fill:", "color:")
|
|
1862
1827
|
}, f, s, p, m);
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1828
|
+
}
|
|
1829
|
+
{
|
|
1830
|
+
let t = u(r.replace(/<br\s*\/?>/g, "<br/>")), i = pt(f, e, l ? rt(t.replace("<br>", "<br/>"), m) : nt(t), r ? p : !1, !d);
|
|
1865
1831
|
if (d) {
|
|
1866
1832
|
/stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
|
|
1867
1833
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1868
|
-
n(
|
|
1834
|
+
n(i).attr("style", e);
|
|
1869
1835
|
} else {
|
|
1870
1836
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
1871
|
-
n(
|
|
1837
|
+
n(i).select("rect").attr("style", e.replace(/background:/g, "fill:"));
|
|
1872
1838
|
let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1873
|
-
n(
|
|
1839
|
+
n(i).select("text").attr("style", t);
|
|
1874
1840
|
}
|
|
1875
|
-
return o ? n(
|
|
1841
|
+
return o ? n(i).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(i).selectAll("tspan.text-outer-tspan").classed("row", !0), i;
|
|
1876
1842
|
}
|
|
1877
1843
|
}, "createText");
|
|
1878
1844
|
//#endregion
|
|
1879
|
-
export {
|
|
1845
|
+
export { Xe as i, ht as n, et as r, ft as t };
|