@jackuait/blok 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -1
- package/NOTICE +10 -0
- package/README.md +7 -1
- package/codemod/migrate-editorjs-to-blok.js +51 -1
- package/codemod/test.js +95 -0
- package/dist/blok.cjs +1 -1
- package/dist/blok.iife.js +31 -30
- package/dist/blok.mjs +2 -2
- package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
- package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
- package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
- package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
- package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
- package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
- package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
- package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
- package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
- package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
- package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
- package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
- package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
- package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
- package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
- package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
- package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
- package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
- package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
- package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
- package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
- package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
- package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
- package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
- package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
- package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
- package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
- package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
- package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
- package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
- package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
- package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
- package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
- package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
- package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
- package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
- package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
- package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
- package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
- package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
- package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
- package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
- package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
- package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
- package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
- package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
- package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
- package/dist/chunks/clone-DeEumpiC.mjs +8 -0
- package/dist/chunks/clone-gX2HWen_.cjs +1 -0
- package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
- package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
- package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
- package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
- package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
- package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
- package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
- package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
- package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
- package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
- package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
- package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
- package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
- package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
- package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
- package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
- package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
- package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
- package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
- package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
- package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
- package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
- package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
- package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
- package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
- package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
- package/dist/chunks/line-CjJKN63i.cjs +1 -0
- package/dist/chunks/line-zarcRAiW.mjs +34 -0
- package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
- package/dist/chunks/linear-CXe29GGg.mjs +289 -0
- package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
- package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
- package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
- package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
- package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
- package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
- package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
- package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
- package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
- package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
- package/dist/chunks/messages-96ztlozp.cjs +1 -0
- package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
- package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
- package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
- package/dist/chunks/messages-BABN8cuN.mjs +319 -0
- package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
- package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
- package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
- package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
- package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
- package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
- package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
- package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
- package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
- package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
- package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
- package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
- package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
- package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
- package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
- package/dist/chunks/messages-B_t9669l.mjs +319 -0
- package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
- package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
- package/dist/chunks/messages-BguYUD04.cjs +1 -0
- package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
- package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
- package/dist/chunks/messages-BmSnovX9.cjs +1 -0
- package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
- package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
- package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
- package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
- package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
- package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
- package/dist/chunks/messages-C67MLHmh.cjs +1 -0
- package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
- package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
- package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
- package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
- package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
- package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
- package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
- package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
- package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
- package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
- package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
- package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
- package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
- package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
- package/dist/chunks/messages-CQii-Hly.mjs +319 -0
- package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
- package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
- package/dist/chunks/messages-CWbag2W1.mjs +319 -0
- package/dist/chunks/messages-CWfPtitC.mjs +319 -0
- package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
- package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
- package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
- package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
- package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
- package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
- package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
- package/dist/chunks/messages-CiqFmj282.mjs +319 -0
- package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
- package/dist/chunks/messages-CktwPONk2.cjs +1 -0
- package/dist/chunks/messages-ClMbt_082.cjs +1 -0
- package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
- package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
- package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
- package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
- package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
- package/dist/chunks/messages-CrPQatEP.cjs +1 -0
- package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
- package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
- package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
- package/dist/chunks/messages-D2to7PFh.mjs +319 -0
- package/dist/chunks/messages-D7GNxw46.cjs +1 -0
- package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
- package/dist/chunks/messages-DIsfRggy.mjs +319 -0
- package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
- package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
- package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
- package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
- package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
- package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
- package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
- package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
- package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
- package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
- package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
- package/dist/chunks/messages-Dop11yxi.mjs +319 -0
- package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
- package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
- package/dist/chunks/messages-DprfonW1.mjs +319 -0
- package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
- package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
- package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
- package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
- package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
- package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
- package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
- package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
- package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
- package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
- package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
- package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
- package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
- package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
- package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
- package/dist/chunks/messages-UR9AknuE.cjs +1 -0
- package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
- package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
- package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
- package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
- package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
- package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
- package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
- package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
- package/dist/chunks/messages-kon7ablY2.cjs +1 -0
- package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
- package/dist/chunks/messages-qga5_rrO.cjs +1 -0
- package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
- package/dist/chunks/messages-szOBKu5g.cjs +1 -0
- package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
- package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
- package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
- package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
- package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
- package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
- package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
- package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
- package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
- package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
- package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
- package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
- package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
- package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
- package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
- package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
- package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
- package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
- package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
- package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
- package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
- package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
- package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
- package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
- package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
- package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
- package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
- package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
- package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
- package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
- package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
- package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
- package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
- package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
- package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
- package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
- package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
- package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
- package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
- package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
- package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
- package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
- package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
- package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
- package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
- package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
- package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
- package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
- package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
- package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
- package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
- package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
- package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
- package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
- package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
- package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
- package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
- package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
- package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
- package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
- package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
- package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
- package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
- package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
- package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
- package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
- package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
- package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
- package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
- package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
- package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
- package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
- package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
- package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
- package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
- package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
- package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
- package/dist/chunks/tools-DaOdAh89.cjs +115 -0
- package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
- package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
- package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
- package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
- package/dist/full.cjs +1 -1
- package/dist/full.mjs +9 -9
- package/dist/locales.mjs +175 -68
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.mjs +392 -384
- package/dist/messages-28LGzsNB.mjs +319 -0
- package/dist/messages-35X8GsGw2.mjs +319 -0
- package/dist/messages-5ygX-4B92.mjs +319 -0
- package/dist/messages-83AcZNii.mjs +319 -0
- package/dist/messages-B-OvX3Vz2.mjs +319 -0
- package/dist/messages-B56oJj_X2.mjs +319 -0
- package/dist/messages-B7peBJXJ2.mjs +319 -0
- package/dist/messages-BGwTNk0S2.mjs +319 -0
- package/dist/messages-BH-SS-wY.mjs +319 -0
- package/dist/messages-BPX8V6tu.mjs +319 -0
- package/dist/messages-BUp8P-0d.mjs +319 -0
- package/dist/messages-BX3WM02N2.mjs +319 -0
- package/dist/messages-BZrMZvRb2.mjs +319 -0
- package/dist/messages-B_0akf3T.mjs +319 -0
- package/dist/messages-BaE65Wtr.mjs +319 -0
- package/dist/messages-BdSGtvzM.mjs +319 -0
- package/dist/messages-BerXSWcD.mjs +319 -0
- package/dist/messages-BqKaz7yB2.mjs +319 -0
- package/dist/messages-BrqBJ6W_2.mjs +319 -0
- package/dist/messages-BvgGIpxE2.mjs +319 -0
- package/dist/messages-BxSe3rKx.mjs +319 -0
- package/dist/messages-ByD9AIJL2.mjs +319 -0
- package/dist/messages-CDJS_Tu2.mjs +319 -0
- package/dist/messages-CF9R29jb.mjs +319 -0
- package/dist/messages-CIbK29nM.mjs +319 -0
- package/dist/messages-CMD0tgb2.mjs +319 -0
- package/dist/messages-CMW0tO_d2.mjs +319 -0
- package/dist/messages-CMrYQJ5x2.mjs +319 -0
- package/dist/messages-CQZJnkss2.mjs +319 -0
- package/dist/messages-CRnolvNg.mjs +319 -0
- package/dist/messages-CS74u2hS2.mjs +319 -0
- package/dist/messages-CTxao0S32.mjs +319 -0
- package/dist/messages-CZl83L7T.mjs +319 -0
- package/dist/messages-C_kloJSr.mjs +319 -0
- package/dist/messages-Cfe_CPBW.mjs +319 -0
- package/dist/messages-Ch0oiQp5.mjs +319 -0
- package/dist/messages-Cigiz7tI.mjs +319 -0
- package/dist/messages-Cjac781Z.mjs +319 -0
- package/dist/messages-CqVFa1ZA.mjs +319 -0
- package/dist/messages-CwDgZL5-.mjs +319 -0
- package/dist/messages-Czd64cAx.mjs +319 -0
- package/dist/messages-CzxMz1wI.mjs +319 -0
- package/dist/messages-D2SkVxgV.mjs +319 -0
- package/dist/messages-D4ZsN52E2.mjs +319 -0
- package/dist/messages-DG0aBs1m2.mjs +319 -0
- package/dist/messages-DIkQAMxZ2.mjs +319 -0
- package/dist/messages-DJBc5_b_2.mjs +319 -0
- package/dist/messages-DN8oOcrS.mjs +319 -0
- package/dist/messages-DV5yhL0q.mjs +319 -0
- package/dist/messages-DVI1iDTn2.mjs +319 -0
- package/dist/messages-DVzrCNrY.mjs +319 -0
- package/dist/messages-DXwJOr-H2.mjs +319 -0
- package/dist/messages-D_edVQrv.mjs +319 -0
- package/dist/messages-DbODRieP.mjs +319 -0
- package/dist/messages-KMQrhAva.mjs +319 -0
- package/dist/messages-L4NsHX-g.mjs +319 -0
- package/dist/messages-PPuF4CRy.mjs +319 -0
- package/dist/messages-UTJEPSiL.mjs +319 -0
- package/dist/messages-Wa5EXypv2.mjs +319 -0
- package/dist/messages-Wfxn9jZh.mjs +319 -0
- package/dist/messages-XieI4326.mjs +319 -0
- package/dist/messages-ZASZzduy.mjs +319 -0
- package/dist/messages-Z_3X1FJJ2.mjs +319 -0
- package/dist/messages-huyV3ICu.mjs +319 -0
- package/dist/messages-rd6zBwaX2.mjs +319 -0
- package/dist/messages-sBpTj74Q.mjs +319 -0
- package/dist/messages-twD0eDdc.mjs +319 -0
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +25 -26
- package/dist/tools.cjs +1 -1
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +141 -899
- package/package.json +12 -6
- package/src/components/constants/data-attributes.ts +2 -0
- package/src/components/dom.ts +4 -2
- package/src/components/i18n/locales/am/messages.json +109 -1
- package/src/components/i18n/locales/ar/messages.json +109 -1
- package/src/components/i18n/locales/az/messages.json +109 -1
- package/src/components/i18n/locales/bg/messages.json +109 -1
- package/src/components/i18n/locales/bn/messages.json +109 -1
- package/src/components/i18n/locales/bs/messages.json +109 -1
- package/src/components/i18n/locales/cs/messages.json +109 -1
- package/src/components/i18n/locales/da/messages.json +109 -1
- package/src/components/i18n/locales/de/messages.json +110 -2
- package/src/components/i18n/locales/dv/messages.json +109 -1
- package/src/components/i18n/locales/el/messages.json +109 -1
- package/src/components/i18n/locales/en/messages.json +108 -1
- package/src/components/i18n/locales/es/messages.json +109 -1
- package/src/components/i18n/locales/et/messages.json +109 -1
- package/src/components/i18n/locales/fa/messages.json +109 -1
- package/src/components/i18n/locales/fi/messages.json +109 -1
- package/src/components/i18n/locales/fil/messages.json +109 -1
- package/src/components/i18n/locales/fr/messages.json +110 -2
- package/src/components/i18n/locales/gu/messages.json +109 -1
- package/src/components/i18n/locales/he/messages.json +109 -1
- package/src/components/i18n/locales/hi/messages.json +109 -1
- package/src/components/i18n/locales/hr/messages.json +109 -1
- package/src/components/i18n/locales/hu/messages.json +109 -1
- package/src/components/i18n/locales/hy/messages.json +109 -1
- package/src/components/i18n/locales/id/messages.json +109 -1
- package/src/components/i18n/locales/it/messages.json +109 -1
- package/src/components/i18n/locales/ja/messages.json +109 -1
- package/src/components/i18n/locales/ka/messages.json +109 -1
- package/src/components/i18n/locales/km/messages.json +109 -1
- package/src/components/i18n/locales/kn/messages.json +109 -1
- package/src/components/i18n/locales/ko/messages.json +109 -1
- package/src/components/i18n/locales/ku/messages.json +109 -1
- package/src/components/i18n/locales/lo/messages.json +109 -1
- package/src/components/i18n/locales/lt/messages.json +109 -1
- package/src/components/i18n/locales/lv/messages.json +109 -1
- package/src/components/i18n/locales/mk/messages.json +109 -1
- package/src/components/i18n/locales/ml/messages.json +109 -1
- package/src/components/i18n/locales/mn/messages.json +109 -1
- package/src/components/i18n/locales/mr/messages.json +109 -1
- package/src/components/i18n/locales/ms/messages.json +109 -1
- package/src/components/i18n/locales/my/messages.json +109 -1
- package/src/components/i18n/locales/ne/messages.json +109 -1
- package/src/components/i18n/locales/nl/messages.json +110 -2
- package/src/components/i18n/locales/no/messages.json +109 -1
- package/src/components/i18n/locales/pa/messages.json +109 -1
- package/src/components/i18n/locales/pl/messages.json +109 -1
- package/src/components/i18n/locales/ps/messages.json +109 -1
- package/src/components/i18n/locales/pt/messages.json +109 -1
- package/src/components/i18n/locales/ro/messages.json +109 -1
- package/src/components/i18n/locales/ru/messages.json +109 -1
- package/src/components/i18n/locales/sd/messages.json +109 -1
- package/src/components/i18n/locales/si/messages.json +109 -1
- package/src/components/i18n/locales/sk/messages.json +109 -1
- package/src/components/i18n/locales/sl/messages.json +109 -1
- package/src/components/i18n/locales/sq/messages.json +109 -1
- package/src/components/i18n/locales/sr/messages.json +109 -1
- package/src/components/i18n/locales/sv/messages.json +109 -1
- package/src/components/i18n/locales/sw/messages.json +109 -1
- package/src/components/i18n/locales/ta/messages.json +109 -1
- package/src/components/i18n/locales/te/messages.json +109 -1
- package/src/components/i18n/locales/th/messages.json +109 -1
- package/src/components/i18n/locales/tr/messages.json +109 -1
- package/src/components/i18n/locales/ug/messages.json +109 -1
- package/src/components/i18n/locales/uk/messages.json +109 -1
- package/src/components/i18n/locales/ur/messages.json +109 -1
- package/src/components/i18n/locales/vi/messages.json +109 -1
- package/src/components/i18n/locales/yi/messages.json +109 -1
- package/src/components/i18n/locales/zh/messages.json +109 -1
- package/src/components/icons/index.ts +59 -0
- package/src/components/inline-tools/inline-tool-code.ts +1 -1
- package/src/components/modules/api/toolbar.ts +6 -4
- package/src/components/modules/blockEvents/index.ts +9 -0
- package/src/components/modules/blockManager/operations.ts +14 -1
- package/src/components/modules/drag/DragController.ts +24 -3
- package/src/components/modules/paste/handlers/files-handler.ts +41 -4
- package/src/components/modules/paste/index.ts +5 -1
- package/src/components/modules/paste/tool-registry.ts +22 -12
- package/src/components/modules/toolbar/blockSettings.ts +14 -2
- package/src/components/modules/toolbar/index.ts +49 -16
- package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
- package/src/components/modules/toolbar/plus-button.ts +4 -2
- package/src/components/modules/toolbar/positioning.ts +27 -0
- package/src/components/modules/toolbar/settings-toggler.ts +16 -5
- package/src/components/modules/toolbar/tooltip.ts +59 -15
- package/src/components/modules/ui.ts +23 -8
- package/src/components/ui/toolbox.ts +92 -7
- package/src/components/utils/data-model-transform.ts +71 -1
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
- package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
- package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
- package/src/components/utils/popover/popover-abstract.ts +137 -2
- package/src/components/utils/popover/popover-desktop.ts +260 -14
- package/src/components/utils/popover/popover-inline.ts +3 -2
- package/src/components/utils/popover/popover-nested-position.ts +132 -0
- package/src/components/utils/popover/popover-position.ts +46 -5
- package/src/components/utils/popover/popover.const.ts +6 -3
- package/src/components/utils/tooltip.ts +52 -8
- package/src/components/utils/top-layer.ts +137 -0
- package/src/playground/block-states-gallery.ts +123 -0
- package/src/playground/icon-gallery.ts +346 -0
- package/src/styles/checklist.css +70 -0
- package/src/styles/colors.css +666 -0
- package/src/styles/database.css +1176 -0
- package/src/styles/emoji-picker.css +58 -0
- package/src/styles/fonts.css +33 -0
- package/src/styles/image.css +1111 -0
- package/src/styles/isolation.css +204 -0
- package/src/styles/keyframes.css +62 -0
- package/src/styles/main.css +28 -2566
- package/src/styles/popover-animation.css +34 -0
- package/src/styles/preflight.css +283 -0
- package/src/styles/slash-search.css +52 -0
- package/src/styles/tables.css +154 -0
- package/src/styles/tokens.css +127 -0
- package/src/tools/callout/emoji-picker/index.ts +4 -2
- package/src/tools/code/code-keyboard.ts +70 -8
- package/src/tools/code/constants.ts +3 -9
- package/src/tools/code/dom-builder.ts +5 -1
- package/src/tools/code/index.ts +185 -25
- package/src/tools/code/language-detector.ts +47 -52
- package/src/tools/code/prism-applier.ts +183 -0
- package/src/tools/code/prism-loader.ts +197 -0
- package/src/tools/database/database-board-view.ts +3 -1
- package/src/tools/image/alt-popover.css +42 -0
- package/src/tools/image/alt-popover.ts +104 -0
- package/src/tools/image/constants.ts +25 -0
- package/src/tools/image/crop-editor.css +513 -0
- package/src/tools/image/crop-editor.ts +331 -0
- package/src/tools/image/crop-math.ts +117 -0
- package/src/tools/image/crop-modal.css +105 -0
- package/src/tools/image/crop-modal.ts +92 -0
- package/src/tools/image/empty-state.ts +407 -0
- package/src/tools/image/error-state.ts +69 -0
- package/src/tools/image/errors.ts +18 -0
- package/src/tools/image/i18n.ts +8 -0
- package/src/tools/image/index.ts +755 -0
- package/src/tools/image/resizer.ts +119 -0
- package/src/tools/image/spring.ts +16 -0
- package/src/tools/image/ui.ts +921 -0
- package/src/tools/image/uploader.ts +61 -0
- package/src/tools/image/uploading-state.ts +117 -0
- package/src/tools/index.ts +2 -0
- package/src/tools/toggle/constants.ts +3 -1
- package/src/types-internal/prismjs-components.d.ts +9 -0
- package/types/api/toolbar.d.ts +14 -1
- package/types/configs/blok-config.d.ts +24 -0
- package/types/tools/image.d.ts +72 -0
- package/types/utils/popover/popover.d.ts +27 -0
- package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
- package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
- package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
- package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
- package/dist/chunks/arc-kVpio4JL.mjs +0 -80
- package/dist/chunks/arc-lSzOinJz.cjs +0 -1
- package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
- package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
- package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
- package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
- package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
- package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
- package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
- package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
- package/dist/chunks/c-CQrSye6K.mjs +0 -5
- package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
- package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
- package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
- package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
- package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
- package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
- package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
- package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
- package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
- package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
- package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
- package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
- package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
- package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
- package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
- package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
- package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
- package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
- package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
- package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
- package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
- package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
- package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
- package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
- package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
- package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
- package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
- package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
- package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
- package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
- package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
- package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
- package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
- package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
- package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
- package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
- package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
- package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
- package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
- package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
- package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
- package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
- package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
- package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
- package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
- package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
- package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
- package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
- package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
- package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
- package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
- package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
- package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
- package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
- package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
- package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
- package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
- package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
- package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
- package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
- package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
- package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
- package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
- package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
- package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
- package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
- package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
- package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
- package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
- package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
- package/dist/chunks/constants-DJjFgioo.cjs +0 -451
- package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
- package/dist/chunks/core-C8BHLAAO.cjs +0 -12
- package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
- package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
- package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
- package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
- package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
- package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
- package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
- package/dist/chunks/css-BqsWMbBt.mjs +0 -3
- package/dist/chunks/css-QEheyxtB.cjs +0 -1
- package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
- package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
- package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
- package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
- package/dist/chunks/dart-aYsezAEv.mjs +0 -3
- package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
- package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
- package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
- package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
- package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
- package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
- package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
- package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
- package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
- package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
- package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
- package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
- package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
- package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
- package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
- package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
- package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
- package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
- package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
- package/dist/chunks/go-4mRqLTld.mjs +0 -3
- package/dist/chunks/go-BX-cNLGO.cjs +0 -1
- package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
- package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
- package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
- package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
- package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
- package/dist/chunks/html-DW39yhuS.mjs +0 -10
- package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
- package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
- package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
- package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
- package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
- package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
- package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
- package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
- package/dist/chunks/java-DD_iwrM-.mjs +0 -5
- package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
- package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
- package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
- package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
- package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
- package/dist/chunks/json-C_epQRuA.cjs +0 -1
- package/dist/chunks/json-yRGZVu2_.mjs +0 -3
- package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
- package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
- package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
- package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
- package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
- package/dist/chunks/latex-u7qVP95p.cjs +0 -1
- package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
- package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
- package/dist/chunks/line-B7XG48Uf.cjs +0 -1
- package/dist/chunks/line-CWJNfvdn.mjs +0 -34
- package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
- package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
- package/dist/chunks/lua-6ceNckPi.cjs +0 -1
- package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
- package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
- package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
- package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
- package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
- package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
- package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
- package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
- package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
- package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
- package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
- package/dist/chunks/messages--CbdZY2w.cjs +0 -1
- package/dist/chunks/messages--c74ihtM.mjs +0 -212
- package/dist/chunks/messages-041mNyU42.mjs +0 -212
- package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
- package/dist/chunks/messages-44SP7ajI.mjs +0 -212
- package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
- package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
- package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
- package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
- package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
- package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
- package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
- package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
- package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
- package/dist/chunks/messages-B91FdwB0.cjs +0 -1
- package/dist/chunks/messages-B9igXgiw.cjs +0 -1
- package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
- package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
- package/dist/chunks/messages-BG749_88.mjs +0 -212
- package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
- package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
- package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
- package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
- package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
- package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
- package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
- package/dist/chunks/messages-BSVhckNg.cjs +0 -1
- package/dist/chunks/messages-BUaHDggs.cjs +0 -1
- package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
- package/dist/chunks/messages-BW--wNis.mjs +0 -212
- package/dist/chunks/messages-BXcSH14N.cjs +0 -1
- package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
- package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
- package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
- package/dist/chunks/messages-Bb225KE6.cjs +0 -1
- package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
- package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
- package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
- package/dist/chunks/messages-BiDR95AW.cjs +0 -1
- package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
- package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
- package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
- package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
- package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
- package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
- package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
- package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
- package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
- package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
- package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
- package/dist/chunks/messages-C7il6l-S.cjs +0 -1
- package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
- package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
- package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
- package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
- package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
- package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
- package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
- package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
- package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
- package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
- package/dist/chunks/messages-CYZxR91M.mjs +0 -212
- package/dist/chunks/messages-C_ogasse2.cjs +0 -1
- package/dist/chunks/messages-CbFuceEb.cjs +0 -1
- package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
- package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
- package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
- package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
- package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
- package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
- package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
- package/dist/chunks/messages-CpppvIiu.cjs +0 -1
- package/dist/chunks/messages-CumomgDd2.mjs +0 -212
- package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
- package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
- package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
- package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
- package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
- package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
- package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
- package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
- package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
- package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
- package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
- package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
- package/dist/chunks/messages-DVwHxslb.mjs +0 -212
- package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
- package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
- package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
- package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
- package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
- package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
- package/dist/chunks/messages-DkmG49t8.cjs +0 -1
- package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
- package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
- package/dist/chunks/messages-DrbTe09r.cjs +0 -1
- package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
- package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
- package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
- package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
- package/dist/chunks/messages-DuA_D23n.mjs +0 -212
- package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
- package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
- package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
- package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
- package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
- package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
- package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
- package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
- package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
- package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
- package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
- package/dist/chunks/messages-JlduXweH2.cjs +0 -1
- package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
- package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
- package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
- package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
- package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
- package/dist/chunks/messages-X46KAUoI.cjs +0 -1
- package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
- package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
- package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
- package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
- package/dist/chunks/messages-hhptyJO3.mjs +0 -212
- package/dist/chunks/messages-hk4dinYI.mjs +0 -212
- package/dist/chunks/messages-knSLxvI6.mjs +0 -212
- package/dist/chunks/messages-lORohDgW2.mjs +0 -212
- package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
- package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
- package/dist/chunks/messages-q2McAyOz.mjs +0 -212
- package/dist/chunks/messages-r62SI44r.mjs +0 -212
- package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
- package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
- package/dist/chunks/messages-vhq442qv.cjs +0 -1
- package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
- package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
- package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
- package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
- package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
- package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
- package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
- package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
- package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
- package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
- package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
- package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
- package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
- package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
- package/dist/chunks/php-BMavm1CR.cjs +0 -1
- package/dist/chunks/php-Dejkjxb5.mjs +0 -18
- package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
- package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
- package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
- package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
- package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
- package/dist/chunks/python-tdu-oDWx.mjs +0 -3
- package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
- package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
- package/dist/chunks/r-BdDCwgEs.cjs +0 -1
- package/dist/chunks/r-D8fCyoTl.mjs +0 -5
- package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
- package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
- package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
- package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
- package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
- package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
- package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
- package/dist/chunks/rust-D5IQAarB.mjs +0 -3
- package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
- package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
- package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
- package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
- package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
- package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
- package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
- package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
- package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
- package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
- package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
- package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
- package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
- package/dist/chunks/swift-DubrdZus.cjs +0 -1
- package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
- package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
- package/dist/chunks/tools-DPov06L-.mjs +0 -11458
- package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
- package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
- package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
- package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
- package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
- package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
- package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
- package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
- package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
- package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
- package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
- package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
- package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
- package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
- package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
- package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
- package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
- package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
- package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
- package/dist/chunks/yaml-CecI9urB.mjs +0 -3
- package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
- package/dist/messages--zgIPYtb.mjs +0 -212
- package/dist/messages-4jULpVvw.mjs +0 -212
- package/dist/messages-AbwSlRf_.mjs +0 -212
- package/dist/messages-B-dl7Pwb2.mjs +0 -212
- package/dist/messages-B3rCRhb1.mjs +0 -212
- package/dist/messages-B73L8nKc2.mjs +0 -212
- package/dist/messages-BAjsD2Vm2.mjs +0 -212
- package/dist/messages-BBodSb5B2.mjs +0 -212
- package/dist/messages-BTpn6H9x2.mjs +0 -212
- package/dist/messages-BWb0GjTj2.mjs +0 -212
- package/dist/messages-BbCgnri12.mjs +0 -212
- package/dist/messages-Bfon_Y3q.mjs +0 -212
- package/dist/messages-BhOtow9J2.mjs +0 -212
- package/dist/messages-BoB7m0uu2.mjs +0 -212
- package/dist/messages-BsOZPjeg.mjs +0 -212
- package/dist/messages-BuzKUYPV.mjs +0 -212
- package/dist/messages-BzOKMdMQ.mjs +0 -212
- package/dist/messages-C2H3PeQW2.mjs +0 -212
- package/dist/messages-C5KNzSTk.mjs +0 -212
- package/dist/messages-CIDYjE6l.mjs +0 -212
- package/dist/messages-CJmyF5ye.mjs +0 -212
- package/dist/messages-CTwiYb2a2.mjs +0 -212
- package/dist/messages-CUHoJaDO.mjs +0 -212
- package/dist/messages-CVeuqUjQ2.mjs +0 -212
- package/dist/messages-CW75b4sz.mjs +0 -212
- package/dist/messages-CXd7YeWV.mjs +0 -212
- package/dist/messages-CjlYkunD.mjs +0 -212
- package/dist/messages-CrGx64yd.mjs +0 -212
- package/dist/messages-Ct0jbgHd.mjs +0 -212
- package/dist/messages-CtKrCYD1.mjs +0 -212
- package/dist/messages-Cu2eLjfJ.mjs +0 -212
- package/dist/messages-CvwQ-fK_2.mjs +0 -212
- package/dist/messages-Cy6UYN9b.mjs +0 -212
- package/dist/messages-D01vnfA9.mjs +0 -212
- package/dist/messages-D0BAV45W.mjs +0 -212
- package/dist/messages-D5LGpdga.mjs +0 -212
- package/dist/messages-DATK4ftv.mjs +0 -212
- package/dist/messages-DEl77Urv2.mjs +0 -212
- package/dist/messages-DHNjM2nv2.mjs +0 -212
- package/dist/messages-DMW8b_sO.mjs +0 -212
- package/dist/messages-DNmgANKr.mjs +0 -212
- package/dist/messages-DQaa3cEM.mjs +0 -212
- package/dist/messages-DSlD4bV9.mjs +0 -212
- package/dist/messages-DTzbkXFt.mjs +0 -212
- package/dist/messages-DbZihxtV.mjs +0 -212
- package/dist/messages-DeE8fyKQ.mjs +0 -212
- package/dist/messages-Dg-TpO2S2.mjs +0 -212
- package/dist/messages-DgP82LzF.mjs +0 -212
- package/dist/messages-Dh3Vt7WC.mjs +0 -212
- package/dist/messages-DiVVyZD22.mjs +0 -212
- package/dist/messages-DpRnGjoe.mjs +0 -212
- package/dist/messages-DqZmrFaa2.mjs +0 -212
- package/dist/messages-Dra9Fz5Q.mjs +0 -212
- package/dist/messages-DuPBRgEF2.mjs +0 -212
- package/dist/messages-DuxEyAY-2.mjs +0 -212
- package/dist/messages-FmJD6lHR2.mjs +0 -212
- package/dist/messages-ONielGl92.mjs +0 -212
- package/dist/messages-RzgUqCGb2.mjs +0 -212
- package/dist/messages-U22AKGKs.mjs +0 -212
- package/dist/messages-XufeeRfO.mjs +0 -212
- package/dist/messages-fprUm7SO2.mjs +0 -212
- package/dist/messages-gFNdz3Tn2.mjs +0 -212
- package/dist/messages-h_n5GBm6.mjs +0 -212
- package/dist/messages-oOogIpsL2.mjs +0 -212
- package/dist/messages-otwg3KcK.mjs +0 -212
- package/dist/messages-rDDoBMWb.mjs +0 -212
- package/dist/messages-trQPxZIu.mjs +0 -212
- package/src/tools/code/highlight-applier.ts +0 -229
- package/src/tools/code/shiki-loader.ts +0 -135
- /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
- /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
- /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
- /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
- /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
- /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
- /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
- /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
- /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
- /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
- /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
- /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
- /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
- /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
- /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
- /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
- /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
- /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
- /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
- /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
- /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
- /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
- /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
- /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
- /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
- /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
- /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
- /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
- /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
- /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
- /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
- /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
- /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
- /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
- /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
- /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
- /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
- /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
- /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
- /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
- /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
- /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
- /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
- /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
- /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
- /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
- /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
- /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
- /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
- /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
- /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
- /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
- /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
- /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
- /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
- /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
- /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
- /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
- /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
- /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
- /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
- /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
- /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
- /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
- /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
- /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
- /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
- /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
- /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
- /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
- /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
- /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
- /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
- /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
- /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
- /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
- /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
- /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
- /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
- /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
- /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
- /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
- /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
- /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
- /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
- /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
- /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
- /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
- /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
- /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
- /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
- /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
- /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
- /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
- /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
- /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
- /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
- /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
- /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
- /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
- /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
- /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
- /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
- /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
- /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
- /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
- /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
- /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
- /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
- /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
- /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
- /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
- /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
- /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
- /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
- /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
- /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
- /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
- /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
- /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
- /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
- /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
- /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
- /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
- /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
- /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
- /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
- /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
- /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
- /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
- /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
- /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
- /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
- /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
- /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
- /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
- /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
- /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
- /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
- /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
- /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
- /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
- /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
- /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
- /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
- /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
- /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
- /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
- /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
- /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
- /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
- /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
- /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
- /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
- /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
- /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
- /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
- /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
|
@@ -1,2373 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
-
import { t as n } from "./objectWithoutProperties-Dci1-l7D.mjs";
|
|
3
|
-
//#region node_modules/@shikijs/engine-javascript/dist/scanner-BFcBmQR1.mjs
|
|
4
|
-
var r = 4294967295, i = class {
|
|
5
|
-
constructor(t, n = {}) {
|
|
6
|
-
e(this, "regexps", void 0), this.patterns = t, this.options = n;
|
|
7
|
-
let { forgiving: r = !1, cache: i, regexConstructor: a } = n;
|
|
8
|
-
if (!a) throw Error("Option `regexConstructor` is not provided");
|
|
9
|
-
this.regexps = t.map((e) => {
|
|
10
|
-
if (typeof e != "string") return e;
|
|
11
|
-
let t = i == null ? void 0 : i.get(e);
|
|
12
|
-
if (t) {
|
|
13
|
-
if (t instanceof RegExp) return t;
|
|
14
|
-
if (r) return null;
|
|
15
|
-
throw t;
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
let t = a(e);
|
|
19
|
-
return i == null || i.set(e, t), t;
|
|
20
|
-
} catch (t) {
|
|
21
|
-
if (i == null || i.set(e, t), r) return null;
|
|
22
|
-
throw t;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
findNextMatchSync(e, t, n) {
|
|
27
|
-
let i = typeof e == "string" ? e : e.content, a = [];
|
|
28
|
-
function o(e, t, n = 0) {
|
|
29
|
-
return {
|
|
30
|
-
index: e,
|
|
31
|
-
captureIndices: t.indices.map((e) => e == null ? {
|
|
32
|
-
start: r,
|
|
33
|
-
end: r,
|
|
34
|
-
length: 0
|
|
35
|
-
} : {
|
|
36
|
-
start: e[0] + n,
|
|
37
|
-
end: e[1] + n,
|
|
38
|
-
length: e[1] - e[0]
|
|
39
|
-
})
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
for (let e = 0; e < this.regexps.length; e++) {
|
|
43
|
-
let n = this.regexps[e];
|
|
44
|
-
if (n) try {
|
|
45
|
-
n.lastIndex = t;
|
|
46
|
-
let r = n.exec(i);
|
|
47
|
-
if (!r) continue;
|
|
48
|
-
if (r.index === t) return o(e, r, 0);
|
|
49
|
-
a.push([
|
|
50
|
-
e,
|
|
51
|
-
r,
|
|
52
|
-
0
|
|
53
|
-
]);
|
|
54
|
-
} catch (e) {
|
|
55
|
-
if (this.options.forgiving) continue;
|
|
56
|
-
throw e;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (a.length) {
|
|
60
|
-
let e = Math.min(...a.map((e) => e[1].index));
|
|
61
|
-
for (let [t, n, r] of a) if (n.index === e) return o(t, n, r);
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/checkPrivateRedeclaration.js
|
|
68
|
-
function a(e, t) {
|
|
69
|
-
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateMethodInitSpec.js
|
|
73
|
-
function o(e, t) {
|
|
74
|
-
a(e, t), t.add(e);
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldInitSpec.js
|
|
78
|
-
function s(e, t, n) {
|
|
79
|
-
a(e, t), t.set(e, n);
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/assertClassBrand.js
|
|
83
|
-
function c(e, t, n) {
|
|
84
|
-
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
85
|
-
throw TypeError("Private element is not present on this object");
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldGet2.js
|
|
89
|
-
function l(e, t) {
|
|
90
|
-
return e.get(c(e, t));
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldSet2.js
|
|
94
|
-
function u(e, t, n) {
|
|
95
|
-
return e.set(c(e, t), n), n;
|
|
96
|
-
}
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/getPrototypeOf.js
|
|
99
|
-
function d(e) {
|
|
100
|
-
return d = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
101
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
102
|
-
}, d(e);
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/superPropBase.js
|
|
106
|
-
function f(e, t) {
|
|
107
|
-
for (; !{}.hasOwnProperty.call(e, t) && (e = d(e)) !== null;);
|
|
108
|
-
return e;
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/get.js
|
|
112
|
-
function p() {
|
|
113
|
-
return p = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {
|
|
114
|
-
var r = f(e, t);
|
|
115
|
-
if (r) {
|
|
116
|
-
var i = Object.getOwnPropertyDescriptor(r, t);
|
|
117
|
-
return i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value;
|
|
118
|
-
}
|
|
119
|
-
}, p.apply(null, arguments);
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/superPropGet.js
|
|
123
|
-
function m(e, t, n, r) {
|
|
124
|
-
var i = p(d(1 & r ? e.prototype : e), t, n);
|
|
125
|
-
return 2 & r && typeof i == "function" ? function(e) {
|
|
126
|
-
return i.apply(n, e);
|
|
127
|
-
} : i;
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region node_modules/oniguruma-parser/dist/utils.js
|
|
131
|
-
function h(e) {
|
|
132
|
-
if ([...e].length !== 1) throw Error(`Expected "${e}" to be a single code point`);
|
|
133
|
-
return e.codePointAt(0);
|
|
134
|
-
}
|
|
135
|
-
function g(e, t, n) {
|
|
136
|
-
return e.has(t) || e.set(t, n), e.get(t);
|
|
137
|
-
}
|
|
138
|
-
var _ = new Set([
|
|
139
|
-
"alnum",
|
|
140
|
-
"alpha",
|
|
141
|
-
"ascii",
|
|
142
|
-
"blank",
|
|
143
|
-
"cntrl",
|
|
144
|
-
"digit",
|
|
145
|
-
"graph",
|
|
146
|
-
"lower",
|
|
147
|
-
"print",
|
|
148
|
-
"punct",
|
|
149
|
-
"space",
|
|
150
|
-
"upper",
|
|
151
|
-
"word",
|
|
152
|
-
"xdigit"
|
|
153
|
-
]), v = String.raw;
|
|
154
|
-
function y(e, t) {
|
|
155
|
-
if (e == null) throw Error(t == null ? "Value expected" : t);
|
|
156
|
-
return e;
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
|
|
160
|
-
var ee = v`\[\^?`, te = `c.? | C(?:-.?)?|${v`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${v`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${v`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${v`o\{[^\}]*\}?`}|${v`\d{1,3}`}`, ne = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, re = new RegExp(v`
|
|
161
|
-
\\ (?:
|
|
162
|
-
${te}
|
|
163
|
-
| [gk]<[^>]*>?
|
|
164
|
-
| [gk]'[^']*'?
|
|
165
|
-
| .
|
|
166
|
-
)
|
|
167
|
-
| \( (?:
|
|
168
|
-
\? (?:
|
|
169
|
-
[:=!>({]
|
|
170
|
-
| <[=!]
|
|
171
|
-
| <[^>]*>
|
|
172
|
-
| '[^']*'
|
|
173
|
-
| ~\|?
|
|
174
|
-
| #(?:[^)\\]|\\.?)*
|
|
175
|
-
| [^:)]*[:)]
|
|
176
|
-
)?
|
|
177
|
-
| \*[^\)]*\)?
|
|
178
|
-
)?
|
|
179
|
-
| (?:${ne.source})+
|
|
180
|
-
| ${ee}
|
|
181
|
-
| .
|
|
182
|
-
`.replace(/\s+/g, ""), "gsu"), ie = new RegExp(v`
|
|
183
|
-
\\ (?:
|
|
184
|
-
${te}
|
|
185
|
-
| .
|
|
186
|
-
)
|
|
187
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
188
|
-
| ${ee}
|
|
189
|
-
| &&
|
|
190
|
-
| .
|
|
191
|
-
`.replace(/\s+/g, ""), "gsu");
|
|
192
|
-
function ae(e, n = {}) {
|
|
193
|
-
let r = t(t({ flags: "" }, n), {}, { rules: t({
|
|
194
|
-
captureGroup: !1,
|
|
195
|
-
singleline: !1
|
|
196
|
-
}, n.rules) });
|
|
197
|
-
if (typeof e != "string") throw Error("String expected as pattern");
|
|
198
|
-
let i = Me(r.flags), a = [i.extended], o = {
|
|
199
|
-
captureGroup: r.rules.captureGroup,
|
|
200
|
-
getCurrentModX() {
|
|
201
|
-
return a.at(-1);
|
|
202
|
-
},
|
|
203
|
-
numOpenGroups: 0,
|
|
204
|
-
popModX() {
|
|
205
|
-
a.pop();
|
|
206
|
-
},
|
|
207
|
-
pushModX(e) {
|
|
208
|
-
a.push(e);
|
|
209
|
-
},
|
|
210
|
-
replaceCurrentModX(e) {
|
|
211
|
-
a[a.length - 1] = e;
|
|
212
|
-
},
|
|
213
|
-
singleline: r.rules.singleline
|
|
214
|
-
}, s = [], c;
|
|
215
|
-
for (re.lastIndex = 0; c = re.exec(e);) {
|
|
216
|
-
let t = oe(o, e, c[0], re.lastIndex);
|
|
217
|
-
t.tokens ? s.push(...t.tokens) : t.token && s.push(t.token), t.lastIndex !== void 0 && (re.lastIndex = t.lastIndex);
|
|
218
|
-
}
|
|
219
|
-
let l = [], u = 0;
|
|
220
|
-
s.filter((e) => e.type === "GroupOpen").forEach((e) => {
|
|
221
|
-
e.kind === "capturing" ? e.number = ++u : e.raw === "(" && l.push(e);
|
|
222
|
-
}), u || l.forEach((e, t) => {
|
|
223
|
-
e.kind = "capturing", e.number = t + 1;
|
|
224
|
-
});
|
|
225
|
-
let d = u || l.length;
|
|
226
|
-
return {
|
|
227
|
-
tokens: s.map((e) => e.type === "EscapedNumber" ? Pe(e, d) : e).flat(),
|
|
228
|
-
flags: i
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function oe(e, n, r, i) {
|
|
232
|
-
let [a, o] = r;
|
|
233
|
-
if (r === "[" || r === "[^") {
|
|
234
|
-
let e = se(n, r, i);
|
|
235
|
-
return {
|
|
236
|
-
tokens: e.tokens,
|
|
237
|
-
lastIndex: e.lastIndex
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
if (a === "\\") {
|
|
241
|
-
if ("AbBGyYzZ".includes(o)) return { token: de(r, r) };
|
|
242
|
-
if (/^\\g[<']/.test(r)) {
|
|
243
|
-
if (!/^\\g(?:<[^>]+>|'[^']+')$/.test(r)) throw Error(`Invalid group name "${r}"`);
|
|
244
|
-
return { token: Se(r) };
|
|
245
|
-
}
|
|
246
|
-
if (/^\\k[<']/.test(r)) {
|
|
247
|
-
if (!/^\\k(?:<[^>]+>|'[^']+')$/.test(r)) throw Error(`Invalid group name "${r}"`);
|
|
248
|
-
return { token: fe(r) };
|
|
249
|
-
}
|
|
250
|
-
if (o === "K") return { token: _e("keep", r) };
|
|
251
|
-
if (o === "N" || o === "R") return { token: x("newline", r, { negate: o === "N" }) };
|
|
252
|
-
if (o === "O") return { token: x("any", r) };
|
|
253
|
-
if (o === "X") return { token: x("text_segment", r) };
|
|
254
|
-
let e = le(r, { inCharClass: !1 });
|
|
255
|
-
return Array.isArray(e) ? { tokens: e } : { token: e };
|
|
256
|
-
}
|
|
257
|
-
if (a === "(") {
|
|
258
|
-
if (o === "*") return { token: De(r) };
|
|
259
|
-
if (r === "(?{") throw Error(`Unsupported callout "${r}"`);
|
|
260
|
-
if (r.startsWith("(?#")) {
|
|
261
|
-
if (n[i] !== ")") throw Error("Unclosed comment group \"(?#\"");
|
|
262
|
-
return { lastIndex: i + 1 };
|
|
263
|
-
}
|
|
264
|
-
if (/^\(\?[-imx]+[:)]$/.test(r)) return { token: Ee(r, e) };
|
|
265
|
-
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, r === "(" && !e.captureGroup || r === "(?:") return { token: S("group", r) };
|
|
266
|
-
if (r === "(?>") return { token: S("atomic", r) };
|
|
267
|
-
if (r === "(?=" || r === "(?!" || r === "(?<=" || r === "(?<!") return { token: S(r[2] === "<" ? "lookbehind" : "lookahead", r, { negate: r.endsWith("!") }) };
|
|
268
|
-
if (r === "(" && e.captureGroup || r.startsWith("(?<") && r.endsWith(">") || r.startsWith("(?'") && r.endsWith("'")) return { token: S("capturing", r, t({}, r !== "(" && { name: r.slice(3, -1) })) };
|
|
269
|
-
if (r.startsWith("(?~")) {
|
|
270
|
-
if (r === "(?~|") throw Error(`Unsupported absence function kind "${r}"`);
|
|
271
|
-
return { token: S("absence_repeater", r) };
|
|
272
|
-
}
|
|
273
|
-
throw r === "(?(" ? /* @__PURE__ */ Error(`Unsupported conditional "${r}"`) : /* @__PURE__ */ Error(`Invalid or unsupported group option "${r}"`);
|
|
274
|
-
}
|
|
275
|
-
if (r === ")") {
|
|
276
|
-
if (e.popModX(), e.numOpenGroups--, e.numOpenGroups < 0) throw Error("Unmatched \")\"");
|
|
277
|
-
return { token: ye(r) };
|
|
278
|
-
}
|
|
279
|
-
if (e.getCurrentModX()) {
|
|
280
|
-
if (r === "#") {
|
|
281
|
-
let e = n.indexOf("\n", i);
|
|
282
|
-
return { lastIndex: e === -1 ? n.length : e };
|
|
283
|
-
}
|
|
284
|
-
if (/^\s$/.test(r)) {
|
|
285
|
-
let e = /\s+/y;
|
|
286
|
-
return e.lastIndex = i, { lastIndex: e.exec(n) ? e.lastIndex : i };
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
return r === "." ? { token: x("dot", r) } : r === "^" || r === "$" ? { token: de(e.singleline ? {
|
|
290
|
-
"^": v`\A`,
|
|
291
|
-
$: v`\Z`
|
|
292
|
-
}[r] : r, r) } : r === "|" ? { token: ue(r) } : ne.test(r) ? { tokens: Fe(r) } : { token: b(h(r), r) };
|
|
293
|
-
}
|
|
294
|
-
function se(e, t, n) {
|
|
295
|
-
let r = [ge(t[1] === "^", t)], i = 1, a;
|
|
296
|
-
for (ie.lastIndex = n; a = ie.exec(e);) {
|
|
297
|
-
let e = a[0];
|
|
298
|
-
if (e[0] === "[" && e[1] !== ":") i++, r.push(ge(e[1] === "^", e));
|
|
299
|
-
else if (e === "]") {
|
|
300
|
-
if (r.at(-1).type === "CharacterClassOpen") r.push(b(93, e));
|
|
301
|
-
else if (i--, r.push(pe(e)), !i) break;
|
|
302
|
-
} else {
|
|
303
|
-
let t = ce(e);
|
|
304
|
-
Array.isArray(t) ? r.push(...t) : r.push(t);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
return {
|
|
308
|
-
tokens: r,
|
|
309
|
-
lastIndex: ie.lastIndex || e.length
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
function ce(e) {
|
|
313
|
-
if (e[0] === "\\") return le(e, { inCharClass: !0 });
|
|
314
|
-
if (e[0] === "[") {
|
|
315
|
-
let t = (/* @__PURE__ */ RegExp("\\[:(?<negate>\\^?)(?<name>[a-z]+):\\]", "")).exec(e);
|
|
316
|
-
if (!t || !_.has(t.groups.name)) throw Error(`Invalid POSIX class "${e}"`);
|
|
317
|
-
return x("posix", e, {
|
|
318
|
-
value: t.groups.name,
|
|
319
|
-
negate: !!t.groups.negate
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
return e === "-" ? me(e) : e === "&&" ? he(e) : b(h(e), e);
|
|
323
|
-
}
|
|
324
|
-
function le(e, { inCharClass: t }) {
|
|
325
|
-
let n = e[1];
|
|
326
|
-
if (n === "c" || n === "C") return Te(e);
|
|
327
|
-
if ("dDhHsSwW".includes(n)) return ke(e);
|
|
328
|
-
if (e.startsWith(v`\o{`)) throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
|
|
329
|
-
if (/^\\[pP]\{/.test(e)) {
|
|
330
|
-
if (e.length === 3) throw Error(`Incomplete or invalid Unicode property "${e}"`);
|
|
331
|
-
return Ae(e);
|
|
332
|
-
}
|
|
333
|
-
if ((/* @__PURE__ */ RegExp("^\\\\x[89A-Fa-f]\\p{AHex}", "u")).test(e)) try {
|
|
334
|
-
let t = e.split(/\\x/).slice(1).map((e) => parseInt(e, 16)), n = new TextDecoder("utf-8", {
|
|
335
|
-
ignoreBOM: !0,
|
|
336
|
-
fatal: !0
|
|
337
|
-
}).decode(new Uint8Array(t)), r = new TextEncoder();
|
|
338
|
-
return [...n].map((e) => {
|
|
339
|
-
let t = [...r.encode(e)].map((e) => `\\x${e.toString(16)}`).join("");
|
|
340
|
-
return b(h(e), t);
|
|
341
|
-
});
|
|
342
|
-
} catch (t) {
|
|
343
|
-
throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`);
|
|
344
|
-
}
|
|
345
|
-
if (n === "u" || n === "x") return b(Ne(e), e);
|
|
346
|
-
if (we.has(n)) return b(we.get(n), e);
|
|
347
|
-
if (/\d/.test(n)) return ve(t, e);
|
|
348
|
-
if (e === "\\") throw Error(v`Incomplete escape "\"`);
|
|
349
|
-
if (n === "M") throw Error(`Unsupported meta "${e}"`);
|
|
350
|
-
if ([...e].length === 2) return b(e.codePointAt(1), e);
|
|
351
|
-
throw Error(`Unexpected escape "${e}"`);
|
|
352
|
-
}
|
|
353
|
-
function ue(e) {
|
|
354
|
-
return {
|
|
355
|
-
type: "Alternator",
|
|
356
|
-
raw: e
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function de(e, t) {
|
|
360
|
-
return {
|
|
361
|
-
type: "Assertion",
|
|
362
|
-
kind: e,
|
|
363
|
-
raw: t
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
function fe(e) {
|
|
367
|
-
return {
|
|
368
|
-
type: "Backreference",
|
|
369
|
-
raw: e
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
function b(e, t) {
|
|
373
|
-
return {
|
|
374
|
-
type: "Character",
|
|
375
|
-
value: e,
|
|
376
|
-
raw: t
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
function pe(e) {
|
|
380
|
-
return {
|
|
381
|
-
type: "CharacterClassClose",
|
|
382
|
-
raw: e
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
function me(e) {
|
|
386
|
-
return {
|
|
387
|
-
type: "CharacterClassHyphen",
|
|
388
|
-
raw: e
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
function he(e) {
|
|
392
|
-
return {
|
|
393
|
-
type: "CharacterClassIntersector",
|
|
394
|
-
raw: e
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
function ge(e, t) {
|
|
398
|
-
return {
|
|
399
|
-
type: "CharacterClassOpen",
|
|
400
|
-
negate: e,
|
|
401
|
-
raw: t
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function x(e, n, r = {}) {
|
|
405
|
-
return t(t({
|
|
406
|
-
type: "CharacterSet",
|
|
407
|
-
kind: e
|
|
408
|
-
}, r), {}, { raw: n });
|
|
409
|
-
}
|
|
410
|
-
function _e(e, t, n = {}) {
|
|
411
|
-
return e === "keep" ? {
|
|
412
|
-
type: "Directive",
|
|
413
|
-
kind: e,
|
|
414
|
-
raw: t
|
|
415
|
-
} : {
|
|
416
|
-
type: "Directive",
|
|
417
|
-
kind: e,
|
|
418
|
-
flags: y(n.flags),
|
|
419
|
-
raw: t
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
function ve(e, t) {
|
|
423
|
-
return {
|
|
424
|
-
type: "EscapedNumber",
|
|
425
|
-
inCharClass: e,
|
|
426
|
-
raw: t
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
function ye(e) {
|
|
430
|
-
return {
|
|
431
|
-
type: "GroupClose",
|
|
432
|
-
raw: e
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
function S(e, n, r = {}) {
|
|
436
|
-
return t(t({
|
|
437
|
-
type: "GroupOpen",
|
|
438
|
-
kind: e
|
|
439
|
-
}, r), {}, { raw: n });
|
|
440
|
-
}
|
|
441
|
-
function be(e, t, n, r) {
|
|
442
|
-
return {
|
|
443
|
-
type: "NamedCallout",
|
|
444
|
-
kind: e,
|
|
445
|
-
tag: t,
|
|
446
|
-
arguments: n,
|
|
447
|
-
raw: r
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
function xe(e, t, n, r) {
|
|
451
|
-
return {
|
|
452
|
-
type: "Quantifier",
|
|
453
|
-
kind: e,
|
|
454
|
-
min: t,
|
|
455
|
-
max: n,
|
|
456
|
-
raw: r
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
function Se(e) {
|
|
460
|
-
return {
|
|
461
|
-
type: "Subroutine",
|
|
462
|
-
raw: e
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
var Ce = new Set([
|
|
466
|
-
"COUNT",
|
|
467
|
-
"CMP",
|
|
468
|
-
"ERROR",
|
|
469
|
-
"FAIL",
|
|
470
|
-
"MAX",
|
|
471
|
-
"MISMATCH",
|
|
472
|
-
"SKIP",
|
|
473
|
-
"TOTAL_COUNT"
|
|
474
|
-
]), we = new Map([
|
|
475
|
-
["a", 7],
|
|
476
|
-
["b", 8],
|
|
477
|
-
["e", 27],
|
|
478
|
-
["f", 12],
|
|
479
|
-
["n", 10],
|
|
480
|
-
["r", 13],
|
|
481
|
-
["t", 9],
|
|
482
|
-
["v", 11]
|
|
483
|
-
]);
|
|
484
|
-
function Te(e) {
|
|
485
|
-
let t = e[1] === "c" ? e[2] : e[3];
|
|
486
|
-
if (!t || !/[A-Za-z]/.test(t)) throw Error(`Unsupported control character "${e}"`);
|
|
487
|
-
return b(h(t.toUpperCase()) - 64, e);
|
|
488
|
-
}
|
|
489
|
-
function Ee(e, n) {
|
|
490
|
-
let { on: r, off: i } = (/* @__PURE__ */ RegExp("^\\(\\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?", "")).exec(e).groups;
|
|
491
|
-
i != null || (i = "");
|
|
492
|
-
let a = (n.getCurrentModX() || r.includes("x")) && !i.includes("x"), o = je(r), s = je(i), c = {};
|
|
493
|
-
if (o && (c.enable = o), s && (c.disable = s), e.endsWith(")")) return n.replaceCurrentModX(a), _e("flags", e, { flags: c });
|
|
494
|
-
if (e.endsWith(":")) return n.pushModX(a), n.numOpenGroups++, S("group", e, t({}, (o || s) && { flags: c }));
|
|
495
|
-
throw Error(`Unexpected flag modifier "${e}"`);
|
|
496
|
-
}
|
|
497
|
-
function De(e) {
|
|
498
|
-
var t;
|
|
499
|
-
let n = (/* @__PURE__ */ RegExp("\\(\\*(?<name>[A-Za-z_]\\w*)?(?:\\[(?<tag>(?:[A-Za-z_]\\w*)?)\\])?(?:\\{(?<args>[^}]*)\\})?\\)", "")).exec(e);
|
|
500
|
-
if (!n) throw Error(`Incomplete or invalid named callout "${e}"`);
|
|
501
|
-
let { name: r, tag: i, args: a } = n.groups;
|
|
502
|
-
if (!r) throw Error(`Invalid named callout "${e}"`);
|
|
503
|
-
if (i === "") throw Error(`Named callout tag with empty value not allowed "${e}"`);
|
|
504
|
-
let o = a ? a.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [s, c, l] = o, u = Ce.has(r) ? r.toLowerCase() : "custom";
|
|
505
|
-
switch (u) {
|
|
506
|
-
case "fail":
|
|
507
|
-
case "mismatch":
|
|
508
|
-
case "skip":
|
|
509
|
-
if (o.length > 0) throw Error(`Named callout arguments not allowed "${o}"`);
|
|
510
|
-
break;
|
|
511
|
-
case "error":
|
|
512
|
-
if (o.length > 1) throw Error(`Named callout allows only one argument "${o}"`);
|
|
513
|
-
if (typeof s == "string") throw Error(`Named callout argument must be a number "${s}"`);
|
|
514
|
-
break;
|
|
515
|
-
case "max":
|
|
516
|
-
if (!o.length || o.length > 2) throw Error(`Named callout must have one or two arguments "${o}"`);
|
|
517
|
-
if (typeof s == "string" && !/^[A-Za-z_]\w*$/.test(s)) throw Error(`Named callout argument one must be a tag or number "${s}"`);
|
|
518
|
-
if (o.length === 2 && (typeof c == "number" || !/^[<>X]$/.test(c))) throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${c}"`);
|
|
519
|
-
break;
|
|
520
|
-
case "count":
|
|
521
|
-
case "total_count":
|
|
522
|
-
if (o.length > 1) throw Error(`Named callout allows only one argument "${o}"`);
|
|
523
|
-
if (o.length === 1 && (typeof s == "number" || !/^[<>X]$/.test(s))) throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);
|
|
524
|
-
break;
|
|
525
|
-
case "cmp":
|
|
526
|
-
if (o.length !== 3) throw Error(`Named callout must have three arguments "${o}"`);
|
|
527
|
-
if (typeof s == "string" && !/^[A-Za-z_]\w*$/.test(s)) throw Error(`Named callout argument one must be a tag or number "${s}"`);
|
|
528
|
-
if (typeof c == "number" || !/^(?:[<>!=]=|[<>])$/.test(c)) throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${c}"`);
|
|
529
|
-
if (typeof l == "string" && !/^[A-Za-z_]\w*$/.test(l)) throw Error(`Named callout argument three must be a tag or number "${l}"`);
|
|
530
|
-
break;
|
|
531
|
-
case "custom": throw Error(`Undefined callout name "${r}"`);
|
|
532
|
-
default: throw Error(`Unexpected named callout kind "${u}"`);
|
|
533
|
-
}
|
|
534
|
-
return be(u, i == null ? null : i, (t = a == null ? void 0 : a.split(",")) == null ? null : t, e);
|
|
535
|
-
}
|
|
536
|
-
function Oe(e) {
|
|
537
|
-
let t = null, n, r;
|
|
538
|
-
if (e[0] === "{") {
|
|
539
|
-
let { minStr: i, maxStr: a } = (/* @__PURE__ */ RegExp("^\\{(?<minStr>\\d*)(?:,(?<maxStr>\\d*))?", "")).exec(e).groups, o = 1e5;
|
|
540
|
-
if (+i > o || a && +a > o) throw Error("Quantifier value unsupported in Oniguruma");
|
|
541
|
-
if (n = +i, r = a === void 0 ? +i : a === "" ? Infinity : +a, n > r && (t = "possessive", [n, r] = [r, n]), e.endsWith("?")) {
|
|
542
|
-
if (t === "possessive") throw Error("Unsupported possessive interval quantifier chain with \"?\"");
|
|
543
|
-
t = "lazy";
|
|
544
|
-
} else t || (t = "greedy");
|
|
545
|
-
} else n = e[0] === "+" ? 1 : 0, r = e[0] === "?" ? 1 : Infinity, t = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
|
|
546
|
-
return xe(t, n, r, e);
|
|
547
|
-
}
|
|
548
|
-
function ke(e) {
|
|
549
|
-
let t = e[1].toLowerCase();
|
|
550
|
-
return x({
|
|
551
|
-
d: "digit",
|
|
552
|
-
h: "hex",
|
|
553
|
-
s: "space",
|
|
554
|
-
w: "word"
|
|
555
|
-
}[t], e, { negate: e[1] !== t });
|
|
556
|
-
}
|
|
557
|
-
function Ae(e) {
|
|
558
|
-
let { p: t, neg: n, value: r } = (/* @__PURE__ */ RegExp("^\\\\(?<p>[pP])\\{(?<neg>\\^?)(?<value>[^}]+)", "")).exec(e).groups;
|
|
559
|
-
return x("property", e, {
|
|
560
|
-
value: r,
|
|
561
|
-
negate: t === "P" && !n || t === "p" && !!n
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
function je(e) {
|
|
565
|
-
let t = {};
|
|
566
|
-
return e.includes("i") && (t.ignoreCase = !0), e.includes("m") && (t.dotAll = !0), e.includes("x") && (t.extended = !0), Object.keys(t).length ? t : null;
|
|
567
|
-
}
|
|
568
|
-
function Me(e) {
|
|
569
|
-
let t = {
|
|
570
|
-
ignoreCase: !1,
|
|
571
|
-
dotAll: !1,
|
|
572
|
-
extended: !1,
|
|
573
|
-
digitIsAscii: !1,
|
|
574
|
-
posixIsAscii: !1,
|
|
575
|
-
spaceIsAscii: !1,
|
|
576
|
-
wordIsAscii: !1,
|
|
577
|
-
textSegmentMode: null
|
|
578
|
-
};
|
|
579
|
-
for (let n = 0; n < e.length; n++) {
|
|
580
|
-
let r = e[n];
|
|
581
|
-
if (!"imxDPSWy".includes(r)) throw Error(`Invalid flag "${r}"`);
|
|
582
|
-
if (r === "y") {
|
|
583
|
-
if (!/^y{[gw]}/.test(e.slice(n))) throw Error("Invalid or unspecified flag \"y\" mode");
|
|
584
|
-
t.textSegmentMode = e[n + 2] === "g" ? "grapheme" : "word", n += 3;
|
|
585
|
-
continue;
|
|
586
|
-
}
|
|
587
|
-
t[{
|
|
588
|
-
i: "ignoreCase",
|
|
589
|
-
m: "dotAll",
|
|
590
|
-
x: "extended",
|
|
591
|
-
D: "digitIsAscii",
|
|
592
|
-
P: "posixIsAscii",
|
|
593
|
-
S: "spaceIsAscii",
|
|
594
|
-
W: "wordIsAscii"
|
|
595
|
-
}[r]] = !0;
|
|
596
|
-
}
|
|
597
|
-
return t;
|
|
598
|
-
}
|
|
599
|
-
function Ne(e) {
|
|
600
|
-
if ((/* @__PURE__ */ RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))", "u")).test(e)) throw Error(`Incomplete or invalid escape "${e}"`);
|
|
601
|
-
let t = e[2] === "{" ? (/* @__PURE__ */ RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)", "u")).exec(e).groups.hex : e.slice(2);
|
|
602
|
-
return parseInt(t, 16);
|
|
603
|
-
}
|
|
604
|
-
function Pe(e, t) {
|
|
605
|
-
let { raw: n, inCharClass: r } = e, i = n.slice(1);
|
|
606
|
-
if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [fe(n)];
|
|
607
|
-
let a = [], o = i.match(/^[0-7]+|\d/g);
|
|
608
|
-
for (let e = 0; e < o.length; e++) {
|
|
609
|
-
let t = o[e], r;
|
|
610
|
-
if (e === 0 && t !== "8" && t !== "9") {
|
|
611
|
-
if (r = parseInt(t, 8), r > 127) throw Error(v`Octal encoded byte above 177 unsupported "${n}"`);
|
|
612
|
-
} else r = h(t);
|
|
613
|
-
a.push(b(r, (e === 0 ? "\\" : "") + t));
|
|
614
|
-
}
|
|
615
|
-
return a;
|
|
616
|
-
}
|
|
617
|
-
function Fe(e) {
|
|
618
|
-
let t = [], n = new RegExp(ne, "gy"), r;
|
|
619
|
-
for (; r = n.exec(e);) {
|
|
620
|
-
let e = r[0];
|
|
621
|
-
if (e[0] === "{") {
|
|
622
|
-
let r = (/* @__PURE__ */ RegExp("^\\{(?<min>\\d+),(?<max>\\d+)\\}\\??$", "")).exec(e);
|
|
623
|
-
if (r) {
|
|
624
|
-
let { min: i, max: a } = r.groups;
|
|
625
|
-
if (+i > +a && e.endsWith("?")) {
|
|
626
|
-
n.lastIndex--, t.push(Oe(e.slice(0, -1)));
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
t.push(Oe(e));
|
|
632
|
-
}
|
|
633
|
-
return t;
|
|
634
|
-
}
|
|
635
|
-
//#endregion
|
|
636
|
-
//#region node_modules/oniguruma-parser/dist/parser/node-utils.js
|
|
637
|
-
function Ie(e, t) {
|
|
638
|
-
if (!Array.isArray(e.body)) throw Error("Expected node with body array");
|
|
639
|
-
if (e.body.length !== 1) return !1;
|
|
640
|
-
let n = e.body[0];
|
|
641
|
-
return !t || Object.keys(t).every((e) => t[e] === n[e]);
|
|
642
|
-
}
|
|
643
|
-
function Le(e) {
|
|
644
|
-
return Re.has(e.type);
|
|
645
|
-
}
|
|
646
|
-
var Re = new Set([
|
|
647
|
-
"AbsenceFunction",
|
|
648
|
-
"Backreference",
|
|
649
|
-
"CapturingGroup",
|
|
650
|
-
"Character",
|
|
651
|
-
"CharacterClass",
|
|
652
|
-
"CharacterSet",
|
|
653
|
-
"Group",
|
|
654
|
-
"Quantifier",
|
|
655
|
-
"Subroutine"
|
|
656
|
-
]);
|
|
657
|
-
//#endregion
|
|
658
|
-
//#region node_modules/oniguruma-parser/dist/parser/parse.js
|
|
659
|
-
function ze(e, n = {}) {
|
|
660
|
-
let r = t(t({
|
|
661
|
-
flags: "",
|
|
662
|
-
normalizeUnknownPropertyNames: !1,
|
|
663
|
-
skipBackrefValidation: !1,
|
|
664
|
-
skipLookbehindValidation: !1,
|
|
665
|
-
skipPropertyNameValidation: !1,
|
|
666
|
-
unicodePropertyMap: null
|
|
667
|
-
}, n), {}, { rules: t({
|
|
668
|
-
captureGroup: !1,
|
|
669
|
-
singleline: !1
|
|
670
|
-
}, n.rules) }), i = ae(e, {
|
|
671
|
-
flags: r.flags,
|
|
672
|
-
rules: {
|
|
673
|
-
captureGroup: r.rules.captureGroup,
|
|
674
|
-
singleline: r.rules.singleline
|
|
675
|
-
}
|
|
676
|
-
}), a = (e, t) => {
|
|
677
|
-
let n = i.tokens[o.nextIndex];
|
|
678
|
-
switch (o.parent = e, o.nextIndex++, n.type) {
|
|
679
|
-
case "Alternator": return C();
|
|
680
|
-
case "Assertion": return Be(n);
|
|
681
|
-
case "Backreference": return Ve(n, o);
|
|
682
|
-
case "Character": return w(n.value, { useLastValid: !!t.isCheckingRangeEnd });
|
|
683
|
-
case "CharacterClassHyphen": return He(n, o, t);
|
|
684
|
-
case "CharacterClassOpen": return Ue(n, o, t);
|
|
685
|
-
case "CharacterSet": return We(n, o);
|
|
686
|
-
case "Directive": return et(n.kind, { flags: n.flags });
|
|
687
|
-
case "GroupOpen": return Ge(n, o, t);
|
|
688
|
-
case "NamedCallout": return nt(n.kind, n.tag, n.arguments);
|
|
689
|
-
case "Quantifier": return Ke(n, o);
|
|
690
|
-
case "Subroutine": return qe(n, o);
|
|
691
|
-
default: throw Error(`Unexpected token type "${n.type}"`);
|
|
692
|
-
}
|
|
693
|
-
}, o = {
|
|
694
|
-
capturingGroups: [],
|
|
695
|
-
hasNumberedRef: !1,
|
|
696
|
-
namedGroupsByName: /* @__PURE__ */ new Map(),
|
|
697
|
-
nextIndex: 0,
|
|
698
|
-
normalizeUnknownPropertyNames: r.normalizeUnknownPropertyNames,
|
|
699
|
-
parent: null,
|
|
700
|
-
skipBackrefValidation: r.skipBackrefValidation,
|
|
701
|
-
skipLookbehindValidation: r.skipLookbehindValidation,
|
|
702
|
-
skipPropertyNameValidation: r.skipPropertyNameValidation,
|
|
703
|
-
subroutines: [],
|
|
704
|
-
tokens: i.tokens,
|
|
705
|
-
unicodePropertyMap: r.unicodePropertyMap,
|
|
706
|
-
walk: a
|
|
707
|
-
}, s = at(tt(i.flags)), c = s.body[0];
|
|
708
|
-
for (; o.nextIndex < i.tokens.length;) {
|
|
709
|
-
let e = a(c, {});
|
|
710
|
-
e.type === "Alternative" ? (s.body.push(e), c = e) : c.body.push(e);
|
|
711
|
-
}
|
|
712
|
-
let { capturingGroups: l, hasNumberedRef: u, namedGroupsByName: d, subroutines: f } = o;
|
|
713
|
-
if (u && d.size && !r.rules.captureGroup) throw Error("Numbered backref/subroutine not allowed when using named capture");
|
|
714
|
-
for (let { ref: e } of f) if (typeof e == "number") {
|
|
715
|
-
if (e > l.length) throw Error("Subroutine uses a group number that's not defined");
|
|
716
|
-
e && (l[e - 1].isSubroutined = !0);
|
|
717
|
-
} else if (d.has(e)) {
|
|
718
|
-
if (d.get(e).length > 1) throw Error(v`Subroutine uses a duplicate group name "\g<${e}>"`);
|
|
719
|
-
d.get(e)[0].isSubroutined = !0;
|
|
720
|
-
} else throw Error(v`Subroutine uses a group name that's not defined "\g<${e}>"`);
|
|
721
|
-
return s;
|
|
722
|
-
}
|
|
723
|
-
function Be({ kind: e }) {
|
|
724
|
-
return Ye(y({
|
|
725
|
-
"^": "line_start",
|
|
726
|
-
$: "line_end",
|
|
727
|
-
"\\A": "string_start",
|
|
728
|
-
"\\b": "word_boundary",
|
|
729
|
-
"\\B": "word_boundary",
|
|
730
|
-
"\\G": "search_start",
|
|
731
|
-
"\\y": "text_segment_boundary",
|
|
732
|
-
"\\Y": "text_segment_boundary",
|
|
733
|
-
"\\z": "string_end",
|
|
734
|
-
"\\Z": "string_end_newline"
|
|
735
|
-
}[e], `Unexpected assertion kind "${e}"`), { negate: e === v`\B` || e === v`\Y` });
|
|
736
|
-
}
|
|
737
|
-
function Ve({ raw: e }, t) {
|
|
738
|
-
let n = /^\\k[<']/.test(e), r = n ? e.slice(3, -1) : e.slice(1), i = (n, r = !1) => {
|
|
739
|
-
let i = t.capturingGroups.length, a = !1;
|
|
740
|
-
if (n > i) if (t.skipBackrefValidation) a = !0;
|
|
741
|
-
else throw Error(`Not enough capturing groups defined to the left "${e}"`);
|
|
742
|
-
return t.hasNumberedRef = !0, Xe(r ? i + 1 - n : n, { orphan: a });
|
|
743
|
-
};
|
|
744
|
-
if (n) {
|
|
745
|
-
let n = (/* @__PURE__ */ RegExp("^(?<sign>-?)0*(?<num>[1-9]\\d*)$", "")).exec(r);
|
|
746
|
-
if (n) return i(+n.groups.num, !!n.groups.sign);
|
|
747
|
-
if (/[-+]/.test(r)) throw Error(`Invalid backref name "${e}"`);
|
|
748
|
-
if (!t.namedGroupsByName.has(r)) throw Error(`Group name not defined to the left "${e}"`);
|
|
749
|
-
return Xe(r);
|
|
750
|
-
}
|
|
751
|
-
return i(+r);
|
|
752
|
-
}
|
|
753
|
-
function He(e, n, r) {
|
|
754
|
-
let { tokens: i, walk: a } = n, o = n.parent, s = o.body.at(-1), c = i[n.nextIndex];
|
|
755
|
-
if (!r.isCheckingRangeEnd && s && s.type !== "CharacterClass" && s.type !== "CharacterClassRange" && c && c.type !== "CharacterClassOpen" && c.type !== "CharacterClassClose" && c.type !== "CharacterClassIntersector") {
|
|
756
|
-
let e = a(o, t(t({}, r), {}, { isCheckingRangeEnd: !0 }));
|
|
757
|
-
if (s.type === "Character" && e.type === "Character") return o.body.pop(), Qe(s, e);
|
|
758
|
-
throw Error("Invalid character class range");
|
|
759
|
-
}
|
|
760
|
-
return w(h("-"));
|
|
761
|
-
}
|
|
762
|
-
function Ue({ negate: e }, t, n) {
|
|
763
|
-
let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [T()], s = pt(a);
|
|
764
|
-
for (; s.type !== "CharacterClassClose";) {
|
|
765
|
-
if (s.type === "CharacterClassIntersector") o.push(T()), t.nextIndex++;
|
|
766
|
-
else {
|
|
767
|
-
let e = o.at(-1);
|
|
768
|
-
e.body.push(i(e, n));
|
|
769
|
-
}
|
|
770
|
-
s = pt(r[t.nextIndex], a);
|
|
771
|
-
}
|
|
772
|
-
let c = T({ negate: e });
|
|
773
|
-
return o.length === 1 ? c.body = o[0].body : (c.kind = "intersection", c.body = o.map((e) => e.body.length === 1 ? e.body[0] : e)), t.nextIndex++, c;
|
|
774
|
-
}
|
|
775
|
-
function We({ kind: e, negate: t, value: n }, r) {
|
|
776
|
-
let { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: o } = r;
|
|
777
|
-
if (e === "property") {
|
|
778
|
-
let r = A(n);
|
|
779
|
-
if (_.has(r) && !(o != null && o.has(r))) e = "posix", n = r;
|
|
780
|
-
else return O(n, {
|
|
781
|
-
negate: t,
|
|
782
|
-
normalizeUnknownPropertyNames: i,
|
|
783
|
-
skipPropertyNameValidation: a,
|
|
784
|
-
unicodePropertyMap: o
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
return e === "posix" ? rt(n, { negate: t }) : $e(e, { negate: t });
|
|
788
|
-
}
|
|
789
|
-
function Ge(e, n, r) {
|
|
790
|
-
let { tokens: i, capturingGroups: a, namedGroupsByName: o, skipLookbehindValidation: s, walk: c } = n, l = st(e), u = l.type === "AbsenceFunction", d = ut(l), f = d && l.negate;
|
|
791
|
-
if (l.type === "CapturingGroup" && (a.push(l), l.name && g(o, l.name, []).push(l)), u && r.isInAbsenceFunction) throw Error("Nested absence function not supported by Oniguruma");
|
|
792
|
-
let p = mt(i[n.nextIndex]);
|
|
793
|
-
for (; p.type !== "GroupClose";) {
|
|
794
|
-
if (p.type === "Alternator") l.body.push(C()), n.nextIndex++;
|
|
795
|
-
else {
|
|
796
|
-
let e = l.body.at(-1), n = c(e, t(t({}, r), {}, {
|
|
797
|
-
isInAbsenceFunction: r.isInAbsenceFunction || u,
|
|
798
|
-
isInLookbehind: r.isInLookbehind || d,
|
|
799
|
-
isInNegLookbehind: r.isInNegLookbehind || f
|
|
800
|
-
}));
|
|
801
|
-
if (e.body.push(n), (d || r.isInLookbehind) && !s) {
|
|
802
|
-
let e = "Lookbehind includes a pattern not allowed by Oniguruma";
|
|
803
|
-
if (f || r.isInNegLookbehind) {
|
|
804
|
-
if (lt(n) || n.type === "CapturingGroup") throw Error(e);
|
|
805
|
-
} else if (lt(n) || ut(n) && n.negate) throw Error(e);
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
p = mt(i[n.nextIndex]);
|
|
809
|
-
}
|
|
810
|
-
return n.nextIndex++, l;
|
|
811
|
-
}
|
|
812
|
-
function Ke({ kind: e, min: t, max: n }, r) {
|
|
813
|
-
let i = r.parent, a = i.body.at(-1);
|
|
814
|
-
if (!a || !Le(a)) throw Error("Quantifier requires a repeatable token");
|
|
815
|
-
let o = it(e, t, n, a);
|
|
816
|
-
return i.body.pop(), o;
|
|
817
|
-
}
|
|
818
|
-
function qe({ raw: e }, t) {
|
|
819
|
-
let { capturingGroups: n, subroutines: r } = t, i = e.slice(3, -1), a = (/* @__PURE__ */ RegExp("^(?<sign>[-+]?)0*(?<num>[1-9]\\d*)$", "")).exec(i);
|
|
820
|
-
if (a) {
|
|
821
|
-
let e = +a.groups.num, r = n.length;
|
|
822
|
-
if (t.hasNumberedRef = !0, i = {
|
|
823
|
-
"": e,
|
|
824
|
-
"+": r + e,
|
|
825
|
-
"-": r + 1 - e
|
|
826
|
-
}[a.groups.sign], i < 1) throw Error("Invalid subroutine number");
|
|
827
|
-
} else i === "0" && (i = 0);
|
|
828
|
-
let o = ot(i);
|
|
829
|
-
return r.push(o), o;
|
|
830
|
-
}
|
|
831
|
-
function Je(e, t) {
|
|
832
|
-
if (e !== "repeater") throw Error(`Unexpected absence function kind "${e}"`);
|
|
833
|
-
return {
|
|
834
|
-
type: "AbsenceFunction",
|
|
835
|
-
kind: e,
|
|
836
|
-
body: k(t == null ? void 0 : t.body)
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
function C(e) {
|
|
840
|
-
return {
|
|
841
|
-
type: "Alternative",
|
|
842
|
-
body: ct(e == null ? void 0 : e.body)
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
function Ye(e, t) {
|
|
846
|
-
let n = {
|
|
847
|
-
type: "Assertion",
|
|
848
|
-
kind: e
|
|
849
|
-
};
|
|
850
|
-
return (e === "word_boundary" || e === "text_segment_boundary") && (n.negate = !!(t != null && t.negate)), n;
|
|
851
|
-
}
|
|
852
|
-
function Xe(e, n) {
|
|
853
|
-
let r = !!(n != null && n.orphan);
|
|
854
|
-
return t({
|
|
855
|
-
type: "Backreference",
|
|
856
|
-
ref: e
|
|
857
|
-
}, r && { orphan: r });
|
|
858
|
-
}
|
|
859
|
-
function Ze(e, n) {
|
|
860
|
-
let r = t({
|
|
861
|
-
name: void 0,
|
|
862
|
-
isSubroutined: !1
|
|
863
|
-
}, n);
|
|
864
|
-
if (r.name !== void 0 && !dt(r.name)) throw Error(`Group name "${r.name}" invalid in Oniguruma`);
|
|
865
|
-
return t(t(t({
|
|
866
|
-
type: "CapturingGroup",
|
|
867
|
-
number: e
|
|
868
|
-
}, r.name && { name: r.name }), r.isSubroutined && { isSubroutined: r.isSubroutined }), {}, { body: k(n == null ? void 0 : n.body) });
|
|
869
|
-
}
|
|
870
|
-
function w(e, n) {
|
|
871
|
-
let r = t({ useLastValid: !1 }, n);
|
|
872
|
-
if (e > 1114111) {
|
|
873
|
-
let t = e.toString(16);
|
|
874
|
-
if (r.useLastValid) e = 1114111;
|
|
875
|
-
else throw e > 1310719 ? /* @__PURE__ */ Error(`Invalid code point out of range "\\x{${t}}"`) : /* @__PURE__ */ Error(`Invalid code point out of range in JS "\\x{${t}}"`);
|
|
876
|
-
}
|
|
877
|
-
return {
|
|
878
|
-
type: "Character",
|
|
879
|
-
value: e
|
|
880
|
-
};
|
|
881
|
-
}
|
|
882
|
-
function T(e) {
|
|
883
|
-
let n = t({
|
|
884
|
-
kind: "union",
|
|
885
|
-
negate: !1
|
|
886
|
-
}, e);
|
|
887
|
-
return {
|
|
888
|
-
type: "CharacterClass",
|
|
889
|
-
kind: n.kind,
|
|
890
|
-
negate: n.negate,
|
|
891
|
-
body: ct(e == null ? void 0 : e.body)
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
function Qe(e, t) {
|
|
895
|
-
if (t.value < e.value) throw Error("Character class range out of order");
|
|
896
|
-
return {
|
|
897
|
-
type: "CharacterClassRange",
|
|
898
|
-
min: e,
|
|
899
|
-
max: t
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
function $e(e, t) {
|
|
903
|
-
let n = !!(t != null && t.negate), r = {
|
|
904
|
-
type: "CharacterSet",
|
|
905
|
-
kind: e
|
|
906
|
-
};
|
|
907
|
-
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (r.negate = n), (e === "text_segment" || e === "newline" && !n) && (r.variableLength = !0), r;
|
|
908
|
-
}
|
|
909
|
-
function et(e, t = {}) {
|
|
910
|
-
if (e === "keep") return {
|
|
911
|
-
type: "Directive",
|
|
912
|
-
kind: e
|
|
913
|
-
};
|
|
914
|
-
if (e === "flags") return {
|
|
915
|
-
type: "Directive",
|
|
916
|
-
kind: e,
|
|
917
|
-
flags: y(t.flags)
|
|
918
|
-
};
|
|
919
|
-
throw Error(`Unexpected directive kind "${e}"`);
|
|
920
|
-
}
|
|
921
|
-
function tt(e) {
|
|
922
|
-
return t({ type: "Flags" }, e);
|
|
923
|
-
}
|
|
924
|
-
function E(e) {
|
|
925
|
-
let n = e == null ? void 0 : e.atomic, r = e == null ? void 0 : e.flags;
|
|
926
|
-
if (n && r) throw Error("Atomic group cannot have flags");
|
|
927
|
-
return t(t(t({ type: "Group" }, n && { atomic: n }), r && { flags: r }), {}, { body: k(e == null ? void 0 : e.body) });
|
|
928
|
-
}
|
|
929
|
-
function D(e) {
|
|
930
|
-
let n = t({
|
|
931
|
-
behind: !1,
|
|
932
|
-
negate: !1
|
|
933
|
-
}, e);
|
|
934
|
-
return {
|
|
935
|
-
type: "LookaroundAssertion",
|
|
936
|
-
kind: n.behind ? "lookbehind" : "lookahead",
|
|
937
|
-
negate: n.negate,
|
|
938
|
-
body: k(e == null ? void 0 : e.body)
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
function nt(e, t, n) {
|
|
942
|
-
return {
|
|
943
|
-
type: "NamedCallout",
|
|
944
|
-
kind: e,
|
|
945
|
-
tag: t,
|
|
946
|
-
arguments: n
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
function rt(e, t) {
|
|
950
|
-
let n = !!(t != null && t.negate);
|
|
951
|
-
if (!_.has(e)) throw Error(`Invalid POSIX class "${e}"`);
|
|
952
|
-
return {
|
|
953
|
-
type: "CharacterSet",
|
|
954
|
-
kind: "posix",
|
|
955
|
-
value: e,
|
|
956
|
-
negate: n
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
function it(e, t, n, r) {
|
|
960
|
-
if (t > n) throw Error("Invalid reversed quantifier range");
|
|
961
|
-
return {
|
|
962
|
-
type: "Quantifier",
|
|
963
|
-
kind: e,
|
|
964
|
-
min: t,
|
|
965
|
-
max: n,
|
|
966
|
-
body: r
|
|
967
|
-
};
|
|
968
|
-
}
|
|
969
|
-
function at(e, t) {
|
|
970
|
-
return {
|
|
971
|
-
type: "Regex",
|
|
972
|
-
body: k(t == null ? void 0 : t.body),
|
|
973
|
-
flags: e
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
function ot(e) {
|
|
977
|
-
return {
|
|
978
|
-
type: "Subroutine",
|
|
979
|
-
ref: e
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
function O(e, n) {
|
|
983
|
-
var r, i;
|
|
984
|
-
let a = t({
|
|
985
|
-
negate: !1,
|
|
986
|
-
normalizeUnknownPropertyNames: !1,
|
|
987
|
-
skipPropertyNameValidation: !1,
|
|
988
|
-
unicodePropertyMap: null
|
|
989
|
-
}, n), o = (r = a.unicodePropertyMap) == null ? void 0 : r.get(A(e));
|
|
990
|
-
if (!o) {
|
|
991
|
-
if (a.normalizeUnknownPropertyNames) o = ft(e);
|
|
992
|
-
else if (a.unicodePropertyMap && !a.skipPropertyNameValidation) throw Error(v`Invalid Unicode property "\p{${e}}"`);
|
|
993
|
-
}
|
|
994
|
-
return {
|
|
995
|
-
type: "CharacterSet",
|
|
996
|
-
kind: "property",
|
|
997
|
-
value: (i = o) == null ? e : i,
|
|
998
|
-
negate: a.negate
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
function st({ flags: e, kind: t, name: n, negate: r, number: i }) {
|
|
1002
|
-
switch (t) {
|
|
1003
|
-
case "absence_repeater": return Je("repeater");
|
|
1004
|
-
case "atomic": return E({ atomic: !0 });
|
|
1005
|
-
case "capturing": return Ze(i, { name: n });
|
|
1006
|
-
case "group": return E({ flags: e });
|
|
1007
|
-
case "lookahead":
|
|
1008
|
-
case "lookbehind": return D({
|
|
1009
|
-
behind: t === "lookbehind",
|
|
1010
|
-
negate: r
|
|
1011
|
-
});
|
|
1012
|
-
default: throw Error(`Unexpected group kind "${t}"`);
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
function k(e) {
|
|
1016
|
-
if (e === void 0) e = [C()];
|
|
1017
|
-
else if (!Array.isArray(e) || !e.length || !e.every((e) => e.type === "Alternative")) throw Error("Invalid body; expected array of one or more Alternative nodes");
|
|
1018
|
-
return e;
|
|
1019
|
-
}
|
|
1020
|
-
function ct(e) {
|
|
1021
|
-
if (e === void 0) e = [];
|
|
1022
|
-
else if (!Array.isArray(e) || !e.every((e) => !!e.type)) throw Error("Invalid body; expected array of nodes");
|
|
1023
|
-
return e;
|
|
1024
|
-
}
|
|
1025
|
-
function lt(e) {
|
|
1026
|
-
return e.type === "LookaroundAssertion" && e.kind === "lookahead";
|
|
1027
|
-
}
|
|
1028
|
-
function ut(e) {
|
|
1029
|
-
return e.type === "LookaroundAssertion" && e.kind === "lookbehind";
|
|
1030
|
-
}
|
|
1031
|
-
function dt(e) {
|
|
1032
|
-
return (/* @__PURE__ */ RegExp("^[\\p{Alpha}\\p{Pc}][^)]*$", "u")).test(e);
|
|
1033
|
-
}
|
|
1034
|
-
function ft(e) {
|
|
1035
|
-
return e.trim().replace(/[- _]+/g, "_").replace(/[A-Z][a-z]+(?=[A-Z])/g, "$&_").replace(/[A-Za-z]+/g, (e) => e[0].toUpperCase() + e.slice(1).toLowerCase());
|
|
1036
|
-
}
|
|
1037
|
-
function A(e) {
|
|
1038
|
-
return e.replace(/[- _]+/g, "").toLowerCase();
|
|
1039
|
-
}
|
|
1040
|
-
function pt(e, t) {
|
|
1041
|
-
return y(e, `${(t == null ? void 0 : t.type) === "Character" && t.value === 93 ? "Empty" : "Unclosed"} character class`);
|
|
1042
|
-
}
|
|
1043
|
-
function mt(e) {
|
|
1044
|
-
return y(e, "Unclosed group");
|
|
1045
|
-
}
|
|
1046
|
-
//#endregion
|
|
1047
|
-
//#region node_modules/oniguruma-parser/dist/traverser/traverse.js
|
|
1048
|
-
function j(e, t, n = null) {
|
|
1049
|
-
function r(e, t) {
|
|
1050
|
-
for (let n = 0; n < e.length; n++) {
|
|
1051
|
-
let r = i(e[n], t, n, e);
|
|
1052
|
-
n = Math.max(-1, n + r);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
function i(a, o = null, s = null, c = null) {
|
|
1056
|
-
var l, u;
|
|
1057
|
-
let d = 0, f = !1, p = {
|
|
1058
|
-
node: a,
|
|
1059
|
-
parent: o,
|
|
1060
|
-
key: s,
|
|
1061
|
-
container: c,
|
|
1062
|
-
root: e,
|
|
1063
|
-
remove() {
|
|
1064
|
-
M(c).splice(Math.max(0, N(s) + d), 1), d--, f = !0;
|
|
1065
|
-
},
|
|
1066
|
-
removeAllNextSiblings() {
|
|
1067
|
-
return M(c).splice(N(s) + 1);
|
|
1068
|
-
},
|
|
1069
|
-
removeAllPrevSiblings() {
|
|
1070
|
-
let e = N(s) + d;
|
|
1071
|
-
return d -= e, M(c).splice(0, Math.max(0, e));
|
|
1072
|
-
},
|
|
1073
|
-
replaceWith(e, t = {}) {
|
|
1074
|
-
let n = !!t.traverse;
|
|
1075
|
-
c ? c[Math.max(0, N(s) + d)] = e : y(o, "Can't replace root node")[s] = e, n && i(e, o, s, c), f = !0;
|
|
1076
|
-
},
|
|
1077
|
-
replaceWithMultiple(e, t = {}) {
|
|
1078
|
-
let n = !!t.traverse;
|
|
1079
|
-
if (M(c).splice(Math.max(0, N(s) + d), 1, ...e), d += e.length - 1, n) {
|
|
1080
|
-
let t = 0;
|
|
1081
|
-
for (let n = 0; n < e.length; n++) t += i(e[n], o, N(s) + n + t, c);
|
|
1082
|
-
}
|
|
1083
|
-
f = !0;
|
|
1084
|
-
},
|
|
1085
|
-
skip() {
|
|
1086
|
-
f = !0;
|
|
1087
|
-
}
|
|
1088
|
-
}, { type: m } = a, h = t["*"], g = t[m], _ = typeof h == "function" ? h : h == null ? void 0 : h.enter, v = typeof g == "function" ? g : g == null ? void 0 : g.enter;
|
|
1089
|
-
if (_ == null || _(p, n), v == null || v(p, n), !f) switch (m) {
|
|
1090
|
-
case "AbsenceFunction":
|
|
1091
|
-
case "CapturingGroup":
|
|
1092
|
-
case "Group":
|
|
1093
|
-
r(a.body, a);
|
|
1094
|
-
break;
|
|
1095
|
-
case "Alternative":
|
|
1096
|
-
case "CharacterClass":
|
|
1097
|
-
r(a.body, a);
|
|
1098
|
-
break;
|
|
1099
|
-
case "Assertion":
|
|
1100
|
-
case "Backreference":
|
|
1101
|
-
case "Character":
|
|
1102
|
-
case "CharacterSet":
|
|
1103
|
-
case "Directive":
|
|
1104
|
-
case "Flags":
|
|
1105
|
-
case "NamedCallout":
|
|
1106
|
-
case "Subroutine": break;
|
|
1107
|
-
case "CharacterClassRange":
|
|
1108
|
-
i(a.min, a, "min"), i(a.max, a, "max");
|
|
1109
|
-
break;
|
|
1110
|
-
case "LookaroundAssertion":
|
|
1111
|
-
r(a.body, a);
|
|
1112
|
-
break;
|
|
1113
|
-
case "Quantifier":
|
|
1114
|
-
i(a.body, a, "body");
|
|
1115
|
-
break;
|
|
1116
|
-
case "Regex":
|
|
1117
|
-
r(a.body, a), i(a.flags, a, "flags");
|
|
1118
|
-
break;
|
|
1119
|
-
default: throw Error(`Unexpected node type "${m}"`);
|
|
1120
|
-
}
|
|
1121
|
-
return g == null || (l = g.exit) == null || l.call(g, p, n), h == null || (u = h.exit) == null || u.call(h, p, n), d;
|
|
1122
|
-
}
|
|
1123
|
-
return i(e), e;
|
|
1124
|
-
}
|
|
1125
|
-
function M(e) {
|
|
1126
|
-
if (!Array.isArray(e)) throw Error("Container expected");
|
|
1127
|
-
return e;
|
|
1128
|
-
}
|
|
1129
|
-
function N(e) {
|
|
1130
|
-
if (typeof e != "number") throw Error("Numeric key expected");
|
|
1131
|
-
return e;
|
|
1132
|
-
}
|
|
1133
|
-
//#endregion
|
|
1134
|
-
//#region node_modules/regex/src/utils-internals.js
|
|
1135
|
-
var ht = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
|
|
1136
|
-
function gt(e, t) {
|
|
1137
|
-
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
1138
|
-
}
|
|
1139
|
-
function _t(e, t, n, r) {
|
|
1140
|
-
return e.slice(0, t) + r + e.slice(t + n.length);
|
|
1141
|
-
}
|
|
1142
|
-
//#endregion
|
|
1143
|
-
//#region node_modules/regex-utilities/src/index.js
|
|
1144
|
-
var P = Object.freeze({
|
|
1145
|
-
DEFAULT: "DEFAULT",
|
|
1146
|
-
CHAR_CLASS: "CHAR_CLASS"
|
|
1147
|
-
});
|
|
1148
|
-
function vt(e, t, n, r) {
|
|
1149
|
-
let i = new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`, "gsu"), a = [!1], o = 0, s = "";
|
|
1150
|
-
for (let t of e.matchAll(i)) {
|
|
1151
|
-
let { 0: e, groups: { $skip: i } } = t;
|
|
1152
|
-
if (!i && (!r || r === P.DEFAULT == !o)) {
|
|
1153
|
-
n instanceof Function ? s += n(t, {
|
|
1154
|
-
context: o ? P.CHAR_CLASS : P.DEFAULT,
|
|
1155
|
-
negated: a[a.length - 1]
|
|
1156
|
-
}) : s += n;
|
|
1157
|
-
continue;
|
|
1158
|
-
}
|
|
1159
|
-
e[0] === "[" ? (o++, a.push(e[1] === "^")) : e === "]" && o && (o--, a.pop()), s += e;
|
|
1160
|
-
}
|
|
1161
|
-
return s;
|
|
1162
|
-
}
|
|
1163
|
-
function yt(e, t, n, r) {
|
|
1164
|
-
vt(e, t, n, r);
|
|
1165
|
-
}
|
|
1166
|
-
function bt(e, t, n = 0, r) {
|
|
1167
|
-
if (!new RegExp(t, "su").test(e)) return null;
|
|
1168
|
-
let i = RegExp(`${t}|(?<$skip>\\\\?.)`, "gsu");
|
|
1169
|
-
i.lastIndex = n;
|
|
1170
|
-
let a = 0, o;
|
|
1171
|
-
for (; o = i.exec(e);) {
|
|
1172
|
-
let { 0: e, groups: { $skip: t } } = o;
|
|
1173
|
-
if (!t && (!r || r === P.DEFAULT == !a)) return o;
|
|
1174
|
-
e === "[" ? a++ : e === "]" && a && a--, i.lastIndex == o.index && i.lastIndex++;
|
|
1175
|
-
}
|
|
1176
|
-
return null;
|
|
1177
|
-
}
|
|
1178
|
-
function F(e, t, n) {
|
|
1179
|
-
return !!bt(e, t, 0, n);
|
|
1180
|
-
}
|
|
1181
|
-
function xt(e, t) {
|
|
1182
|
-
let n = /* @__PURE__ */ RegExp("\\\\?.", "gsu");
|
|
1183
|
-
n.lastIndex = t;
|
|
1184
|
-
let r = e.length, i = 0, a = 1, o;
|
|
1185
|
-
for (; o = n.exec(e);) {
|
|
1186
|
-
let [e] = o;
|
|
1187
|
-
if (e === "[") i++;
|
|
1188
|
-
else if (i) e === "]" && i--;
|
|
1189
|
-
else if (e === "(") a++;
|
|
1190
|
-
else if (e === ")" && (a--, !a)) {
|
|
1191
|
-
r = o.index;
|
|
1192
|
-
break;
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
return e.slice(t, r);
|
|
1196
|
-
}
|
|
1197
|
-
//#endregion
|
|
1198
|
-
//#region node_modules/regex/src/atomic.js
|
|
1199
|
-
var St = new RegExp(String.raw`(?<noncapturingStart>${ht})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
|
|
1200
|
-
function Ct(e, t) {
|
|
1201
|
-
var n, r;
|
|
1202
|
-
let i = (n = t == null ? void 0 : t.hiddenCaptures) == null ? [] : n, a = (r = t == null ? void 0 : t.captureTransfers) == null ? /* @__PURE__ */ new Map() : r;
|
|
1203
|
-
if (!/\(\?>/.test(e)) return {
|
|
1204
|
-
pattern: e,
|
|
1205
|
-
captureTransfers: a,
|
|
1206
|
-
hiddenCaptures: i
|
|
1207
|
-
};
|
|
1208
|
-
let o = [0], s = [], c = 0, l = 0, u = NaN, d;
|
|
1209
|
-
do {
|
|
1210
|
-
d = !1;
|
|
1211
|
-
let t = 0, n = 0, r = !1, f;
|
|
1212
|
-
for (St.lastIndex = Number.isNaN(u) ? 0 : u + 7; f = St.exec(e);) {
|
|
1213
|
-
let { 0: p, index: m, groups: { capturingStart: h, noncapturingStart: g } } = f;
|
|
1214
|
-
if (p === "[") t++;
|
|
1215
|
-
else if (t) p === "]" && t--;
|
|
1216
|
-
else if (p === "(?>" && !r) u = m, r = !0;
|
|
1217
|
-
else if (r && g) n++;
|
|
1218
|
-
else if (h) r ? n++ : (c++, o.push(c + l));
|
|
1219
|
-
else if (p === ")" && r) {
|
|
1220
|
-
if (!n) {
|
|
1221
|
-
l++;
|
|
1222
|
-
let t = c + l;
|
|
1223
|
-
if (e = `${e.slice(0, u)}(?:(?=(${e.slice(u + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, d = !0, s.push(t), gt(i, t), a.size) {
|
|
1224
|
-
let e = /* @__PURE__ */ new Map();
|
|
1225
|
-
a.forEach((n, r) => {
|
|
1226
|
-
e.set(r >= t ? r + 1 : r, n.map((e) => e >= t ? e + 1 : e));
|
|
1227
|
-
}), a = e;
|
|
1228
|
-
}
|
|
1229
|
-
break;
|
|
1230
|
-
}
|
|
1231
|
-
n--;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
} while (d);
|
|
1235
|
-
return i.push(...s), e = vt(e, String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`, ({ 0: e, groups: { backrefNum: t, wrappedBackrefNum: n } }) => {
|
|
1236
|
-
if (t) {
|
|
1237
|
-
let n = +t;
|
|
1238
|
-
if (n > o.length - 1) throw Error(`Backref "${e}" greater than number of captures`);
|
|
1239
|
-
return `\\${o[n]}`;
|
|
1240
|
-
}
|
|
1241
|
-
return `\\${n}`;
|
|
1242
|
-
}, P.DEFAULT), {
|
|
1243
|
-
pattern: e,
|
|
1244
|
-
captureTransfers: a,
|
|
1245
|
-
hiddenCaptures: i
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
|
-
var wt = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, Tt = new RegExp(String.raw`
|
|
1249
|
-
\\(?: \d+
|
|
1250
|
-
| c[A-Za-z]
|
|
1251
|
-
| [gk]<[^>]+>
|
|
1252
|
-
| [pPu]\{[^\}]+\}
|
|
1253
|
-
| u[A-Fa-f\d]{4}
|
|
1254
|
-
| x[A-Fa-f\d]{2}
|
|
1255
|
-
)
|
|
1256
|
-
| \((?: \? (?: [:=!>]
|
|
1257
|
-
| <(?:[=!]|[^>]+>)
|
|
1258
|
-
| [A-Za-z\-]+:
|
|
1259
|
-
| \(DEFINE\)
|
|
1260
|
-
))?
|
|
1261
|
-
| (?<qBase>${wt})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
1262
|
-
| \\?.
|
|
1263
|
-
`.replace(/\s+/g, ""), "gsu");
|
|
1264
|
-
function Et(e) {
|
|
1265
|
-
if (!RegExp(`${wt}\\+`).test(e)) return { pattern: e };
|
|
1266
|
-
let t = [], n = null, r = null, i = "", a = 0, o;
|
|
1267
|
-
for (Tt.lastIndex = 0; o = Tt.exec(e);) {
|
|
1268
|
-
let { 0: s, index: c, groups: { qBase: l, qMod: u, invalidQ: d } } = o;
|
|
1269
|
-
if (s === "[") a || (r = c), a++;
|
|
1270
|
-
else if (s === "]") a ? a-- : r = null;
|
|
1271
|
-
else if (!a) if (u === "+" && i && !i.startsWith("(")) {
|
|
1272
|
-
if (d) throw Error(`Invalid quantifier "${s}"`);
|
|
1273
|
-
let t = -1;
|
|
1274
|
-
if (/^\{\d+\}$/.test(l)) e = _t(e, c + l.length, u, "");
|
|
1275
|
-
else {
|
|
1276
|
-
if (i === ")" || i === "]") {
|
|
1277
|
-
let t = i === ")" ? n : r;
|
|
1278
|
-
if (t === null) throw Error(`Invalid unmatched "${i}"`);
|
|
1279
|
-
e = `${e.slice(0, t)}(?>${e.slice(t, c)}${l})${e.slice(c + s.length)}`;
|
|
1280
|
-
} else e = `${e.slice(0, c - i.length)}(?>${i}${l})${e.slice(c + s.length)}`;
|
|
1281
|
-
t += 4;
|
|
1282
|
-
}
|
|
1283
|
-
Tt.lastIndex += t;
|
|
1284
|
-
} else s[0] === "(" ? t.push(c) : s === ")" && (n = t.length ? t.pop() : null);
|
|
1285
|
-
i = s;
|
|
1286
|
-
}
|
|
1287
|
-
return { pattern: e };
|
|
1288
|
-
}
|
|
1289
|
-
//#endregion
|
|
1290
|
-
//#region node_modules/regex-recursion/src/index.js
|
|
1291
|
-
var I = String.raw, Dt = I`\(\?R=(?<rDepth>[^\)]+)\)|${I`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`, L = I`\(\?<(?![=!])(?<captureName>[^>]+)>`, Ot = I`${L}|(?<unnamed>\()(?!\?)`, R = new RegExp(I`${L}|${Dt}|\(\?|\\?.`, "gsu"), kt = "Cannot use multiple overlapping recursions";
|
|
1292
|
-
function At(e, n) {
|
|
1293
|
-
var r;
|
|
1294
|
-
let { hiddenCaptures: i, mode: a } = t({
|
|
1295
|
-
hiddenCaptures: [],
|
|
1296
|
-
mode: "plugin"
|
|
1297
|
-
}, n), o = (r = n == null ? void 0 : n.captureTransfers) == null ? /* @__PURE__ */ new Map() : r;
|
|
1298
|
-
if (!new RegExp(Dt, "su").test(e)) return {
|
|
1299
|
-
pattern: e,
|
|
1300
|
-
captureTransfers: o,
|
|
1301
|
-
hiddenCaptures: i
|
|
1302
|
-
};
|
|
1303
|
-
if (a === "plugin" && F(e, I`\(\?\(DEFINE\)`, P.DEFAULT)) throw Error("DEFINE groups cannot be used with recursion");
|
|
1304
|
-
let s = [], c = F(e, I`\\[1-9]`, P.DEFAULT), l = /* @__PURE__ */ new Map(), u = [], d = !1, f = 0, p = 0, m;
|
|
1305
|
-
for (R.lastIndex = 0; m = R.exec(e);) {
|
|
1306
|
-
let { 0: t, groups: { captureName: n, rDepth: r, gRNameOrNum: h, gRDepth: g } } = m;
|
|
1307
|
-
if (t === "[") f++;
|
|
1308
|
-
else if (f) t === "]" && f--;
|
|
1309
|
-
else if (r) {
|
|
1310
|
-
if (jt(r), d) throw Error(kt);
|
|
1311
|
-
if (c) throw Error(`${a === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
|
|
1312
|
-
let t = e.slice(0, m.index), n = e.slice(R.lastIndex);
|
|
1313
|
-
if (F(n, Dt, P.DEFAULT)) throw Error(kt);
|
|
1314
|
-
let l = r - 1;
|
|
1315
|
-
e = Mt(t, n, l, !1, i, s, p), o = Ft(o, t, l, s.length, 0, p);
|
|
1316
|
-
break;
|
|
1317
|
-
} else if (h) {
|
|
1318
|
-
jt(g);
|
|
1319
|
-
let n = !1;
|
|
1320
|
-
for (let e of u) if (e.name === h || e.num === +h) {
|
|
1321
|
-
if (n = !0, e.hasRecursedWithin) throw Error(kt);
|
|
1322
|
-
break;
|
|
1323
|
-
}
|
|
1324
|
-
if (!n) throw Error(I`Recursive \g cannot be used outside the referenced group "${a === "external" ? h : I`\g<${h}&R=${g}>`}"`);
|
|
1325
|
-
let r = l.get(h), f = xt(e, r);
|
|
1326
|
-
if (c && F(f, I`${L}|\((?!\?)`, P.DEFAULT)) throw Error(`${a === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
|
|
1327
|
-
let _ = e.slice(r, m.index), v = f.slice(_.length + t.length), y = s.length, ee = g - 1, te = Mt(_, v, ee, !0, i, s, p);
|
|
1328
|
-
o = Ft(o, _, ee, s.length - y, y, p), e = `${e.slice(0, r)}${te}${e.slice(r + f.length)}`, R.lastIndex += te.length - t.length - _.length - v.length, u.forEach((e) => e.hasRecursedWithin = !0), d = !0;
|
|
1329
|
-
} else if (n) p++, l.set(String(p), R.lastIndex), l.set(n, R.lastIndex), u.push({
|
|
1330
|
-
num: p,
|
|
1331
|
-
name: n
|
|
1332
|
-
});
|
|
1333
|
-
else if (t[0] === "(") {
|
|
1334
|
-
let e = t === "(";
|
|
1335
|
-
e && (p++, l.set(String(p), R.lastIndex)), u.push(e ? { num: p } : {});
|
|
1336
|
-
} else t === ")" && u.pop();
|
|
1337
|
-
}
|
|
1338
|
-
return i.push(...s), {
|
|
1339
|
-
pattern: e,
|
|
1340
|
-
captureTransfers: o,
|
|
1341
|
-
hiddenCaptures: i
|
|
1342
|
-
};
|
|
1343
|
-
}
|
|
1344
|
-
function jt(e) {
|
|
1345
|
-
let t = `Max depth must be integer between 2 and 100; used ${e}`;
|
|
1346
|
-
if (!/^[1-9]\d*$/.test(e) || (e = +e, e < 2 || e > 100)) throw Error(t);
|
|
1347
|
-
}
|
|
1348
|
-
function Mt(e, t, n, r, i, a, o) {
|
|
1349
|
-
let s = /* @__PURE__ */ new Set();
|
|
1350
|
-
r && yt(e + t, L, ({ groups: { captureName: e } }) => {
|
|
1351
|
-
s.add(e);
|
|
1352
|
-
}, P.DEFAULT);
|
|
1353
|
-
let c = [
|
|
1354
|
-
n,
|
|
1355
|
-
r ? s : null,
|
|
1356
|
-
i,
|
|
1357
|
-
a,
|
|
1358
|
-
o
|
|
1359
|
-
];
|
|
1360
|
-
return `${e}${Nt(`(?:${e}`, "forward", ...c)}(?:)${Nt(`${t})`, "backward", ...c)}${t}`;
|
|
1361
|
-
}
|
|
1362
|
-
function Nt(e, t, n, r, i, a, o) {
|
|
1363
|
-
let s = (e) => t === "forward" ? e + 2 : n - e + 2 - 1, c = "";
|
|
1364
|
-
for (let t = 0; t < n; t++) {
|
|
1365
|
-
let n = s(t);
|
|
1366
|
-
c += vt(e, I`${Ot}|\\k<(?<backref>[^>]+)>`, ({ 0: e, groups: { captureName: t, unnamed: s, backref: c } }) => {
|
|
1367
|
-
if (c && r && !r.has(c)) return e;
|
|
1368
|
-
let l = `_$${n}`;
|
|
1369
|
-
if (s || t) {
|
|
1370
|
-
let n = o + a.length + 1;
|
|
1371
|
-
return a.push(n), Pt(i, n), s ? e : `(?<${t}${l}>`;
|
|
1372
|
-
}
|
|
1373
|
-
return I`\k<${c}${l}>`;
|
|
1374
|
-
}, P.DEFAULT);
|
|
1375
|
-
}
|
|
1376
|
-
return c;
|
|
1377
|
-
}
|
|
1378
|
-
function Pt(e, t) {
|
|
1379
|
-
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
1380
|
-
}
|
|
1381
|
-
function Ft(e, t, n, r, i, a) {
|
|
1382
|
-
if (e.size && r) {
|
|
1383
|
-
let o = 0;
|
|
1384
|
-
yt(t, Ot, () => o++, P.DEFAULT);
|
|
1385
|
-
let s = a - o + i, c = /* @__PURE__ */ new Map();
|
|
1386
|
-
return e.forEach((e, t) => {
|
|
1387
|
-
let i = (r - o * n) / n, a = o * n, l = t > s + o ? t + r : t, u = [];
|
|
1388
|
-
for (let t of e) if (t <= s) u.push(t);
|
|
1389
|
-
else if (t > s + o + i) u.push(t + r);
|
|
1390
|
-
else if (t <= s + o) for (let e = 0; e <= n; e++) u.push(t + o * e);
|
|
1391
|
-
else for (let e = 0; e <= n; e++) u.push(t + a + i * e);
|
|
1392
|
-
c.set(l, u);
|
|
1393
|
-
}), c;
|
|
1394
|
-
}
|
|
1395
|
-
return e;
|
|
1396
|
-
}
|
|
1397
|
-
//#endregion
|
|
1398
|
-
//#region node_modules/oniguruma-to-es/dist/esm/index.js
|
|
1399
|
-
var It = ["lazyCompile"], z, B, V, H, U, Lt, Rt, W = String.fromCodePoint, G = String.raw, K = {
|
|
1400
|
-
flagGroups: !0,
|
|
1401
|
-
unicodeSets: !0
|
|
1402
|
-
};
|
|
1403
|
-
K.bugFlagVLiteralHyphenIsRange = K.unicodeSets ? (() => {
|
|
1404
|
-
try {
|
|
1405
|
-
new RegExp(G`[\d\-a]`, "v");
|
|
1406
|
-
} catch (e) {
|
|
1407
|
-
return !0;
|
|
1408
|
-
}
|
|
1409
|
-
return !1;
|
|
1410
|
-
})() : !1, K.bugNestedClassIgnoresNegation = K.unicodeSets && (/* @__PURE__ */ RegExp("[[^a]]", "v")).test("a");
|
|
1411
|
-
function zt(e, { enable: t, disable: n }) {
|
|
1412
|
-
return {
|
|
1413
|
-
dotAll: !(n != null && n.dotAll) && !!(t != null && t.dotAll || e.dotAll),
|
|
1414
|
-
ignoreCase: !(n != null && n.ignoreCase) && !!(t != null && t.ignoreCase || e.ignoreCase)
|
|
1415
|
-
};
|
|
1416
|
-
}
|
|
1417
|
-
function q(e, t, n) {
|
|
1418
|
-
return e.has(t) || e.set(t, n), e.get(t);
|
|
1419
|
-
}
|
|
1420
|
-
function Bt(e, t) {
|
|
1421
|
-
return Ht[e] >= Ht[t];
|
|
1422
|
-
}
|
|
1423
|
-
function Vt(e, t) {
|
|
1424
|
-
if (e == null) throw Error(t == null ? "Value expected" : t);
|
|
1425
|
-
return e;
|
|
1426
|
-
}
|
|
1427
|
-
var Ht = {
|
|
1428
|
-
ES2025: 2025,
|
|
1429
|
-
ES2024: 2024,
|
|
1430
|
-
ES2018: 2018
|
|
1431
|
-
}, Ut = {
|
|
1432
|
-
auto: "auto",
|
|
1433
|
-
ES2025: "ES2025",
|
|
1434
|
-
ES2024: "ES2024",
|
|
1435
|
-
ES2018: "ES2018"
|
|
1436
|
-
};
|
|
1437
|
-
function Wt(e = {}) {
|
|
1438
|
-
if ({}.toString.call(e) !== "[object Object]") throw Error("Unexpected options");
|
|
1439
|
-
if (e.target !== void 0 && !Ut[e.target]) throw Error(`Unexpected target "${e.target}"`);
|
|
1440
|
-
let n = t(t({
|
|
1441
|
-
accuracy: "default",
|
|
1442
|
-
avoidSubclass: !1,
|
|
1443
|
-
flags: "",
|
|
1444
|
-
global: !1,
|
|
1445
|
-
hasIndices: !1,
|
|
1446
|
-
lazyCompileLength: Infinity,
|
|
1447
|
-
target: "auto",
|
|
1448
|
-
verbose: !1
|
|
1449
|
-
}, e), {}, { rules: t({
|
|
1450
|
-
allowOrphanBackrefs: !1,
|
|
1451
|
-
asciiWordBoundaries: !1,
|
|
1452
|
-
captureGroup: !1,
|
|
1453
|
-
recursionLimit: 20,
|
|
1454
|
-
singleline: !1
|
|
1455
|
-
}, e.rules) });
|
|
1456
|
-
return n.target === "auto" && (n.target = K.flagGroups ? "ES2025" : K.unicodeSets ? "ES2024" : "ES2018"), n;
|
|
1457
|
-
}
|
|
1458
|
-
var Gt = "[ -\r ]", Kt = /* @__PURE__ */ new Set([W(304), W(305)]), J = G`[\p{L}\p{M}\p{N}\p{Pc}]`;
|
|
1459
|
-
function qt(e) {
|
|
1460
|
-
if (Kt.has(e)) return [e];
|
|
1461
|
-
let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i = Zt.get(n), a = Yt.get(n), o = Xt.get(n);
|
|
1462
|
-
return [...r].length === 1 && t.add(r), o && t.add(o), i && t.add(i), t.add(n), a && t.add(a), [...t];
|
|
1463
|
-
}
|
|
1464
|
-
var Jt = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map((e) => [A(e), e])), Yt = /* @__PURE__ */ new Map([["s", W(383)], [W(383), "s"]]), Xt = /* @__PURE__ */ new Map([
|
|
1465
|
-
[W(223), W(7838)],
|
|
1466
|
-
[W(107), W(8490)],
|
|
1467
|
-
[W(229), W(8491)],
|
|
1468
|
-
[W(969), W(8486)]
|
|
1469
|
-
]), Zt = new Map([
|
|
1470
|
-
Y(453),
|
|
1471
|
-
Y(456),
|
|
1472
|
-
Y(459),
|
|
1473
|
-
Y(498),
|
|
1474
|
-
...en(8072, 8079),
|
|
1475
|
-
...en(8088, 8095),
|
|
1476
|
-
...en(8104, 8111),
|
|
1477
|
-
Y(8124),
|
|
1478
|
-
Y(8140),
|
|
1479
|
-
Y(8188)
|
|
1480
|
-
]), Qt = /* @__PURE__ */ new Map([
|
|
1481
|
-
["alnum", G`[\p{Alpha}\p{Nd}]`],
|
|
1482
|
-
["alpha", G`\p{Alpha}`],
|
|
1483
|
-
["ascii", G`\p{ASCII}`],
|
|
1484
|
-
["blank", G`[\p{Zs}\t]`],
|
|
1485
|
-
["cntrl", G`\p{Cc}`],
|
|
1486
|
-
["digit", G`\p{Nd}`],
|
|
1487
|
-
["graph", G`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],
|
|
1488
|
-
["lower", G`\p{Lower}`],
|
|
1489
|
-
["print", G`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],
|
|
1490
|
-
["punct", G`[\p{P}\p{S}]`],
|
|
1491
|
-
["space", G`\p{space}`],
|
|
1492
|
-
["upper", G`\p{Upper}`],
|
|
1493
|
-
["word", G`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
|
|
1494
|
-
["xdigit", G`\p{AHex}`]
|
|
1495
|
-
]);
|
|
1496
|
-
function $t(e, t) {
|
|
1497
|
-
let n = [];
|
|
1498
|
-
for (let r = e; r <= t; r++) n.push(r);
|
|
1499
|
-
return n;
|
|
1500
|
-
}
|
|
1501
|
-
function Y(e) {
|
|
1502
|
-
let t = W(e);
|
|
1503
|
-
return [t.toLowerCase(), t];
|
|
1504
|
-
}
|
|
1505
|
-
function en(e, t) {
|
|
1506
|
-
return $t(e, t).map((e) => Y(e));
|
|
1507
|
-
}
|
|
1508
|
-
var tn = /* @__PURE__ */ new Set([
|
|
1509
|
-
"Lower",
|
|
1510
|
-
"Lowercase",
|
|
1511
|
-
"Upper",
|
|
1512
|
-
"Uppercase",
|
|
1513
|
-
"Ll",
|
|
1514
|
-
"Lowercase_Letter",
|
|
1515
|
-
"Lt",
|
|
1516
|
-
"Titlecase_Letter",
|
|
1517
|
-
"Lu",
|
|
1518
|
-
"Uppercase_Letter"
|
|
1519
|
-
]);
|
|
1520
|
-
function nn(e, n) {
|
|
1521
|
-
let r = t({
|
|
1522
|
-
accuracy: "default",
|
|
1523
|
-
asciiWordBoundaries: !1,
|
|
1524
|
-
avoidSubclass: !1,
|
|
1525
|
-
bestEffortTarget: "ES2025"
|
|
1526
|
-
}, n);
|
|
1527
|
-
sn(e);
|
|
1528
|
-
let i = {
|
|
1529
|
-
accuracy: r.accuracy,
|
|
1530
|
-
asciiWordBoundaries: r.asciiWordBoundaries,
|
|
1531
|
-
avoidSubclass: r.avoidSubclass,
|
|
1532
|
-
flagDirectivesByAlt: /* @__PURE__ */ new Map(),
|
|
1533
|
-
jsGroupNameMap: /* @__PURE__ */ new Map(),
|
|
1534
|
-
minTargetEs2024: Bt(r.bestEffortTarget, "ES2024"),
|
|
1535
|
-
passedLookbehind: !1,
|
|
1536
|
-
strategy: null,
|
|
1537
|
-
subroutineRefMap: /* @__PURE__ */ new Map(),
|
|
1538
|
-
supportedGNodes: /* @__PURE__ */ new Set(),
|
|
1539
|
-
digitIsAscii: e.flags.digitIsAscii,
|
|
1540
|
-
spaceIsAscii: e.flags.spaceIsAscii,
|
|
1541
|
-
wordIsAscii: e.flags.wordIsAscii
|
|
1542
|
-
};
|
|
1543
|
-
j(e, rn, i);
|
|
1544
|
-
let a = {
|
|
1545
|
-
dotAll: e.flags.dotAll,
|
|
1546
|
-
ignoreCase: e.flags.ignoreCase
|
|
1547
|
-
}, o = {
|
|
1548
|
-
currentFlags: a,
|
|
1549
|
-
prevFlags: null,
|
|
1550
|
-
globalFlags: a,
|
|
1551
|
-
groupOriginByCopy: /* @__PURE__ */ new Map(),
|
|
1552
|
-
groupsByName: /* @__PURE__ */ new Map(),
|
|
1553
|
-
multiplexCapturesToLeftByRef: /* @__PURE__ */ new Map(),
|
|
1554
|
-
openRefs: /* @__PURE__ */ new Map(),
|
|
1555
|
-
reffedNodesByReferencer: /* @__PURE__ */ new Map(),
|
|
1556
|
-
subroutineRefMap: i.subroutineRefMap
|
|
1557
|
-
};
|
|
1558
|
-
return j(e, an, o), j(e, on, {
|
|
1559
|
-
groupsByName: o.groupsByName,
|
|
1560
|
-
highestOrphanBackref: 0,
|
|
1561
|
-
numCapturesToLeft: 0,
|
|
1562
|
-
reffedNodesByReferencer: o.reffedNodesByReferencer
|
|
1563
|
-
}), e._originMap = o.groupOriginByCopy, e._strategy = i.strategy, e;
|
|
1564
|
-
}
|
|
1565
|
-
var rn = {
|
|
1566
|
-
AbsenceFunction({ node: e, parent: t, replaceWith: n }) {
|
|
1567
|
-
let { body: r, kind: i } = e;
|
|
1568
|
-
if (i === "repeater") {
|
|
1569
|
-
let e = E();
|
|
1570
|
-
e.body[0].body.push(D({
|
|
1571
|
-
negate: !0,
|
|
1572
|
-
body: r
|
|
1573
|
-
}), O("Any"));
|
|
1574
|
-
let i = E();
|
|
1575
|
-
i.body[0].body.push(it("greedy", 0, Infinity, e)), n(Q(i, t), { traverse: !0 });
|
|
1576
|
-
} else throw Error("Unsupported absence function \"(?~|\"");
|
|
1577
|
-
},
|
|
1578
|
-
Alternative: {
|
|
1579
|
-
enter({ node: e, parent: t, key: n }, { flagDirectivesByAlt: r }) {
|
|
1580
|
-
let i = e.body.filter((e) => e.kind === "flags");
|
|
1581
|
-
for (let e = n + 1; e < t.body.length; e++) {
|
|
1582
|
-
let n = t.body[e];
|
|
1583
|
-
q(r, n, []).push(...i);
|
|
1584
|
-
}
|
|
1585
|
-
},
|
|
1586
|
-
exit({ node: e }, { flagDirectivesByAlt: t }) {
|
|
1587
|
-
var n;
|
|
1588
|
-
if ((n = t.get(e)) != null && n.length) {
|
|
1589
|
-
let n = mn(t.get(e));
|
|
1590
|
-
if (n) {
|
|
1591
|
-
let t = E({ flags: n });
|
|
1592
|
-
t.body[0].body = e.body, e.body = [Q(t, e)];
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
},
|
|
1597
|
-
Assertion({ node: e, parent: t, key: n, container: r, root: i, remove: a, replaceWith: o }, s) {
|
|
1598
|
-
let { kind: c, negate: l } = e, { asciiWordBoundaries: u, avoidSubclass: d, supportedGNodes: f, wordIsAscii: p } = s;
|
|
1599
|
-
if (c === "text_segment_boundary") throw Error(`Unsupported text segment boundary "\\${l ? "Y" : "y"}"`);
|
|
1600
|
-
if (c === "line_end") o(Q(D({ body: [C({ body: [Ye("string_end")] }), C({ body: [w(10)] })] }), t));
|
|
1601
|
-
else if (c === "line_start") o(Q(X(G`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: !0 }), t));
|
|
1602
|
-
else if (c === "search_start") if (f.has(e)) i.flags.sticky = !0, a();
|
|
1603
|
-
else {
|
|
1604
|
-
let e = r[n - 1];
|
|
1605
|
-
if (e && bn(e)) o(Q(D({ negate: !0 }), t));
|
|
1606
|
-
else if (d) throw Error(G`Uses "\G" in a way that requires a subclass`);
|
|
1607
|
-
else o(Z(Ye("string_start"), t)), s.strategy = "clip_search";
|
|
1608
|
-
}
|
|
1609
|
-
else if (!(c === "string_end" || c === "string_start")) if (c === "string_end_newline") o(Q(X(G`(?=\n?\z)`), t));
|
|
1610
|
-
else if (c === "word_boundary") {
|
|
1611
|
-
if (!p && !u) {
|
|
1612
|
-
let e = `(?:(?<=${J})(?!${J})|(?<!${J})(?=${J}))`, n = `(?:(?<=${J})(?=${J})|(?<!${J})(?!${J}))`;
|
|
1613
|
-
o(Q(X(l ? n : e), t));
|
|
1614
|
-
}
|
|
1615
|
-
} else throw Error(`Unexpected assertion kind "${c}"`);
|
|
1616
|
-
},
|
|
1617
|
-
Backreference({ node: e }, { jsGroupNameMap: t }) {
|
|
1618
|
-
let { ref: n } = e;
|
|
1619
|
-
typeof n == "string" && !Sn(n) && (n = pn(n, t), e.ref = n);
|
|
1620
|
-
},
|
|
1621
|
-
CapturingGroup({ node: e }, { jsGroupNameMap: t, subroutineRefMap: n }) {
|
|
1622
|
-
let { name: r } = e;
|
|
1623
|
-
r && !Sn(r) && (r = pn(r, t), e.name = r), n.set(e.number, e), r && n.set(r, e);
|
|
1624
|
-
},
|
|
1625
|
-
CharacterClassRange({ node: e, parent: t, replaceWith: n }) {
|
|
1626
|
-
t.kind === "intersection" && n(Q(T({ body: [e] }), t), { traverse: !0 });
|
|
1627
|
-
},
|
|
1628
|
-
CharacterSet({ node: e, parent: t, replaceWith: n }, { accuracy: r, minTargetEs2024: i, digitIsAscii: a, spaceIsAscii: o, wordIsAscii: s }) {
|
|
1629
|
-
let { kind: c, negate: l, value: u } = e;
|
|
1630
|
-
if (a && (c === "digit" || u === "digit")) {
|
|
1631
|
-
n(Z($e("digit", { negate: l }), t));
|
|
1632
|
-
return;
|
|
1633
|
-
}
|
|
1634
|
-
if (o && (c === "space" || u === "space")) {
|
|
1635
|
-
n(Q(Cn(X(Gt), l), t));
|
|
1636
|
-
return;
|
|
1637
|
-
}
|
|
1638
|
-
if (s && (c === "word" || u === "word")) {
|
|
1639
|
-
n(Z($e("word", { negate: l }), t));
|
|
1640
|
-
return;
|
|
1641
|
-
}
|
|
1642
|
-
if (c === "any") n(Z(O("Any"), t));
|
|
1643
|
-
else if (c === "digit") n(Z(O("Nd", { negate: l }), t));
|
|
1644
|
-
else if (c !== "dot") if (c === "text_segment") {
|
|
1645
|
-
if (r === "strict") throw Error(G`Use of "\X" requires non-strict accuracy`);
|
|
1646
|
-
let e = "\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?", a = G`\p{RI}{2}|${e}(?:\u200D${e})*`;
|
|
1647
|
-
n(Q(X(G`(?>\r\n|${i ? G`\p{RGI_Emoji}` : a}|\P{M}\p{M}*)`, { skipPropertyNameValidation: !0 }), t));
|
|
1648
|
-
} else if (c === "hex") n(Z(O("AHex", { negate: l }), t));
|
|
1649
|
-
else if (c === "newline") n(Q(X(l ? "[^\n]" : "(?>\r\n?|[\n\v\f
\u2028\u2029])"), t));
|
|
1650
|
-
else if (c === "posix") if (!i && (u === "graph" || u === "print")) {
|
|
1651
|
-
if (r === "strict") throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);
|
|
1652
|
-
let e = {
|
|
1653
|
-
graph: "!-~",
|
|
1654
|
-
print: " -~"
|
|
1655
|
-
}[u];
|
|
1656
|
-
l && (e = `\0-${W(e.codePointAt(0) - 1)}${W(e.codePointAt(2) + 1)}-\u{10FFFF}`), n(Q(X(`[${e}]`), t));
|
|
1657
|
-
} else n(Q(Cn(X(Qt.get(u)), l), t));
|
|
1658
|
-
else if (c === "property") Jt.has(A(u)) || (e.key = "sc");
|
|
1659
|
-
else if (c === "space") n(Z(O("space", { negate: l }), t));
|
|
1660
|
-
else if (c === "word") n(Q(Cn(X(J), l), t));
|
|
1661
|
-
else throw Error(`Unexpected character set kind "${c}"`);
|
|
1662
|
-
},
|
|
1663
|
-
Directive({ node: e, parent: t, root: n, remove: r, replaceWith: i, removeAllPrevSiblings: a, removeAllNextSiblings: o }) {
|
|
1664
|
-
let { kind: s, flags: c } = e;
|
|
1665
|
-
if (s === "flags") if (!c.enable && !c.disable) r();
|
|
1666
|
-
else {
|
|
1667
|
-
let e = E({ flags: c });
|
|
1668
|
-
e.body[0].body = o(), i(Q(e, t), { traverse: !0 });
|
|
1669
|
-
}
|
|
1670
|
-
else if (s === "keep") {
|
|
1671
|
-
let e = n.body[0], r = n.body.length === 1 && Ie(e, { type: "Group" }) && e.body[0].body.length === 1 ? e.body[0] : n;
|
|
1672
|
-
if (t.parent !== r || r.body.length > 1) throw Error(G`Uses "\K" in a way that's unsupported`);
|
|
1673
|
-
let o = D({ behind: !0 });
|
|
1674
|
-
o.body[0].body = a(), i(Q(o, t));
|
|
1675
|
-
} else throw Error(`Unexpected directive kind "${s}"`);
|
|
1676
|
-
},
|
|
1677
|
-
Flags({ node: e, parent: t }) {
|
|
1678
|
-
var n;
|
|
1679
|
-
if (e.posixIsAscii) throw Error("Unsupported flag \"P\"");
|
|
1680
|
-
if (e.textSegmentMode === "word") throw Error("Unsupported flag \"y{w}\"");
|
|
1681
|
-
[
|
|
1682
|
-
"digitIsAscii",
|
|
1683
|
-
"extended",
|
|
1684
|
-
"posixIsAscii",
|
|
1685
|
-
"spaceIsAscii",
|
|
1686
|
-
"wordIsAscii",
|
|
1687
|
-
"textSegmentMode"
|
|
1688
|
-
].forEach((t) => delete e[t]), Object.assign(e, {
|
|
1689
|
-
global: !1,
|
|
1690
|
-
hasIndices: !1,
|
|
1691
|
-
multiline: !1,
|
|
1692
|
-
sticky: (n = e.sticky) == null ? !1 : n
|
|
1693
|
-
}), t.options = {
|
|
1694
|
-
disable: {
|
|
1695
|
-
x: !0,
|
|
1696
|
-
n: !0
|
|
1697
|
-
},
|
|
1698
|
-
force: { v: !0 }
|
|
1699
|
-
};
|
|
1700
|
-
},
|
|
1701
|
-
Group({ node: e }) {
|
|
1702
|
-
if (!e.flags) return;
|
|
1703
|
-
let { enable: t, disable: n } = e.flags;
|
|
1704
|
-
t != null && t.extended && delete t.extended, n != null && n.extended && delete n.extended, t != null && t.dotAll && n != null && n.dotAll && delete t.dotAll, t != null && t.ignoreCase && n != null && n.ignoreCase && delete t.ignoreCase, t && !Object.keys(t).length && delete e.flags.enable, n && !Object.keys(n).length && delete e.flags.disable, !e.flags.enable && !e.flags.disable && delete e.flags;
|
|
1705
|
-
},
|
|
1706
|
-
LookaroundAssertion({ node: e }, t) {
|
|
1707
|
-
let { kind: n } = e;
|
|
1708
|
-
n === "lookbehind" && (t.passedLookbehind = !0);
|
|
1709
|
-
},
|
|
1710
|
-
NamedCallout({ node: e, parent: t, replaceWith: n }) {
|
|
1711
|
-
let { kind: r } = e;
|
|
1712
|
-
if (r === "fail") n(Q(D({ negate: !0 }), t));
|
|
1713
|
-
else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`);
|
|
1714
|
-
},
|
|
1715
|
-
Quantifier({ node: e }) {
|
|
1716
|
-
if (e.body.type === "Quantifier") {
|
|
1717
|
-
let t = E();
|
|
1718
|
-
t.body[0].body.push(e.body), e.body = Q(t, e);
|
|
1719
|
-
}
|
|
1720
|
-
},
|
|
1721
|
-
Regex: {
|
|
1722
|
-
enter({ node: e }, { supportedGNodes: t }) {
|
|
1723
|
-
let n = [], r = !1, i = !1;
|
|
1724
|
-
for (let t of e.body) if (t.body.length === 1 && t.body[0].kind === "search_start") t.body.pop();
|
|
1725
|
-
else {
|
|
1726
|
-
let e = _n(t.body);
|
|
1727
|
-
e ? (r = !0, Array.isArray(e) ? n.push(...e) : n.push(e)) : i = !0;
|
|
1728
|
-
}
|
|
1729
|
-
r && !i && n.forEach((e) => t.add(e));
|
|
1730
|
-
},
|
|
1731
|
-
exit(e, { accuracy: t, passedLookbehind: n, strategy: r }) {
|
|
1732
|
-
if (t === "strict" && n && r) throw Error(G`Uses "\G" in a way that requires non-strict accuracy`);
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
Subroutine({ node: e }, { jsGroupNameMap: t }) {
|
|
1736
|
-
let { ref: n } = e;
|
|
1737
|
-
typeof n == "string" && !Sn(n) && (n = pn(n, t), e.ref = n);
|
|
1738
|
-
}
|
|
1739
|
-
}, an = {
|
|
1740
|
-
Backreference({ node: e }, { multiplexCapturesToLeftByRef: t, reffedNodesByReferencer: n }) {
|
|
1741
|
-
let { orphan: r, ref: i } = e;
|
|
1742
|
-
r || n.set(e, [...t.get(i).map(({ node: e }) => e)]);
|
|
1743
|
-
},
|
|
1744
|
-
CapturingGroup: {
|
|
1745
|
-
enter({ node: e, parent: t, replaceWith: n, skip: r }, { groupOriginByCopy: i, groupsByName: a, multiplexCapturesToLeftByRef: o, openRefs: s, reffedNodesByReferencer: c }) {
|
|
1746
|
-
var l;
|
|
1747
|
-
let u = i.get(e);
|
|
1748
|
-
if (u && s.has(e.number)) {
|
|
1749
|
-
let r = Z(dn(e.number), t);
|
|
1750
|
-
c.set(r, s.get(e.number)), n(r);
|
|
1751
|
-
return;
|
|
1752
|
-
}
|
|
1753
|
-
s.set(e.number, e), o.set(e.number, []), e.name && q(o, e.name, []);
|
|
1754
|
-
let d = o.get((l = e.name) == null ? e.number : l);
|
|
1755
|
-
for (let t = 0; t < d.length; t++) {
|
|
1756
|
-
let n = d[t];
|
|
1757
|
-
if (u === n.node || u && u === n.origin || e === n.origin) {
|
|
1758
|
-
d.splice(t, 1);
|
|
1759
|
-
break;
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
if (o.get(e.number).push({
|
|
1763
|
-
node: e,
|
|
1764
|
-
origin: u
|
|
1765
|
-
}), e.name && o.get(e.name).push({
|
|
1766
|
-
node: e,
|
|
1767
|
-
origin: u
|
|
1768
|
-
}), e.name) {
|
|
1769
|
-
let t = q(a, e.name, /* @__PURE__ */ new Map()), n = !1;
|
|
1770
|
-
if (u) n = !0;
|
|
1771
|
-
else for (let e of t.values()) if (!e.hasDuplicateNameToRemove) {
|
|
1772
|
-
n = !0;
|
|
1773
|
-
break;
|
|
1774
|
-
}
|
|
1775
|
-
a.get(e.name).set(e, {
|
|
1776
|
-
node: e,
|
|
1777
|
-
hasDuplicateNameToRemove: n
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
},
|
|
1781
|
-
exit({ node: e }, { openRefs: t }) {
|
|
1782
|
-
t.delete(e.number);
|
|
1783
|
-
}
|
|
1784
|
-
},
|
|
1785
|
-
Group: {
|
|
1786
|
-
enter({ node: e }, t) {
|
|
1787
|
-
t.prevFlags = t.currentFlags, e.flags && (t.currentFlags = zt(t.currentFlags, e.flags));
|
|
1788
|
-
},
|
|
1789
|
-
exit(e, t) {
|
|
1790
|
-
t.currentFlags = t.prevFlags;
|
|
1791
|
-
}
|
|
1792
|
-
},
|
|
1793
|
-
Subroutine({ node: e, parent: t, replaceWith: n }, r) {
|
|
1794
|
-
let { isRecursive: i, ref: a } = e;
|
|
1795
|
-
if (i) {
|
|
1796
|
-
let n = t;
|
|
1797
|
-
for (; (n = n.parent) && !(n.type === "CapturingGroup" && (n.name === a || n.number === a)););
|
|
1798
|
-
r.reffedNodesByReferencer.set(e, n);
|
|
1799
|
-
return;
|
|
1800
|
-
}
|
|
1801
|
-
let o = r.subroutineRefMap.get(a), s = a === 0, c = s ? dn(0) : un(o, r.groupOriginByCopy, null), l = c;
|
|
1802
|
-
if (!s) {
|
|
1803
|
-
let e = mn(fn(o, (e) => e.type === "Group" && !!e.flags)), t = e ? zt(r.globalFlags, e) : r.globalFlags;
|
|
1804
|
-
cn(t, r.currentFlags) || (l = E({ flags: hn(t) }), l.body[0].body.push(c));
|
|
1805
|
-
}
|
|
1806
|
-
n(Q(l, t), { traverse: !s });
|
|
1807
|
-
}
|
|
1808
|
-
}, on = {
|
|
1809
|
-
Backreference({ node: e, parent: t, replaceWith: n }, r) {
|
|
1810
|
-
if (e.orphan) {
|
|
1811
|
-
r.highestOrphanBackref = Math.max(r.highestOrphanBackref, e.ref);
|
|
1812
|
-
return;
|
|
1813
|
-
}
|
|
1814
|
-
let i = r.reffedNodesByReferencer.get(e).filter((t) => ln(t, e));
|
|
1815
|
-
i.length ? i.length > 1 ? n(Q(E({
|
|
1816
|
-
atomic: !0,
|
|
1817
|
-
body: i.reverse().map((e) => C({ body: [Xe(e.number)] }))
|
|
1818
|
-
}), t)) : e.ref = i[0].number : n(Q(D({ negate: !0 }), t));
|
|
1819
|
-
},
|
|
1820
|
-
CapturingGroup({ node: e }, t) {
|
|
1821
|
-
e.number = ++t.numCapturesToLeft, e.name && t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove && delete e.name;
|
|
1822
|
-
},
|
|
1823
|
-
Regex: { exit({ node: e }, t) {
|
|
1824
|
-
let n = Math.max(t.highestOrphanBackref - t.numCapturesToLeft, 0);
|
|
1825
|
-
for (let t = 0; t < n; t++) {
|
|
1826
|
-
let t = Ze();
|
|
1827
|
-
e.body.at(-1).body.push(t);
|
|
1828
|
-
}
|
|
1829
|
-
} },
|
|
1830
|
-
Subroutine({ node: e }, t) {
|
|
1831
|
-
!e.isRecursive || e.ref === 0 || (e.ref = t.reffedNodesByReferencer.get(e).number);
|
|
1832
|
-
}
|
|
1833
|
-
};
|
|
1834
|
-
function sn(e) {
|
|
1835
|
-
j(e, { "*"({ node: e, parent: t }) {
|
|
1836
|
-
e.parent = t;
|
|
1837
|
-
} });
|
|
1838
|
-
}
|
|
1839
|
-
function cn(e, t) {
|
|
1840
|
-
return e.dotAll === t.dotAll && e.ignoreCase === t.ignoreCase;
|
|
1841
|
-
}
|
|
1842
|
-
function ln(e, t) {
|
|
1843
|
-
let n = t;
|
|
1844
|
-
do {
|
|
1845
|
-
if (n.type === "Regex") return !1;
|
|
1846
|
-
if (n.type === "Alternative") continue;
|
|
1847
|
-
if (n === e) return !1;
|
|
1848
|
-
let t = gn(n.parent);
|
|
1849
|
-
for (let r of t) {
|
|
1850
|
-
if (r === n) break;
|
|
1851
|
-
if (r === e || vn(r, e)) return !0;
|
|
1852
|
-
}
|
|
1853
|
-
} while (n = n.parent);
|
|
1854
|
-
throw Error("Unexpected path");
|
|
1855
|
-
}
|
|
1856
|
-
function un(e, t, n, r) {
|
|
1857
|
-
let i = Array.isArray(e) ? [] : {};
|
|
1858
|
-
for (let [o, s] of Object.entries(e)) if (o === "parent") i.parent = Array.isArray(n) ? r : n;
|
|
1859
|
-
else if (s && typeof s == "object") i[o] = un(s, t, i, n);
|
|
1860
|
-
else {
|
|
1861
|
-
if (o === "type" && s === "CapturingGroup") {
|
|
1862
|
-
var a;
|
|
1863
|
-
t.set(i, (a = t.get(e)) == null ? e : a);
|
|
1864
|
-
}
|
|
1865
|
-
i[o] = s;
|
|
1866
|
-
}
|
|
1867
|
-
return i;
|
|
1868
|
-
}
|
|
1869
|
-
function dn(e) {
|
|
1870
|
-
let t = ot(e);
|
|
1871
|
-
return t.isRecursive = !0, t;
|
|
1872
|
-
}
|
|
1873
|
-
function fn(e, t) {
|
|
1874
|
-
let n = [];
|
|
1875
|
-
for (; e = e.parent;) (!t || t(e)) && n.push(e);
|
|
1876
|
-
return n;
|
|
1877
|
-
}
|
|
1878
|
-
function pn(e, t) {
|
|
1879
|
-
if (t.has(e)) return t.get(e);
|
|
1880
|
-
let n = `$${t.size}_${e.replace(/* @__PURE__ */ RegExp("^[^$_\\p{IDS}]|[^$\\u200C\\u200D\\p{IDC}]", "gu"), "_")}`;
|
|
1881
|
-
return t.set(e, n), n;
|
|
1882
|
-
}
|
|
1883
|
-
function mn(e) {
|
|
1884
|
-
let t = ["dotAll", "ignoreCase"], n = {
|
|
1885
|
-
enable: {},
|
|
1886
|
-
disable: {}
|
|
1887
|
-
};
|
|
1888
|
-
return e.forEach(({ flags: e }) => {
|
|
1889
|
-
t.forEach((t) => {
|
|
1890
|
-
var r, i;
|
|
1891
|
-
(r = e.enable) != null && r[t] && (delete n.disable[t], n.enable[t] = !0), (i = e.disable) != null && i[t] && (n.disable[t] = !0);
|
|
1892
|
-
});
|
|
1893
|
-
}), Object.keys(n.enable).length || delete n.enable, Object.keys(n.disable).length || delete n.disable, n.enable || n.disable ? n : null;
|
|
1894
|
-
}
|
|
1895
|
-
function hn({ dotAll: e, ignoreCase: t }) {
|
|
1896
|
-
let n = {};
|
|
1897
|
-
return (e || t) && (n.enable = {}, e && (n.enable.dotAll = !0), t && (n.enable.ignoreCase = !0)), (!e || !t) && (n.disable = {}, !e && (n.disable.dotAll = !0), !t && (n.disable.ignoreCase = !0)), n;
|
|
1898
|
-
}
|
|
1899
|
-
function gn(e) {
|
|
1900
|
-
if (!e) throw Error("Node expected");
|
|
1901
|
-
let { body: t } = e;
|
|
1902
|
-
return Array.isArray(t) ? t : t ? [t] : null;
|
|
1903
|
-
}
|
|
1904
|
-
function _n(e) {
|
|
1905
|
-
let t = e.find((e) => e.kind === "search_start" || xn(e, { negate: !1 }) || !yn(e));
|
|
1906
|
-
if (!t) return null;
|
|
1907
|
-
if (t.kind === "search_start") return t;
|
|
1908
|
-
if (t.type === "LookaroundAssertion") return t.body[0].body[0];
|
|
1909
|
-
if (t.type === "CapturingGroup" || t.type === "Group") {
|
|
1910
|
-
let e = [];
|
|
1911
|
-
for (let n of t.body) {
|
|
1912
|
-
let t = _n(n.body);
|
|
1913
|
-
if (!t) return null;
|
|
1914
|
-
Array.isArray(t) ? e.push(...t) : e.push(t);
|
|
1915
|
-
}
|
|
1916
|
-
return e;
|
|
1917
|
-
}
|
|
1918
|
-
return null;
|
|
1919
|
-
}
|
|
1920
|
-
function vn(e, t) {
|
|
1921
|
-
var n;
|
|
1922
|
-
let r = (n = gn(e)) == null ? [] : n;
|
|
1923
|
-
for (let e of r) if (e === t || vn(e, t)) return !0;
|
|
1924
|
-
return !1;
|
|
1925
|
-
}
|
|
1926
|
-
function yn({ type: e }) {
|
|
1927
|
-
return e === "Assertion" || e === "Directive" || e === "LookaroundAssertion";
|
|
1928
|
-
}
|
|
1929
|
-
function bn(e) {
|
|
1930
|
-
let t = [
|
|
1931
|
-
"Character",
|
|
1932
|
-
"CharacterClass",
|
|
1933
|
-
"CharacterSet"
|
|
1934
|
-
];
|
|
1935
|
-
return t.includes(e.type) || e.type === "Quantifier" && e.min && t.includes(e.body.type);
|
|
1936
|
-
}
|
|
1937
|
-
function xn(e, n) {
|
|
1938
|
-
let r = t({ negate: null }, n);
|
|
1939
|
-
return e.type === "LookaroundAssertion" && (r.negate === null || e.negate === r.negate) && e.body.length === 1 && Ie(e.body[0], {
|
|
1940
|
-
type: "Assertion",
|
|
1941
|
-
kind: "search_start"
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
function Sn(e) {
|
|
1945
|
-
return (/* @__PURE__ */ RegExp("^[$_\\p{IDS}][$\\u200C\\u200D\\p{IDC}]*$", "u")).test(e);
|
|
1946
|
-
}
|
|
1947
|
-
function X(e, n) {
|
|
1948
|
-
let r = ze(e, t(t({}, n), {}, { unicodePropertyMap: Jt })).body;
|
|
1949
|
-
return r.length > 1 || r[0].body.length > 1 ? E({ body: r }) : r[0].body[0];
|
|
1950
|
-
}
|
|
1951
|
-
function Cn(e, t) {
|
|
1952
|
-
return e.negate = t, e;
|
|
1953
|
-
}
|
|
1954
|
-
function Z(e, t) {
|
|
1955
|
-
return e.parent = t, e;
|
|
1956
|
-
}
|
|
1957
|
-
function Q(e, t) {
|
|
1958
|
-
return sn(e), e.parent = t, e;
|
|
1959
|
-
}
|
|
1960
|
-
function wn(e, n) {
|
|
1961
|
-
let r = Wt(n), i = Bt(r.target, "ES2024"), a = Bt(r.target, "ES2025"), o = r.rules.recursionLimit;
|
|
1962
|
-
if (!Number.isInteger(o) || o < 2 || o > 20) throw Error("Invalid recursionLimit; use 2-20");
|
|
1963
|
-
let s = null, c = null;
|
|
1964
|
-
if (!a) {
|
|
1965
|
-
let t = [e.flags.ignoreCase];
|
|
1966
|
-
j(e, Tn, {
|
|
1967
|
-
getCurrentModI: () => t.at(-1),
|
|
1968
|
-
popModI() {
|
|
1969
|
-
t.pop();
|
|
1970
|
-
},
|
|
1971
|
-
pushModI(e) {
|
|
1972
|
-
t.push(e);
|
|
1973
|
-
},
|
|
1974
|
-
setHasCasedChar() {
|
|
1975
|
-
t.at(-1) ? s = !0 : c = !0;
|
|
1976
|
-
}
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
let l = {
|
|
1980
|
-
dotAll: e.flags.dotAll,
|
|
1981
|
-
ignoreCase: !!((e.flags.ignoreCase || s) && !c)
|
|
1982
|
-
}, u = e, d = {
|
|
1983
|
-
accuracy: r.accuracy,
|
|
1984
|
-
appliedGlobalFlags: l,
|
|
1985
|
-
captureMap: /* @__PURE__ */ new Map(),
|
|
1986
|
-
currentFlags: {
|
|
1987
|
-
dotAll: e.flags.dotAll,
|
|
1988
|
-
ignoreCase: e.flags.ignoreCase
|
|
1989
|
-
},
|
|
1990
|
-
inCharClass: !1,
|
|
1991
|
-
lastNode: u,
|
|
1992
|
-
originMap: e._originMap,
|
|
1993
|
-
recursionLimit: o,
|
|
1994
|
-
useAppliedIgnoreCase: !!(!a && s && c),
|
|
1995
|
-
useFlagMods: a,
|
|
1996
|
-
useFlagV: i,
|
|
1997
|
-
verbose: r.verbose
|
|
1998
|
-
};
|
|
1999
|
-
function f(e) {
|
|
2000
|
-
return d.lastNode = u, u = e, Vt(En[e.type], `Unexpected node type "${e.type}"`)(e, d, f);
|
|
2001
|
-
}
|
|
2002
|
-
let p = {
|
|
2003
|
-
pattern: e.body.map(f).join("|"),
|
|
2004
|
-
flags: f(e.flags),
|
|
2005
|
-
options: t({}, e.options)
|
|
2006
|
-
};
|
|
2007
|
-
return i || (delete p.options.force.v, p.options.disable.v = !0, p.options.unicodeSetsPlugin = null), p._captureTransfers = /* @__PURE__ */ new Map(), p._hiddenCaptures = [], d.captureMap.forEach((e, t) => {
|
|
2008
|
-
e.hidden && p._hiddenCaptures.push(t), e.transferTo && q(p._captureTransfers, e.transferTo, []).push(t);
|
|
2009
|
-
}), p;
|
|
2010
|
-
}
|
|
2011
|
-
var Tn = {
|
|
2012
|
-
"*": {
|
|
2013
|
-
enter({ node: e }, t) {
|
|
2014
|
-
if (Ln(e)) {
|
|
2015
|
-
let n = t.getCurrentModI();
|
|
2016
|
-
t.pushModI(e.flags ? zt({ ignoreCase: n }, e.flags).ignoreCase : n);
|
|
2017
|
-
}
|
|
2018
|
-
},
|
|
2019
|
-
exit({ node: e }, t) {
|
|
2020
|
-
Ln(e) && t.popModI();
|
|
2021
|
-
}
|
|
2022
|
-
},
|
|
2023
|
-
Backreference(e, t) {
|
|
2024
|
-
t.setHasCasedChar();
|
|
2025
|
-
},
|
|
2026
|
-
Character({ node: e }, t) {
|
|
2027
|
-
Mn(W(e.value)) && t.setHasCasedChar();
|
|
2028
|
-
},
|
|
2029
|
-
CharacterClassRange({ node: e, skip: t }, n) {
|
|
2030
|
-
t(), Nn(e, { firstOnly: !0 }).length && n.setHasCasedChar();
|
|
2031
|
-
},
|
|
2032
|
-
CharacterSet({ node: e }, t) {
|
|
2033
|
-
e.kind === "property" && tn.has(e.value) && t.setHasCasedChar();
|
|
2034
|
-
}
|
|
2035
|
-
}, En = {
|
|
2036
|
-
Alternative({ body: e }, t, n) {
|
|
2037
|
-
return e.map(n).join("");
|
|
2038
|
-
},
|
|
2039
|
-
Assertion({ kind: e, negate: t }) {
|
|
2040
|
-
if (e === "string_end") return "$";
|
|
2041
|
-
if (e === "string_start") return "^";
|
|
2042
|
-
if (e === "word_boundary") return t ? G`\B` : G`\b`;
|
|
2043
|
-
throw Error(`Unexpected assertion kind "${e}"`);
|
|
2044
|
-
},
|
|
2045
|
-
Backreference({ ref: e }, t) {
|
|
2046
|
-
if (typeof e != "number") throw Error("Unexpected named backref in transformed AST");
|
|
2047
|
-
if (!t.useFlagMods && t.accuracy === "strict" && t.currentFlags.ignoreCase && !t.captureMap.get(e).ignoreCase) throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");
|
|
2048
|
-
return "\\" + e;
|
|
2049
|
-
},
|
|
2050
|
-
CapturingGroup(e, t, n) {
|
|
2051
|
-
let { body: r, name: i, number: a } = e, o = { ignoreCase: t.currentFlags.ignoreCase }, s = t.originMap.get(e);
|
|
2052
|
-
return s && (o.hidden = !0, a > s.number && (o.transferTo = s.number)), t.captureMap.set(a, o), `(${i ? `?<${i}>` : ""}${r.map(n).join("|")})`;
|
|
2053
|
-
},
|
|
2054
|
-
Character({ value: e }, t) {
|
|
2055
|
-
let n = W(e), r = $(e, {
|
|
2056
|
-
escDigit: t.lastNode.type === "Backreference",
|
|
2057
|
-
inCharClass: t.inCharClass,
|
|
2058
|
-
useFlagV: t.useFlagV
|
|
2059
|
-
});
|
|
2060
|
-
if (r !== n) return r;
|
|
2061
|
-
if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Mn(n)) {
|
|
2062
|
-
let e = qt(n);
|
|
2063
|
-
return t.inCharClass ? e.join("") : e.length > 1 ? `[${e.join("")}]` : e[0];
|
|
2064
|
-
}
|
|
2065
|
-
return n;
|
|
2066
|
-
},
|
|
2067
|
-
CharacterClass(e, t, n) {
|
|
2068
|
-
let { kind: r, negate: i, parent: a } = e, { body: o } = e;
|
|
2069
|
-
if (r === "intersection" && !t.useFlagV) throw Error("Use of character class intersection requires min target ES2024");
|
|
2070
|
-
K.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(zn) && (o = [w(45), ...o.filter((e) => !zn(e))]);
|
|
2071
|
-
let s = () => `[${i ? "^" : ""}${o.map(n).join(r === "intersection" ? "&&" : "")}]`;
|
|
2072
|
-
if (!t.inCharClass) {
|
|
2073
|
-
if ((!t.useFlagV || K.bugNestedClassIgnoresNegation) && !i) {
|
|
2074
|
-
let t = o.filter((e) => e.type === "CharacterClass" && e.kind === "union" && e.negate);
|
|
2075
|
-
if (t.length) {
|
|
2076
|
-
let r = E(), i = r.body[0];
|
|
2077
|
-
return r.parent = a, i.parent = r, o = o.filter((e) => !t.includes(e)), e.body = o, o.length ? (e.parent = i, i.body.push(e)) : r.body.pop(), t.forEach((e) => {
|
|
2078
|
-
let t = C({ body: [e] });
|
|
2079
|
-
e.parent = t, t.parent = r, r.body.push(t);
|
|
2080
|
-
}), n(r);
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
t.inCharClass = !0;
|
|
2084
|
-
let r = s();
|
|
2085
|
-
return t.inCharClass = !1, r;
|
|
2086
|
-
}
|
|
2087
|
-
let c = o[0];
|
|
2088
|
-
if (r === "union" && !i && c && ((!t.useFlagV || !t.verbose) && a.kind === "union" && !(K.bugFlagVLiteralHyphenIsRange && t.useFlagV) || !t.verbose && a.kind === "intersection" && o.length === 1 && c.type !== "CharacterClassRange")) return o.map(n).join("");
|
|
2089
|
-
if (!t.useFlagV && a.type === "CharacterClass") throw Error("Uses nested character class in a way that requires min target ES2024");
|
|
2090
|
-
return s();
|
|
2091
|
-
},
|
|
2092
|
-
CharacterClassRange(e, t) {
|
|
2093
|
-
let n = e.min.value, r = e.max.value, i = {
|
|
2094
|
-
escDigit: !1,
|
|
2095
|
-
inCharClass: !0,
|
|
2096
|
-
useFlagV: t.useFlagV
|
|
2097
|
-
}, a = $(n, i), o = $(r, i), s = /* @__PURE__ */ new Set();
|
|
2098
|
-
return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Pn(Nn(e)).forEach((e) => {
|
|
2099
|
-
s.add(Array.isArray(e) ? `${$(e[0], i)}-${$(e[1], i)}` : $(e, i));
|
|
2100
|
-
}), `${a}-${o}${[...s].join("")}`;
|
|
2101
|
-
},
|
|
2102
|
-
CharacterSet({ kind: e, negate: t, value: n, key: r }, i) {
|
|
2103
|
-
if (e === "dot") return i.currentFlags.dotAll ? i.appliedGlobalFlags.dotAll || i.useFlagMods ? "." : "[^]" : G`[^\n]`;
|
|
2104
|
-
if (e === "digit") return t ? G`\D` : G`\d`;
|
|
2105
|
-
if (e === "property") {
|
|
2106
|
-
if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase && tn.has(n)) throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);
|
|
2107
|
-
return `${t ? G`\P` : G`\p`}{${r ? `${r}=` : ""}${n}}`;
|
|
2108
|
-
}
|
|
2109
|
-
if (e === "word") return t ? G`\W` : G`\w`;
|
|
2110
|
-
throw Error(`Unexpected character set kind "${e}"`);
|
|
2111
|
-
},
|
|
2112
|
-
Flags(e, t) {
|
|
2113
|
-
return (t.appliedGlobalFlags.ignoreCase ? "i" : "") + (e.dotAll ? "s" : "") + (e.sticky ? "y" : "");
|
|
2114
|
-
},
|
|
2115
|
-
Group({ atomic: e, body: t, flags: n, parent: r }, i, a) {
|
|
2116
|
-
let o = i.currentFlags;
|
|
2117
|
-
n && (i.currentFlags = zt(o, n));
|
|
2118
|
-
let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${Fn(e, n, i.useFlagMods)}${s})`;
|
|
2119
|
-
return i.currentFlags = o, c;
|
|
2120
|
-
},
|
|
2121
|
-
LookaroundAssertion({ body: e, kind: t, negate: n }, r, i) {
|
|
2122
|
-
return `(?${`${t === "lookahead" ? "" : "<"}${n ? "!" : "="}`}${e.map(i).join("|")})`;
|
|
2123
|
-
},
|
|
2124
|
-
Quantifier(e, t, n) {
|
|
2125
|
-
return n(e.body) + In(e);
|
|
2126
|
-
},
|
|
2127
|
-
Subroutine({ isRecursive: e, ref: t }, n) {
|
|
2128
|
-
if (!e) throw Error("Unexpected non-recursive subroutine in transformed AST");
|
|
2129
|
-
let r = n.recursionLimit;
|
|
2130
|
-
return t === 0 ? `(?R=${r})` : G`\g<${t}&R=${r}>`;
|
|
2131
|
-
}
|
|
2132
|
-
}, Dn = /* @__PURE__ */ new Set([
|
|
2133
|
-
"$",
|
|
2134
|
-
"(",
|
|
2135
|
-
")",
|
|
2136
|
-
"*",
|
|
2137
|
-
"+",
|
|
2138
|
-
".",
|
|
2139
|
-
"?",
|
|
2140
|
-
"[",
|
|
2141
|
-
"\\",
|
|
2142
|
-
"]",
|
|
2143
|
-
"^",
|
|
2144
|
-
"{",
|
|
2145
|
-
"|",
|
|
2146
|
-
"}"
|
|
2147
|
-
]), On = /* @__PURE__ */ new Set([
|
|
2148
|
-
"-",
|
|
2149
|
-
"\\",
|
|
2150
|
-
"]",
|
|
2151
|
-
"^",
|
|
2152
|
-
"["
|
|
2153
|
-
]), kn = /* @__PURE__ */ new Set(/* @__PURE__ */ "()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split("")), An = /* @__PURE__ */ new Map([
|
|
2154
|
-
[9, G`\t`],
|
|
2155
|
-
[10, G`\n`],
|
|
2156
|
-
[11, G`\v`],
|
|
2157
|
-
[12, G`\f`],
|
|
2158
|
-
[13, G`\r`],
|
|
2159
|
-
[8232, G`\u2028`],
|
|
2160
|
-
[8233, G`\u2029`],
|
|
2161
|
-
[65279, G`\uFEFF`]
|
|
2162
|
-
]), jn = /* @__PURE__ */ RegExp("^\\p{Cased}$", "u");
|
|
2163
|
-
function Mn(e) {
|
|
2164
|
-
return jn.test(e);
|
|
2165
|
-
}
|
|
2166
|
-
function Nn(e, t) {
|
|
2167
|
-
let n = !!(t != null && t.firstOnly), r = e.min.value, i = e.max.value, a = [];
|
|
2168
|
-
if (r < 65 && (i === 65535 || i >= 131071) || r === 65536 && i >= 131071) return a;
|
|
2169
|
-
for (let e = r; e <= i; e++) {
|
|
2170
|
-
let t = W(e);
|
|
2171
|
-
if (!Mn(t)) continue;
|
|
2172
|
-
let o = qt(t).filter((e) => {
|
|
2173
|
-
let t = e.codePointAt(0);
|
|
2174
|
-
return t < r || t > i;
|
|
2175
|
-
});
|
|
2176
|
-
if (o.length && (a.push(...o), n)) break;
|
|
2177
|
-
}
|
|
2178
|
-
return a;
|
|
2179
|
-
}
|
|
2180
|
-
function $(e, { escDigit: t, inCharClass: n, useFlagV: r }) {
|
|
2181
|
-
if (An.has(e)) return An.get(e);
|
|
2182
|
-
if (e < 32 || e > 126 && e < 160 || e > 262143 || t && Rn(e)) return e > 255 ? `\\u{${e.toString(16).toUpperCase()}}` : `\\x${e.toString(16).toUpperCase().padStart(2, "0")}`;
|
|
2183
|
-
let i = n ? r ? kn : On : Dn, a = W(e);
|
|
2184
|
-
return (i.has(a) ? "\\" : "") + a;
|
|
2185
|
-
}
|
|
2186
|
-
function Pn(e) {
|
|
2187
|
-
let t = e.map((e) => e.codePointAt(0)).sort((e, t) => e - t), n = [], r = null;
|
|
2188
|
-
for (let e = 0; e < t.length; e++) t[e + 1] === t[e] + 1 ? r != null || (r = t[e]) : r === null ? n.push(t[e]) : (n.push([r, t[e]]), r = null);
|
|
2189
|
-
return n;
|
|
2190
|
-
}
|
|
2191
|
-
function Fn(e, t, n) {
|
|
2192
|
-
if (e) return ">";
|
|
2193
|
-
let r = "";
|
|
2194
|
-
if (t && n) {
|
|
2195
|
-
let { enable: e, disable: n } = t;
|
|
2196
|
-
r = (e != null && e.ignoreCase ? "i" : "") + (e != null && e.dotAll ? "s" : "") + (n ? "-" : "") + (n != null && n.ignoreCase ? "i" : "") + (n != null && n.dotAll ? "s" : "");
|
|
2197
|
-
}
|
|
2198
|
-
return `${r}:`;
|
|
2199
|
-
}
|
|
2200
|
-
function In({ kind: e, max: t, min: n }) {
|
|
2201
|
-
let r;
|
|
2202
|
-
return r = !n && t === 1 ? "?" : !n && t === Infinity ? "*" : n === 1 && t === Infinity ? "+" : n === t ? `{${n}}` : `{${n},${t === Infinity ? "" : t}}`, r + {
|
|
2203
|
-
greedy: "",
|
|
2204
|
-
lazy: "?",
|
|
2205
|
-
possessive: "+"
|
|
2206
|
-
}[e];
|
|
2207
|
-
}
|
|
2208
|
-
function Ln({ type: e }) {
|
|
2209
|
-
return e === "CapturingGroup" || e === "Group" || e === "LookaroundAssertion";
|
|
2210
|
-
}
|
|
2211
|
-
function Rn(e) {
|
|
2212
|
-
return e > 47 && e < 58;
|
|
2213
|
-
}
|
|
2214
|
-
function zn({ type: e, value: t }) {
|
|
2215
|
-
return e === "Character" && t === 45;
|
|
2216
|
-
}
|
|
2217
|
-
var Bn = (z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakSet(), Rt = class r extends RegExp {
|
|
2218
|
-
get source() {
|
|
2219
|
-
return l(V, this) || "(?:)";
|
|
2220
|
-
}
|
|
2221
|
-
constructor(n, i, a) {
|
|
2222
|
-
var c = (...t) => (super(...t), o(this, Lt), s(this, z, /* @__PURE__ */ new Map()), s(this, B, null), s(this, V, void 0), s(this, H, null), s(this, U, null), e(this, "rawOptions", {}), this);
|
|
2223
|
-
let d = !!(a != null && a.lazyCompile);
|
|
2224
|
-
if (n instanceof RegExp) {
|
|
2225
|
-
if (a) throw Error("Cannot provide options when copying a regexp");
|
|
2226
|
-
let e = n;
|
|
2227
|
-
c(e, i), u(V, this, e.source), e instanceof r && (u(z, this, l(z, e)), u(H, this, l(H, e)), u(U, this, l(U, e)), this.rawOptions = e.rawOptions);
|
|
2228
|
-
} else {
|
|
2229
|
-
let e = t({
|
|
2230
|
-
hiddenCaptures: [],
|
|
2231
|
-
strategy: null,
|
|
2232
|
-
transfers: []
|
|
2233
|
-
}, a);
|
|
2234
|
-
c(d ? "" : n, i), u(V, this, n), u(z, this, Un(e.hiddenCaptures, e.transfers)), u(U, this, e.strategy), this.rawOptions = a == null ? {} : a;
|
|
2235
|
-
}
|
|
2236
|
-
d || u(B, this, this);
|
|
2237
|
-
}
|
|
2238
|
-
exec(e) {
|
|
2239
|
-
if (!l(B, this)) {
|
|
2240
|
-
let e = this.rawOptions, { lazyCompile: t } = e, i = n(e, It);
|
|
2241
|
-
u(B, this, new r(l(V, this), this.flags, i));
|
|
2242
|
-
}
|
|
2243
|
-
let t = this.global || this.sticky, i = this.lastIndex;
|
|
2244
|
-
if (l(U, this) === "clip_search" && t && i) {
|
|
2245
|
-
this.lastIndex = 0;
|
|
2246
|
-
let t = c(Lt, this, Vn).call(this, e.slice(i));
|
|
2247
|
-
return t && (Hn(t, i, e, this.hasIndices), this.lastIndex += i), t;
|
|
2248
|
-
}
|
|
2249
|
-
return c(Lt, this, Vn).call(this, e);
|
|
2250
|
-
}
|
|
2251
|
-
}, Rt);
|
|
2252
|
-
function Vn(e) {
|
|
2253
|
-
l(B, this).lastIndex = this.lastIndex;
|
|
2254
|
-
let t = m(Rt.prototype, "exec", this).call(l(B, this), e);
|
|
2255
|
-
if (this.lastIndex = l(B, this).lastIndex, !t || !l(z, this).size) return t;
|
|
2256
|
-
let n = [...t];
|
|
2257
|
-
t.length = 1;
|
|
2258
|
-
let r;
|
|
2259
|
-
this.hasIndices && (r = [...t.indices], t.indices.length = 1);
|
|
2260
|
-
let i = [0];
|
|
2261
|
-
for (let e = 1; e < n.length; e++) {
|
|
2262
|
-
var a;
|
|
2263
|
-
let { hidden: o, transferTo: s } = (a = l(z, this).get(e)) == null ? {} : a;
|
|
2264
|
-
if (o ? i.push(null) : (i.push(t.length), t.push(n[e]), this.hasIndices && t.indices.push(r[e])), s && n[e] !== void 0) {
|
|
2265
|
-
let a = i[s];
|
|
2266
|
-
if (!a) throw Error(`Invalid capture transfer to "${a}"`);
|
|
2267
|
-
if (t[a] = n[e], this.hasIndices && (t.indices[a] = r[e]), t.groups) {
|
|
2268
|
-
l(H, this) || u(H, this, Wn(this.source));
|
|
2269
|
-
let i = l(H, this).get(s);
|
|
2270
|
-
i && (t.groups[i] = n[e], this.hasIndices && (t.indices.groups[i] = r[e]));
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
return t;
|
|
2275
|
-
}
|
|
2276
|
-
function Hn(e, t, n, r) {
|
|
2277
|
-
if (e.index += t, e.input = n, r) {
|
|
2278
|
-
let n = e.indices;
|
|
2279
|
-
for (let e = 0; e < n.length; e++) {
|
|
2280
|
-
let r = n[e];
|
|
2281
|
-
r && (n[e] = [r[0] + t, r[1] + t]);
|
|
2282
|
-
}
|
|
2283
|
-
let r = n.groups;
|
|
2284
|
-
r && Object.keys(r).forEach((e) => {
|
|
2285
|
-
let n = r[e];
|
|
2286
|
-
n && (r[e] = [n[0] + t, n[1] + t]);
|
|
2287
|
-
});
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
function Un(e, t) {
|
|
2291
|
-
let n = /* @__PURE__ */ new Map();
|
|
2292
|
-
for (let t of e) n.set(t, { hidden: !0 });
|
|
2293
|
-
for (let [e, r] of t) for (let t of r) q(n, t, {}).transferTo = e;
|
|
2294
|
-
return n;
|
|
2295
|
-
}
|
|
2296
|
-
function Wn(e) {
|
|
2297
|
-
let t = /* @__PURE__ */ RegExp("(?<capture>\\((?:\\?<(?![=!])(?<name>[^>]+)>|(?!\\?)))|\\\\?.", "gsu"), n = /* @__PURE__ */ new Map(), r = 0, i = 0, a;
|
|
2298
|
-
for (; a = t.exec(e);) {
|
|
2299
|
-
let { 0: e, groups: { capture: t, name: o } } = a;
|
|
2300
|
-
e === "[" ? r++ : r ? e === "]" && r-- : t && (i++, o && n.set(i, o));
|
|
2301
|
-
}
|
|
2302
|
-
return n;
|
|
2303
|
-
}
|
|
2304
|
-
function Gn(e, t) {
|
|
2305
|
-
let n = Kn(e, t);
|
|
2306
|
-
return n.options ? new Bn(n.pattern, n.flags, n.options) : new RegExp(n.pattern, n.flags);
|
|
2307
|
-
}
|
|
2308
|
-
function Kn(e, n) {
|
|
2309
|
-
let r = Wt(n), i = nn(ze(e, {
|
|
2310
|
-
flags: r.flags,
|
|
2311
|
-
normalizeUnknownPropertyNames: !0,
|
|
2312
|
-
rules: {
|
|
2313
|
-
captureGroup: r.rules.captureGroup,
|
|
2314
|
-
singleline: r.rules.singleline
|
|
2315
|
-
},
|
|
2316
|
-
skipBackrefValidation: r.rules.allowOrphanBackrefs,
|
|
2317
|
-
unicodePropertyMap: Jt
|
|
2318
|
-
}), {
|
|
2319
|
-
accuracy: r.accuracy,
|
|
2320
|
-
asciiWordBoundaries: r.rules.asciiWordBoundaries,
|
|
2321
|
-
avoidSubclass: r.avoidSubclass,
|
|
2322
|
-
bestEffortTarget: r.target
|
|
2323
|
-
}), a = wn(i, r), o = At(a.pattern, {
|
|
2324
|
-
captureTransfers: a._captureTransfers,
|
|
2325
|
-
hiddenCaptures: a._hiddenCaptures,
|
|
2326
|
-
mode: "external"
|
|
2327
|
-
}), s = Ct(Et(o.pattern).pattern, {
|
|
2328
|
-
captureTransfers: o.captureTransfers,
|
|
2329
|
-
hiddenCaptures: o.hiddenCaptures
|
|
2330
|
-
}), c = {
|
|
2331
|
-
pattern: s.pattern,
|
|
2332
|
-
flags: `${r.hasIndices ? "d" : ""}${r.global ? "g" : ""}${a.flags}${a.options.disable.v ? "u" : "v"}`
|
|
2333
|
-
};
|
|
2334
|
-
if (r.avoidSubclass) {
|
|
2335
|
-
if (r.lazyCompileLength !== Infinity) throw Error("Lazy compilation requires subclass");
|
|
2336
|
-
} else {
|
|
2337
|
-
let e = s.hiddenCaptures.sort((e, t) => e - t), n = Array.from(s.captureTransfers), a = i._strategy, o = c.pattern.length >= r.lazyCompileLength;
|
|
2338
|
-
(e.length || n.length || a || o) && (c.options = t(t(t(t({}, e.length && { hiddenCaptures: e }), n.length && { transfers: n }), a && { strategy: a }), o && { lazyCompile: o }));
|
|
2339
|
-
}
|
|
2340
|
-
return c;
|
|
2341
|
-
}
|
|
2342
|
-
//#endregion
|
|
2343
|
-
//#region node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
|
|
2344
|
-
function qn(e, n) {
|
|
2345
|
-
return Gn(e, t({
|
|
2346
|
-
global: !0,
|
|
2347
|
-
hasIndices: !0,
|
|
2348
|
-
lazyCompileLength: 3e3,
|
|
2349
|
-
rules: {
|
|
2350
|
-
allowOrphanBackrefs: !0,
|
|
2351
|
-
asciiWordBoundaries: !0,
|
|
2352
|
-
captureGroup: !0,
|
|
2353
|
-
recursionLimit: 5,
|
|
2354
|
-
singleline: !0
|
|
2355
|
-
}
|
|
2356
|
-
}, n));
|
|
2357
|
-
}
|
|
2358
|
-
function Jn(e = {}) {
|
|
2359
|
-
let t = Object.assign({
|
|
2360
|
-
target: "auto",
|
|
2361
|
-
cache: /* @__PURE__ */ new Map()
|
|
2362
|
-
}, e);
|
|
2363
|
-
return t.regexConstructor || (t.regexConstructor = (e) => qn(e, { target: t.target })), {
|
|
2364
|
-
createScanner(e) {
|
|
2365
|
-
return new i(e, t);
|
|
2366
|
-
},
|
|
2367
|
-
createString(e) {
|
|
2368
|
-
return { content: e };
|
|
2369
|
-
}
|
|
2370
|
-
};
|
|
2371
|
-
}
|
|
2372
|
-
//#endregion
|
|
2373
|
-
export { Jn as createJavaScriptRegexEngine };
|