@jackuait/blok 0.10.0-beta.6 → 0.10.0-beta.7
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/codemod/migrate-editorjs-to-blok.js +0 -2
- package/codemod/test.js +0 -6
- package/dist/blok.mjs +2 -2
- package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
- package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
- package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
- package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
- package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
- package/dist/chunks/array-Cyf-61SV.mjs +6 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
- package/dist/chunks/{blok-BdlR_lX6.mjs → blok-CiLRmoHI.mjs} +850 -855
- package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
- package/dist/chunks/channel-DPcniO2B.mjs +5 -0
- package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
- package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
- package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
- package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
- package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
- package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
- package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
- package/dist/chunks/{chunk-Byubey_H.mjs → chunk-D6kmoKXy.mjs} +5 -5
- package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
- package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
- package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
- package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
- package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
- package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
- package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
- package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
- package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
- package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
- package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
- package/dist/chunks/{constants-Cp8O0UfP.mjs → constants-DFS8l39Y.mjs} +49 -50
- package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
- package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
- package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
- package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
- package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
- package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
- package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
- package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
- package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
- package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
- package/dist/chunks/{i18next-loader-oDO9ZKUV.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
- package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
- package/dist/chunks/init-JlKGZtuT.mjs +15 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
- package/dist/chunks/{katex-NjLaA6AJ.mjs → katex-JyOgX6MW.mjs} +1 -1
- package/dist/chunks/{lightweight-i18n-DTySD6f6.mjs → lightweight-i18n-Cvv8CWh4.mjs} +13 -0
- package/dist/chunks/line-B9xUUA7k.mjs +34 -0
- package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
- package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
- package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
- package/dist/{messages-B4lhNMKm2.mjs → chunks/messages--YKhFEDE.mjs} +28 -3
- package/dist/chunks/{messages-CF_PfacZ.mjs → messages-0Uwu1AMJ2.mjs} +26 -1
- package/dist/{messages-Bug6Du35.mjs → chunks/messages-1__0Ph4Q.mjs} +26 -1
- package/dist/chunks/{messages-CnQydQJd2.mjs → messages-4sm9Pb0C.mjs} +26 -1
- package/dist/chunks/{messages-BDXl53cy2.mjs → messages-4uxjtzKW.mjs} +26 -1
- package/dist/{messages-DQN1y6E9.mjs → chunks/messages-B-SwLgkQ.mjs} +28 -3
- package/dist/chunks/{messages-BlcRm2I3.mjs → messages-B1ylBxXQ.mjs} +26 -1
- package/dist/{messages-12_eyAo-.mjs → chunks/messages-B5m3dhKc.mjs} +26 -1
- package/dist/chunks/{messages-D8-N0FmU.mjs → messages-B6n2zDtv.mjs} +27 -2
- package/dist/chunks/{messages-BMq9k_lI.mjs → messages-BC9w4zAT.mjs} +26 -1
- package/dist/{messages-CsiGzUSP2.mjs → chunks/messages-BOj-7N3p.mjs} +26 -1
- package/dist/chunks/{messages-CvlMT1e62.mjs → messages-BRYHTS18.mjs} +26 -1
- package/dist/{messages-hrSlVSHp.mjs → chunks/messages-BSBbVjor.mjs} +33 -8
- package/dist/{messages-uCsQjz7M.mjs → chunks/messages-BUUkmUGc.mjs} +26 -1
- package/dist/chunks/{messages-DopbvJlg.mjs → messages-Bb3YEV2P.mjs} +31 -6
- package/dist/{messages-KqWQKmIu2.mjs → chunks/messages-Be_6YLzJ.mjs} +27 -2
- package/dist/chunks/{messages-BXn9Vzbx2.mjs → messages-BevRhv5d.mjs} +26 -1
- package/dist/chunks/{messages-DQ5ng0_t2.mjs → messages-Bhqr7Im2.mjs} +26 -1
- package/dist/{messages-B3Yhiycb2.mjs → chunks/messages-BpJFjSKa.mjs} +27 -2
- package/dist/chunks/{messages-BaoJwsEZ.mjs → messages-BqYlq_Bn.mjs} +26 -1
- package/dist/chunks/{messages-vN4T4r67.mjs → messages-BtAwCUfD.mjs} +26 -1
- package/dist/{messages-Cb3wXGnc.mjs → chunks/messages-Bthbp65G.mjs} +27 -2
- package/dist/{messages-x353UCBI.mjs → chunks/messages-BvHMZ8Pi2.mjs} +26 -1
- package/dist/{messages-BOE2mzCj2.mjs → chunks/messages-Bw1BE9jW.mjs} +26 -1
- package/dist/chunks/{messages-C5aCWL7B.mjs → messages-Bx6Wt285.mjs} +26 -1
- package/dist/{messages-C8f1I5EQ2.mjs → chunks/messages-BzslJRYv.mjs} +27 -2
- package/dist/chunks/{messages-CZ5Sbf8U.mjs → messages-C02M0Tpw.mjs} +26 -1
- package/dist/chunks/{messages-DN-194c32.mjs → messages-C1u3E9qg.mjs} +26 -1
- package/dist/chunks/{messages-DdmWzF5M.mjs → messages-C68WgSKk.mjs} +27 -2
- package/dist/chunks/{messages-Dgng6KN8.mjs → messages-C8w8JCP0.mjs} +28 -3
- package/dist/chunks/{messages-B5fKJXd6.mjs → messages-CFOZdSk4.mjs} +26 -1
- package/dist/chunks/{messages-5ArOv8cj.mjs → messages-CGOY79lr.mjs} +26 -1
- package/dist/{messages-mipkPgwQ2.mjs → chunks/messages-CGaSMZPu.mjs} +26 -1
- package/dist/{messages-Dq_v7slw2.mjs → chunks/messages-CJJgQ0BH.mjs} +26 -1
- package/dist/chunks/{messages-DUGEqDEG.mjs → messages-CTD6rtQj2.mjs} +26 -1
- package/dist/{messages-DIKCwGog.mjs → chunks/messages-CZymJML9.mjs} +30 -5
- package/dist/chunks/{messages-CcyIKgGU.mjs → messages-CfeFJbiv.mjs} +30 -5
- package/dist/chunks/{messages-BXSXk3oS2.mjs → messages-Cgatzu_z.mjs} +28 -3
- package/dist/{messages-CBPiFbEf2.mjs → chunks/messages-Ch2zBI602.mjs} +26 -1
- package/dist/chunks/{messages-yszqJukE.mjs → messages-CiAHsUfO.mjs} +26 -1
- package/dist/chunks/{messages-bmwto4UV.mjs → messages-Cuzq-tNW.mjs} +26 -1
- package/dist/{messages-JK9Okzsy2.mjs → chunks/messages-Cw4qiMwb.mjs} +26 -1
- package/dist/chunks/{messages-DSO2U-ul.mjs → messages-Cyh-mz40.mjs} +26 -1
- package/dist/{messages-DbZsJAff.mjs → chunks/messages-D-I2QO8H.mjs} +26 -1
- package/dist/chunks/{messages-BhcYsC_M2.mjs → messages-D0D2gruy.mjs} +26 -1
- package/dist/{messages-X80Nh0ib.mjs → chunks/messages-D1BKxfLD.mjs} +27 -2
- package/dist/chunks/{messages-CjVPwkVy.mjs → messages-D4eDs6R_.mjs} +26 -1
- package/dist/{messages-C5Uufygq.mjs → chunks/messages-D9Xr-hES.mjs} +26 -1
- package/dist/{messages-DkvQ-6HC2.mjs → chunks/messages-D9eJPHia.mjs} +28 -3
- package/dist/chunks/{messages-DRv4g-IA.mjs → messages-DBFWSzKY2.mjs} +26 -1
- package/dist/chunks/{messages-SSDr5fGF2.mjs → messages-DC0wu2S7.mjs} +26 -1
- package/dist/{messages-Bdk4ocMI.mjs → chunks/messages-DF9o19rG.mjs} +26 -1
- package/dist/chunks/{messages-DVKifYlq.mjs → messages-DFS_n986.mjs} +49 -24
- package/dist/{messages-CvvbLyTy2.mjs → chunks/messages-DGS4H30T.mjs} +26 -1
- package/dist/{messages-PvMdmlxI.mjs → chunks/messages-DKjddpzJ.mjs} +28 -3
- package/dist/chunks/{messages-DGD6BiGd.mjs → messages-DMvTdUXC.mjs} +28 -3
- package/dist/{messages-CD8K1g_t2.mjs → chunks/messages-DQUX-QYI2.mjs} +26 -1
- package/dist/chunks/{messages-CqgEz7C5.mjs → messages-DUigq8FO2.mjs} +26 -1
- package/dist/chunks/{messages-ByAqzAhB.mjs → messages-DY0FJdpH.mjs} +26 -1
- package/dist/{messages-DACg1XAu.mjs → chunks/messages-DfVXiqt-2.mjs} +26 -1
- package/dist/{messages-BYQ769S5.mjs → chunks/messages-DgZc9TJw.mjs} +26 -1
- package/dist/{messages-Dj79y02X.mjs → chunks/messages-QD4BCUDP.mjs} +26 -1
- package/dist/{messages-BeI2HORe2.mjs → chunks/messages-USmweex9.mjs} +26 -1
- package/dist/{messages-CEEzfqMO2.mjs → chunks/messages-a1JTi0Qm.mjs} +29 -4
- package/dist/chunks/{messages-Dz3UhEco2.mjs → messages-jcgCHPRn.mjs} +26 -1
- package/dist/{messages--cUQf9JX.mjs → chunks/messages-tnnqHpbd.mjs} +27 -2
- package/dist/chunks/{messages-DZwCufSb.mjs → messages-vzWKPLJO.mjs} +26 -1
- package/dist/chunks/{micromark-extension-math-CCEGWpdz.mjs → micromark-extension-math-Cz_ZZ_0Y.mjs} +1 -1
- package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
- package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
- package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
- package/dist/chunks/path-6nYPAvNb.mjs +85 -0
- package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
- package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
- package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
- package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
- package/dist/chunks/{tools-DGOsJbHH.mjs → tools-CSYsrnud.mjs} +2116 -1268
- package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
- package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
- package/dist/cli.mjs +1 -1
- package/dist/full.mjs +3 -3
- package/dist/locales.mjs +80 -67
- package/dist/markdown.mjs +2 -2
- package/dist/{chunks/messages-9l49jauY.mjs → messages-5jvKxQNu2.mjs} +26 -1
- package/dist/{messages-CkySRhtd2.mjs → messages-7QD-X6XT2.mjs} +26 -1
- package/dist/{chunks/messages-Btr121zI2.mjs → messages-96iaAUds2.mjs} +27 -2
- package/dist/{chunks/messages-BAP2OAQk.mjs → messages-B19o-Teb.mjs} +28 -3
- package/dist/{messages-DJU4YLij.mjs → messages-B1ZUQagA.mjs} +26 -1
- package/dist/{messages-Dg2CDXZi2.mjs → messages-B7ieAJBd2.mjs} +26 -1
- package/dist/{messages-CByBLxWk.mjs → messages-BECMxmfX.mjs} +26 -1
- package/dist/{messages-CwCEcbWG.mjs → messages-BIHc0KHY.mjs} +27 -2
- package/dist/{messages-D8WvwU42.mjs → messages-BIoeoik5.mjs} +26 -1
- package/dist/{messages-D38h5XlF.mjs → messages-BJeGJksD.mjs} +26 -1
- package/dist/{messages-Cd23UgLV2.mjs → messages-BRZX964b2.mjs} +27 -2
- package/dist/{chunks/messages-B9N__q552.mjs → messages-BTQPpoM42.mjs} +29 -4
- package/dist/{messages-CUzBNjnc.mjs → messages-BYNcD6uR.mjs} +26 -1
- package/dist/{messages-DjWfVYHS2.mjs → messages-BYmmMDrN2.mjs} +26 -1
- package/dist/{chunks/messages-DkTxBa1V.mjs → messages-BbYq1pk-.mjs} +26 -1
- package/dist/{chunks/messages-BHhbHLoq.mjs → messages-BiUGXvYr2.mjs} +26 -1
- package/dist/{messages-So3SHdIc2.mjs → messages-BiiongNz2.mjs} +26 -1
- package/dist/{chunks/messages-BxBID_0B.mjs → messages-Bm0Feca1.mjs} +30 -5
- package/dist/{messages-C2veeQpU.mjs → messages-BmAn22OX.mjs} +26 -1
- package/dist/{messages-KbYSpNrE.mjs → messages-Bq3F2Tp_.mjs} +26 -1
- package/dist/{chunks/messages-Dux1S0-D2.mjs → messages-BsycN_JI2.mjs} +26 -1
- package/dist/{messages-DRU_IgoW.mjs → messages-BwHs4cm1.mjs} +30 -5
- package/dist/{messages-Cv-DKlZd.mjs → messages-CJTy6JZt.mjs} +26 -1
- package/dist/{chunks/messages-D7n_wJK7.mjs → messages-CR_L_UtK.mjs} +26 -1
- package/dist/{messages-DnhEzmXJ2.mjs → messages-CSUHBs4c2.mjs} +26 -1
- package/dist/{messages-C_HmWyXc2.mjs → messages-CWIXvnDf2.mjs} +26 -1
- package/dist/{messages-KSxF8eib.mjs → messages-CcF4y-E4.mjs} +26 -1
- package/dist/{chunks/messages-CL3mCbi6.mjs → messages-Ce6KVEbT.mjs} +27 -2
- package/dist/{chunks/messages-C-jA6Rf7.mjs → messages-Ci0KqX-J.mjs} +33 -8
- package/dist/{chunks/messages-DMyRdafk2.mjs → messages-CjbnogEC.mjs} +26 -1
- package/dist/{chunks/messages-BlO_37l_.mjs → messages-CmB406HW.mjs} +28 -3
- package/dist/{messages-Cho2VTAX.mjs → messages-CqXtJTpU.mjs} +26 -1
- package/dist/{messages-CWEL1WDy2.mjs → messages-D0aw5_0k2.mjs} +28 -3
- package/dist/{messages-CgEDVri-2.mjs → messages-D8FQWulF2.mjs} +26 -1
- package/dist/{chunks/messages-B5aAzExz.mjs → messages-DBiVgUs2.mjs} +27 -2
- package/dist/{chunks/messages-DYizZHT2.mjs → messages-DIJlIqlQ2.mjs} +26 -1
- package/dist/{messages-BPL7riv-.mjs → messages-DLX_iBDJ.mjs} +26 -1
- package/dist/{messages-vptt-pVF.mjs → messages-DLlc9QPw.mjs} +26 -1
- package/dist/{chunks/messages-876bKyUj2.mjs → messages-DMr62KiO2.mjs} +26 -1
- package/dist/{chunks/messages-CgedvWCf.mjs → messages-DPA-mMWC2.mjs} +27 -2
- package/dist/{messages-vcoib5Ga.mjs → messages-DTh9a8mR.mjs} +26 -1
- package/dist/{chunks/messages-DgEGJECT.mjs → messages-DY4IqlhY.mjs} +26 -1
- package/dist/{chunks/messages-CdzF0Hvl.mjs → messages-DYTTu0O12.mjs} +26 -1
- package/dist/{messages-rbox5gSb2.mjs → messages-DbySKTKt2.mjs} +28 -3
- package/dist/{chunks/messages-BGCQCeWd.mjs → messages-Ddnj2iTG2.mjs} +26 -1
- package/dist/{chunks/messages-CNEJxD8q2.mjs → messages-DkLU_rWm.mjs} +26 -1
- package/dist/{chunks/messages-FYl9woii2.mjs → messages-Dl3Sv6Rq2.mjs} +27 -2
- package/dist/{messages-Clsh86WQ.mjs → messages-Dl5Y2-Ia.mjs} +49 -24
- package/dist/{chunks/messages-CKRJDX0K2.mjs → messages-DnG0ef8t2.mjs} +28 -3
- package/dist/{chunks/messages-CyxDkx8a.mjs → messages-DnGJD4TL.mjs} +26 -1
- package/dist/{chunks/messages-DnJHflSh.mjs → messages-Dnp9N6RU2.mjs} +26 -1
- package/dist/{chunks/messages-Jps5Tc77.mjs → messages-Dvn35ksS.mjs} +26 -1
- package/dist/{messages-ChTWmxS8.mjs → messages-Dw__BcTj.mjs} +26 -1
- package/dist/{messages-D7juvhHp.mjs → messages-Dy-Y_nEI.mjs} +26 -1
- package/dist/{messages-CNNcKuGH.mjs → messages-E_ZuzGDt.mjs} +26 -1
- package/dist/{chunks/messages-DJO0ERQT.mjs → messages-F2xRoY1w.mjs} +26 -1
- package/dist/{messages-DqJTZbwt.mjs → messages-Smt4GBbj.mjs} +31 -6
- package/dist/{chunks/messages-D8dKkyII2.mjs → messages-aMXpHt5X2.mjs} +26 -1
- package/dist/{chunks/messages-DWD0ry9x.mjs → messages-aWZH50vu2.mjs} +28 -3
- package/dist/{chunks/messages-BbfLRqLh2.mjs → messages-dv19AkyJ.mjs} +26 -1
- package/dist/{chunks/messages-Dw2rmKMi2.mjs → messages-hWwSRF-2.mjs} +26 -1
- package/dist/{messages-En8LDjUB.mjs → messages-j7o5rT9s.mjs} +26 -1
- package/dist/{chunks/messages-NJsvFwJj.mjs → messages-nUVjeh7K.mjs} +27 -2
- package/dist/{messages-Cg1CF4pw.mjs → messages-nlhESX9t.mjs} +26 -1
- package/dist/{messages-CSl0Wla62.mjs → messages-rk-A1Wa42.mjs} +28 -3
- package/dist/{messages-nOe1gJYu.mjs → messages-xh2eOLvs.mjs} +26 -1
- package/dist/{messages-B_sKqaeK.mjs → messages-ynAe7ewZ.mjs} +26 -1
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/dist/vendor.LICENSE.txt +3254 -297
- package/package.json +7 -2
- package/src/components/constants/data-attributes.ts +0 -2
- package/src/components/i18n/locales/am/messages.json +26 -1
- package/src/components/i18n/locales/ar/messages.json +26 -1
- package/src/components/i18n/locales/az/messages.json +26 -1
- package/src/components/i18n/locales/bg/messages.json +26 -1
- package/src/components/i18n/locales/bn/messages.json +26 -1
- package/src/components/i18n/locales/bs/messages.json +28 -3
- package/src/components/i18n/locales/cs/messages.json +30 -5
- package/src/components/i18n/locales/da/messages.json +33 -8
- package/src/components/i18n/locales/de/messages.json +31 -6
- package/src/components/i18n/locales/dv/messages.json +26 -1
- package/src/components/i18n/locales/el/messages.json +26 -1
- package/src/components/i18n/locales/en/messages.json +13 -0
- package/src/components/i18n/locales/es/messages.json +27 -2
- package/src/components/i18n/locales/et/messages.json +30 -5
- package/src/components/i18n/locales/fa/messages.json +26 -1
- package/src/components/i18n/locales/fi/messages.json +26 -1
- package/src/components/i18n/locales/fil/messages.json +49 -24
- package/src/components/i18n/locales/fr/messages.json +27 -2
- package/src/components/i18n/locales/gu/messages.json +26 -1
- package/src/components/i18n/locales/he/messages.json +26 -1
- package/src/components/i18n/locales/hi/messages.json +26 -1
- package/src/components/i18n/locales/hr/messages.json +28 -3
- package/src/components/i18n/locales/hu/messages.json +27 -2
- package/src/components/i18n/locales/hy/messages.json +26 -1
- package/src/components/i18n/locales/id/messages.json +26 -1
- package/src/components/i18n/locales/it/messages.json +27 -2
- package/src/components/i18n/locales/ja/messages.json +26 -1
- package/src/components/i18n/locales/ka/messages.json +26 -1
- package/src/components/i18n/locales/km/messages.json +26 -1
- package/src/components/i18n/locales/kn/messages.json +26 -1
- package/src/components/i18n/locales/ko/messages.json +26 -1
- package/src/components/i18n/locales/ku/messages.json +26 -1
- package/src/components/i18n/locales/lo/messages.json +26 -1
- package/src/components/i18n/locales/lt/messages.json +26 -1
- package/src/components/i18n/locales/lv/messages.json +26 -1
- package/src/components/i18n/locales/mk/messages.json +26 -1
- package/src/components/i18n/locales/ml/messages.json +26 -1
- package/src/components/i18n/locales/mn/messages.json +26 -1
- package/src/components/i18n/locales/mr/messages.json +26 -1
- package/src/components/i18n/locales/ms/messages.json +28 -3
- package/src/components/i18n/locales/my/messages.json +26 -1
- package/src/components/i18n/locales/ne/messages.json +26 -1
- package/src/components/i18n/locales/nl/messages.json +28 -3
- package/src/components/i18n/locales/no/messages.json +29 -4
- package/src/components/i18n/locales/pa/messages.json +26 -1
- package/src/components/i18n/locales/pl/messages.json +27 -2
- package/src/components/i18n/locales/ps/messages.json +26 -1
- package/src/components/i18n/locales/pt/messages.json +27 -2
- package/src/components/i18n/locales/ro/messages.json +27 -2
- package/src/components/i18n/locales/ru/messages.json +26 -1
- package/src/components/i18n/locales/sd/messages.json +26 -1
- package/src/components/i18n/locales/si/messages.json +26 -1
- package/src/components/i18n/locales/sk/messages.json +28 -3
- package/src/components/i18n/locales/sl/messages.json +28 -3
- package/src/components/i18n/locales/sq/messages.json +27 -2
- package/src/components/i18n/locales/sr/messages.json +26 -1
- package/src/components/i18n/locales/sv/messages.json +28 -3
- package/src/components/i18n/locales/sw/messages.json +26 -1
- package/src/components/i18n/locales/ta/messages.json +26 -1
- package/src/components/i18n/locales/te/messages.json +26 -1
- package/src/components/i18n/locales/th/messages.json +26 -1
- package/src/components/i18n/locales/tr/messages.json +26 -1
- package/src/components/i18n/locales/ug/messages.json +26 -1
- package/src/components/i18n/locales/uk/messages.json +26 -1
- package/src/components/i18n/locales/ur/messages.json +26 -1
- package/src/components/i18n/locales/vi/messages.json +26 -1
- package/src/components/i18n/locales/yi/messages.json +26 -1
- package/src/components/i18n/locales/zh/messages.json +26 -1
- package/src/components/icons/index.ts +38 -0
- package/src/components/modules/ui.ts +0 -13
- package/src/stories/EditorModes.stories.ts +0 -60
- package/src/styles/main.css +39 -1
- package/src/tools/callout/emoji-picker/index.ts +3 -2
- package/src/tools/code/code-keyboard.ts +16 -9
- package/src/tools/code/constants.ts +26 -3
- package/src/tools/code/dom-builder.ts +40 -5
- package/src/tools/code/highlight-applier.ts +229 -0
- package/src/tools/code/index.ts +141 -1
- package/src/tools/code/mermaid-loader.ts +45 -0
- package/src/tools/code/shiki-loader.ts +135 -0
- package/src/tools/table/core/table-commands.ts +16 -0
- package/src/tools/table/core/table-controller.ts +29 -0
- package/src/tools/table/core/table-events.ts +17 -0
- package/src/tools/table/index.ts +194 -11
- package/src/tools/table/table-cell-blocks.ts +9 -6
- package/src/tools/table/table-cell-clipboard.ts +6 -1
- package/src/tools/table/table-cell-placement-picker.ts +133 -0
- package/src/tools/table/table-cell-selection.ts +174 -19
- package/src/tools/table/table-core.ts +321 -113
- package/src/tools/table/table-map.ts +279 -0
- package/src/tools/table/table-model.ts +901 -1
- package/src/tools/table/table-operations.ts +78 -44
- package/src/tools/table/table-resize.ts +19 -17
- package/src/tools/table/table-row-col-drag.ts +24 -10
- package/src/tools/table/types.ts +24 -2
- package/types/data-attributes.d.ts +0 -1
- package/types/tools/code.d.ts +2 -0
- /package/dist/chunks/{am-CS-JjQ0N.mjs → am-rVzV1W41.mjs} +0 -0
- /package/dist/chunks/{ar-Dt4XzR5U.mjs → ar-C710lkoH.mjs} +0 -0
- /package/dist/chunks/{az-CaDTXby8.mjs → az-BOp1pgua.mjs} +0 -0
- /package/dist/chunks/{bg-D1pLog-R.mjs → bg-CL9p09ZD.mjs} +0 -0
- /package/dist/chunks/{bn-Db_ae60m.mjs → bn-CNmSeyAy.mjs} +0 -0
- /package/dist/chunks/{bs-DJTg1R9e.mjs → bs-BRzMGqzk.mjs} +0 -0
- /package/dist/chunks/{cs-_Gc21gSL.mjs → cs-BYPBLmnF.mjs} +0 -0
- /package/dist/chunks/{da-xDB8uhCd.mjs → da-CBC_LR1c.mjs} +0 -0
- /package/dist/chunks/{de-B6gVjh1Z.mjs → de-DxRFMoAj.mjs} +0 -0
- /package/dist/chunks/{el-ClbRSnOs.mjs → el-Bk6YbySf.mjs} +0 -0
- /package/dist/chunks/{es-CuY9rnLK.mjs → es-DpT3FCMR.mjs} +0 -0
- /package/dist/chunks/{et-BLu5lDVc.mjs → et-DE9Dr_g9.mjs} +0 -0
- /package/dist/chunks/{fa-P3gnrZH8.mjs → fa-Banj1QUE.mjs} +0 -0
- /package/dist/chunks/{fi-B8PVHLjq.mjs → fi-DfN3M5ER.mjs} +0 -0
- /package/dist/chunks/{fil-B9JII5iF.mjs → fil-DbCsRS1d.mjs} +0 -0
- /package/dist/chunks/{fr-BWLDZdcc.mjs → fr-D1clKhgt.mjs} +0 -0
- /package/dist/chunks/{gu-BH3R_s4c.mjs → gu-1CsZyRwT.mjs} +0 -0
- /package/dist/chunks/{he-CCmeCVR_.mjs → he-qQdnL6eK.mjs} +0 -0
- /package/dist/chunks/{hi-BBav00DN.mjs → hi-DxM0Nff1.mjs} +0 -0
- /package/dist/chunks/{hr-B5ZX0r9G.mjs → hr-Onldyi-u.mjs} +0 -0
- /package/dist/chunks/{hu-1jgDa3YU.mjs → hu-CAn3pBuY.mjs} +0 -0
- /package/dist/chunks/{hy-LX4Kp2PE.mjs → hy-D43q7NxE.mjs} +0 -0
- /package/dist/chunks/{i18next-KNC_XV5x.mjs → i18next-BBGW2sDE.mjs} +0 -0
- /package/dist/chunks/{id-CcG40D1H.mjs → id-Xrw5Dd0Y.mjs} +0 -0
- /package/dist/chunks/{it-Cb8_K72W.mjs → it-CA9ZDMSc.mjs} +0 -0
- /package/dist/chunks/{ja-ipCH91mv.mjs → ja-D0J6WRFh.mjs} +0 -0
- /package/dist/chunks/{ka-BRvREIgq.mjs → ka-BZL7xDuY.mjs} +0 -0
- /package/dist/chunks/{km-BJwVw7Fg.mjs → km-BimgQZVU.mjs} +0 -0
- /package/dist/chunks/{kn-BPgUazCC.mjs → kn-C2n2cPHK.mjs} +0 -0
- /package/dist/chunks/{ko-CQLzxe7k.mjs → ko-n4Cn93D3.mjs} +0 -0
- /package/dist/chunks/{ku-BHhHu8Iz.mjs → ku-BYZCgT44.mjs} +0 -0
- /package/dist/chunks/{lo-DsTgYblY.mjs → lo-DVXiAE4N.mjs} +0 -0
- /package/dist/chunks/{lt-CDzHJm71.mjs → lt-B9KlQFnY.mjs} +0 -0
- /package/dist/chunks/{lv-MLLIAnIX.mjs → lv-BINeOdyx.mjs} +0 -0
- /package/dist/chunks/{mdast-util-math-yS0EygZV.mjs → mdast-util-math-CHYUxOHk.mjs} +0 -0
- /package/dist/chunks/{mk-DQdmUquZ.mjs → mk-_-QrPrLN.mjs} +0 -0
- /package/dist/chunks/{ml-DqehZnra.mjs → ml-KvJSC1KT.mjs} +0 -0
- /package/dist/chunks/{mn-4cFkKFjW.mjs → mn-CjFjWnRG.mjs} +0 -0
- /package/dist/chunks/{mr-DWiztOP4.mjs → mr-DqAZ7FRX.mjs} +0 -0
- /package/dist/chunks/{ms-BSz-iSnc.mjs → ms-BZcV4UG_.mjs} +0 -0
- /package/dist/chunks/{my-DbtbM1MW.mjs → my-97SC9jYN.mjs} +0 -0
- /package/dist/chunks/{ne-CqALWw_f.mjs → ne-Bs-M2TyF.mjs} +0 -0
- /package/dist/chunks/{nl-D_ra6RvH.mjs → nl-2ZwQilo-.mjs} +0 -0
- /package/dist/chunks/{no-Cg_kz_jl.mjs → no-fOQTpFq1.mjs} +0 -0
- /package/dist/chunks/{notifier-BOwxj_Ok.mjs → notifier-B1zCi9G1.mjs} +0 -0
- /package/dist/chunks/{pa-NLAsNqwY.mjs → pa-DLOqkMi0.mjs} +0 -0
- /package/dist/chunks/{pl-NHKp4YDg.mjs → pl-FYs9QrXU.mjs} +0 -0
- /package/dist/chunks/{ps-D1zEqNeg.mjs → ps-CTXe6pSe.mjs} +0 -0
- /package/dist/chunks/{pt-DBtqbUEB.mjs → pt-B1X4x7d1.mjs} +0 -0
- /package/dist/chunks/{ro-lqr63ai5.mjs → ro-Bf7S2FaR.mjs} +0 -0
- /package/dist/chunks/{ru-BycNnDyN.mjs → ru-B8lqnu_j.mjs} +0 -0
- /package/dist/chunks/{sd-DpHpIN9Z.mjs → sd-CHRYJm2r.mjs} +0 -0
- /package/dist/chunks/{si-BwiwaC7N.mjs → si-CI0Hs6vH.mjs} +0 -0
- /package/dist/chunks/{sk-CqRHT2Gp.mjs → sk-Bdvq1Kb_.mjs} +0 -0
- /package/dist/chunks/{sl-DA348uQ_.mjs → sl-B_qiFTV5.mjs} +0 -0
- /package/dist/chunks/{sq-D7JNgve1.mjs → sq-E0j1hysP.mjs} +0 -0
- /package/dist/chunks/{sr-D8RK6Kwp.mjs → sr-VPpVNTZw.mjs} +0 -0
- /package/dist/chunks/{sv-dwgT67ZG.mjs → sv-gKmDSR3d.mjs} +0 -0
- /package/dist/chunks/{sw-ZRRJnkem.mjs → sw-zeFLiO23.mjs} +0 -0
- /package/dist/chunks/{ta-5x4L5Krl.mjs → ta-Ci-j89hR.mjs} +0 -0
- /package/dist/chunks/{te-BZpEimwA.mjs → te-qyMI0M7a.mjs} +0 -0
- /package/dist/chunks/{th-Bhr-33kv.mjs → th-DPxHtpdb.mjs} +0 -0
- /package/dist/chunks/{tr-6tSNKGNB.mjs → tr-CRV6GS-G.mjs} +0 -0
- /package/dist/chunks/{ug-_e-jvr2b.mjs → ug-DW0YFpo5.mjs} +0 -0
- /package/dist/chunks/{uk-DooSc2Ja.mjs → uk-ssteuphK.mjs} +0 -0
- /package/dist/chunks/{ur-rb-krkIO.mjs → ur-qhY3-jY7.mjs} +0 -0
- /package/dist/chunks/{vi-CQkLn2AQ.mjs → vi-CHriMMC8.mjs} +0 -0
- /package/dist/chunks/{zh-CXQ40Q2_.mjs → zh-BJktawVN.mjs} +0 -0
|
@@ -0,0 +1,1875 @@
|
|
|
1
|
+
import { n as e, t } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
+
import { g as n, h as r, p as i } from "./src-CRgEHLPW.mjs";
|
|
3
|
+
import { L as a, P as o, k as s, s as c, y as l } from "./chunk-ICPOFSXX-BMja8cuy.mjs";
|
|
4
|
+
import { i as u } from "./chunk-5PVQY5BW-CxUGVzQL.mjs";
|
|
5
|
+
//#region node_modules/@iconify/utils/lib/icon/defaults.js
|
|
6
|
+
var d = Object.freeze({
|
|
7
|
+
left: 0,
|
|
8
|
+
top: 0,
|
|
9
|
+
width: 16,
|
|
10
|
+
height: 16
|
|
11
|
+
}), f = Object.freeze({
|
|
12
|
+
rotate: 0,
|
|
13
|
+
vFlip: !1,
|
|
14
|
+
hFlip: !1
|
|
15
|
+
}), p = Object.freeze(t(t({}, d), f)), m = Object.freeze(t(t({}, p), {}, {
|
|
16
|
+
body: "",
|
|
17
|
+
hidden: !1
|
|
18
|
+
})), h = Object.freeze({
|
|
19
|
+
width: null,
|
|
20
|
+
height: null
|
|
21
|
+
}), g = Object.freeze(t(t({}, h), f)), ee = (e, t, n, r = "") => {
|
|
22
|
+
let i = e.split(":");
|
|
23
|
+
if (e.slice(0, 1) === "@") {
|
|
24
|
+
if (i.length < 2 || i.length > 3) return null;
|
|
25
|
+
r = i.shift().slice(1);
|
|
26
|
+
}
|
|
27
|
+
if (i.length > 3 || !i.length) return null;
|
|
28
|
+
if (i.length > 1) {
|
|
29
|
+
let e = i.pop(), n = i.pop(), a = {
|
|
30
|
+
provider: i.length > 0 ? i[0] : r,
|
|
31
|
+
prefix: n,
|
|
32
|
+
name: e
|
|
33
|
+
};
|
|
34
|
+
return t && !_(a) ? null : a;
|
|
35
|
+
}
|
|
36
|
+
let a = i[0], o = a.split("-");
|
|
37
|
+
if (o.length > 1) {
|
|
38
|
+
let e = {
|
|
39
|
+
provider: r,
|
|
40
|
+
prefix: o.shift(),
|
|
41
|
+
name: o.join("-")
|
|
42
|
+
};
|
|
43
|
+
return t && !_(e) ? null : e;
|
|
44
|
+
}
|
|
45
|
+
if (n && r === "") {
|
|
46
|
+
let e = {
|
|
47
|
+
provider: r,
|
|
48
|
+
prefix: "",
|
|
49
|
+
name: a
|
|
50
|
+
};
|
|
51
|
+
return t && !_(e, n) ? null : e;
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}, _ = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/@iconify/utils/lib/icon/transformations.js
|
|
57
|
+
function te(e, t) {
|
|
58
|
+
let n = {};
|
|
59
|
+
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
60
|
+
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
61
|
+
return r && (n.rotate = r), n;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region node_modules/@iconify/utils/lib/icon/merge.js
|
|
65
|
+
function ne(e, t) {
|
|
66
|
+
let n = te(e, t);
|
|
67
|
+
for (let r in m) r in f ? r in e && !(r in n) && (n[r] = f[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
68
|
+
return n;
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region node_modules/@iconify/utils/lib/icon-set/tree.js
|
|
72
|
+
function re(e, t) {
|
|
73
|
+
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
74
|
+
function a(e) {
|
|
75
|
+
if (n[e]) return i[e] = [];
|
|
76
|
+
if (!(e in i)) {
|
|
77
|
+
i[e] = null;
|
|
78
|
+
let t = r[e] && r[e].parent, n = t && a(t);
|
|
79
|
+
n && (i[e] = [t].concat(n));
|
|
80
|
+
}
|
|
81
|
+
return i[e];
|
|
82
|
+
}
|
|
83
|
+
return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region node_modules/@iconify/utils/lib/icon-set/get-icon.js
|
|
87
|
+
function ie(e, t, n) {
|
|
88
|
+
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
89
|
+
function o(e) {
|
|
90
|
+
a = ne(r[e] || i[e], a);
|
|
91
|
+
}
|
|
92
|
+
return o(t), n.forEach(o), ne(e, a);
|
|
93
|
+
}
|
|
94
|
+
function ae(e, t) {
|
|
95
|
+
if (e.icons[t]) return ie(e, t, []);
|
|
96
|
+
let n = re(e, [t])[t];
|
|
97
|
+
return n ? ie(e, t, n) : null;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region node_modules/@iconify/utils/lib/svg/size.js
|
|
101
|
+
var oe = /(-?[0-9.]*[0-9]+[0-9.]*)/g, se = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
102
|
+
function ce(e, t, n) {
|
|
103
|
+
if (t === 1) return e;
|
|
104
|
+
if (n = n || 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
105
|
+
if (typeof e != "string") return e;
|
|
106
|
+
let r = e.split(oe);
|
|
107
|
+
if (r === null || !r.length) return e;
|
|
108
|
+
let i = [], a = r.shift(), o = se.test(a);
|
|
109
|
+
for (;;) {
|
|
110
|
+
if (o) {
|
|
111
|
+
let e = parseFloat(a);
|
|
112
|
+
isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
|
|
113
|
+
} else i.push(a);
|
|
114
|
+
if (a = r.shift(), a === void 0) return i.join("");
|
|
115
|
+
o = !o;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region node_modules/@iconify/utils/lib/svg/defs.js
|
|
120
|
+
function le(e, t = "defs") {
|
|
121
|
+
let n = "", r = e.indexOf("<" + t);
|
|
122
|
+
for (; r >= 0;) {
|
|
123
|
+
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
124
|
+
if (i === -1 || a === -1) break;
|
|
125
|
+
let o = e.indexOf(">", a);
|
|
126
|
+
if (o === -1) break;
|
|
127
|
+
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
defs: n,
|
|
131
|
+
content: e
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function ue(e, t) {
|
|
135
|
+
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
136
|
+
}
|
|
137
|
+
function de(e, t, n) {
|
|
138
|
+
let r = le(e);
|
|
139
|
+
return ue(r.defs, t + r.content + n);
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region node_modules/@iconify/utils/lib/svg/build.js
|
|
143
|
+
var fe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
144
|
+
function pe(e, n) {
|
|
145
|
+
let r = t(t({}, p), e), i = t(t({}, g), n), a = {
|
|
146
|
+
left: r.left,
|
|
147
|
+
top: r.top,
|
|
148
|
+
width: r.width,
|
|
149
|
+
height: r.height
|
|
150
|
+
}, o = r.body;
|
|
151
|
+
[r, i].forEach((e) => {
|
|
152
|
+
let t = [], n = e.hFlip, r = e.vFlip, i = e.rotate;
|
|
153
|
+
n ? r ? i += 2 : (t.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"), t.push("scale(-1 1)"), a.top = a.left = 0) : r && (t.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"), t.push("scale(1 -1)"), a.top = a.left = 0);
|
|
154
|
+
let s;
|
|
155
|
+
switch (i < 0 && (i -= Math.floor(i / 4) * 4), i %= 4, i) {
|
|
156
|
+
case 1:
|
|
157
|
+
s = a.height / 2 + a.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
158
|
+
break;
|
|
159
|
+
case 2:
|
|
160
|
+
t.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
|
|
161
|
+
break;
|
|
162
|
+
case 3:
|
|
163
|
+
s = a.width / 2 + a.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
i % 2 == 1 && (a.left !== a.top && (s = a.left, a.left = a.top, a.top = s), a.width !== a.height && (s = a.width, a.width = a.height, a.height = s)), t.length && (o = de(o, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
167
|
+
});
|
|
168
|
+
let s = i.width, c = i.height, l = a.width, u = a.height, d, f;
|
|
169
|
+
s === null ? (f = c === null ? "1em" : c === "auto" ? u : c, d = ce(f, l / u)) : (d = s === "auto" ? l : s, f = c === null ? ce(d, u / l) : c === "auto" ? u : c);
|
|
170
|
+
let m = {}, h = (e, t) => {
|
|
171
|
+
fe(t) || (m[e] = t.toString());
|
|
172
|
+
};
|
|
173
|
+
h("width", d), h("height", f);
|
|
174
|
+
let ee = [
|
|
175
|
+
a.left,
|
|
176
|
+
a.top,
|
|
177
|
+
l,
|
|
178
|
+
u
|
|
179
|
+
];
|
|
180
|
+
return m.viewBox = ee.join(" "), {
|
|
181
|
+
attributes: m,
|
|
182
|
+
viewBox: ee,
|
|
183
|
+
body: o
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region node_modules/@iconify/utils/lib/svg/id.js
|
|
188
|
+
var me = /\sid="(\S+)"/g, he = /* @__PURE__ */ new Map();
|
|
189
|
+
function ge(e) {
|
|
190
|
+
e = e.replace(/[0-9]+$/, "") || "a";
|
|
191
|
+
let t = he.get(e) || 0;
|
|
192
|
+
return he.set(e, t + 1), t ? `${e}${t}` : e;
|
|
193
|
+
}
|
|
194
|
+
function _e(e) {
|
|
195
|
+
let t = [], n;
|
|
196
|
+
for (; n = me.exec(e);) t.push(n[1]);
|
|
197
|
+
if (!t.length) return e;
|
|
198
|
+
let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
199
|
+
return t.forEach((t) => {
|
|
200
|
+
let n = ge(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
201
|
+
e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
|
|
202
|
+
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
203
|
+
}
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region node_modules/@iconify/utils/lib/svg/html.js
|
|
206
|
+
function ve(e, t) {
|
|
207
|
+
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
208
|
+
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
209
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region node_modules/mermaid/node_modules/marked/lib/marked.esm.js
|
|
213
|
+
var v;
|
|
214
|
+
function y() {
|
|
215
|
+
return {
|
|
216
|
+
async: !1,
|
|
217
|
+
breaks: !1,
|
|
218
|
+
extensions: null,
|
|
219
|
+
gfm: !0,
|
|
220
|
+
hooks: null,
|
|
221
|
+
pedantic: !1,
|
|
222
|
+
renderer: null,
|
|
223
|
+
silent: !1,
|
|
224
|
+
tokenizer: null,
|
|
225
|
+
walkTokens: null
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
var b = y();
|
|
229
|
+
function ye(e) {
|
|
230
|
+
b = e;
|
|
231
|
+
}
|
|
232
|
+
var x = { exec: () => null };
|
|
233
|
+
function S(e, t = "") {
|
|
234
|
+
let n = typeof e == "string" ? e : e.source, r = {
|
|
235
|
+
replace: (e, t) => {
|
|
236
|
+
let i = typeof t == "string" ? t : t.source;
|
|
237
|
+
return i = i.replace(C.caret, "$1"), n = n.replace(e, i), r;
|
|
238
|
+
},
|
|
239
|
+
getRegex: () => new RegExp(n, t)
|
|
240
|
+
};
|
|
241
|
+
return r;
|
|
242
|
+
}
|
|
243
|
+
var be = (() => {
|
|
244
|
+
try {
|
|
245
|
+
return !0;
|
|
246
|
+
} catch (e) {
|
|
247
|
+
return !1;
|
|
248
|
+
}
|
|
249
|
+
})(), C = {
|
|
250
|
+
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
251
|
+
outputLinkReplace: /\\([\[\]])/g,
|
|
252
|
+
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
253
|
+
beginningSpace: /^\s+/,
|
|
254
|
+
endingHash: /#$/,
|
|
255
|
+
startingSpaceChar: /^ /,
|
|
256
|
+
endingSpaceChar: / $/,
|
|
257
|
+
nonSpaceChar: /[^ ]/,
|
|
258
|
+
newLineCharGlobal: /\n/g,
|
|
259
|
+
tabCharGlobal: /\t/g,
|
|
260
|
+
multipleSpaceGlobal: /\s+/g,
|
|
261
|
+
blankLine: /^[ \t]*$/,
|
|
262
|
+
doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
|
|
263
|
+
blockquoteStart: /^ {0,3}>/,
|
|
264
|
+
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
265
|
+
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
266
|
+
listReplaceTabs: /^\t+/,
|
|
267
|
+
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
268
|
+
listIsTask: /^\[[ xX]\] /,
|
|
269
|
+
listReplaceTask: /^\[[ xX]\] +/,
|
|
270
|
+
anyLine: /\n.*\n/,
|
|
271
|
+
hrefBrackets: /^<(.*)>$/,
|
|
272
|
+
tableDelimiter: /[:|]/,
|
|
273
|
+
tableAlignChars: /^\||\| *$/g,
|
|
274
|
+
tableRowBlankLine: /\n[ \t]*$/,
|
|
275
|
+
tableAlignRight: /^ *-+: *$/,
|
|
276
|
+
tableAlignCenter: /^ *:-+: *$/,
|
|
277
|
+
tableAlignLeft: /^ *:-+ *$/,
|
|
278
|
+
startATag: /^<a /i,
|
|
279
|
+
endATag: /^<\/a>/i,
|
|
280
|
+
startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
|
|
281
|
+
endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
|
|
282
|
+
startAngleBracket: /^</,
|
|
283
|
+
endAngleBracket: />$/,
|
|
284
|
+
pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
|
|
285
|
+
unicodeAlphaNumeric: /* @__PURE__ */ RegExp("[\\p{L}\\p{N}]", "u"),
|
|
286
|
+
escapeTest: /[&<>"']/,
|
|
287
|
+
escapeReplace: /[&<>"']/g,
|
|
288
|
+
escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
|
|
289
|
+
escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
|
|
290
|
+
unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
|
|
291
|
+
caret: /(^|[^\[])\^/g,
|
|
292
|
+
percentDecode: /%25/g,
|
|
293
|
+
findPipe: /\|/g,
|
|
294
|
+
splitPipe: / \|/,
|
|
295
|
+
slashPipe: /\\\|/g,
|
|
296
|
+
carriageReturn: /\r\n|\r/g,
|
|
297
|
+
spaceLine: /^ +$/gm,
|
|
298
|
+
notSpaceStart: /^\S*/,
|
|
299
|
+
endingNewline: /\n$/,
|
|
300
|
+
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
301
|
+
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
302
|
+
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
303
|
+
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
304
|
+
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
305
|
+
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
306
|
+
}, xe = /^(?:[ \t]*(?:\n|$))+/, Se = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ce = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, w = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, T = /(?:[*+-]|\d{1,9}[.)])/, Te = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ee = S(Te).replace(/bull/g, T).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(), De = S(Te).replace(/bull/g, T).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(), E = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Oe = /^[^\n]+/, D = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ke = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", D).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ae = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, T).getRegex(), O = "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", k = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, je = S("^ {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", k).replace("tag", O).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Me = S(E).replace("hr", w).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", O).getRegex(), A = {
|
|
307
|
+
blockquote: S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Me).getRegex(),
|
|
308
|
+
code: Se,
|
|
309
|
+
def: ke,
|
|
310
|
+
fences: Ce,
|
|
311
|
+
heading: we,
|
|
312
|
+
hr: w,
|
|
313
|
+
html: je,
|
|
314
|
+
lheading: Ee,
|
|
315
|
+
list: Ae,
|
|
316
|
+
newline: xe,
|
|
317
|
+
paragraph: Me,
|
|
318
|
+
table: x,
|
|
319
|
+
text: Oe
|
|
320
|
+
}, Ne = S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", w).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", O).getRegex(), Pe = t(t({}, A), {}, {
|
|
321
|
+
lheading: De,
|
|
322
|
+
table: Ne,
|
|
323
|
+
paragraph: S(E).replace("hr", w).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ne).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", O).getRegex()
|
|
324
|
+
}), Fe = t(t({}, A), {}, {
|
|
325
|
+
html: S("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", k).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(),
|
|
326
|
+
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
327
|
+
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
328
|
+
fences: x,
|
|
329
|
+
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
330
|
+
paragraph: S(E).replace("hr", w).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ee).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
331
|
+
}), Ie = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Le = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Re = /^( {2,}|\\)\n(?!\s*$)/, ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, j = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), M = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), Be = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), Ve = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, M).getRegex(), He = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), Ue = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), We = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), Ge = S(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = S(Ke, "u").replace(/punct/g, j).getRegex(), Je = S(Ke, "u").replace(/punct/g, He).getRegex(), Ye = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xe = S(Ye, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), Ze = S(Ye, "gu").replace(/notPunctSpace/g, We).replace(/punctSpace/g, Ue).replace(/punct/g, He).getRegex(), Qe = S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), $e = S(/\\(punct)/, "gu").replace(/punct/g, j).getRegex(), et = S(/^<(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(), tt = S(k).replace("(?:-->|$)", "-->").getRegex(), nt = S("^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", tt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), N = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, rt = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", N).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), it = S(/^!?\[(label)\]\[(ref)\]/).replace("label", N).replace("ref", D).getRegex(), at = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", D).getRegex(), ot = S("reflink|nolink(?!\\()", "g").replace("reflink", it).replace("nolink", at).getRegex(), st = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, P = {
|
|
332
|
+
_backpedal: x,
|
|
333
|
+
anyPunctuation: $e,
|
|
334
|
+
autolink: et,
|
|
335
|
+
blockSkip: Ge,
|
|
336
|
+
br: Re,
|
|
337
|
+
code: Le,
|
|
338
|
+
del: x,
|
|
339
|
+
emStrongLDelim: qe,
|
|
340
|
+
emStrongRDelimAst: Xe,
|
|
341
|
+
emStrongRDelimUnd: Qe,
|
|
342
|
+
escape: Ie,
|
|
343
|
+
link: rt,
|
|
344
|
+
nolink: at,
|
|
345
|
+
punctuation: Ve,
|
|
346
|
+
reflink: it,
|
|
347
|
+
reflinkSearch: ot,
|
|
348
|
+
tag: nt,
|
|
349
|
+
text: ze,
|
|
350
|
+
url: x
|
|
351
|
+
}, ct = t(t({}, P), {}, {
|
|
352
|
+
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", N).getRegex(),
|
|
353
|
+
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", N).getRegex()
|
|
354
|
+
}), F = t(t({}, P), {}, {
|
|
355
|
+
emStrongRDelimAst: Ze,
|
|
356
|
+
emStrongLDelim: Je,
|
|
357
|
+
url: S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", st).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
358
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
359
|
+
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
360
|
+
text: S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", st).getRegex()
|
|
361
|
+
}), lt = t(t({}, F), {}, {
|
|
362
|
+
br: S(Re).replace("{2,}", "*").getRegex(),
|
|
363
|
+
text: S(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
364
|
+
}), I = {
|
|
365
|
+
normal: A,
|
|
366
|
+
gfm: Pe,
|
|
367
|
+
pedantic: Fe
|
|
368
|
+
}, L = {
|
|
369
|
+
normal: P,
|
|
370
|
+
gfm: F,
|
|
371
|
+
breaks: lt,
|
|
372
|
+
pedantic: ct
|
|
373
|
+
}, ut = {
|
|
374
|
+
"&": "&",
|
|
375
|
+
"<": "<",
|
|
376
|
+
">": ">",
|
|
377
|
+
"\"": """,
|
|
378
|
+
"'": "'"
|
|
379
|
+
}, dt = (e) => ut[e];
|
|
380
|
+
function R(e, t) {
|
|
381
|
+
if (t) {
|
|
382
|
+
if (C.escapeTest.test(e)) return e.replace(C.escapeReplace, dt);
|
|
383
|
+
} else if (C.escapeTestNoEncode.test(e)) return e.replace(C.escapeReplaceNoEncode, dt);
|
|
384
|
+
return e;
|
|
385
|
+
}
|
|
386
|
+
function ft(e) {
|
|
387
|
+
try {
|
|
388
|
+
e = encodeURI(e).replace(C.percentDecode, "%");
|
|
389
|
+
} catch (e) {
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
return e;
|
|
393
|
+
}
|
|
394
|
+
function pt(e, t) {
|
|
395
|
+
var n;
|
|
396
|
+
let r = e.replace(C.findPipe, (e, t, n) => {
|
|
397
|
+
let r = !1, i = t;
|
|
398
|
+
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
399
|
+
return r ? "|" : " |";
|
|
400
|
+
}).split(C.splitPipe), i = 0;
|
|
401
|
+
if (r[0].trim() || r.shift(), r.length > 0 && !((n = r.at(-1)) != null && n.trim()) && r.pop(), t) if (r.length > t) r.splice(t);
|
|
402
|
+
else for (; r.length < t;) r.push("");
|
|
403
|
+
for (; i < r.length; i++) r[i] = r[i].trim().replace(C.slashPipe, "|");
|
|
404
|
+
return r;
|
|
405
|
+
}
|
|
406
|
+
function z(e, t, n) {
|
|
407
|
+
let r = e.length;
|
|
408
|
+
if (r === 0) return "";
|
|
409
|
+
let i = 0;
|
|
410
|
+
for (; i < r;) {
|
|
411
|
+
let a = e.charAt(r - i - 1);
|
|
412
|
+
if (a === t && !n) i++;
|
|
413
|
+
else if (a !== t && n) i++;
|
|
414
|
+
else break;
|
|
415
|
+
}
|
|
416
|
+
return e.slice(0, r - i);
|
|
417
|
+
}
|
|
418
|
+
function mt(e, t) {
|
|
419
|
+
if (e.indexOf(t[1]) === -1) return -1;
|
|
420
|
+
let n = 0;
|
|
421
|
+
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
422
|
+
else if (e[r] === t[0]) n++;
|
|
423
|
+
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
424
|
+
return n > 0 ? -2 : -1;
|
|
425
|
+
}
|
|
426
|
+
function ht(e, t, n, r, i) {
|
|
427
|
+
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
428
|
+
r.state.inLink = !0;
|
|
429
|
+
let c = {
|
|
430
|
+
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
431
|
+
raw: n,
|
|
432
|
+
href: a,
|
|
433
|
+
title: o,
|
|
434
|
+
text: s,
|
|
435
|
+
tokens: r.inlineTokens(s)
|
|
436
|
+
};
|
|
437
|
+
return r.state.inLink = !1, c;
|
|
438
|
+
}
|
|
439
|
+
function gt(e, t, n) {
|
|
440
|
+
let r = e.match(n.other.indentCodeCompensation);
|
|
441
|
+
if (r === null) return t;
|
|
442
|
+
let i = r[1];
|
|
443
|
+
return t.split("\n").map((e) => {
|
|
444
|
+
let t = e.match(n.other.beginningSpace);
|
|
445
|
+
if (t === null) return e;
|
|
446
|
+
let [r] = t;
|
|
447
|
+
return r.length >= i.length ? e.slice(i.length) : e;
|
|
448
|
+
}).join("\n");
|
|
449
|
+
}
|
|
450
|
+
var B = class {
|
|
451
|
+
constructor(t) {
|
|
452
|
+
e(this, "options", void 0), e(this, "rules", void 0), e(this, "lexer", void 0), this.options = t || b;
|
|
453
|
+
}
|
|
454
|
+
space(e) {
|
|
455
|
+
let t = this.rules.block.newline.exec(e);
|
|
456
|
+
if (t && t[0].length > 0) return {
|
|
457
|
+
type: "space",
|
|
458
|
+
raw: t[0]
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
code(e) {
|
|
462
|
+
let t = this.rules.block.code.exec(e);
|
|
463
|
+
if (t) {
|
|
464
|
+
let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
465
|
+
return {
|
|
466
|
+
type: "code",
|
|
467
|
+
raw: t[0],
|
|
468
|
+
codeBlockStyle: "indented",
|
|
469
|
+
text: this.options.pedantic ? e : z(e, "\n")
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
fences(e) {
|
|
474
|
+
let t = this.rules.block.fences.exec(e);
|
|
475
|
+
if (t) {
|
|
476
|
+
let e = t[0], n = gt(e, t[3] || "", this.rules);
|
|
477
|
+
return {
|
|
478
|
+
type: "code",
|
|
479
|
+
raw: e,
|
|
480
|
+
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
|
|
481
|
+
text: n
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
heading(e) {
|
|
486
|
+
let t = this.rules.block.heading.exec(e);
|
|
487
|
+
if (t) {
|
|
488
|
+
let e = t[2].trim();
|
|
489
|
+
if (this.rules.other.endingHash.test(e)) {
|
|
490
|
+
let t = z(e, "#");
|
|
491
|
+
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
type: "heading",
|
|
495
|
+
raw: t[0],
|
|
496
|
+
depth: t[1].length,
|
|
497
|
+
text: e,
|
|
498
|
+
tokens: this.lexer.inline(e)
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
hr(e) {
|
|
503
|
+
let t = this.rules.block.hr.exec(e);
|
|
504
|
+
if (t) return {
|
|
505
|
+
type: "hr",
|
|
506
|
+
raw: z(t[0], "\n")
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
blockquote(e) {
|
|
510
|
+
let t = this.rules.block.blockquote.exec(e);
|
|
511
|
+
if (t) {
|
|
512
|
+
let e = z(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
513
|
+
for (; e.length > 0;) {
|
|
514
|
+
let t = !1, a = [], o;
|
|
515
|
+
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
516
|
+
else if (!t) a.push(e[o]);
|
|
517
|
+
else break;
|
|
518
|
+
e = e.slice(o);
|
|
519
|
+
let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
520
|
+
n = n ? `${n}
|
|
521
|
+
${s}` : s, r = r ? `${r}
|
|
522
|
+
${c}` : c;
|
|
523
|
+
let l = this.lexer.state.top;
|
|
524
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
|
|
525
|
+
let u = i.at(-1);
|
|
526
|
+
if ((u == null ? void 0 : u.type) === "code") break;
|
|
527
|
+
if ((u == null ? void 0 : u.type) === "blockquote") {
|
|
528
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
529
|
+
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;
|
|
530
|
+
break;
|
|
531
|
+
} else if ((u == null ? void 0 : u.type) === "list") {
|
|
532
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
533
|
+
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");
|
|
534
|
+
continue;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return {
|
|
538
|
+
type: "blockquote",
|
|
539
|
+
raw: n,
|
|
540
|
+
tokens: i,
|
|
541
|
+
text: r
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
list(e) {
|
|
546
|
+
let t = this.rules.block.list.exec(e);
|
|
547
|
+
if (t) {
|
|
548
|
+
let n = t[1].trim(), r = n.length > 1, i = {
|
|
549
|
+
type: "list",
|
|
550
|
+
raw: "",
|
|
551
|
+
ordered: r,
|
|
552
|
+
start: r ? +n.slice(0, -1) : "",
|
|
553
|
+
loose: !1,
|
|
554
|
+
items: []
|
|
555
|
+
};
|
|
556
|
+
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
557
|
+
let a = this.rules.other.listItemRegex(n), o = !1;
|
|
558
|
+
for (; e;) {
|
|
559
|
+
let n = !1, r = "", s = "";
|
|
560
|
+
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
561
|
+
r = t[0], e = e.substring(r.length);
|
|
562
|
+
let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
563
|
+
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
564
|
+
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
|
|
565
|
+
for (; e;) {
|
|
566
|
+
let f = e.split("\n", 1)[0], p;
|
|
567
|
+
if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
|
|
568
|
+
if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
|
|
569
|
+
else {
|
|
570
|
+
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
571
|
+
s += "\n" + l;
|
|
572
|
+
}
|
|
573
|
+
!u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0));
|
|
577
|
+
let f = null, p;
|
|
578
|
+
this.options.gfm && (f = this.rules.other.listIsTask.exec(s), f && (p = f[0] !== "[ ] ", s = s.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
579
|
+
type: "list_item",
|
|
580
|
+
raw: r,
|
|
581
|
+
task: !!f,
|
|
582
|
+
checked: p,
|
|
583
|
+
loose: !1,
|
|
584
|
+
text: s,
|
|
585
|
+
tokens: []
|
|
586
|
+
}), i.raw += r;
|
|
587
|
+
}
|
|
588
|
+
let s = i.items.at(-1);
|
|
589
|
+
if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
|
|
590
|
+
else return;
|
|
591
|
+
i.raw = i.raw.trimEnd();
|
|
592
|
+
for (let e = 0; e < i.items.length; e++) if (this.lexer.state.top = !1, i.items[e].tokens = this.lexer.blockTokens(i.items[e].text, []), !i.loose) {
|
|
593
|
+
let t = i.items[e].tokens.filter((e) => e.type === "space");
|
|
594
|
+
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
595
|
+
}
|
|
596
|
+
if (i.loose) for (let e = 0; e < i.items.length; e++) i.items[e].loose = !0;
|
|
597
|
+
return i;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
html(e) {
|
|
601
|
+
let t = this.rules.block.html.exec(e);
|
|
602
|
+
if (t) return {
|
|
603
|
+
type: "html",
|
|
604
|
+
block: !0,
|
|
605
|
+
raw: t[0],
|
|
606
|
+
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
607
|
+
text: t[0]
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
def(e) {
|
|
611
|
+
let t = this.rules.block.def.exec(e);
|
|
612
|
+
if (t) {
|
|
613
|
+
let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
614
|
+
return {
|
|
615
|
+
type: "def",
|
|
616
|
+
tag: e,
|
|
617
|
+
raw: t[0],
|
|
618
|
+
href: n,
|
|
619
|
+
title: r
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
table(e) {
|
|
624
|
+
var t;
|
|
625
|
+
let n = this.rules.block.table.exec(e);
|
|
626
|
+
if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
|
|
627
|
+
let r = pt(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
|
|
628
|
+
type: "table",
|
|
629
|
+
raw: n[0],
|
|
630
|
+
header: [],
|
|
631
|
+
align: [],
|
|
632
|
+
rows: []
|
|
633
|
+
};
|
|
634
|
+
if (r.length === i.length) {
|
|
635
|
+
for (let e of i) this.rules.other.tableAlignRight.test(e) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? o.align.push("left") : o.align.push(null);
|
|
636
|
+
for (let e = 0; e < r.length; e++) o.header.push({
|
|
637
|
+
text: r[e],
|
|
638
|
+
tokens: this.lexer.inline(r[e]),
|
|
639
|
+
header: !0,
|
|
640
|
+
align: o.align[e]
|
|
641
|
+
});
|
|
642
|
+
for (let e of a) o.rows.push(pt(e, o.header.length).map((e, t) => ({
|
|
643
|
+
text: e,
|
|
644
|
+
tokens: this.lexer.inline(e),
|
|
645
|
+
header: !1,
|
|
646
|
+
align: o.align[t]
|
|
647
|
+
})));
|
|
648
|
+
return o;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
lheading(e) {
|
|
652
|
+
let t = this.rules.block.lheading.exec(e);
|
|
653
|
+
if (t) return {
|
|
654
|
+
type: "heading",
|
|
655
|
+
raw: t[0],
|
|
656
|
+
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
657
|
+
text: t[1],
|
|
658
|
+
tokens: this.lexer.inline(t[1])
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
paragraph(e) {
|
|
662
|
+
let t = this.rules.block.paragraph.exec(e);
|
|
663
|
+
if (t) {
|
|
664
|
+
let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
|
|
665
|
+
return {
|
|
666
|
+
type: "paragraph",
|
|
667
|
+
raw: t[0],
|
|
668
|
+
text: e,
|
|
669
|
+
tokens: this.lexer.inline(e)
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
text(e) {
|
|
674
|
+
let t = this.rules.block.text.exec(e);
|
|
675
|
+
if (t) return {
|
|
676
|
+
type: "text",
|
|
677
|
+
raw: t[0],
|
|
678
|
+
text: t[0],
|
|
679
|
+
tokens: this.lexer.inline(t[0])
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
escape(e) {
|
|
683
|
+
let t = this.rules.inline.escape.exec(e);
|
|
684
|
+
if (t) return {
|
|
685
|
+
type: "escape",
|
|
686
|
+
raw: t[0],
|
|
687
|
+
text: t[1]
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
tag(e) {
|
|
691
|
+
let t = this.rules.inline.tag.exec(e);
|
|
692
|
+
if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
693
|
+
type: "html",
|
|
694
|
+
raw: t[0],
|
|
695
|
+
inLink: this.lexer.state.inLink,
|
|
696
|
+
inRawBlock: this.lexer.state.inRawBlock,
|
|
697
|
+
block: !1,
|
|
698
|
+
text: t[0]
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
link(e) {
|
|
702
|
+
let t = this.rules.inline.link.exec(e);
|
|
703
|
+
if (t) {
|
|
704
|
+
let e = t[2].trim();
|
|
705
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
706
|
+
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
707
|
+
let t = z(e.slice(0, -1), "\\");
|
|
708
|
+
if ((e.length - t.length) % 2 == 0) return;
|
|
709
|
+
} else {
|
|
710
|
+
let e = mt(t[2], "()");
|
|
711
|
+
if (e === -2) return;
|
|
712
|
+
if (e > -1) {
|
|
713
|
+
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
714
|
+
t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
let n = t[2], r = "";
|
|
718
|
+
if (this.options.pedantic) {
|
|
719
|
+
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
720
|
+
e && (n = e[1], r = e[3]);
|
|
721
|
+
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
722
|
+
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)), ht(t, {
|
|
723
|
+
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
724
|
+
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
725
|
+
}, t[0], this.lexer, this.rules);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
reflink(e, t) {
|
|
729
|
+
let n;
|
|
730
|
+
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
|
|
731
|
+
let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
732
|
+
if (!e) {
|
|
733
|
+
let e = n[0].charAt(0);
|
|
734
|
+
return {
|
|
735
|
+
type: "text",
|
|
736
|
+
raw: e,
|
|
737
|
+
text: e
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
return ht(n, e, n[0], this.lexer, this.rules);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
emStrong(e, t, n = "") {
|
|
744
|
+
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
745
|
+
if (!(!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
|
|
746
|
+
let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
747
|
+
for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
|
|
748
|
+
if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
|
|
749
|
+
if (a = [...i].length, r[3] || r[4]) {
|
|
750
|
+
o += a;
|
|
751
|
+
continue;
|
|
752
|
+
} else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
753
|
+
s += a;
|
|
754
|
+
continue;
|
|
755
|
+
}
|
|
756
|
+
if (o -= a, o > 0) continue;
|
|
757
|
+
a = Math.min(a, a + o + s);
|
|
758
|
+
let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
|
|
759
|
+
if (Math.min(n, a) % 2) {
|
|
760
|
+
let e = c.slice(1, -1);
|
|
761
|
+
return {
|
|
762
|
+
type: "em",
|
|
763
|
+
raw: c,
|
|
764
|
+
text: e,
|
|
765
|
+
tokens: this.lexer.inlineTokens(e)
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
let l = c.slice(2, -2);
|
|
769
|
+
return {
|
|
770
|
+
type: "strong",
|
|
771
|
+
raw: c,
|
|
772
|
+
text: l,
|
|
773
|
+
tokens: this.lexer.inlineTokens(l)
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
codespan(e) {
|
|
779
|
+
let t = this.rules.inline.code.exec(e);
|
|
780
|
+
if (t) {
|
|
781
|
+
let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
|
|
782
|
+
return n && r && (e = e.substring(1, e.length - 1)), {
|
|
783
|
+
type: "codespan",
|
|
784
|
+
raw: t[0],
|
|
785
|
+
text: e
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
br(e) {
|
|
790
|
+
let t = this.rules.inline.br.exec(e);
|
|
791
|
+
if (t) return {
|
|
792
|
+
type: "br",
|
|
793
|
+
raw: t[0]
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
del(e) {
|
|
797
|
+
let t = this.rules.inline.del.exec(e);
|
|
798
|
+
if (t) return {
|
|
799
|
+
type: "del",
|
|
800
|
+
raw: t[0],
|
|
801
|
+
text: t[2],
|
|
802
|
+
tokens: this.lexer.inlineTokens(t[2])
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
autolink(e) {
|
|
806
|
+
let t = this.rules.inline.autolink.exec(e);
|
|
807
|
+
if (t) {
|
|
808
|
+
let e, n;
|
|
809
|
+
return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
|
|
810
|
+
type: "link",
|
|
811
|
+
raw: t[0],
|
|
812
|
+
text: e,
|
|
813
|
+
href: n,
|
|
814
|
+
tokens: [{
|
|
815
|
+
type: "text",
|
|
816
|
+
raw: e,
|
|
817
|
+
text: e
|
|
818
|
+
}]
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
url(e) {
|
|
823
|
+
let t;
|
|
824
|
+
if (t = this.rules.inline.url.exec(e)) {
|
|
825
|
+
let e, i;
|
|
826
|
+
if (t[2] === "@") e = t[0], i = "mailto:" + e;
|
|
827
|
+
else {
|
|
828
|
+
var n, r;
|
|
829
|
+
let a;
|
|
830
|
+
do
|
|
831
|
+
a = t[0], t[0] = (n = (r = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : r[0]) == null ? "" : n;
|
|
832
|
+
while (a !== t[0]);
|
|
833
|
+
e = t[0], i = t[1] === "www." ? "http://" + t[0] : t[0];
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
type: "link",
|
|
837
|
+
raw: t[0],
|
|
838
|
+
text: e,
|
|
839
|
+
href: i,
|
|
840
|
+
tokens: [{
|
|
841
|
+
type: "text",
|
|
842
|
+
raw: e,
|
|
843
|
+
text: e
|
|
844
|
+
}]
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
inlineText(e) {
|
|
849
|
+
let t = this.rules.inline.text.exec(e);
|
|
850
|
+
if (t) {
|
|
851
|
+
let e = this.lexer.state.inRawBlock;
|
|
852
|
+
return {
|
|
853
|
+
type: "text",
|
|
854
|
+
raw: t[0],
|
|
855
|
+
text: t[0],
|
|
856
|
+
escaped: e
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}, V = class t {
|
|
861
|
+
constructor(t) {
|
|
862
|
+
e(this, "tokens", void 0), e(this, "options", void 0), e(this, "state", void 0), e(this, "tokenizer", void 0), e(this, "inlineQueue", void 0), this.tokens = [], this.tokens.links = Object.create(null), this.options = t || b, this.options.tokenizer = this.options.tokenizer || new B(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
863
|
+
inLink: !1,
|
|
864
|
+
inRawBlock: !1,
|
|
865
|
+
top: !0
|
|
866
|
+
};
|
|
867
|
+
let n = {
|
|
868
|
+
other: C,
|
|
869
|
+
block: I.normal,
|
|
870
|
+
inline: L.normal
|
|
871
|
+
};
|
|
872
|
+
this.options.pedantic ? (n.block = I.pedantic, n.inline = L.pedantic) : this.options.gfm && (n.block = I.gfm, this.options.breaks ? n.inline = L.breaks : n.inline = L.gfm), this.tokenizer.rules = n;
|
|
873
|
+
}
|
|
874
|
+
static get rules() {
|
|
875
|
+
return {
|
|
876
|
+
block: I,
|
|
877
|
+
inline: L
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
static lex(e, n) {
|
|
881
|
+
return new t(n).lex(e);
|
|
882
|
+
}
|
|
883
|
+
static lexInline(e, n) {
|
|
884
|
+
return new t(n).inlineTokens(e);
|
|
885
|
+
}
|
|
886
|
+
lex(e) {
|
|
887
|
+
e = e.replace(C.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
888
|
+
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
889
|
+
let t = this.inlineQueue[e];
|
|
890
|
+
this.inlineTokens(t.src, t.tokens);
|
|
891
|
+
}
|
|
892
|
+
return this.inlineQueue = [], this.tokens;
|
|
893
|
+
}
|
|
894
|
+
blockTokens(e, t = [], n = !1) {
|
|
895
|
+
for (this.options.pedantic && (e = e.replace(C.tabCharGlobal, " ").replace(C.spaceLine, "")); e;) {
|
|
896
|
+
var r, i;
|
|
897
|
+
let a;
|
|
898
|
+
if (!((r = this.options.extensions) == null || (r = r.block) == null) && r.some((n) => (a = n.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1)) continue;
|
|
899
|
+
if (a = this.tokenizer.space(e)) {
|
|
900
|
+
e = e.substring(a.raw.length);
|
|
901
|
+
let n = t.at(-1);
|
|
902
|
+
a.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(a);
|
|
903
|
+
continue;
|
|
904
|
+
}
|
|
905
|
+
if (a = this.tokenizer.code(e)) {
|
|
906
|
+
e = e.substring(a.raw.length);
|
|
907
|
+
let n = t.at(-1);
|
|
908
|
+
(n == null ? void 0 : n.type) === "paragraph" || (n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.text, this.inlineQueue.at(-1).src = n.text) : t.push(a);
|
|
909
|
+
continue;
|
|
910
|
+
}
|
|
911
|
+
if (a = this.tokenizer.fences(e)) {
|
|
912
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
913
|
+
continue;
|
|
914
|
+
}
|
|
915
|
+
if (a = this.tokenizer.heading(e)) {
|
|
916
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
if (a = this.tokenizer.hr(e)) {
|
|
920
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
921
|
+
continue;
|
|
922
|
+
}
|
|
923
|
+
if (a = this.tokenizer.blockquote(e)) {
|
|
924
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
if (a = this.tokenizer.list(e)) {
|
|
928
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
929
|
+
continue;
|
|
930
|
+
}
|
|
931
|
+
if (a = this.tokenizer.html(e)) {
|
|
932
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
if (a = this.tokenizer.def(e)) {
|
|
936
|
+
e = e.substring(a.raw.length);
|
|
937
|
+
let n = t.at(-1);
|
|
938
|
+
(n == null ? void 0 : n.type) === "paragraph" || (n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
|
|
939
|
+
href: a.href,
|
|
940
|
+
title: a.title
|
|
941
|
+
}, t.push(a));
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
if (a = this.tokenizer.table(e)) {
|
|
945
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
if (a = this.tokenizer.lheading(e)) {
|
|
949
|
+
e = e.substring(a.raw.length), t.push(a);
|
|
950
|
+
continue;
|
|
951
|
+
}
|
|
952
|
+
let o = e;
|
|
953
|
+
if ((i = this.options.extensions) != null && i.startBlock) {
|
|
954
|
+
let t = Infinity, n = e.slice(1), r;
|
|
955
|
+
this.options.extensions.startBlock.forEach((e) => {
|
|
956
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
957
|
+
}), t < Infinity && t >= 0 && (o = e.substring(0, t + 1));
|
|
958
|
+
}
|
|
959
|
+
if (this.state.top && (a = this.tokenizer.paragraph(o))) {
|
|
960
|
+
let r = t.at(-1);
|
|
961
|
+
n && (r == null ? void 0 : r.type) === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + a.raw, r.text += "\n" + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(a), n = o.length !== e.length, e = e.substring(a.raw.length);
|
|
962
|
+
continue;
|
|
963
|
+
}
|
|
964
|
+
if (a = this.tokenizer.text(e)) {
|
|
965
|
+
e = e.substring(a.raw.length);
|
|
966
|
+
let n = t.at(-1);
|
|
967
|
+
(n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(a);
|
|
968
|
+
continue;
|
|
969
|
+
}
|
|
970
|
+
if (e) {
|
|
971
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
972
|
+
if (this.options.silent) {
|
|
973
|
+
console.error(t);
|
|
974
|
+
break;
|
|
975
|
+
} else throw Error(t);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
return this.state.top = !0, t;
|
|
979
|
+
}
|
|
980
|
+
inline(e, t = []) {
|
|
981
|
+
return this.inlineQueue.push({
|
|
982
|
+
src: e,
|
|
983
|
+
tokens: t
|
|
984
|
+
}), t;
|
|
985
|
+
}
|
|
986
|
+
inlineTokens(e, t = []) {
|
|
987
|
+
var n, r;
|
|
988
|
+
let i = e, a = null;
|
|
989
|
+
if (this.tokens.links) {
|
|
990
|
+
let e = Object.keys(this.tokens.links);
|
|
991
|
+
if (e.length > 0) for (; (a = this.tokenizer.rules.inline.reflinkSearch.exec(i)) != null;) e.includes(a[0].slice(a[0].lastIndexOf("[") + 1, -1)) && (i = i.slice(0, a.index) + "[" + "a".repeat(a[0].length - 2) + "]" + i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
992
|
+
}
|
|
993
|
+
for (; (a = this.tokenizer.rules.inline.anyPunctuation.exec(i)) != null;) i = i.slice(0, a.index) + "++" + i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
994
|
+
let o;
|
|
995
|
+
for (; (a = this.tokenizer.rules.inline.blockSkip.exec(i)) != null;) o = a[2] ? a[2].length : 0, i = i.slice(0, a.index + o) + "[" + "a".repeat(a[0].length - o - 2) + "]" + i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
996
|
+
i = (n = (r = this.options.hooks) == null || (r = r.emStrongMask) == null ? void 0 : r.call({ lexer: this }, i)) == null ? i : n;
|
|
997
|
+
let s = !1, c = "";
|
|
998
|
+
for (; e;) {
|
|
999
|
+
var l, u;
|
|
1000
|
+
s || (c = ""), s = !1;
|
|
1001
|
+
let n;
|
|
1002
|
+
if (!((l = this.options.extensions) == null || (l = l.inline) == null) && l.some((r) => (n = r.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1)) continue;
|
|
1003
|
+
if (n = this.tokenizer.escape(e)) {
|
|
1004
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1005
|
+
continue;
|
|
1006
|
+
}
|
|
1007
|
+
if (n = this.tokenizer.tag(e)) {
|
|
1008
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
if (n = this.tokenizer.link(e)) {
|
|
1012
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1013
|
+
continue;
|
|
1014
|
+
}
|
|
1015
|
+
if (n = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
1016
|
+
e = e.substring(n.raw.length);
|
|
1017
|
+
let r = t.at(-1);
|
|
1018
|
+
n.type === "text" && (r == null ? void 0 : r.type) === "text" ? (r.raw += n.raw, r.text += n.text) : t.push(n);
|
|
1019
|
+
continue;
|
|
1020
|
+
}
|
|
1021
|
+
if (n = this.tokenizer.emStrong(e, i, c)) {
|
|
1022
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1023
|
+
continue;
|
|
1024
|
+
}
|
|
1025
|
+
if (n = this.tokenizer.codespan(e)) {
|
|
1026
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1027
|
+
continue;
|
|
1028
|
+
}
|
|
1029
|
+
if (n = this.tokenizer.br(e)) {
|
|
1030
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
if (n = this.tokenizer.del(e)) {
|
|
1034
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1035
|
+
continue;
|
|
1036
|
+
}
|
|
1037
|
+
if (n = this.tokenizer.autolink(e)) {
|
|
1038
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1039
|
+
continue;
|
|
1040
|
+
}
|
|
1041
|
+
if (!this.state.inLink && (n = this.tokenizer.url(e))) {
|
|
1042
|
+
e = e.substring(n.raw.length), t.push(n);
|
|
1043
|
+
continue;
|
|
1044
|
+
}
|
|
1045
|
+
let r = e;
|
|
1046
|
+
if ((u = this.options.extensions) != null && u.startInline) {
|
|
1047
|
+
let t = Infinity, n = e.slice(1), i;
|
|
1048
|
+
this.options.extensions.startInline.forEach((e) => {
|
|
1049
|
+
i = e.call({ lexer: this }, n), typeof i == "number" && i >= 0 && (t = Math.min(t, i));
|
|
1050
|
+
}), t < Infinity && t >= 0 && (r = e.substring(0, t + 1));
|
|
1051
|
+
}
|
|
1052
|
+
if (n = this.tokenizer.inlineText(r)) {
|
|
1053
|
+
e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (c = n.raw.slice(-1)), s = !0;
|
|
1054
|
+
let r = t.at(-1);
|
|
1055
|
+
(r == null ? void 0 : r.type) === "text" ? (r.raw += n.raw, r.text += n.text) : t.push(n);
|
|
1056
|
+
continue;
|
|
1057
|
+
}
|
|
1058
|
+
if (e) {
|
|
1059
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
1060
|
+
if (this.options.silent) {
|
|
1061
|
+
console.error(t);
|
|
1062
|
+
break;
|
|
1063
|
+
} else throw Error(t);
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
return t;
|
|
1067
|
+
}
|
|
1068
|
+
}, H = class {
|
|
1069
|
+
constructor(t) {
|
|
1070
|
+
e(this, "options", void 0), e(this, "parser", void 0), this.options = t || b;
|
|
1071
|
+
}
|
|
1072
|
+
space(e) {
|
|
1073
|
+
return "";
|
|
1074
|
+
}
|
|
1075
|
+
code({ text: e, lang: t, escaped: n }) {
|
|
1076
|
+
var r;
|
|
1077
|
+
let i = (r = (t || "").match(C.notSpaceStart)) == null ? void 0 : r[0], a = e.replace(C.endingNewline, "") + "\n";
|
|
1078
|
+
return i ? "<pre><code class=\"language-" + R(i) + "\">" + (n ? a : R(a, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? a : R(a, !0)) + "</code></pre>\n";
|
|
1079
|
+
}
|
|
1080
|
+
blockquote({ tokens: e }) {
|
|
1081
|
+
return `<blockquote>
|
|
1082
|
+
${this.parser.parse(e)}</blockquote>
|
|
1083
|
+
`;
|
|
1084
|
+
}
|
|
1085
|
+
html({ text: e }) {
|
|
1086
|
+
return e;
|
|
1087
|
+
}
|
|
1088
|
+
def(e) {
|
|
1089
|
+
return "";
|
|
1090
|
+
}
|
|
1091
|
+
heading({ tokens: e, depth: t }) {
|
|
1092
|
+
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
1093
|
+
`;
|
|
1094
|
+
}
|
|
1095
|
+
hr(e) {
|
|
1096
|
+
return "<hr>\n";
|
|
1097
|
+
}
|
|
1098
|
+
list(e) {
|
|
1099
|
+
let t = e.ordered, n = e.start, r = "";
|
|
1100
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
1101
|
+
let n = e.items[t];
|
|
1102
|
+
r += this.listitem(n);
|
|
1103
|
+
}
|
|
1104
|
+
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
1105
|
+
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
1106
|
+
}
|
|
1107
|
+
listitem(e) {
|
|
1108
|
+
let t = "";
|
|
1109
|
+
if (e.task) {
|
|
1110
|
+
var n;
|
|
1111
|
+
let r = this.checkbox({ checked: !!e.checked });
|
|
1112
|
+
e.loose ? ((n = e.tokens[0]) == null ? void 0 : n.type) === "paragraph" ? (e.tokens[0].text = r + " " + 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 = r + " " + R(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
1113
|
+
type: "text",
|
|
1114
|
+
raw: r + " ",
|
|
1115
|
+
text: r + " ",
|
|
1116
|
+
escaped: !0
|
|
1117
|
+
}) : t += r + " ";
|
|
1118
|
+
}
|
|
1119
|
+
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
1120
|
+
`;
|
|
1121
|
+
}
|
|
1122
|
+
checkbox({ checked: e }) {
|
|
1123
|
+
return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
|
|
1124
|
+
}
|
|
1125
|
+
paragraph({ tokens: e }) {
|
|
1126
|
+
return `<p>${this.parser.parseInline(e)}</p>
|
|
1127
|
+
`;
|
|
1128
|
+
}
|
|
1129
|
+
table(e) {
|
|
1130
|
+
let t = "", n = "";
|
|
1131
|
+
for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
|
|
1132
|
+
t += this.tablerow({ text: n });
|
|
1133
|
+
let r = "";
|
|
1134
|
+
for (let t = 0; t < e.rows.length; t++) {
|
|
1135
|
+
let i = e.rows[t];
|
|
1136
|
+
n = "";
|
|
1137
|
+
for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
|
|
1138
|
+
r += this.tablerow({ text: n });
|
|
1139
|
+
}
|
|
1140
|
+
return r && (r = `<tbody>${r}</tbody>`), "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
|
|
1141
|
+
}
|
|
1142
|
+
tablerow({ text: e }) {
|
|
1143
|
+
return `<tr>
|
|
1144
|
+
${e}</tr>
|
|
1145
|
+
`;
|
|
1146
|
+
}
|
|
1147
|
+
tablecell(e) {
|
|
1148
|
+
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
|
|
1149
|
+
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
1150
|
+
`;
|
|
1151
|
+
}
|
|
1152
|
+
strong({ tokens: e }) {
|
|
1153
|
+
return `<strong>${this.parser.parseInline(e)}</strong>`;
|
|
1154
|
+
}
|
|
1155
|
+
em({ tokens: e }) {
|
|
1156
|
+
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1157
|
+
}
|
|
1158
|
+
codespan({ text: e }) {
|
|
1159
|
+
return `<code>${R(e, !0)}</code>`;
|
|
1160
|
+
}
|
|
1161
|
+
br(e) {
|
|
1162
|
+
return "<br>";
|
|
1163
|
+
}
|
|
1164
|
+
del({ tokens: e }) {
|
|
1165
|
+
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1166
|
+
}
|
|
1167
|
+
link({ href: e, title: t, tokens: n }) {
|
|
1168
|
+
let r = this.parser.parseInline(n), i = ft(e);
|
|
1169
|
+
if (i === null) return r;
|
|
1170
|
+
e = i;
|
|
1171
|
+
let a = "<a href=\"" + e + "\"";
|
|
1172
|
+
return t && (a += " title=\"" + R(t) + "\""), a += ">" + r + "</a>", a;
|
|
1173
|
+
}
|
|
1174
|
+
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1175
|
+
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1176
|
+
let i = ft(e);
|
|
1177
|
+
if (i === null) return R(n);
|
|
1178
|
+
e = i;
|
|
1179
|
+
let a = `<img src="${e}" alt="${n}"`;
|
|
1180
|
+
return t && (a += ` title="${R(t)}"`), a += ">", a;
|
|
1181
|
+
}
|
|
1182
|
+
text(e) {
|
|
1183
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : R(e.text);
|
|
1184
|
+
}
|
|
1185
|
+
}, U = class {
|
|
1186
|
+
strong({ text: e }) {
|
|
1187
|
+
return e;
|
|
1188
|
+
}
|
|
1189
|
+
em({ text: e }) {
|
|
1190
|
+
return e;
|
|
1191
|
+
}
|
|
1192
|
+
codespan({ text: e }) {
|
|
1193
|
+
return e;
|
|
1194
|
+
}
|
|
1195
|
+
del({ text: e }) {
|
|
1196
|
+
return e;
|
|
1197
|
+
}
|
|
1198
|
+
html({ text: e }) {
|
|
1199
|
+
return e;
|
|
1200
|
+
}
|
|
1201
|
+
text({ text: e }) {
|
|
1202
|
+
return e;
|
|
1203
|
+
}
|
|
1204
|
+
link({ text: e }) {
|
|
1205
|
+
return "" + e;
|
|
1206
|
+
}
|
|
1207
|
+
image({ text: e }) {
|
|
1208
|
+
return "" + e;
|
|
1209
|
+
}
|
|
1210
|
+
br() {
|
|
1211
|
+
return "";
|
|
1212
|
+
}
|
|
1213
|
+
}, W = class t {
|
|
1214
|
+
constructor(t) {
|
|
1215
|
+
e(this, "options", void 0), e(this, "renderer", void 0), e(this, "textRenderer", void 0), this.options = t || b, this.options.renderer = this.options.renderer || new H(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
|
|
1216
|
+
}
|
|
1217
|
+
static parse(e, n) {
|
|
1218
|
+
return new t(n).parse(e);
|
|
1219
|
+
}
|
|
1220
|
+
static parseInline(e, n) {
|
|
1221
|
+
return new t(n).parseInline(e);
|
|
1222
|
+
}
|
|
1223
|
+
parse(e, t = !0) {
|
|
1224
|
+
let n = "";
|
|
1225
|
+
for (let i = 0; i < e.length; i++) {
|
|
1226
|
+
var r;
|
|
1227
|
+
let a = e[i];
|
|
1228
|
+
if (!((r = this.options.extensions) == null || (r = r.renderers) == null) && r[a.type]) {
|
|
1229
|
+
let e = a, t = this.options.extensions.renderers[e.type].call({ parser: this }, e);
|
|
1230
|
+
if (t !== !1 || ![
|
|
1231
|
+
"space",
|
|
1232
|
+
"hr",
|
|
1233
|
+
"heading",
|
|
1234
|
+
"code",
|
|
1235
|
+
"table",
|
|
1236
|
+
"blockquote",
|
|
1237
|
+
"list",
|
|
1238
|
+
"html",
|
|
1239
|
+
"def",
|
|
1240
|
+
"paragraph",
|
|
1241
|
+
"text"
|
|
1242
|
+
].includes(e.type)) {
|
|
1243
|
+
n += t || "";
|
|
1244
|
+
continue;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
let o = a;
|
|
1248
|
+
switch (o.type) {
|
|
1249
|
+
case "space":
|
|
1250
|
+
n += this.renderer.space(o);
|
|
1251
|
+
continue;
|
|
1252
|
+
case "hr":
|
|
1253
|
+
n += this.renderer.hr(o);
|
|
1254
|
+
continue;
|
|
1255
|
+
case "heading":
|
|
1256
|
+
n += this.renderer.heading(o);
|
|
1257
|
+
continue;
|
|
1258
|
+
case "code":
|
|
1259
|
+
n += this.renderer.code(o);
|
|
1260
|
+
continue;
|
|
1261
|
+
case "table":
|
|
1262
|
+
n += this.renderer.table(o);
|
|
1263
|
+
continue;
|
|
1264
|
+
case "blockquote":
|
|
1265
|
+
n += this.renderer.blockquote(o);
|
|
1266
|
+
continue;
|
|
1267
|
+
case "list":
|
|
1268
|
+
n += this.renderer.list(o);
|
|
1269
|
+
continue;
|
|
1270
|
+
case "html":
|
|
1271
|
+
n += this.renderer.html(o);
|
|
1272
|
+
continue;
|
|
1273
|
+
case "def":
|
|
1274
|
+
n += this.renderer.def(o);
|
|
1275
|
+
continue;
|
|
1276
|
+
case "paragraph":
|
|
1277
|
+
n += this.renderer.paragraph(o);
|
|
1278
|
+
continue;
|
|
1279
|
+
case "text": {
|
|
1280
|
+
let r = o, a = this.renderer.text(r);
|
|
1281
|
+
for (; i + 1 < e.length && e[i + 1].type === "text";) r = e[++i], a += "\n" + this.renderer.text(r);
|
|
1282
|
+
t ? n += this.renderer.paragraph({
|
|
1283
|
+
type: "paragraph",
|
|
1284
|
+
raw: a,
|
|
1285
|
+
text: a,
|
|
1286
|
+
tokens: [{
|
|
1287
|
+
type: "text",
|
|
1288
|
+
raw: a,
|
|
1289
|
+
text: a,
|
|
1290
|
+
escaped: !0
|
|
1291
|
+
}]
|
|
1292
|
+
}) : n += a;
|
|
1293
|
+
continue;
|
|
1294
|
+
}
|
|
1295
|
+
default: {
|
|
1296
|
+
let e = "Token with \"" + o.type + "\" type was not found.";
|
|
1297
|
+
if (this.options.silent) return console.error(e), "";
|
|
1298
|
+
throw Error(e);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
return n;
|
|
1303
|
+
}
|
|
1304
|
+
parseInline(e, t = this.renderer) {
|
|
1305
|
+
let n = "";
|
|
1306
|
+
for (let i = 0; i < e.length; i++) {
|
|
1307
|
+
var r;
|
|
1308
|
+
let a = e[i];
|
|
1309
|
+
if (!((r = this.options.extensions) == null || (r = r.renderers) == null) && r[a.type]) {
|
|
1310
|
+
let e = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
1311
|
+
if (e !== !1 || ![
|
|
1312
|
+
"escape",
|
|
1313
|
+
"html",
|
|
1314
|
+
"link",
|
|
1315
|
+
"image",
|
|
1316
|
+
"strong",
|
|
1317
|
+
"em",
|
|
1318
|
+
"codespan",
|
|
1319
|
+
"br",
|
|
1320
|
+
"del",
|
|
1321
|
+
"text"
|
|
1322
|
+
].includes(a.type)) {
|
|
1323
|
+
n += e || "";
|
|
1324
|
+
continue;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
let o = a;
|
|
1328
|
+
switch (o.type) {
|
|
1329
|
+
case "escape":
|
|
1330
|
+
n += t.text(o);
|
|
1331
|
+
break;
|
|
1332
|
+
case "html":
|
|
1333
|
+
n += t.html(o);
|
|
1334
|
+
break;
|
|
1335
|
+
case "link":
|
|
1336
|
+
n += t.link(o);
|
|
1337
|
+
break;
|
|
1338
|
+
case "image":
|
|
1339
|
+
n += t.image(o);
|
|
1340
|
+
break;
|
|
1341
|
+
case "strong":
|
|
1342
|
+
n += t.strong(o);
|
|
1343
|
+
break;
|
|
1344
|
+
case "em":
|
|
1345
|
+
n += t.em(o);
|
|
1346
|
+
break;
|
|
1347
|
+
case "codespan":
|
|
1348
|
+
n += t.codespan(o);
|
|
1349
|
+
break;
|
|
1350
|
+
case "br":
|
|
1351
|
+
n += t.br(o);
|
|
1352
|
+
break;
|
|
1353
|
+
case "del":
|
|
1354
|
+
n += t.del(o);
|
|
1355
|
+
break;
|
|
1356
|
+
case "text":
|
|
1357
|
+
n += t.text(o);
|
|
1358
|
+
break;
|
|
1359
|
+
default: {
|
|
1360
|
+
let e = "Token with \"" + o.type + "\" type was not found.";
|
|
1361
|
+
if (this.options.silent) return console.error(e), "";
|
|
1362
|
+
throw Error(e);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
return n;
|
|
1367
|
+
}
|
|
1368
|
+
}, G = (v = class {
|
|
1369
|
+
constructor(t) {
|
|
1370
|
+
e(this, "options", void 0), e(this, "block", void 0), this.options = t || b;
|
|
1371
|
+
}
|
|
1372
|
+
preprocess(e) {
|
|
1373
|
+
return e;
|
|
1374
|
+
}
|
|
1375
|
+
postprocess(e) {
|
|
1376
|
+
return e;
|
|
1377
|
+
}
|
|
1378
|
+
processAllTokens(e) {
|
|
1379
|
+
return e;
|
|
1380
|
+
}
|
|
1381
|
+
emStrongMask(e) {
|
|
1382
|
+
return e;
|
|
1383
|
+
}
|
|
1384
|
+
provideLexer() {
|
|
1385
|
+
return this.block ? V.lex : V.lexInline;
|
|
1386
|
+
}
|
|
1387
|
+
provideParser() {
|
|
1388
|
+
return this.block ? W.parse : W.parseInline;
|
|
1389
|
+
}
|
|
1390
|
+
}, e(v, "passThroughHooks", new Set([
|
|
1391
|
+
"preprocess",
|
|
1392
|
+
"postprocess",
|
|
1393
|
+
"processAllTokens",
|
|
1394
|
+
"emStrongMask"
|
|
1395
|
+
])), e(v, "passThroughHooksRespectAsync", new Set([
|
|
1396
|
+
"preprocess",
|
|
1397
|
+
"postprocess",
|
|
1398
|
+
"processAllTokens"
|
|
1399
|
+
])), v), K = new class {
|
|
1400
|
+
constructor(...t) {
|
|
1401
|
+
e(this, "defaults", y()), e(this, "options", this.setOptions), e(this, "parse", this.parseMarkdown(!0)), e(this, "parseInline", this.parseMarkdown(!1)), e(this, "Parser", W), e(this, "Renderer", H), e(this, "TextRenderer", U), e(this, "Lexer", V), e(this, "Tokenizer", B), e(this, "Hooks", G), this.use(...t);
|
|
1402
|
+
}
|
|
1403
|
+
walkTokens(e, t) {
|
|
1404
|
+
let n = [];
|
|
1405
|
+
for (let i of e) switch (n = n.concat(t.call(this, i)), i.type) {
|
|
1406
|
+
case "table": {
|
|
1407
|
+
let e = i;
|
|
1408
|
+
for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
|
|
1409
|
+
for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
case "list": {
|
|
1413
|
+
let e = i;
|
|
1414
|
+
n = n.concat(this.walkTokens(e.items, t));
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
default: {
|
|
1418
|
+
var r;
|
|
1419
|
+
let e = i;
|
|
1420
|
+
!((r = this.defaults.extensions) == null || (r = r.childTokens) == null) && r[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
1421
|
+
let i = e[r].flat(Infinity);
|
|
1422
|
+
n = n.concat(this.walkTokens(i, t));
|
|
1423
|
+
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
return n;
|
|
1427
|
+
}
|
|
1428
|
+
use(...e) {
|
|
1429
|
+
let n = this.defaults.extensions || {
|
|
1430
|
+
renderers: {},
|
|
1431
|
+
childTokens: {}
|
|
1432
|
+
};
|
|
1433
|
+
return e.forEach((e) => {
|
|
1434
|
+
let r = t({}, e);
|
|
1435
|
+
if (r.async = this.defaults.async || r.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
1436
|
+
if (!e.name) throw Error("extension name required");
|
|
1437
|
+
if ("renderer" in e) {
|
|
1438
|
+
let t = n.renderers[e.name];
|
|
1439
|
+
t ? n.renderers[e.name] = function(...n) {
|
|
1440
|
+
let r = e.renderer.apply(this, n);
|
|
1441
|
+
return r === !1 && (r = t.apply(this, n)), r;
|
|
1442
|
+
} : n.renderers[e.name] = e.renderer;
|
|
1443
|
+
}
|
|
1444
|
+
if ("tokenizer" in e) {
|
|
1445
|
+
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
1446
|
+
let t = n[e.level];
|
|
1447
|
+
t ? t.unshift(e.tokenizer) : n[e.level] = [e.tokenizer], e.start && (e.level === "block" ? n.startBlock ? n.startBlock.push(e.start) : n.startBlock = [e.start] : e.level === "inline" && (n.startInline ? n.startInline.push(e.start) : n.startInline = [e.start]));
|
|
1448
|
+
}
|
|
1449
|
+
"childTokens" in e && e.childTokens && (n.childTokens[e.name] = e.childTokens);
|
|
1450
|
+
}), r.extensions = n), e.renderer) {
|
|
1451
|
+
let t = this.defaults.renderer || new H(this.defaults);
|
|
1452
|
+
for (let n in e.renderer) {
|
|
1453
|
+
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
1454
|
+
if (["options", "parser"].includes(n)) continue;
|
|
1455
|
+
let r = n, i = e.renderer[r], a = t[r];
|
|
1456
|
+
t[r] = (...e) => {
|
|
1457
|
+
let n = i.apply(t, e);
|
|
1458
|
+
return n === !1 && (n = a.apply(t, e)), n || "";
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
r.renderer = t;
|
|
1462
|
+
}
|
|
1463
|
+
if (e.tokenizer) {
|
|
1464
|
+
let t = this.defaults.tokenizer || new B(this.defaults);
|
|
1465
|
+
for (let n in e.tokenizer) {
|
|
1466
|
+
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
1467
|
+
if ([
|
|
1468
|
+
"options",
|
|
1469
|
+
"rules",
|
|
1470
|
+
"lexer"
|
|
1471
|
+
].includes(n)) continue;
|
|
1472
|
+
let r = n, i = e.tokenizer[r], a = t[r];
|
|
1473
|
+
t[r] = (...e) => {
|
|
1474
|
+
let n = i.apply(t, e);
|
|
1475
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
r.tokenizer = t;
|
|
1479
|
+
}
|
|
1480
|
+
if (e.hooks) {
|
|
1481
|
+
let t = this.defaults.hooks || new G();
|
|
1482
|
+
for (let n in e.hooks) {
|
|
1483
|
+
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
1484
|
+
if (["options", "block"].includes(n)) continue;
|
|
1485
|
+
let r = n, i = e.hooks[r], a = t[r];
|
|
1486
|
+
G.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
1487
|
+
if (this.defaults.async && G.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
1488
|
+
let n = await i.call(t, e);
|
|
1489
|
+
return a.call(t, n);
|
|
1490
|
+
})();
|
|
1491
|
+
let r = i.call(t, e);
|
|
1492
|
+
return a.call(t, r);
|
|
1493
|
+
} : t[r] = (...e) => {
|
|
1494
|
+
if (this.defaults.async) return (async () => {
|
|
1495
|
+
let n = await i.apply(t, e);
|
|
1496
|
+
return n === !1 && (n = await a.apply(t, e)), n;
|
|
1497
|
+
})();
|
|
1498
|
+
let n = i.apply(t, e);
|
|
1499
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
r.hooks = t;
|
|
1503
|
+
}
|
|
1504
|
+
if (e.walkTokens) {
|
|
1505
|
+
let t = this.defaults.walkTokens, n = e.walkTokens;
|
|
1506
|
+
r.walkTokens = function(e) {
|
|
1507
|
+
let r = [];
|
|
1508
|
+
return r.push(n.call(this, e)), t && (r = r.concat(t.call(this, e))), r;
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
this.defaults = t(t({}, this.defaults), r);
|
|
1512
|
+
}), this;
|
|
1513
|
+
}
|
|
1514
|
+
setOptions(e) {
|
|
1515
|
+
return this.defaults = t(t({}, this.defaults), e), this;
|
|
1516
|
+
}
|
|
1517
|
+
lexer(e, t) {
|
|
1518
|
+
return V.lex(e, t == null ? this.defaults : t);
|
|
1519
|
+
}
|
|
1520
|
+
parser(e, t) {
|
|
1521
|
+
return W.parse(e, t == null ? this.defaults : t);
|
|
1522
|
+
}
|
|
1523
|
+
parseMarkdown(e) {
|
|
1524
|
+
var n = this;
|
|
1525
|
+
return (r, i) => {
|
|
1526
|
+
let a = t({}, i), o = t(t({}, this.defaults), a), s = this.onError(!!o.silent, !!o.async);
|
|
1527
|
+
if (this.defaults.async === !0 && a.async === !1) return s(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
1528
|
+
if (typeof r > "u" || r === null) return s(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
1529
|
+
if (typeof r != "string") return s(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
|
|
1530
|
+
if (o.hooks && (o.hooks.options = o, o.hooks.block = e), o.async) return (async () => {
|
|
1531
|
+
let t = o.hooks ? await o.hooks.preprocess(r) : r, i = await (o.hooks ? await o.hooks.provideLexer() : e ? V.lex : V.lexInline)(t, o), a = o.hooks ? await o.hooks.processAllTokens(i) : i;
|
|
1532
|
+
o.walkTokens && await Promise.all(n.walkTokens(a, o.walkTokens));
|
|
1533
|
+
let s = await (o.hooks ? await o.hooks.provideParser() : e ? W.parse : W.parseInline)(a, o);
|
|
1534
|
+
return o.hooks ? await o.hooks.postprocess(s) : s;
|
|
1535
|
+
})().catch(s);
|
|
1536
|
+
try {
|
|
1537
|
+
o.hooks && (r = o.hooks.preprocess(r));
|
|
1538
|
+
let t = (o.hooks ? o.hooks.provideLexer() : e ? V.lex : V.lexInline)(r, o);
|
|
1539
|
+
o.hooks && (t = o.hooks.processAllTokens(t)), o.walkTokens && this.walkTokens(t, o.walkTokens);
|
|
1540
|
+
let n = (o.hooks ? o.hooks.provideParser() : e ? W.parse : W.parseInline)(t, o);
|
|
1541
|
+
return o.hooks && (n = o.hooks.postprocess(n)), n;
|
|
1542
|
+
} catch (e) {
|
|
1543
|
+
return s(e);
|
|
1544
|
+
}
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
onError(e, t) {
|
|
1548
|
+
return (n) => {
|
|
1549
|
+
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
1550
|
+
let e = "<p>An error occurred:</p><pre>" + R(n.message + "", !0) + "</pre>";
|
|
1551
|
+
return t ? Promise.resolve(e) : e;
|
|
1552
|
+
}
|
|
1553
|
+
if (t) return Promise.reject(n);
|
|
1554
|
+
throw n;
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
}();
|
|
1558
|
+
function q(e, t) {
|
|
1559
|
+
return K.parse(e, t);
|
|
1560
|
+
}
|
|
1561
|
+
q.options = q.setOptions = function(e) {
|
|
1562
|
+
return K.setOptions(e), q.defaults = K.defaults, ye(q.defaults), q;
|
|
1563
|
+
}, q.getDefaults = y, q.defaults = b, q.use = function(...e) {
|
|
1564
|
+
return K.use(...e), q.defaults = K.defaults, ye(q.defaults), q;
|
|
1565
|
+
}, q.walkTokens = function(e, t) {
|
|
1566
|
+
return K.walkTokens(e, t);
|
|
1567
|
+
}, q.parseInline = K.parseInline, q.Parser = W, q.parser = W.parse, q.Renderer = H, q.TextRenderer = U, q.Lexer = V, q.lexer = V.lex, q.Tokenizer = B, q.Hooks = G, q.parse = q, q.options, q.setOptions, q.use, q.walkTokens, q.parseInline, W.parse, V.lex;
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region node_modules/ts-dedent/esm/index.js
|
|
1570
|
+
function _t(e) {
|
|
1571
|
+
var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
|
|
1572
|
+
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
1573
|
+
var r = n.reduce(function(e, t) {
|
|
1574
|
+
var n = t.match(/\n([\t ]+|(?!\s).)/g);
|
|
1575
|
+
return n ? e.concat(n.map(function(e) {
|
|
1576
|
+
var t, n;
|
|
1577
|
+
return (n = (t = e.match(/[\t ]/g)) == null ? void 0 : t.length) == null ? 0 : n;
|
|
1578
|
+
})) : e;
|
|
1579
|
+
}, []);
|
|
1580
|
+
if (r.length) {
|
|
1581
|
+
var i = RegExp("\n[ ]{" + Math.min.apply(Math, r) + "}", "g");
|
|
1582
|
+
n = n.map(function(e) {
|
|
1583
|
+
return e.replace(i, "\n");
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
n[0] = n[0].replace(/^\r?\n/, "");
|
|
1587
|
+
var a = n[0];
|
|
1588
|
+
return t.forEach(function(e, t) {
|
|
1589
|
+
var r = a.match(/(?:^|\n)( *)$/), i = r ? r[1] : "", o = e;
|
|
1590
|
+
typeof e == "string" && e.includes("\n") && (o = String(e).split("\n").map(function(e, t) {
|
|
1591
|
+
return t === 0 ? e : "" + i + e;
|
|
1592
|
+
}).join("\n")), a += o + n[t + 1];
|
|
1593
|
+
}), a;
|
|
1594
|
+
}
|
|
1595
|
+
//#endregion
|
|
1596
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.mjs
|
|
1597
|
+
var vt = {
|
|
1598
|
+
body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
|
|
1599
|
+
height: 80,
|
|
1600
|
+
width: 80
|
|
1601
|
+
}, J = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), bt = /* @__PURE__ */ r((e) => {
|
|
1602
|
+
for (let t of e) {
|
|
1603
|
+
if (!t.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
|
|
1604
|
+
if (n.debug("Registering icon pack:", t.name), "loader" in t) yt.set(t.name, t.loader);
|
|
1605
|
+
else if ("icons" in t) J.set(t.name, t.icons);
|
|
1606
|
+
else throw n.error("Invalid icon loader:", t), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
|
|
1607
|
+
}
|
|
1608
|
+
}, "registerIconPacks"), xt = /* @__PURE__ */ r(async (e, r) => {
|
|
1609
|
+
let i = ee(e, !0, r !== void 0);
|
|
1610
|
+
if (!i) throw Error(`Invalid icon name: ${e}`);
|
|
1611
|
+
let a = i.prefix || r;
|
|
1612
|
+
if (!a) throw Error(`Icon name must contain a prefix: ${e}`);
|
|
1613
|
+
let o = J.get(a);
|
|
1614
|
+
if (!o) {
|
|
1615
|
+
let e = yt.get(a);
|
|
1616
|
+
if (!e) throw Error(`Icon set not found: ${i.prefix}`);
|
|
1617
|
+
try {
|
|
1618
|
+
o = t(t({}, await e()), {}, { prefix: a }), J.set(a, o);
|
|
1619
|
+
} catch (e) {
|
|
1620
|
+
throw n.error(e), Error(`Failed to load icon set: ${i.prefix}`);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
let s = ae(o, i.name);
|
|
1624
|
+
if (!s) throw Error(`Icon not found: ${e}`);
|
|
1625
|
+
return s;
|
|
1626
|
+
}, "getRegisteredIconData"), St = /* @__PURE__ */ r(async (e) => {
|
|
1627
|
+
try {
|
|
1628
|
+
return await xt(e), !0;
|
|
1629
|
+
} catch (e) {
|
|
1630
|
+
return !1;
|
|
1631
|
+
}
|
|
1632
|
+
}, "isIconAvailable"), Ct = /* @__PURE__ */ r(async (e, r, i) => {
|
|
1633
|
+
let o;
|
|
1634
|
+
try {
|
|
1635
|
+
o = await xt(e, r == null ? void 0 : r.fallbackPrefix);
|
|
1636
|
+
} catch (e) {
|
|
1637
|
+
n.error(e), o = vt;
|
|
1638
|
+
}
|
|
1639
|
+
let s = pe(o, r);
|
|
1640
|
+
return a(ve(_e(s.body), t(t({}, s.attributes), i)), l());
|
|
1641
|
+
}, "getIconSVG");
|
|
1642
|
+
function wt(e, { markdownAutoWrap: t }) {
|
|
1643
|
+
return _t(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
1644
|
+
}
|
|
1645
|
+
r(wt, "preprocessMarkdown");
|
|
1646
|
+
function Tt(e) {
|
|
1647
|
+
return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => {
|
|
1648
|
+
var t, n;
|
|
1649
|
+
return (t = (n = e.trim().match(/<[^>]+>|[^\s<>]+/g)) == null ? void 0 : n.map((e) => ({
|
|
1650
|
+
content: e,
|
|
1651
|
+
type: "normal"
|
|
1652
|
+
}))) == null ? [] : t;
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
r(Tt, "nonMarkdownToLines");
|
|
1656
|
+
function Et(e, t = {}) {
|
|
1657
|
+
let n = wt(e, t), i = q.lexer(n), a = [[]], o = 0;
|
|
1658
|
+
function s(e, t = "normal") {
|
|
1659
|
+
e.type === "text" ? e.text.split("\n").forEach((e, n) => {
|
|
1660
|
+
n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
|
|
1661
|
+
e = e.replace(/'/g, "'"), e && a[o].push({
|
|
1662
|
+
content: e,
|
|
1663
|
+
type: t
|
|
1664
|
+
});
|
|
1665
|
+
});
|
|
1666
|
+
}) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
|
|
1667
|
+
s(t, e.type);
|
|
1668
|
+
}) : e.type === "html" && a[o].push({
|
|
1669
|
+
content: e.text,
|
|
1670
|
+
type: "normal"
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
return r(s, "processNode"), i.forEach((e) => {
|
|
1674
|
+
if (e.type === "paragraph") {
|
|
1675
|
+
var t;
|
|
1676
|
+
(t = e.tokens) == null || t.forEach((e) => {
|
|
1677
|
+
s(e);
|
|
1678
|
+
});
|
|
1679
|
+
} else e.type === "html" ? a[o].push({
|
|
1680
|
+
content: e.text,
|
|
1681
|
+
type: "normal"
|
|
1682
|
+
}) : a[o].push({
|
|
1683
|
+
content: e.raw,
|
|
1684
|
+
type: "normal"
|
|
1685
|
+
});
|
|
1686
|
+
}), a;
|
|
1687
|
+
}
|
|
1688
|
+
r(Et, "markdownToLines");
|
|
1689
|
+
function Dt(e) {
|
|
1690
|
+
return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
|
|
1691
|
+
}
|
|
1692
|
+
r(Dt, "nonMarkdownToHTML");
|
|
1693
|
+
function Ot(e, { markdownAutoWrap: t } = {}) {
|
|
1694
|
+
let i = q.lexer(e);
|
|
1695
|
+
function a(e) {
|
|
1696
|
+
if (e.type === "text") return t === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, " ") : e.text.replace(/\n */g, "<br/>");
|
|
1697
|
+
if (e.type === "strong") {
|
|
1698
|
+
var r;
|
|
1699
|
+
return `<strong>${(r = e.tokens) == null ? void 0 : r.map(a).join("")}</strong>`;
|
|
1700
|
+
} else if (e.type === "em") {
|
|
1701
|
+
var i;
|
|
1702
|
+
return `<em>${(i = e.tokens) == null ? void 0 : i.map(a).join("")}</em>`;
|
|
1703
|
+
} else if (e.type === "paragraph") {
|
|
1704
|
+
var o;
|
|
1705
|
+
return `<p>${(o = e.tokens) == null ? void 0 : o.map(a).join("")}</p>`;
|
|
1706
|
+
} else if (e.type === "space") return "";
|
|
1707
|
+
else if (e.type === "html") return `${e.text}`;
|
|
1708
|
+
else if (e.type === "escape") return e.text;
|
|
1709
|
+
return n.warn(`Unsupported markdown: ${e.type}`), e.raw;
|
|
1710
|
+
}
|
|
1711
|
+
return r(a, "output"), i.map(a).join("");
|
|
1712
|
+
}
|
|
1713
|
+
r(Ot, "markdownToHTML");
|
|
1714
|
+
function kt(e) {
|
|
1715
|
+
return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
|
|
1716
|
+
}
|
|
1717
|
+
r(kt, "splitTextToChars");
|
|
1718
|
+
function At(e, t) {
|
|
1719
|
+
return Y(e, [], kt(t.content), t.type);
|
|
1720
|
+
}
|
|
1721
|
+
r(At, "splitWordToFitWidth");
|
|
1722
|
+
function Y(e, t, n, r) {
|
|
1723
|
+
if (n.length === 0) return [{
|
|
1724
|
+
content: t.join(""),
|
|
1725
|
+
type: r
|
|
1726
|
+
}, {
|
|
1727
|
+
content: "",
|
|
1728
|
+
type: r
|
|
1729
|
+
}];
|
|
1730
|
+
let [i, ...a] = n, o = [...t, i];
|
|
1731
|
+
return e([{
|
|
1732
|
+
content: o.join(""),
|
|
1733
|
+
type: r
|
|
1734
|
+
}]) ? Y(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
|
|
1735
|
+
content: t.join(""),
|
|
1736
|
+
type: r
|
|
1737
|
+
}, {
|
|
1738
|
+
content: n.join(""),
|
|
1739
|
+
type: r
|
|
1740
|
+
}]);
|
|
1741
|
+
}
|
|
1742
|
+
r(Y, "splitWordToFitWidthRecursion");
|
|
1743
|
+
function jt(e, t) {
|
|
1744
|
+
if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
|
|
1745
|
+
return X(e, t);
|
|
1746
|
+
}
|
|
1747
|
+
r(jt, "splitLineToFitWidth");
|
|
1748
|
+
function X(e, t, n = [], r = []) {
|
|
1749
|
+
var i;
|
|
1750
|
+
if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
|
|
1751
|
+
let a = "";
|
|
1752
|
+
e[0].content === " " && (a = " ", e.shift());
|
|
1753
|
+
let o = (i = e.shift()) == null ? {
|
|
1754
|
+
content: " ",
|
|
1755
|
+
type: "normal"
|
|
1756
|
+
} : i, s = [...r];
|
|
1757
|
+
if (a !== "" && s.push({
|
|
1758
|
+
content: a,
|
|
1759
|
+
type: "normal"
|
|
1760
|
+
}), s.push(o), t(s)) return X(e, t, n, s);
|
|
1761
|
+
if (r.length > 0) n.push(r), e.unshift(o);
|
|
1762
|
+
else if (o.content) {
|
|
1763
|
+
let [r, i] = At(t, o);
|
|
1764
|
+
n.push([r]), i.content && e.unshift(i);
|
|
1765
|
+
}
|
|
1766
|
+
return X(e, t, n);
|
|
1767
|
+
}
|
|
1768
|
+
r(X, "splitLineToFitWidthRecursion");
|
|
1769
|
+
function Z(e, t) {
|
|
1770
|
+
t && e.attr("style", t);
|
|
1771
|
+
}
|
|
1772
|
+
r(Z, "applyStyle");
|
|
1773
|
+
var Mt = 16384;
|
|
1774
|
+
async function Nt(e, t, n, r, i = !1, u = l()) {
|
|
1775
|
+
let d = e.append("foreignObject");
|
|
1776
|
+
d.attr("width", `${Math.min(10 * n, Mt)}px`), d.attr("height", `${Math.min(10 * n, Mt)}px`);
|
|
1777
|
+
let f = d.append("xhtml:div"), p = s(t.label) ? await o(t.label.replace(c.lineBreakRegex, "\n"), u) : a(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
|
|
1778
|
+
h.html(p), Z(h, t.labelStyle), h.attr("class", `${m} ${r}`), Z(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"), i && f.attr("class", "labelBkg");
|
|
1779
|
+
let g = f.node().getBoundingClientRect();
|
|
1780
|
+
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();
|
|
1781
|
+
}
|
|
1782
|
+
r(Nt, "addHtmlSpan");
|
|
1783
|
+
function Q(e, t, n, r = !1) {
|
|
1784
|
+
let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
|
|
1785
|
+
return r && i.attr("text-anchor", "middle"), i;
|
|
1786
|
+
}
|
|
1787
|
+
r(Q, "createTspan");
|
|
1788
|
+
function Pt(e, t, n) {
|
|
1789
|
+
let r = e.append("text"), i = Q(r, 1, t);
|
|
1790
|
+
$(i, n);
|
|
1791
|
+
let a = i.node().getComputedTextLength();
|
|
1792
|
+
return r.remove(), a;
|
|
1793
|
+
}
|
|
1794
|
+
r(Pt, "computeWidthOfText");
|
|
1795
|
+
function Ft(e, t, n) {
|
|
1796
|
+
var r;
|
|
1797
|
+
let i = e.append("text"), a = Q(i, 1, t);
|
|
1798
|
+
$(a, [{
|
|
1799
|
+
content: n,
|
|
1800
|
+
type: "normal"
|
|
1801
|
+
}]);
|
|
1802
|
+
let o = (r = a.node()) == null ? void 0 : r.getBoundingClientRect();
|
|
1803
|
+
return o && i.remove(), o;
|
|
1804
|
+
}
|
|
1805
|
+
r(Ft, "computeDimensionOfText");
|
|
1806
|
+
function It(e, t, n, i = !1, a = !1) {
|
|
1807
|
+
let o = 1.1, s = t.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
|
|
1808
|
+
a && l.attr("text-anchor", "middle");
|
|
1809
|
+
let u = 0;
|
|
1810
|
+
for (let t of n) {
|
|
1811
|
+
let n = /* @__PURE__ */ r((t) => Pt(s, o, t) <= e, "checkWidth"), i = n(t) ? [t] : jt(t, n);
|
|
1812
|
+
for (let e of i) $(Q(l, u, o, a), e), u++;
|
|
1813
|
+
}
|
|
1814
|
+
if (i) {
|
|
1815
|
+
let e = l.node().getBBox();
|
|
1816
|
+
return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
|
|
1817
|
+
} else return l.node();
|
|
1818
|
+
}
|
|
1819
|
+
r(It, "createFormattedText");
|
|
1820
|
+
function Lt(e) {
|
|
1821
|
+
return e.replace(/&(amp|lt|gt);/g, (e, t) => {
|
|
1822
|
+
switch (t) {
|
|
1823
|
+
case "amp": return "&";
|
|
1824
|
+
case "lt": return "<";
|
|
1825
|
+
case "gt": return ">";
|
|
1826
|
+
default: return e;
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
r(Lt, "decodeHTMLEntities");
|
|
1831
|
+
function $(e, t) {
|
|
1832
|
+
e.text(""), t.forEach((t, n) => {
|
|
1833
|
+
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");
|
|
1834
|
+
n === 0 ? r.text(Lt(t.content)) : r.text(" " + Lt(t.content));
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
r($, "updateTextContentAndStyles");
|
|
1838
|
+
async function Rt(e, t = {}) {
|
|
1839
|
+
let n = [];
|
|
1840
|
+
e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
|
|
1841
|
+
let n = `${r}:${i}`;
|
|
1842
|
+
return await St(n) ? await Ct(n, void 0, { class: "label-icon" }) : `<i class='${a(e, t).replace(":", " ")}'></i>`;
|
|
1843
|
+
})()), e));
|
|
1844
|
+
let r = await Promise.all(n);
|
|
1845
|
+
return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => {
|
|
1846
|
+
var e;
|
|
1847
|
+
return (e = r.shift()) == null ? "" : e;
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
r(Rt, "replaceIconSubstring");
|
|
1851
|
+
var zt = /* @__PURE__ */ r(async (e, t = "", { style: r = "", isTitle: a = !1, classes: o = "", useHtmlLabels: c = !0, markdown: l = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
|
|
1852
|
+
if (n.debug("XYZ createText", t, r, a, o, c, d, "addSvgBackground: ", p), c) {
|
|
1853
|
+
let n = await Rt(u(l ? Ot(t, m) : Dt(t)), m), i = t.replace(/\\\\/g, "\\");
|
|
1854
|
+
return await Nt(e, {
|
|
1855
|
+
isNode: d,
|
|
1856
|
+
label: s(t) ? i : n,
|
|
1857
|
+
labelStyle: r.replace("fill:", "color:")
|
|
1858
|
+
}, f, o, p, m);
|
|
1859
|
+
} else {
|
|
1860
|
+
let n = u(t.replace(/<br\s*\/?>/g, "<br/>")), o = It(f, e, l ? Et(n.replace("<br>", "<br/>"), m) : Tt(n), t ? p : !1, !d);
|
|
1861
|
+
if (d) {
|
|
1862
|
+
/stroke:/.exec(r) && (r = r.replace("stroke:", "lineColor:"));
|
|
1863
|
+
let e = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1864
|
+
i(o).attr("style", e);
|
|
1865
|
+
} else {
|
|
1866
|
+
let e = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
1867
|
+
i(o).select("rect").attr("style", e.replace(/background:/g, "fill:"));
|
|
1868
|
+
let t = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
1869
|
+
i(o).select("text").attr("style", t);
|
|
1870
|
+
}
|
|
1871
|
+
return a ? i(o).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : i(o).selectAll("tspan.text-outer-tspan").classed("row", !0), o;
|
|
1872
|
+
}
|
|
1873
|
+
}, "createText");
|
|
1874
|
+
//#endregion
|
|
1875
|
+
export { vt as a, bt as i, zt as n, _t as o, Ct as r, Ft as t };
|