@sme.up/ketchup2 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
- package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
- package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
- package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
- package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
- package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
- package/dist/assets/svg/functions.svg +1 -0
- 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/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/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
- package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
- package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
- package/dist/channel-BvUly9jN.cjs +1 -0
- package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
- package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
- package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
- package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
- package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
- package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
- package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
- package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
- package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
- package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
- package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
- package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
- package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
- package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
- package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
- package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
- package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
- package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
- package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
- package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
- package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
- package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
- package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
- package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
- package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
- package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
- package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
- package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -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/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/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/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-CE0T5PqO.js} +25 -24
- package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
- package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
- package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
- package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
- package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
- package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
- package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
- package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
- package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
- package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
- package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
- package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
- package/dist/dist-DrOEvFlx.cjs +1 -0
- package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
- package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
- package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
- package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
- package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-BUvMJJnE.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-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
- package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
- package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
- package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
- package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
- package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
- package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
- package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
- package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
- package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
- package/dist/katex-DUe6VLjC.cjs +257 -0
- package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
- package/dist/ketchup2.cjs.js +156 -154
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +31759 -29656
- package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
- package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
- package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
- package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
- 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-CqChDTj1.cjs +6 -0
- package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
- package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
- package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
- package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
- package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
- package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
- package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
- package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
- package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
- package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
- package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
- package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
- package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
- package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
- package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
- package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
- package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
- package/dist/src-B16ML7oM.cjs +1 -0
- package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
- package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
- package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
- package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
- package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
- package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
- package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
- package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
- package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
- package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
- package/dist/treemap-WGGIJYW6-D4tTzsvR.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/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
- package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
- package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
- package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
- package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
- package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
- package/package.json +5 -2
- 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/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-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-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-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- 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/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/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- 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/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/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,102 @@
|
|
|
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-D-6ZfKf9.js";
|
|
2
|
+
import { A as i, F as a, b as o, s, z as c } from "./chunk-DU6HZSFF-CNSdkWoH.js";
|
|
3
|
+
import { n as l } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { a as u } from "./chunk-75Z2AOVW-BwUD389x.js";
|
|
5
|
+
import { n as d, t as f } from "./chunk-PWAF6VOD-CbmhQpgH.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
|
-
a = te(r[e] || i[e], a);
|
|
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) if (r.message, e.catch) e.catch(r);
|
|
50
|
+
else throw r;
|
|
177
51
|
}
|
|
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
|
|
52
|
+
function o(e, t) {
|
|
53
|
+
var n = e.indexOf(t);
|
|
54
|
+
return !!~n && !!e.splice(n, 1);
|
|
55
|
+
}
|
|
56
|
+
function s(e, t) {
|
|
57
|
+
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
58
|
+
}
|
|
59
|
+
var c = e.fastdom = e.fastdom || new r();
|
|
60
|
+
typeof define == "function" ? define(function() {
|
|
61
|
+
return c;
|
|
62
|
+
}) : typeof t == "object" && (t.exports = c);
|
|
63
|
+
})(typeof window < "u" ? window : e === void 0 ? globalThis : e);
|
|
64
|
+
})), m = /* @__PURE__ */ e(((e, t) => {
|
|
65
|
+
(function() {
|
|
66
|
+
var e = {
|
|
67
|
+
initialize: function() {
|
|
68
|
+
this._tasks = /* @__PURE__ */ new Map();
|
|
69
|
+
},
|
|
70
|
+
mutate: function(e, t) {
|
|
71
|
+
return n(this, "mutate", e, t);
|
|
72
|
+
},
|
|
73
|
+
measure: function(e, t) {
|
|
74
|
+
return n(this, "measure", e, t);
|
|
75
|
+
},
|
|
76
|
+
clear: function(e) {
|
|
77
|
+
var t = this._tasks, n = t.get(e);
|
|
78
|
+
this.fastdom.clear(n), t.delete(e);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function n(e, t, n, r) {
|
|
82
|
+
var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
|
|
83
|
+
o = a[t](function() {
|
|
84
|
+
i.delete(s);
|
|
85
|
+
try {
|
|
86
|
+
e(r ? n.call(r) : n());
|
|
87
|
+
} catch (e) {
|
|
88
|
+
c(e);
|
|
89
|
+
}
|
|
90
|
+
}, r);
|
|
91
|
+
});
|
|
92
|
+
return i.set(s, o), s;
|
|
93
|
+
}
|
|
94
|
+
(typeof define)[0] == "f" ? define(function() {
|
|
95
|
+
return e;
|
|
96
|
+
}) : (typeof t)[0] == "o" ? t.exports = e : window.fastdomPromised = e;
|
|
97
|
+
})();
|
|
98
|
+
})), h = /* @__PURE__ */ r(p(), 1), ee = /* @__PURE__ */ r(m(), 1);
|
|
99
|
+
function g() {
|
|
226
100
|
return {
|
|
227
101
|
async: !1,
|
|
228
102
|
breaks: !1,
|
|
@@ -236,22 +110,22 @@ function _() {
|
|
|
236
110
|
walkTokens: null
|
|
237
111
|
};
|
|
238
112
|
}
|
|
239
|
-
var
|
|
240
|
-
function
|
|
241
|
-
|
|
113
|
+
var _ = g();
|
|
114
|
+
function te(e) {
|
|
115
|
+
_ = e;
|
|
242
116
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
117
|
+
var v = { exec: () => null };
|
|
118
|
+
function y(e, t = "") {
|
|
245
119
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
246
120
|
replace: (e, t) => {
|
|
247
121
|
let i = typeof t == "string" ? t : t.source;
|
|
248
|
-
return i = i.replace(
|
|
122
|
+
return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
|
|
249
123
|
},
|
|
250
124
|
getRegex: () => new RegExp(n, t)
|
|
251
125
|
};
|
|
252
126
|
return r;
|
|
253
127
|
}
|
|
254
|
-
var
|
|
128
|
+
var b = {
|
|
255
129
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
256
130
|
outputLinkReplace: /\\([\[\]])/g,
|
|
257
131
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -308,111 +182,111 @@ var x = {
|
|
|
308
182
|
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
309
183
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
310
184
|
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:
|
|
185
|
+
}, 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 = {
|
|
186
|
+
blockquote: y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(),
|
|
187
|
+
code: re,
|
|
188
|
+
def: ue,
|
|
189
|
+
fences: ie,
|
|
190
|
+
heading: ae,
|
|
191
|
+
hr: x,
|
|
192
|
+
html: fe,
|
|
193
|
+
lheading: se,
|
|
194
|
+
list: de,
|
|
195
|
+
newline: ne,
|
|
196
|
+
paragraph: pe,
|
|
197
|
+
table: v,
|
|
198
|
+
text: le
|
|
199
|
+
}, 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 = {
|
|
200
|
+
...D,
|
|
201
|
+
lheading: ce,
|
|
202
|
+
table: me,
|
|
203
|
+
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()
|
|
204
|
+
}, ge = {
|
|
205
|
+
...D,
|
|
206
|
+
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
207
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
334
208
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
335
|
-
fences:
|
|
209
|
+
fences: v,
|
|
336
210
|
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:
|
|
211
|
+
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()
|
|
212
|
+
}, _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 = {
|
|
213
|
+
_backpedal: v,
|
|
214
|
+
anyPunctuation: Pe,
|
|
215
|
+
autolink: Fe,
|
|
216
|
+
blockSkip: Ee,
|
|
217
|
+
br: ye,
|
|
218
|
+
code: ve,
|
|
219
|
+
del: v,
|
|
220
|
+
emStrongLDelim: Oe,
|
|
221
|
+
emStrongRDelimAst: je,
|
|
222
|
+
emStrongRDelimUnd: Ne,
|
|
223
|
+
escape: _e,
|
|
224
|
+
link: Re,
|
|
225
|
+
nolink: Be,
|
|
226
|
+
punctuation: Se,
|
|
227
|
+
reflink: ze,
|
|
228
|
+
reflinkSearch: y("reflink|nolink(?!\\()", "g").replace("reflink", ze).replace("nolink", Be).getRegex(),
|
|
229
|
+
tag: Le,
|
|
230
|
+
text: be,
|
|
231
|
+
url: v
|
|
232
|
+
}, Ve = {
|
|
233
|
+
...j,
|
|
234
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", A).getRegex(),
|
|
235
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", A).getRegex()
|
|
236
|
+
}, M = {
|
|
237
|
+
...j,
|
|
238
|
+
emStrongRDelimAst: Me,
|
|
239
|
+
emStrongLDelim: ke,
|
|
240
|
+
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
241
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
368
242
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
369
243
|
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:
|
|
244
|
+
}, He = {
|
|
245
|
+
...M,
|
|
246
|
+
br: y(ye).replace("{2,}", "*").getRegex(),
|
|
247
|
+
text: y(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
248
|
+
}, N = {
|
|
249
|
+
normal: D,
|
|
250
|
+
gfm: he,
|
|
251
|
+
pedantic: ge
|
|
374
252
|
}, P = {
|
|
375
|
-
normal:
|
|
376
|
-
gfm:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
gfm: N,
|
|
381
|
-
breaks: at,
|
|
382
|
-
pedantic: it
|
|
383
|
-
}, ot = {
|
|
253
|
+
normal: j,
|
|
254
|
+
gfm: M,
|
|
255
|
+
breaks: He,
|
|
256
|
+
pedantic: Ve
|
|
257
|
+
}, Ue = {
|
|
384
258
|
"&": "&",
|
|
385
259
|
"<": "<",
|
|
386
260
|
">": ">",
|
|
387
261
|
"\"": """,
|
|
388
262
|
"'": "'"
|
|
389
|
-
},
|
|
390
|
-
function
|
|
263
|
+
}, We = (e) => Ue[e];
|
|
264
|
+
function F(e, t) {
|
|
391
265
|
if (t) {
|
|
392
|
-
if (
|
|
393
|
-
} else if (
|
|
266
|
+
if (b.escapeTest.test(e)) return e.replace(b.escapeReplace, We);
|
|
267
|
+
} else if (b.escapeTestNoEncode.test(e)) return e.replace(b.escapeReplaceNoEncode, We);
|
|
394
268
|
return e;
|
|
395
269
|
}
|
|
396
|
-
function
|
|
270
|
+
function Ge(e) {
|
|
397
271
|
try {
|
|
398
|
-
e = encodeURI(e).replace(
|
|
272
|
+
e = encodeURI(e).replace(b.percentDecode, "%");
|
|
399
273
|
} catch {
|
|
400
274
|
return null;
|
|
401
275
|
}
|
|
402
276
|
return e;
|
|
403
277
|
}
|
|
404
|
-
function
|
|
405
|
-
let n = e.replace(
|
|
278
|
+
function Ke(e, t) {
|
|
279
|
+
let n = e.replace(b.findPipe, (e, t, n) => {
|
|
406
280
|
let r = !1, i = t;
|
|
407
281
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
408
282
|
return r ? "|" : " |";
|
|
409
|
-
}).split(
|
|
283
|
+
}).split(b.splitPipe), r = 0;
|
|
410
284
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
411
285
|
else for (; n.length < t;) n.push("");
|
|
412
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
286
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
|
|
413
287
|
return n;
|
|
414
288
|
}
|
|
415
|
-
function
|
|
289
|
+
function I(e, t, n) {
|
|
416
290
|
let r = e.length;
|
|
417
291
|
if (r === 0) return "";
|
|
418
292
|
let i = 0;
|
|
@@ -424,7 +298,7 @@ function L(e, t, n) {
|
|
|
424
298
|
}
|
|
425
299
|
return e.slice(0, r - i);
|
|
426
300
|
}
|
|
427
|
-
function
|
|
301
|
+
function qe(e, t) {
|
|
428
302
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
429
303
|
let n = 0;
|
|
430
304
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -432,7 +306,7 @@ function ut(e, t) {
|
|
|
432
306
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
433
307
|
return n > 0 ? -2 : -1;
|
|
434
308
|
}
|
|
435
|
-
function
|
|
309
|
+
function Je(e, t, n, r, i) {
|
|
436
310
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
437
311
|
r.state.inLink = !0;
|
|
438
312
|
let c = {
|
|
@@ -445,7 +319,7 @@ function dt(e, t, n, r, i) {
|
|
|
445
319
|
};
|
|
446
320
|
return r.state.inLink = !1, c;
|
|
447
321
|
}
|
|
448
|
-
function
|
|
322
|
+
function Ye(e, t, n) {
|
|
449
323
|
let r = e.match(n.other.indentCodeCompensation);
|
|
450
324
|
if (r === null) return t;
|
|
451
325
|
let i = r[1];
|
|
@@ -456,12 +330,12 @@ function ft(e, t, n) {
|
|
|
456
330
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
457
331
|
}).join("\n");
|
|
458
332
|
}
|
|
459
|
-
var
|
|
333
|
+
var L = class {
|
|
460
334
|
options;
|
|
461
335
|
rules;
|
|
462
336
|
lexer;
|
|
463
337
|
constructor(e) {
|
|
464
|
-
this.options = e ||
|
|
338
|
+
this.options = e || _;
|
|
465
339
|
}
|
|
466
340
|
space(e) {
|
|
467
341
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -478,14 +352,14 @@ var R = class {
|
|
|
478
352
|
type: "code",
|
|
479
353
|
raw: t[0],
|
|
480
354
|
codeBlockStyle: "indented",
|
|
481
|
-
text: this.options.pedantic ? e :
|
|
355
|
+
text: this.options.pedantic ? e : I(e, "\n")
|
|
482
356
|
};
|
|
483
357
|
}
|
|
484
358
|
}
|
|
485
359
|
fences(e) {
|
|
486
360
|
let t = this.rules.block.fences.exec(e);
|
|
487
361
|
if (t) {
|
|
488
|
-
let e = t[0], n =
|
|
362
|
+
let e = t[0], n = Ye(e, t[3] || "", this.rules);
|
|
489
363
|
return {
|
|
490
364
|
type: "code",
|
|
491
365
|
raw: e,
|
|
@@ -499,7 +373,7 @@ var R = class {
|
|
|
499
373
|
if (t) {
|
|
500
374
|
let e = t[2].trim();
|
|
501
375
|
if (this.rules.other.endingHash.test(e)) {
|
|
502
|
-
let t =
|
|
376
|
+
let t = I(e, "#");
|
|
503
377
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
504
378
|
}
|
|
505
379
|
return {
|
|
@@ -515,13 +389,13 @@ var R = class {
|
|
|
515
389
|
let t = this.rules.block.hr.exec(e);
|
|
516
390
|
if (t) return {
|
|
517
391
|
type: "hr",
|
|
518
|
-
raw:
|
|
392
|
+
raw: I(t[0], "\n")
|
|
519
393
|
};
|
|
520
394
|
}
|
|
521
395
|
blockquote(e) {
|
|
522
396
|
let t = this.rules.block.blockquote.exec(e);
|
|
523
397
|
if (t) {
|
|
524
|
-
let e =
|
|
398
|
+
let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
525
399
|
for (; e.length > 0;) {
|
|
526
400
|
let t = !1, a = [], o;
|
|
527
401
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -635,7 +509,7 @@ ${c}` : c;
|
|
|
635
509
|
table(e) {
|
|
636
510
|
let t = this.rules.block.table.exec(e);
|
|
637
511
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
638
|
-
let n =
|
|
512
|
+
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
513
|
type: "table",
|
|
640
514
|
raw: t[0],
|
|
641
515
|
header: [],
|
|
@@ -650,7 +524,7 @@ ${c}` : c;
|
|
|
650
524
|
header: !0,
|
|
651
525
|
align: a.align[e]
|
|
652
526
|
});
|
|
653
|
-
for (let e of i) a.rows.push(
|
|
527
|
+
for (let e of i) a.rows.push(Ke(e, a.header.length).map((e, t) => ({
|
|
654
528
|
text: e,
|
|
655
529
|
tokens: this.lexer.inline(e),
|
|
656
530
|
header: !1,
|
|
@@ -715,10 +589,10 @@ ${c}` : c;
|
|
|
715
589
|
let e = t[2].trim();
|
|
716
590
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
717
591
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
718
|
-
let t =
|
|
592
|
+
let t = I(e.slice(0, -1), "\\");
|
|
719
593
|
if ((e.length - t.length) % 2 == 0) return;
|
|
720
594
|
} else {
|
|
721
|
-
let e =
|
|
595
|
+
let e = qe(t[2], "()");
|
|
722
596
|
if (e === -2) return;
|
|
723
597
|
if (e > -1) {
|
|
724
598
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -730,7 +604,7 @@ ${c}` : c;
|
|
|
730
604
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
731
605
|
e && (n = e[1], r = e[3]);
|
|
732
606
|
} 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)),
|
|
607
|
+
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
608
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
735
609
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
736
610
|
}, t[0], this.lexer, this.rules);
|
|
@@ -748,7 +622,7 @@ ${c}` : c;
|
|
|
748
622
|
text: e
|
|
749
623
|
};
|
|
750
624
|
}
|
|
751
|
-
return
|
|
625
|
+
return Je(n, e, n[0], this.lexer, this.rules);
|
|
752
626
|
}
|
|
753
627
|
}
|
|
754
628
|
emStrong(e, t, n = "") {
|
|
@@ -867,29 +741,29 @@ ${c}` : c;
|
|
|
867
741
|
};
|
|
868
742
|
}
|
|
869
743
|
}
|
|
870
|
-
},
|
|
744
|
+
}, R = class e {
|
|
871
745
|
tokens;
|
|
872
746
|
options;
|
|
873
747
|
state;
|
|
874
748
|
tokenizer;
|
|
875
749
|
inlineQueue;
|
|
876
750
|
constructor(e) {
|
|
877
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
751
|
+
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
752
|
inLink: !1,
|
|
879
753
|
inRawBlock: !1,
|
|
880
754
|
top: !0
|
|
881
755
|
};
|
|
882
756
|
let t = {
|
|
883
|
-
other:
|
|
884
|
-
block:
|
|
885
|
-
inline:
|
|
757
|
+
other: b,
|
|
758
|
+
block: N.normal,
|
|
759
|
+
inline: P.normal
|
|
886
760
|
};
|
|
887
|
-
this.options.pedantic ? (t.block =
|
|
761
|
+
this.options.pedantic ? (t.block = N.pedantic, t.inline = P.pedantic) : this.options.gfm && (t.block = N.gfm, this.options.breaks ? t.inline = P.breaks : t.inline = P.gfm), this.tokenizer.rules = t;
|
|
888
762
|
}
|
|
889
763
|
static get rules() {
|
|
890
764
|
return {
|
|
891
|
-
block:
|
|
892
|
-
inline:
|
|
765
|
+
block: N,
|
|
766
|
+
inline: P
|
|
893
767
|
};
|
|
894
768
|
}
|
|
895
769
|
static lex(t, n) {
|
|
@@ -899,7 +773,7 @@ ${c}` : c;
|
|
|
899
773
|
return new e(n).inlineTokens(t);
|
|
900
774
|
}
|
|
901
775
|
lex(e) {
|
|
902
|
-
e = e.replace(
|
|
776
|
+
e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
903
777
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
904
778
|
let t = this.inlineQueue[e];
|
|
905
779
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -907,7 +781,7 @@ ${c}` : c;
|
|
|
907
781
|
return this.inlineQueue = [], this.tokens;
|
|
908
782
|
}
|
|
909
783
|
blockTokens(e, t = [], n = !1) {
|
|
910
|
-
for (this.options.pedantic && (e = e.replace(
|
|
784
|
+
for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
|
|
911
785
|
let r;
|
|
912
786
|
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
787
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -1076,18 +950,18 @@ ${c}` : c;
|
|
|
1076
950
|
}
|
|
1077
951
|
return t;
|
|
1078
952
|
}
|
|
1079
|
-
},
|
|
953
|
+
}, z = class {
|
|
1080
954
|
options;
|
|
1081
955
|
parser;
|
|
1082
956
|
constructor(e) {
|
|
1083
|
-
this.options = e ||
|
|
957
|
+
this.options = e || _;
|
|
1084
958
|
}
|
|
1085
959
|
space(e) {
|
|
1086
960
|
return "";
|
|
1087
961
|
}
|
|
1088
962
|
code({ text: e, lang: t, escaped: n }) {
|
|
1089
|
-
let r = (t || "").match(
|
|
1090
|
-
return r ? "<pre><code class=\"language-" +
|
|
963
|
+
let r = (t || "").match(b.notSpaceStart)?.[0], i = e.replace(b.endingNewline, "") + "\n";
|
|
964
|
+
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
965
|
}
|
|
1092
966
|
blockquote({ tokens: e }) {
|
|
1093
967
|
return `<blockquote>
|
|
@@ -1120,7 +994,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
1120
994
|
let t = "";
|
|
1121
995
|
if (e.task) {
|
|
1122
996
|
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 + " " +
|
|
997
|
+
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
998
|
type: "text",
|
|
1125
999
|
raw: n + " ",
|
|
1126
1000
|
text: n + " ",
|
|
@@ -1167,7 +1041,7 @@ ${e}</tr>
|
|
|
1167
1041
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1168
1042
|
}
|
|
1169
1043
|
codespan({ text: e }) {
|
|
1170
|
-
return `<code>${
|
|
1044
|
+
return `<code>${F(e, !0)}</code>`;
|
|
1171
1045
|
}
|
|
1172
1046
|
br(e) {
|
|
1173
1047
|
return "<br>";
|
|
@@ -1176,24 +1050,24 @@ ${e}</tr>
|
|
|
1176
1050
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1177
1051
|
}
|
|
1178
1052
|
link({ href: e, title: t, tokens: n }) {
|
|
1179
|
-
let r = this.parser.parseInline(n), i =
|
|
1053
|
+
let r = this.parser.parseInline(n), i = Ge(e);
|
|
1180
1054
|
if (i === null) return r;
|
|
1181
1055
|
e = i;
|
|
1182
1056
|
let a = "<a href=\"" + e + "\"";
|
|
1183
|
-
return t && (a += " title=\"" +
|
|
1057
|
+
return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
|
|
1184
1058
|
}
|
|
1185
1059
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1186
1060
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1187
|
-
let i =
|
|
1188
|
-
if (i === null) return
|
|
1061
|
+
let i = Ge(e);
|
|
1062
|
+
if (i === null) return F(n);
|
|
1189
1063
|
e = i;
|
|
1190
1064
|
let a = `<img src="${e}" alt="${n}"`;
|
|
1191
|
-
return t && (a += ` title="${
|
|
1065
|
+
return t && (a += ` title="${F(t)}"`), a += ">", a;
|
|
1192
1066
|
}
|
|
1193
1067
|
text(e) {
|
|
1194
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
1068
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
|
|
1195
1069
|
}
|
|
1196
|
-
},
|
|
1070
|
+
}, B = class {
|
|
1197
1071
|
strong({ text: e }) {
|
|
1198
1072
|
return e;
|
|
1199
1073
|
}
|
|
@@ -1221,12 +1095,12 @@ ${e}</tr>
|
|
|
1221
1095
|
br() {
|
|
1222
1096
|
return "";
|
|
1223
1097
|
}
|
|
1224
|
-
},
|
|
1098
|
+
}, V = class e {
|
|
1225
1099
|
options;
|
|
1226
1100
|
renderer;
|
|
1227
1101
|
textRenderer;
|
|
1228
1102
|
constructor(e) {
|
|
1229
|
-
this.options = e ||
|
|
1103
|
+
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
1104
|
}
|
|
1231
1105
|
static parse(t, n) {
|
|
1232
1106
|
return new e(n).parse(t);
|
|
@@ -1377,11 +1251,11 @@ ${e}</tr>
|
|
|
1377
1251
|
}
|
|
1378
1252
|
return n;
|
|
1379
1253
|
}
|
|
1380
|
-
},
|
|
1254
|
+
}, H = class {
|
|
1381
1255
|
options;
|
|
1382
1256
|
block;
|
|
1383
1257
|
constructor(e) {
|
|
1384
|
-
this.options = e ||
|
|
1258
|
+
this.options = e || _;
|
|
1385
1259
|
}
|
|
1386
1260
|
static passThroughHooks = new Set([
|
|
1387
1261
|
"preprocess",
|
|
@@ -1407,22 +1281,22 @@ ${e}</tr>
|
|
|
1407
1281
|
return e;
|
|
1408
1282
|
}
|
|
1409
1283
|
provideLexer() {
|
|
1410
|
-
return this.block ?
|
|
1284
|
+
return this.block ? R.lex : R.lexInline;
|
|
1411
1285
|
}
|
|
1412
1286
|
provideParser() {
|
|
1413
|
-
return this.block ?
|
|
1287
|
+
return this.block ? V.parse : V.parseInline;
|
|
1414
1288
|
}
|
|
1415
|
-
},
|
|
1416
|
-
defaults =
|
|
1289
|
+
}, U = new class {
|
|
1290
|
+
defaults = g();
|
|
1417
1291
|
options = this.setOptions;
|
|
1418
1292
|
parse = this.parseMarkdown(!0);
|
|
1419
1293
|
parseInline = this.parseMarkdown(!1);
|
|
1420
|
-
Parser =
|
|
1421
|
-
Renderer =
|
|
1422
|
-
TextRenderer =
|
|
1423
|
-
Lexer =
|
|
1424
|
-
Tokenizer =
|
|
1425
|
-
Hooks =
|
|
1294
|
+
Parser = V;
|
|
1295
|
+
Renderer = z;
|
|
1296
|
+
TextRenderer = B;
|
|
1297
|
+
Lexer = R;
|
|
1298
|
+
Tokenizer = L;
|
|
1299
|
+
Hooks = H;
|
|
1426
1300
|
constructor(...e) {
|
|
1427
1301
|
this.use(...e);
|
|
1428
1302
|
}
|
|
@@ -1473,7 +1347,7 @@ ${e}</tr>
|
|
|
1473
1347
|
}
|
|
1474
1348
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
1475
1349
|
}), n.extensions = t), e.renderer) {
|
|
1476
|
-
let t = this.defaults.renderer || new
|
|
1350
|
+
let t = this.defaults.renderer || new z(this.defaults);
|
|
1477
1351
|
for (let n in e.renderer) {
|
|
1478
1352
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
1479
1353
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -1486,7 +1360,7 @@ ${e}</tr>
|
|
|
1486
1360
|
n.renderer = t;
|
|
1487
1361
|
}
|
|
1488
1362
|
if (e.tokenizer) {
|
|
1489
|
-
let t = this.defaults.tokenizer || new
|
|
1363
|
+
let t = this.defaults.tokenizer || new L(this.defaults);
|
|
1490
1364
|
for (let n in e.tokenizer) {
|
|
1491
1365
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
1492
1366
|
if ([
|
|
@@ -1503,13 +1377,13 @@ ${e}</tr>
|
|
|
1503
1377
|
n.tokenizer = t;
|
|
1504
1378
|
}
|
|
1505
1379
|
if (e.hooks) {
|
|
1506
|
-
let t = this.defaults.hooks || new
|
|
1380
|
+
let t = this.defaults.hooks || new H();
|
|
1507
1381
|
for (let n in e.hooks) {
|
|
1508
1382
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
1509
1383
|
if (["options", "block"].includes(n)) continue;
|
|
1510
1384
|
let r = n, i = e.hooks[r], a = t[r];
|
|
1511
|
-
|
|
1512
|
-
if (this.defaults.async &&
|
|
1385
|
+
H.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
1386
|
+
if (this.defaults.async && H.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
|
|
1513
1387
|
let r = i.call(t, e);
|
|
1514
1388
|
return a.call(t, r);
|
|
1515
1389
|
} : t[r] = (...e) => {
|
|
@@ -1539,10 +1413,10 @@ ${e}</tr>
|
|
|
1539
1413
|
}, this;
|
|
1540
1414
|
}
|
|
1541
1415
|
lexer(e, t) {
|
|
1542
|
-
return
|
|
1416
|
+
return R.lex(e, t ?? this.defaults);
|
|
1543
1417
|
}
|
|
1544
1418
|
parser(e, t) {
|
|
1545
|
-
return
|
|
1419
|
+
return V.parse(e, t ?? this.defaults);
|
|
1546
1420
|
}
|
|
1547
1421
|
parseMarkdown(e) {
|
|
1548
1422
|
return (t, n) => {
|
|
@@ -1554,7 +1428,7 @@ ${e}</tr>
|
|
|
1554
1428
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
1555
1429
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
1556
1430
|
i.hooks && (i.hooks.options = i, i.hooks.block = e);
|
|
1557
|
-
let o = i.hooks ? i.hooks.provideLexer() : e ?
|
|
1431
|
+
let o = i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline;
|
|
1558
1432
|
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
1433
|
try {
|
|
1560
1434
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
@@ -1570,7 +1444,7 @@ ${e}</tr>
|
|
|
1570
1444
|
onError(e, t) {
|
|
1571
1445
|
return (n) => {
|
|
1572
1446
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
1573
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
1447
|
+
let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
|
|
1574
1448
|
return t ? Promise.resolve(e) : e;
|
|
1575
1449
|
}
|
|
1576
1450
|
if (t) return Promise.reject(n);
|
|
@@ -1578,19 +1452,19 @@ ${e}</tr>
|
|
|
1578
1452
|
};
|
|
1579
1453
|
}
|
|
1580
1454
|
}();
|
|
1581
|
-
function
|
|
1582
|
-
return
|
|
1455
|
+
function W(e, t) {
|
|
1456
|
+
return U.parse(e, t);
|
|
1583
1457
|
}
|
|
1584
|
-
|
|
1585
|
-
return
|
|
1586
|
-
},
|
|
1587
|
-
return
|
|
1588
|
-
},
|
|
1589
|
-
return
|
|
1590
|
-
},
|
|
1458
|
+
W.options = W.setOptions = function(e) {
|
|
1459
|
+
return U.setOptions(e), W.defaults = U.defaults, te(W.defaults), W;
|
|
1460
|
+
}, W.getDefaults = g, W.defaults = _, W.use = function(...e) {
|
|
1461
|
+
return U.use(...e), W.defaults = U.defaults, te(W.defaults), W;
|
|
1462
|
+
}, W.walkTokens = function(e, t) {
|
|
1463
|
+
return U.walkTokens(e, t);
|
|
1464
|
+
}, 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
1465
|
//#endregion
|
|
1592
1466
|
//#region node_modules/ts-dedent/esm/index.js
|
|
1593
|
-
function
|
|
1467
|
+
function Xe(e) {
|
|
1594
1468
|
var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
|
|
1595
1469
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
1596
1470
|
var r = n.reduce(function(e, t) {
|
|
@@ -1615,119 +1489,203 @@ function pt(e) {
|
|
|
1615
1489
|
}), a;
|
|
1616
1490
|
}
|
|
1617
1491
|
//#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
|
-
|
|
1492
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GMAD6QVW.mjs
|
|
1493
|
+
var G = typeof performance < "u" && typeof performance.now == "function", K = /* @__PURE__ */ l(() => G ? performance.now() : 0, "now"), q = "🧜 ", Ze = "Mermaid render", Qe = "Mermaid", $e = {
|
|
1494
|
+
parse: "tertiary",
|
|
1495
|
+
prepare: "secondary",
|
|
1496
|
+
measure: "primary",
|
|
1497
|
+
layout: "primary-dark",
|
|
1498
|
+
layoutCore: "error",
|
|
1499
|
+
draw: "primary-light",
|
|
1500
|
+
paint: "secondary-dark",
|
|
1501
|
+
serialize: "tertiary-dark",
|
|
1502
|
+
render: "primary-light"
|
|
1503
|
+
};
|
|
1504
|
+
(class {
|
|
1505
|
+
constructor() {
|
|
1506
|
+
this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
|
|
1507
|
+
}
|
|
1508
|
+
static {
|
|
1509
|
+
l(this, "Profiler");
|
|
1510
|
+
}
|
|
1511
|
+
enable() {
|
|
1512
|
+
return this.enabled = !0, this;
|
|
1513
|
+
}
|
|
1514
|
+
disable() {
|
|
1515
|
+
return this.enabled = !1, this;
|
|
1516
|
+
}
|
|
1517
|
+
start(e) {
|
|
1518
|
+
this.enabled && (this.roots = [], this.stack = [], this.buckets = {}, this.begin(e));
|
|
1519
|
+
}
|
|
1520
|
+
tickSync(e, t) {
|
|
1521
|
+
if (!this.enabled) return t();
|
|
1522
|
+
let n = K();
|
|
1639
1523
|
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}`);
|
|
1524
|
+
return t();
|
|
1525
|
+
} finally {
|
|
1526
|
+
this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
|
|
1646
1527
|
}
|
|
1647
1528
|
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1529
|
+
async tick(e, t) {
|
|
1530
|
+
if (!this.enabled) return t();
|
|
1531
|
+
let n = K();
|
|
1532
|
+
try {
|
|
1533
|
+
return await t();
|
|
1534
|
+
} finally {
|
|
1535
|
+
this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
|
|
1536
|
+
}
|
|
1656
1537
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1538
|
+
stop() {
|
|
1539
|
+
if (!this.enabled) return;
|
|
1540
|
+
for (; this.stack.length > 0;) this.end();
|
|
1541
|
+
let e = this.roots.at(-1), t = this.runLabel ?? e?.name;
|
|
1542
|
+
return e && (this.records.push({
|
|
1543
|
+
label: t ?? e.name,
|
|
1544
|
+
tree: e,
|
|
1545
|
+
buckets: { ...this.buckets }
|
|
1546
|
+
}), 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;
|
|
1547
|
+
}
|
|
1548
|
+
begin(e) {
|
|
1549
|
+
if (!this.enabled) return;
|
|
1550
|
+
let t = {
|
|
1551
|
+
name: e,
|
|
1552
|
+
start: K(),
|
|
1553
|
+
duration: -1,
|
|
1554
|
+
children: []
|
|
1555
|
+
}, n = this.stack.at(-1);
|
|
1556
|
+
if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), G && typeof performance.mark == "function") try {
|
|
1557
|
+
performance.mark(`${q}${e} \u25B6`);
|
|
1558
|
+
} catch {}
|
|
1559
|
+
}
|
|
1560
|
+
end() {
|
|
1561
|
+
if (!this.enabled) return;
|
|
1562
|
+
let e = this.stack.pop();
|
|
1563
|
+
if (!e) return;
|
|
1564
|
+
let t = K();
|
|
1565
|
+
if (e.duration = t - e.start, G && typeof performance.measure == "function") try {
|
|
1566
|
+
performance.measure(`${q}${e.name}`, {
|
|
1567
|
+
start: e.start,
|
|
1568
|
+
end: t,
|
|
1569
|
+
detail: { devtools: {
|
|
1570
|
+
dataType: "track-entry",
|
|
1571
|
+
track: Ze,
|
|
1572
|
+
trackGroup: Qe,
|
|
1573
|
+
color: $e[e.name] ?? "primary",
|
|
1574
|
+
tooltipText: `${e.name} \u2014 ${e.duration.toFixed(1)} ms`
|
|
1575
|
+
} }
|
|
1576
|
+
});
|
|
1577
|
+
} catch {}
|
|
1578
|
+
}
|
|
1579
|
+
async span(e, t) {
|
|
1580
|
+
if (!this.enabled) return t();
|
|
1581
|
+
this.begin(e);
|
|
1582
|
+
try {
|
|
1583
|
+
return await t();
|
|
1584
|
+
} finally {
|
|
1585
|
+
this.end();
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
report() {
|
|
1589
|
+
return this.records.at(-1)?.tree ?? this.roots.at(-1);
|
|
1590
|
+
}
|
|
1591
|
+
clear() {
|
|
1592
|
+
this.records.length = 0, this.roots = [], this.stack = [], this.runLabel = void 0;
|
|
1593
|
+
}
|
|
1594
|
+
reset() {
|
|
1595
|
+
this.roots = [], this.stack = [];
|
|
1596
|
+
}
|
|
1597
|
+
printSummary(e = this.report(), t) {
|
|
1598
|
+
if (!e) return;
|
|
1599
|
+
let n = e.duration, r = t && t !== e.name ? `${e.name} [${t}]` : e.name, i = ["ms % phase"], a = /* @__PURE__ */ l((e, t) => {
|
|
1600
|
+
let r = " ".repeat(t), o = e.duration.toFixed(1).padStart(8), s = n > 0 ? `${(e.duration / n * 100).toFixed(0).padStart(3)}%` : " -";
|
|
1601
|
+
i.push(`${o} ${s} ${r}${e.name}`);
|
|
1602
|
+
for (let n of e.children) a(n, t + 1);
|
|
1603
|
+
if (e.children.length > 0) {
|
|
1604
|
+
let t = e.children.reduce((e, t) => e + t.duration, 0), n = e.duration - t;
|
|
1605
|
+
if (n > .5) {
|
|
1606
|
+
let e = n.toFixed(1).padStart(8);
|
|
1607
|
+
i.push(`${e} ${r} (self)`);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}, "walk");
|
|
1611
|
+
a(e, 0);
|
|
1612
|
+
let o = Object.keys(this.buckets);
|
|
1613
|
+
if (o.length > 0) {
|
|
1614
|
+
i.push("—— buckets (summed) ——");
|
|
1615
|
+
for (let e of o) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
|
|
1616
|
+
}
|
|
1617
|
+
console.log(`${q}mermaid render profile \xB7 ${r}
|
|
1618
|
+
${i.join("\n")}`);
|
|
1619
|
+
}
|
|
1620
|
+
}), globalThis.injected ??= {
|
|
1621
|
+
includeLargeFeatures: !0,
|
|
1622
|
+
profiling: !1,
|
|
1623
|
+
version: "0.0.0"
|
|
1624
|
+
};
|
|
1625
|
+
var et = h.default.extend({ raf(e) {
|
|
1626
|
+
typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
|
|
1627
|
+
} }).extend(ee.default);
|
|
1628
|
+
function tt(e, { markdownAutoWrap: t }) {
|
|
1629
|
+
return Xe(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
1672
1630
|
}
|
|
1673
|
-
|
|
1674
|
-
function
|
|
1631
|
+
l(tt, "preprocessMarkdown");
|
|
1632
|
+
function nt(e) {
|
|
1675
1633
|
return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
|
|
1676
1634
|
content: e,
|
|
1677
1635
|
type: "normal"
|
|
1678
1636
|
})) ?? []);
|
|
1679
1637
|
}
|
|
1680
|
-
|
|
1681
|
-
function
|
|
1682
|
-
let
|
|
1683
|
-
function
|
|
1638
|
+
l(nt, "nonMarkdownToLines");
|
|
1639
|
+
function rt(e, t = {}) {
|
|
1640
|
+
let n = tt(e, t), r = W.lexer(n), i = [[]], a = 0;
|
|
1641
|
+
function o(e, t = "normal") {
|
|
1684
1642
|
e.type === "text" ? e.text.split("\n").forEach((e, n) => {
|
|
1685
|
-
n !== 0 && (
|
|
1686
|
-
e = e.replace(/'/g, "'"), e && a
|
|
1643
|
+
n !== 0 && (a++, i.push([])), e.split(" ").forEach((e) => {
|
|
1644
|
+
e = e.replace(/'/g, "'"), e && i[a].push({
|
|
1687
1645
|
content: e,
|
|
1688
1646
|
type: t
|
|
1689
1647
|
});
|
|
1690
1648
|
});
|
|
1691
1649
|
}) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
|
|
1692
|
-
|
|
1693
|
-
}) : e.type === "html" && a
|
|
1650
|
+
o(t, e.type);
|
|
1651
|
+
}) : e.type === "html" && i[a].push({
|
|
1694
1652
|
content: e.text,
|
|
1695
1653
|
type: "normal"
|
|
1696
1654
|
});
|
|
1697
1655
|
}
|
|
1698
|
-
return
|
|
1656
|
+
return l(o, "processNode"), r.forEach((e) => {
|
|
1699
1657
|
e.type === "paragraph" ? e.tokens?.forEach((e) => {
|
|
1700
|
-
|
|
1701
|
-
}) : e.type === "html" ? a
|
|
1658
|
+
o(e);
|
|
1659
|
+
}) : e.type === "html" ? i[a].push({
|
|
1702
1660
|
content: e.text,
|
|
1703
1661
|
type: "normal"
|
|
1704
|
-
}) : a
|
|
1662
|
+
}) : i[a].push({
|
|
1705
1663
|
content: e.raw,
|
|
1706
1664
|
type: "normal"
|
|
1707
1665
|
});
|
|
1708
|
-
}),
|
|
1666
|
+
}), i;
|
|
1709
1667
|
}
|
|
1710
|
-
|
|
1711
|
-
function
|
|
1668
|
+
l(rt, "markdownToLines");
|
|
1669
|
+
function it(e) {
|
|
1712
1670
|
return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
|
|
1713
1671
|
}
|
|
1714
|
-
|
|
1715
|
-
function
|
|
1716
|
-
let
|
|
1717
|
-
function
|
|
1718
|
-
return
|
|
1672
|
+
l(it, "nonMarkdownToHTML");
|
|
1673
|
+
function at(e, { markdownAutoWrap: n } = {}) {
|
|
1674
|
+
let r = W.lexer(e);
|
|
1675
|
+
function i(e) {
|
|
1676
|
+
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
1677
|
}
|
|
1720
|
-
return
|
|
1678
|
+
return l(i, "output"), r.map(i).join("");
|
|
1721
1679
|
}
|
|
1722
|
-
|
|
1723
|
-
function
|
|
1680
|
+
l(at, "markdownToHTML");
|
|
1681
|
+
function ot(e) {
|
|
1724
1682
|
return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
|
|
1725
1683
|
}
|
|
1726
|
-
|
|
1727
|
-
function
|
|
1728
|
-
return J(e, [],
|
|
1684
|
+
l(ot, "splitTextToChars");
|
|
1685
|
+
function st(e, t) {
|
|
1686
|
+
return J(e, [], ot(t.content), t.type);
|
|
1729
1687
|
}
|
|
1730
|
-
|
|
1688
|
+
l(st, "splitWordToFitWidth");
|
|
1731
1689
|
function J(e, t, n, r) {
|
|
1732
1690
|
if (n.length === 0) return [{
|
|
1733
1691
|
content: t.join(""),
|
|
@@ -1748,12 +1706,12 @@ function J(e, t, n, r) {
|
|
|
1748
1706
|
type: r
|
|
1749
1707
|
}]);
|
|
1750
1708
|
}
|
|
1751
|
-
|
|
1752
|
-
function
|
|
1709
|
+
l(J, "splitWordToFitWidthRecursion");
|
|
1710
|
+
function ct(e, t) {
|
|
1753
1711
|
if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
|
|
1754
1712
|
return Y(e, t);
|
|
1755
1713
|
}
|
|
1756
|
-
|
|
1714
|
+
l(ct, "splitLineToFitWidth");
|
|
1757
1715
|
function Y(e, t, n = [], r = []) {
|
|
1758
1716
|
if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
|
|
1759
1717
|
let i = "";
|
|
@@ -1768,39 +1726,37 @@ function Y(e, t, n = [], r = []) {
|
|
|
1768
1726
|
}), o.push(a), t(o)) return Y(e, t, n, o);
|
|
1769
1727
|
if (r.length > 0) n.push(r), e.unshift(a);
|
|
1770
1728
|
else if (a.content) {
|
|
1771
|
-
let [r, i] =
|
|
1729
|
+
let [r, i] = st(t, a);
|
|
1772
1730
|
n.push([r]), i.content && e.unshift(i);
|
|
1773
1731
|
}
|
|
1774
1732
|
return Y(e, t, n);
|
|
1775
1733
|
}
|
|
1776
|
-
|
|
1734
|
+
l(Y, "splitLineToFitWidthRecursion");
|
|
1777
1735
|
function X(e, t) {
|
|
1778
1736
|
t && e.attr("style", t);
|
|
1779
1737
|
}
|
|
1780
|
-
|
|
1781
|
-
var
|
|
1782
|
-
async function
|
|
1738
|
+
l(X, "applyStyle");
|
|
1739
|
+
var lt = 16384;
|
|
1740
|
+
async function ut(e, t, n, r, l = !1, u = o()) {
|
|
1783
1741
|
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();
|
|
1742
|
+
d.attr("width", `${Math.min(10 * n, lt)}px`), d.attr("height", `${Math.min(10 * n, lt)}px`);
|
|
1743
|
+
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");
|
|
1744
|
+
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
1745
|
}
|
|
1790
|
-
|
|
1746
|
+
l(ut, "addHtmlSpan");
|
|
1791
1747
|
function Z(e, t, n, r = !1) {
|
|
1792
1748
|
let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
|
|
1793
1749
|
return r && i.attr("text-anchor", "middle"), i;
|
|
1794
1750
|
}
|
|
1795
|
-
|
|
1796
|
-
function
|
|
1751
|
+
l(Z, "createTspan");
|
|
1752
|
+
function dt(e, t, n) {
|
|
1797
1753
|
let r = e.append("text"), i = Z(r, 1, t);
|
|
1798
1754
|
$(i, n);
|
|
1799
1755
|
let a = i.node().getComputedTextLength();
|
|
1800
1756
|
return r.remove(), a;
|
|
1801
1757
|
}
|
|
1802
|
-
|
|
1803
|
-
function
|
|
1758
|
+
l(dt, "computeWidthOfText");
|
|
1759
|
+
function ft(e, t, n) {
|
|
1804
1760
|
let r = e.append("text"), i = Z(r, 1, t);
|
|
1805
1761
|
$(i, [{
|
|
1806
1762
|
content: n,
|
|
@@ -1809,21 +1765,21 @@ function At(e, t, n) {
|
|
|
1809
1765
|
let a = i.node()?.getBoundingClientRect();
|
|
1810
1766
|
return a && r.remove(), a;
|
|
1811
1767
|
}
|
|
1812
|
-
|
|
1813
|
-
function
|
|
1814
|
-
let
|
|
1815
|
-
|
|
1768
|
+
l(ft, "computeDimensionOfText");
|
|
1769
|
+
function pt(e, t, n, r = !1, i = !1) {
|
|
1770
|
+
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");
|
|
1771
|
+
i && c.attr("text-anchor", "middle");
|
|
1816
1772
|
let u = 0;
|
|
1817
|
-
for (let
|
|
1818
|
-
let
|
|
1819
|
-
for (let e of
|
|
1820
|
-
}
|
|
1821
|
-
if (
|
|
1822
|
-
let e =
|
|
1823
|
-
return
|
|
1824
|
-
} else return
|
|
1773
|
+
for (let t of n) {
|
|
1774
|
+
let n = /* @__PURE__ */ l((t) => dt(o, a, t) <= e, "checkWidth"), r = n(t) ? [t] : ct(t, n);
|
|
1775
|
+
for (let e of r) $(Z(c, u, a, i), e), u++;
|
|
1776
|
+
}
|
|
1777
|
+
if (r) {
|
|
1778
|
+
let e = c.node().getBBox();
|
|
1779
|
+
return s.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), o.node();
|
|
1780
|
+
} else return c.node();
|
|
1825
1781
|
}
|
|
1826
|
-
|
|
1782
|
+
l(pt, "createFormattedText");
|
|
1827
1783
|
function Q(e) {
|
|
1828
1784
|
return e.replace(/&(amp|lt|gt);/g, (e, t) => {
|
|
1829
1785
|
switch (t) {
|
|
@@ -1834,46 +1790,46 @@ function Q(e) {
|
|
|
1834
1790
|
}
|
|
1835
1791
|
});
|
|
1836
1792
|
}
|
|
1837
|
-
|
|
1793
|
+
l(Q, "decodeHTMLEntities");
|
|
1838
1794
|
function $(e, t) {
|
|
1839
1795
|
e.text(""), t.forEach((t, n) => {
|
|
1840
1796
|
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
1797
|
n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
|
|
1842
1798
|
});
|
|
1843
1799
|
}
|
|
1844
|
-
|
|
1845
|
-
async function
|
|
1800
|
+
l($, "updateTextContentAndStyles");
|
|
1801
|
+
async function mt(e, t = {}) {
|
|
1846
1802
|
let n = [];
|
|
1847
1803
|
e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
|
|
1848
1804
|
let n = `${r}:${i}`;
|
|
1849
|
-
return await
|
|
1805
|
+
return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${c(e, t).replace(":", " ")}'></i>`;
|
|
1850
1806
|
})()), e));
|
|
1851
1807
|
let r = await Promise.all(n);
|
|
1852
1808
|
return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
|
|
1853
1809
|
}
|
|
1854
|
-
|
|
1855
|
-
var
|
|
1856
|
-
if (
|
|
1857
|
-
let
|
|
1858
|
-
return await
|
|
1810
|
+
l(mt, "replaceIconSubstring");
|
|
1811
|
+
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) => {
|
|
1812
|
+
if (t.debug("XYZ createText", r, a, o, s, c, d, "addSvgBackground: ", p), c) {
|
|
1813
|
+
let t = await mt(u(l ? at(r, m) : it(r)), m), n = r.replace(/\\\\/g, "\\");
|
|
1814
|
+
return await ut(e, {
|
|
1859
1815
|
isNode: d,
|
|
1860
|
-
label: r
|
|
1816
|
+
label: i(r) ? n : t,
|
|
1861
1817
|
labelStyle: a.replace("fill:", "color:")
|
|
1862
1818
|
}, f, s, p, m);
|
|
1863
1819
|
} else {
|
|
1864
|
-
let
|
|
1820
|
+
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
1821
|
if (d) {
|
|
1866
1822
|
/stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
|
|
1867
1823
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1868
|
-
n(
|
|
1824
|
+
n(i).attr("style", e);
|
|
1869
1825
|
} else {
|
|
1870
1826
|
let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
1871
|
-
n(
|
|
1827
|
+
n(i).select("rect").attr("style", e.replace(/background:/g, "fill:"));
|
|
1872
1828
|
let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1873
|
-
n(
|
|
1829
|
+
n(i).select("text").attr("style", t);
|
|
1874
1830
|
}
|
|
1875
|
-
return o ? n(
|
|
1831
|
+
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
1832
|
}
|
|
1877
1833
|
}, "createText");
|
|
1878
1834
|
//#endregion
|
|
1879
|
-
export {
|
|
1835
|
+
export { Xe as i, ht as n, et as r, ft as t };
|