kennel 0.2.20 → 0.2.22
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/README.md +39 -8
- package/dist/cli/dispatch.js +7 -5
- package/dist/cli/usage.js +6 -2
- package/dist/core/command.js +10 -5
- package/dist/package/preview.js +138 -67
- package/dist/plugins/external.d.ts +1 -0
- package/dist/plugins/external.js +22 -2
- package/dist/site/hot-viewer.d.ts +3 -1
- package/dist/site/hot-viewer.js +43 -33
- package/dist/site/plugin.d.ts +2 -0
- package/dist/site/plugin.js +32 -0
- package/dist/site/terminal.d.ts +1 -0
- package/dist/site/terminal.js +77 -0
- package/dist/site/viewer.d.ts +6 -6
- package/dist/site/viewer.js +39 -32
- package/package.json +2 -2
- package/schemas/config.schema.json +9 -0
- package/web/assets/abnfDiagram-VRR7QNED-aRemVX7f.js +1 -0
- package/web/assets/arc-BpDsnNTf.js +1 -0
- package/web/assets/architectureDiagram-ZJ3FMSHR-DNXHQddP.js +36 -0
- package/web/assets/ask-tray-PMT6VVXN-HMPARq3A.js +23 -0
- package/web/assets/{blockDiagram-677ZJIJ3-B404lYhT.js → blockDiagram-677ZJIJ3-CF4H4upo.js} +2 -2
- package/web/assets/{c4Diagram-LMCZKHZV-m6CP9WKP.js → c4Diagram-LMCZKHZV-BPWUnjtx.js} +2 -2
- package/web/assets/channel-CEZ4sDYU.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-lofRULSz.js → chunk-2Q5K7J3B-DGsa7uv7.js} +1 -1
- package/web/assets/{chunk-32BRIVSS-BtdUGMBQ.js → chunk-32BRIVSS-BRfic3W2.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-BBjGl_Dr.js → chunk-5VM5RSS4-L2h7hliu.js} +1 -1
- package/web/assets/{chunk-EX3LRPZG-DM3Qu278.js → chunk-EX3LRPZG-BPgD_fgx.js} +3 -3
- package/web/assets/{chunk-JWPE2WC7-Bp1ws-G7.js → chunk-JWPE2WC7-CckCaqu_.js} +1 -1
- package/web/assets/{chunk-MOJQB5TN-C7smXTrN.js → chunk-MOJQB5TN-zyGgx-VW.js} +1 -1
- package/web/assets/{chunk-RYQCIY6F-DODJCmXB.js → chunk-RYQCIY6F-Drzpg5IG.js} +1 -1
- package/web/assets/{chunk-V7JOEXUC-C7fI1RPs.js → chunk-V7JOEXUC-Di4ESKz-.js} +1 -1
- package/web/assets/{chunk-VR4S4FIN-BkMRGbPv.js → chunk-VR4S4FIN-C5lQtDI1.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-DGKhiMOo.js → chunk-XXDRQBXY-Cell0ft2.js} +1 -1
- package/web/assets/classDiagram-OUVF2IWQ-CjxqMQn2.js +1 -0
- package/web/assets/classDiagram-v2-EOCWNBFH-CjxqMQn2.js +1 -0
- package/web/assets/cose-bilkent-JH36ORCC-CiKtOFxl.js +1 -0
- package/web/assets/{cynefin-VYW2F7L2-Co86WDlY.js → cynefin-VYW2F7L2-B75MWf5b.js} +1 -1
- package/web/assets/cynefinDiagram-TSTJHNR4-BmNVkSWW.js +62 -0
- package/web/assets/{dagre-VKFMJZFB-2FzdH1tO.js → dagre-VKFMJZFB-BcM1Wqu5.js} +2 -2
- package/web/assets/{diagram-FQU43EPY-D8oGdGs0.js → diagram-FQU43EPY-BiBWrxa8.js} +2 -2
- package/web/assets/diagram-G47NLZAW-Cfxukr7T.js +24 -0
- package/web/assets/diagram-NH7WQ7WH-C83VkBYW.js +24 -0
- package/web/assets/{diagram-OA4YK3LP-Dapxn_y5.js → diagram-OA4YK3LP-Oj0uj6CX.js} +5 -5
- package/web/assets/diagram-WEI45ONY-DhbL0nvt.js +41 -0
- package/web/assets/ebnfDiagram-CCIWWBDH-D4JYp1UC.js +1 -0
- package/web/assets/{entities-Ba9UFGWQ.js → entity-search-page-G6QEQNXT-UKzUU5id.js} +10 -10
- package/web/assets/{erDiagram-Q63AITRT-BeWglGbe.js → erDiagram-Q63AITRT-C-oyRt9s.js} +2 -2
- package/web/assets/{flowDiagram-23GEKE2U-DQSrCvnP.js → flowDiagram-23GEKE2U-0Tplj9FK.js} +1 -1
- package/web/assets/ganttDiagram-NO4QXBWP-wgh2e0B_.js +292 -0
- package/web/assets/gitGraphDiagram-IHSO6WYX-D6z9qDXa.js +106 -0
- package/web/assets/index-BGwTWQMJ.css +1 -0
- package/web/assets/index-D_Fcgs3V.js +451 -0
- package/web/assets/infoDiagram-FWYZ7A6U-D3o7el5X.js +2 -0
- package/web/assets/{ishikawaDiagram-FXEZZL3T-zdZcsCSy.js → ishikawaDiagram-FXEZZL3T-CM0QyWYH.js} +6 -6
- package/web/assets/{journeyDiagram-5HDEW3XC-Cyviy-mf.js → journeyDiagram-5HDEW3XC-fmIoh0h6.js} +2 -2
- package/web/assets/{kanban-definition-HUTT4EX6-BEOdHBFJ.js → kanban-definition-HUTT4EX6-aEtqsiWf.js} +6 -6
- package/web/assets/{linear-B0Elyctv.js → linear-aJ-2UZO5.js} +1 -1
- package/web/assets/linked-session-header-M7WY6IGF-CltMJZiX.js +3 -0
- package/web/assets/{markdown-BvBsne3X.js → markdown-BP-54rPU.js} +2 -2
- package/web/assets/{mermaid.core-BEwF5fZo.js → mermaid.core-CL9g6xVu.js} +6 -6
- package/web/assets/{mindmap-definition-LN4V7U3C-DW5Nc3Z2.js → mindmap-definition-LN4V7U3C-CtQo0XrW.js} +2 -2
- package/web/assets/pegDiagram-2B236MQR-ecu1L_3A.js +1 -0
- package/web/assets/{pieDiagram-ENE6RG2P-DxF16ujD.js → pieDiagram-ENE6RG2P-CdCKg3Cn.js} +2 -2
- package/web/assets/plugin-host-modules-Dz_BPJRS.js +74 -0
- package/web/assets/{project-search-dialog-Bm4cKotY.js → project-search-dialog-HJFGW4DG-CKtXc-UP.js} +5 -5
- package/web/assets/project-search-page-NKQEBGPF-CMzuYEeM.js +2 -0
- package/web/assets/{quadrantDiagram-ABIIQ3AL-D6lKmduJ.js → quadrantDiagram-ABIIQ3AL-Bt8r5TlW.js} +2 -2
- package/web/assets/railroadDiagram-RFXS5EU6-DrWDVEVi.js +1 -0
- package/web/assets/react-DELVxLrX.js +9 -0
- package/web/assets/{requirementDiagram-TGXJPOKE-DCWUvc_i.js → requirementDiagram-TGXJPOKE-Ewjwpo6V.js} +2 -2
- package/web/assets/{sankeyDiagram-HTMAVEWB-CQ4kDW3E.js → sankeyDiagram-HTMAVEWB-CJCMHuzX.js} +2 -2
- package/web/assets/selection-popup-532EHNCZ-py5aCy1E.js +7 -0
- package/web/assets/{sequenceDiagram-DBY2YBRQ-C-ygrC5m.js → sequenceDiagram-DBY2YBRQ-Chj-4L6Q.js} +2 -2
- package/web/assets/sizeCapture-X5ZJPWSS-BguWhDIF.js +1 -0
- package/web/assets/stateDiagram-2N3HPSRC-BWisWMpK.js +1 -0
- package/web/assets/stateDiagram-v2-6OUMAXLB-AiBXToz-.js +1 -0
- package/web/assets/swimlanes-5IMT3BWC-CxVQ97_C.js +2 -0
- package/web/assets/swimlanesDiagram-G3AALYLV-DliPmGmf.js +8 -0
- package/web/assets/tanstack-CRaSxWtK.js +1 -0
- package/web/assets/{timeline-definition-FHXFAJF6-D3kXwv5v.js → timeline-definition-FHXFAJF6-CCbI0InF.js} +2 -2
- package/web/assets/{vennDiagram-L72KCM5P-DZhfR6LC.js → vennDiagram-L72KCM5P-mA5yKpJj.js} +4 -4
- package/web/assets/{wardleyDiagram-EHGQE667-CzwAW4nO.js → wardleyDiagram-EHGQE667-1Epw2EsU.js} +2 -2
- package/web/assets/{xychartDiagram-FW5EYKEG-CebaePFD.js → xychartDiagram-FW5EYKEG-DM1CMD-p.js} +2 -2
- package/web/index.html +5 -4
- package/web/kennel-theme.css +4 -2
- package/dist/site/mail.d.ts +0 -1
- package/dist/site/mail.js +0 -10
- package/web/assets/abnfDiagram-VRR7QNED-1RdiIYIR.js +0 -1
- package/web/assets/app-CEQAoxzL.js +0 -2
- package/web/assets/app-options-CIiczgaQ.js +0 -25
- package/web/assets/app-view-header-CNImosi9.js +0 -1
- package/web/assets/arc-DCuRiob1.js +0 -1
- package/web/assets/architectureDiagram-ZJ3FMSHR-CAcGR7BC.js +0 -36
- package/web/assets/ask-tray-DpWLca3e.js +0 -14
- package/web/assets/channel-CGNx58wi.js +0 -1
- package/web/assets/check-DjJ4znpk.js +0 -1
- package/web/assets/chevron-down-CiyxliRS.js +0 -1
- package/web/assets/chevron-right-BaJja2sG.js +0 -1
- package/web/assets/chevron-up-Xv7ii00h.js +0 -1
- package/web/assets/classDiagram-OUVF2IWQ-CepcbkQI.js +0 -1
- package/web/assets/classDiagram-v2-EOCWNBFH-CepcbkQI.js +0 -1
- package/web/assets/client-Bs3Sdel1.js +0 -6
- package/web/assets/client-Bz9gxOoP.js +0 -43
- package/web/assets/command-B-4JoDzT.js +0 -38
- package/web/assets/copy-DKl_cZLH.js +0 -1
- package/web/assets/copy-context-Bj8Sfpo7.js +0 -1
- package/web/assets/cose-bilkent-JH36ORCC-rQPbqPgO.js +0 -1
- package/web/assets/cynefinDiagram-TSTJHNR4-C9V3Tu3i.js +0 -62
- package/web/assets/diagram-G47NLZAW-Bav2L_9E.js +0 -24
- package/web/assets/diagram-NH7WQ7WH-CxOSrenv.js +0 -24
- package/web/assets/diagram-WEI45ONY-CGAvJVWu.js +0 -41
- package/web/assets/document-C4ERzZZ-.js +0 -23
- package/web/assets/ebnfDiagram-CCIWWBDH-CmJpnBTF.js +0 -1
- package/web/assets/ellipsis-DIDqkP8k.js +0 -1
- package/web/assets/file-text-C3hyr-Ql.js +0 -1
- package/web/assets/file-viewer-CYCdL53W.js +0 -1
- package/web/assets/folder-activity-Cv1X2ezj.js +0 -1
- package/web/assets/folder-filter-bar-Bl30Jv6B.js +0 -4
- package/web/assets/folder-image-Cy-8Vgmd.js +0 -1
- package/web/assets/folder-landing-BiswmWY0.js +0 -55
- package/web/assets/folder-list-BPufqaem.js +0 -1
- package/web/assets/folder-mobile-bar-Dxsu-jUM.js +0 -1
- package/web/assets/folder-open-CqSoJtKT.js +0 -1
- package/web/assets/folder-plugin-view-DiZbM5qv.js +0 -2
- package/web/assets/ganttDiagram-NO4QXBWP-BHGXM83R.js +0 -292
- package/web/assets/gitGraphDiagram-IHSO6WYX-DHoetr2P.js +0 -106
- package/web/assets/hooks-wZOJYSkv.js +0 -1
- package/web/assets/index-4-yQR2Lz.js +0 -41
- package/web/assets/index-4JQ747xt.js +0 -1
- package/web/assets/index-B6ap1Jz7.js +0 -1
- package/web/assets/index-BSHr1oc9.js +0 -1
- package/web/assets/index-CHgBEfsO.js +0 -1
- package/web/assets/index-CKJsEQtp.js +0 -64
- package/web/assets/index-DbD-bwdm.js +0 -2
- package/web/assets/index-uo3lipQl.js +0 -1
- package/web/assets/index-wmrfz8OS.css +0 -1
- package/web/assets/infoDiagram-FWYZ7A6U-09XQL5OF.js +0 -2
- package/web/assets/input-fNFbKa15.js +0 -9
- package/web/assets/linked-session-header-D4SUBW0L.js +0 -3
- package/web/assets/metadata-Dy1R-He2.js +0 -58
- package/web/assets/pegDiagram-2B236MQR-Cj3gTzwg.js +0 -1
- package/web/assets/plugin-host-modules-C_FG5LYc.js +0 -10
- package/web/assets/plus-TM7voyHO.js +0 -1
- package/web/assets/popover-DvKy7gF6.js +0 -9
- package/web/assets/railroadDiagram-RFXS5EU6-CNMzdL0J.js +0 -1
- package/web/assets/react-Dh7j6h1K.js +0 -9
- package/web/assets/search-Cv1HqxUc.js +0 -2
- package/web/assets/search-Cx23EFPc.js +0 -1
- package/web/assets/search-DG1auulp.css +0 -1
- package/web/assets/selection-popup-DPC2dc_s.js +0 -7
- package/web/assets/sizeCapture-X5ZJPWSS-CWCSfdrg.js +0 -1
- package/web/assets/stateDiagram-2N3HPSRC-BUJ8nxcE.js +0 -1
- package/web/assets/stateDiagram-v2-6OUMAXLB-DgubHPLq.js +0 -1
- package/web/assets/swimlanes-5IMT3BWC-rw0Loza_.js +0 -2
- package/web/assets/swimlanesDiagram-G3AALYLV-CxNu_14L.js +0 -8
- package/web/assets/tanstack-CirxkzEx.js +0 -1
- package/web/assets/utils-CvINCDjn.js +0 -1
- package/web/assets/view-context-DyuiMZAo.js +0 -101
- package/web/assets/viewer-capabilities-BkBR084B.js +0 -1
- package/web/assets/x-GGS-h4Nm.js +0 -1
- /package/web/assets/{KaTeX_AMS-Regular-DMm9YOAa.woff → KaTeX_AMS-Regular-CYEKBG2K-DMm9YOAa.woff} +0 -0
- /package/web/assets/{KaTeX_AMS-Regular-DRggAlZN.ttf → KaTeX_AMS-Regular-JKX5W2C4-DRggAlZN.ttf} +0 -0
- /package/web/assets/{KaTeX_AMS-Regular-BQhdFMY1.woff2 → KaTeX_AMS-Regular-U6PRYMIZ-BQhdFMY1.woff2} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 → KaTeX_Caligraphic-Bold-5QL5CMTE-Dq_IR9rO.woff2} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Bold-BEiXGLvX.woff → KaTeX_Caligraphic-Bold-WZ3QSGD3-BEiXGLvX.woff} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Bold-ATXxdsX0.ttf → KaTeX_Caligraphic-Bold-ZTS3R3HK-ATXxdsX0.ttf} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Regular-CTRA-rTL.woff → KaTeX_Caligraphic-Regular-3LKEU76G-CTRA-rTL.woff} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Regular-wX97UBjC.ttf → KaTeX_Caligraphic-Regular-A7XRTZ5Q-wX97UBjC.ttf} +0 -0
- /package/web/assets/{KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 → KaTeX_Caligraphic-Regular-KX5MEWCF-Di6jR-x-.woff2} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Bold-CL6g_b3V.woff2 → KaTeX_Fraktur-Bold-2QVFK6NQ-CL6g_b3V.woff2} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Bold-BsDP51OF.woff → KaTeX_Fraktur-Bold-T4SWXBMT-BsDP51OF.woff} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Bold-BdnERNNW.ttf → KaTeX_Fraktur-Bold-WGHVTYOR-BdnERNNW.ttf} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Regular-CTYiF6lA.woff2 → KaTeX_Fraktur-Regular-2PEIFJSJ-CTYiF6lA.woff2} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Regular-CB_wures.ttf → KaTeX_Fraktur-Regular-5U4OPH2X-CB_wures.ttf} +0 -0
- /package/web/assets/{KaTeX_Fraktur-Regular-Dxdc4cR9.woff → KaTeX_Fraktur-Regular-PQMHCIK6-Dxdc4cR9.woff} +0 -0
- /package/web/assets/{KaTeX_Main-Bold-Jm3AIy58.woff → KaTeX_Main-Bold-2GA4IZIN-Jm3AIy58.woff} +0 -0
- /package/web/assets/{KaTeX_Main-Bold-waoOVXN0.ttf → KaTeX_Main-Bold-W5FBVCZM-waoOVXN0.ttf} +0 -0
- /package/web/assets/{KaTeX_Main-Bold-Cx986IdX.woff2 → KaTeX_Main-Bold-YP5VVQRP-Cx986IdX.woff2} +0 -0
- /package/web/assets/{KaTeX_Main-BoldItalic-SpSLRI95.woff → KaTeX_Main-BoldItalic-4P4C7HJH-SpSLRI95.woff} +0 -0
- /package/web/assets/{KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 → KaTeX_Main-BoldItalic-N4V3DX7S-DxDJ3AOS.woff2} +0 -0
- /package/web/assets/{KaTeX_Main-BoldItalic-DzxPMmG6.ttf → KaTeX_Main-BoldItalic-ODMLBJJQ-DzxPMmG6.ttf} +0 -0
- /package/web/assets/{KaTeX_Main-Italic-3WenGoN9.ttf → KaTeX_Main-Italic-I43T2HSR-3WenGoN9.ttf} +0 -0
- /package/web/assets/{KaTeX_Main-Italic-NWA7e6Wa.woff2 → KaTeX_Main-Italic-RELBIK7M-NWA7e6Wa.woff2} +0 -0
- /package/web/assets/{KaTeX_Main-Italic-BMLOBm91.woff → KaTeX_Main-Italic-SASNQFN2-BMLOBm91.woff} +0 -0
- /package/web/assets/{KaTeX_Main-Regular-B22Nviop.woff2 → KaTeX_Main-Regular-ARRPAO67-B22Nviop.woff2} +0 -0
- /package/web/assets/{KaTeX_Main-Regular-Dr94JaBh.woff → KaTeX_Main-Regular-P5I74A2A-Dr94JaBh.woff} +0 -0
- /package/web/assets/{KaTeX_Main-Regular-ypZvNtVU.ttf → KaTeX_Main-Regular-W74P5G27-ypZvNtVU.ttf} +0 -0
- /package/web/assets/{KaTeX_Math-BoldItalic-iY-2wyZ7.woff → KaTeX_Math-BoldItalic-6EBV3DK5-iY-2wyZ7.woff} +0 -0
- /package/web/assets/{KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 → KaTeX_Math-BoldItalic-K4WTGH3J-CZnvNsCZ.woff2} +0 -0
- /package/web/assets/{KaTeX_Math-BoldItalic-B3XSjfu4.ttf → KaTeX_Math-BoldItalic-VB447A4D-B3XSjfu4.ttf} +0 -0
- /package/web/assets/{KaTeX_Math-Italic-t53AETM-.woff2 → KaTeX_Math-Italic-6KGCHLFN-t53AETM-.woff2} +0 -0
- /package/web/assets/{KaTeX_Math-Italic-DA0__PXp.woff → KaTeX_Math-Italic-KKK3USB2-DA0__PXp.woff} +0 -0
- /package/web/assets/{KaTeX_Math-Italic-flOr_0UB.ttf → KaTeX_Math-Italic-SON4MRCA-flOr_0UB.ttf} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Bold-D1sUS0GD.woff2 → KaTeX_SansSerif-Bold-RRNVJFFW-D1sUS0GD.woff2} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Bold-CFMepnvq.ttf → KaTeX_SansSerif-Bold-STQ6RXC7-CFMepnvq.ttf} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Bold-DbIhKOiC.woff → KaTeX_SansSerif-Bold-X5M5EMOD-DbIhKOiC.woff} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Italic-C3H0VqGB.woff2 → KaTeX_SansSerif-Italic-HMPFTM52-C3H0VqGB.woff2} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Italic-DN2j7dab.woff → KaTeX_SansSerif-Italic-PSN4QKYX-DN2j7dab.woff} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Italic-YYjJ1zSn.ttf → KaTeX_SansSerif-Italic-WTBAZBGY-YYjJ1zSn.ttf} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Regular-BNo7hRIc.ttf → KaTeX_SansSerif-Regular-2TL3USAE-BNo7hRIc.ttf} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Regular-CS6fqUqJ.woff → KaTeX_SansSerif-Regular-OQCII6EP-CS6fqUqJ.woff} +0 -0
- /package/web/assets/{KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 → KaTeX_SansSerif-Regular-XIQ62X4E-DDBCnlJ7.woff2} +0 -0
- /package/web/assets/{KaTeX_Script-Regular-C5JkGWo-.ttf → KaTeX_Script-Regular-72OLXYNA-C5JkGWo-.ttf} +0 -0
- /package/web/assets/{KaTeX_Script-Regular-D5yQViql.woff → KaTeX_Script-Regular-A5IFOEBS-D5yQViql.woff} +0 -0
- /package/web/assets/{KaTeX_Script-Regular-D3wIWfF6.woff2 → KaTeX_Script-Regular-APUWIHLP-D3wIWfF6.woff2} +0 -0
- /package/web/assets/{KaTeX_Size1-Regular-C195tn64.woff → KaTeX_Size1-Regular-4HRHTS65-C195tn64.woff} +0 -0
- /package/web/assets/{KaTeX_Size1-Regular-mCD8mA8B.woff2 → KaTeX_Size1-Regular-5LRUTBFT-mCD8mA8B.woff2} +0 -0
- /package/web/assets/{KaTeX_Size1-Regular-Dbsnue_I.ttf → KaTeX_Size1-Regular-7K6AASVL-Dbsnue_I.ttf} +0 -0
- /package/web/assets/{KaTeX_Size2-Regular-B7gKUWhC.ttf → KaTeX_Size2-Regular-222HN3GT-B7gKUWhC.ttf} +0 -0
- /package/web/assets/{KaTeX_Size2-Regular-oD1tc_U0.woff → KaTeX_Size2-Regular-K5ZHAIS6-oD1tc_U0.woff} +0 -0
- /package/web/assets/{KaTeX_Size2-Regular-Dy4dx90m.woff2 → KaTeX_Size2-Regular-LELKET5D-Dy4dx90m.woff2} +0 -0
- /package/web/assets/{KaTeX_Size3-Regular-CTq5MqoE.woff → KaTeX_Size3-Regular-TLFPAHDE-CTq5MqoE.woff} +0 -0
- /package/web/assets/{KaTeX_Size3-Regular-DgpXs0kz.ttf → KaTeX_Size3-Regular-UFCO6WCA-DgpXs0kz.ttf} +0 -0
- /package/web/assets/{KaTeX_Size4-Regular-DWFBv043.ttf → KaTeX_Size4-Regular-7PGNVPQK-DWFBv043.ttf} +0 -0
- /package/web/assets/{KaTeX_Size4-Regular-Dl5lxZxV.woff2 → KaTeX_Size4-Regular-CDMV7U5C-Dl5lxZxV.woff2} +0 -0
- /package/web/assets/{KaTeX_Size4-Regular-BF-4gkZK.woff → KaTeX_Size4-Regular-PKMWZHNC-BF-4gkZK.woff} +0 -0
- /package/web/assets/{KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf → KaTeX_Typewriter-Regular-3F5K6SQ6-D3Ib7_Hf.ttf} +0 -0
- /package/web/assets/{KaTeX_Typewriter-Regular-C0xS9mPB.woff → KaTeX_Typewriter-Regular-MJMFSK64-C0xS9mPB.woff} +0 -0
- /package/web/assets/{KaTeX_Typewriter-Regular-CO6r4hn1.woff2 → KaTeX_Typewriter-Regular-VBYJ4NRC-CO6r4hn1.woff2} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as Po}from"./react-Dh7j6h1K.js";function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d0(e.position):"start"in e||"end"in e?d0(e):"line"in e||"column"in e?Nu(e):""}function Nu(e){return p0(e&&e.line)+":"+p0(e&&e.column)}function d0(e){return Nu(e&&e.start)+"-"+Nu(e&&e.end)}function p0(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=wn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.column=void 0;st.prototype.line=void 0;st.prototype.ancestors=void 0;st.prototype.cause=void 0;st.prototype.fatal=void 0;st.prototype.place=void 0;st.prototype.ruleId=void 0;st.prototype.source=void 0;const un={basename:cm,dirname:hm,extname:fm,join:dm,sep:"/"};function cm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');za(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(n=i):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function hm(e){if(za(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fm(e){za(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dm(...e){let t=-1,r;for(;++t<e.length;)za(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":pm(r)}function pm(e){za(e);const t=e.codePointAt(0)===47;let r=mm(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mm(e,t){let r="",n=0,i=-1,a=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return r}function za(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gm={cwd:bm};function bm(){return"/"}function Iu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xm(e){if(typeof e=="string")e=new URL(e);else if(!Iu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Em(e)}function Em(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Bo=["history","path","basename","stem","extname","dirname"];class Kh{constructor(t){let r;t?Iu(t)?r={path:t}:typeof t=="string"||ym(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":gm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Bo.length;){const a=Bo[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Bo.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?un.basename(this.path):void 0}set basename(t){Uo(t,"basename"),Fo(t,"basename"),this.path=un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?un.dirname(this.path):void 0}set dirname(t){m0(this.basename,"dirname"),this.path=un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?un.extname(this.path):void 0}set extname(t){if(Fo(t,"extname"),m0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Iu(t)&&(t=xm(t)),Uo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?un.basename(this.path,this.extname):void 0}set stem(t){Uo(t,"stem"),Fo(t,"stem"),this.path=un.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new st(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+un.sep+"`")}function Uo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function m0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function v_(){}const vm=/[$_\p{ID_Start}]/u,Tm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_m=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Am=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xh={};function Zr(e){return e?vm.test(String.fromCodePoint(e)):!1}function ca(e,t){const n=(t||Xh).jsx?_m:Tm;return e?n.test(String.fromCodePoint(e)):!1}function va(e,t){return((t||Xh).jsx?Sm:Am).test(e)}class wm{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,r,n,i){t&&r&&(n!=null?t[r][n]=i:t[r]=i)}remove(t,r,n){t&&r&&(n!=null?t[r].splice(n,1):delete t[r])}}class km extends wm{constructor(t,r){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:n=>this.replacement=n},this.enter=t,this.leave=r}visit(t,r,n,i){if(t){if(this.enter){const s=this.should_skip,u=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const c=this.should_skip,f=this.should_remove;if(this.should_skip=s,this.should_remove=u,this.replacement=l,c)return t;if(f)return null}let a;for(a in t){const s=t[a];if(s&&typeof s=="object")if(Array.isArray(s)){const u=s;for(let l=0;l<u.length;l+=1){const c=u[l];g0(c)&&(this.visit(c,t,a,l)||l--)}}else g0(s)&&this.visit(s,t,a,null)}if(this.leave){const s=this.replacement,u=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const l=this.should_remove;if(this.replacement=s,this.should_remove=u,l)return null}}return t}}function g0(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function Cm(e,{enter:t,leave:r}){return new km(t,r).visit(e,null)}var zo={exports:{}},Ho,b0;function Nm(){return b0||(b0=1,Ho={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Ho}var xa={exports:{}},Im=xa.exports,x0;function E0(){return x0||(x0=1,(function(e,t){(function(r,n){n(t)})(Im,(function(r){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:l,"5module":l+" export import",6:l+" const class extends export import super"},f=/^in(stanceof)?$/,d=new RegExp("["+s+"]"),x=new RegExp("["+s+a+"]");function b(o,h){for(var y=65536,v=0;v<h.length;v+=2){if(y+=h[v],y>o)return!1;if(y+=h[v+1],y>=o)return!0}return!1}function T(o,h){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&d.test(String.fromCharCode(o)):h===!1?!1:b(o,i)}function A(o,h){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&x.test(String.fromCharCode(o)):h===!1?!1:b(o,i)||b(o,n)}var C=function(h,y){y===void 0&&(y={}),this.label=h,this.keyword=y.keyword,this.beforeExpr=!!y.beforeExpr,this.startsExpr=!!y.startsExpr,this.isLoop=!!y.isLoop,this.isAssign=!!y.isAssign,this.prefix=!!y.prefix,this.postfix=!!y.postfix,this.binop=y.binop||null,this.updateContext=null};function S(o,h){return new C(o,{beforeExpr:!0,binop:h})}var I={beforeExpr:!0},D={startsExpr:!0},q={};function O(o,h){return h===void 0&&(h={}),h.keyword=o,q[o]=new C(o,h)}var g={num:new C("num",D),regexp:new C("regexp",D),string:new C("string",D),name:new C("name",D),privateId:new C("privateId",D),eof:new C("eof"),bracketL:new C("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C("]"),braceL:new C("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C("}"),parenL:new C("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C(")"),comma:new C(",",I),semi:new C(";",I),colon:new C(":",I),dot:new C("."),question:new C("?",I),questionDot:new C("?."),arrow:new C("=>",I),template:new C("template"),invalidTemplate:new C("invalidTemplate"),ellipsis:new C("...",I),backQuote:new C("`",D),dollarBraceL:new C("${",{beforeExpr:!0,startsExpr:!0}),eq:new C("=",{beforeExpr:!0,isAssign:!0}),assign:new C("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new C("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new C("**",{beforeExpr:!0}),coalesce:S("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",D),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",D),_super:O("super",D),_class:O("class",D),_extends:O("extends",I),_export:O("export"),_import:O("import",D),_null:O("null",D),_true:O("true",D),_false:O("false",D),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},P=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(P.source,"g");function K(o){return o===10||o===13||o===8232||o===8233}function Y(o,h,y){y===void 0&&(y=o.length);for(var v=h;v<y;v++){var L=o.charCodeAt(v);if(K(L))return v<y-1&&L===13&&o.charCodeAt(v+1)===10?v+2:v+1}return-1}var re=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,be=Object.prototype,oe=be.hasOwnProperty,ne=be.toString,Se=Object.hasOwn||(function(o,h){return oe.call(o,h)}),Ie=Array.isArray||(function(o){return ne.call(o)==="[object Array]"}),Oe=Object.create(null);function qe(o){return Oe[o]||(Oe[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function F(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var We=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ge=function(h,y){this.line=h,this.column=y};Ge.prototype.offset=function(h){return new Ge(this.line,this.column+h)};var H=function(h,y,v){this.start=y,this.end=v,h.sourceFile!==null&&(this.source=h.sourceFile)};function xt(o,h){for(var y=1,v=0;;){var L=Y(o,v,h);if(L<0)return new Ge(y,h-v);++y,v=L}}var Nt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ut=!1;function Ht(o){var h={};for(var y in Nt)h[y]=o&&Se(o,y)?o[y]:Nt[y];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!ut&&typeof console=="object"&&console.warn&&(ut=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
1
|
+
import{j as Po}from"./react-DELVxLrX.js";function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d0(e.position):"start"in e||"end"in e?d0(e):"line"in e||"column"in e?Nu(e):""}function Nu(e){return p0(e&&e.line)+":"+p0(e&&e.column)}function d0(e){return Nu(e&&e.start)+"-"+Nu(e&&e.end)}function p0(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=wn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.column=void 0;st.prototype.line=void 0;st.prototype.ancestors=void 0;st.prototype.cause=void 0;st.prototype.fatal=void 0;st.prototype.place=void 0;st.prototype.ruleId=void 0;st.prototype.source=void 0;const un={basename:cm,dirname:hm,extname:fm,join:dm,sep:"/"};function cm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');za(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(n=i):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function hm(e){if(za(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fm(e){za(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dm(...e){let t=-1,r;for(;++t<e.length;)za(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":pm(r)}function pm(e){za(e);const t=e.codePointAt(0)===47;let r=mm(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mm(e,t){let r="",n=0,i=-1,a=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return r}function za(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gm={cwd:bm};function bm(){return"/"}function Iu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xm(e){if(typeof e=="string")e=new URL(e);else if(!Iu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Em(e)}function Em(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Bo=["history","path","basename","stem","extname","dirname"];class Kh{constructor(t){let r;t?Iu(t)?r={path:t}:typeof t=="string"||ym(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":gm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Bo.length;){const a=Bo[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Bo.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?un.basename(this.path):void 0}set basename(t){Uo(t,"basename"),Fo(t,"basename"),this.path=un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?un.dirname(this.path):void 0}set dirname(t){m0(this.basename,"dirname"),this.path=un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?un.extname(this.path):void 0}set extname(t){if(Fo(t,"extname"),m0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Iu(t)&&(t=xm(t)),Uo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?un.basename(this.path,this.extname):void 0}set stem(t){Uo(t,"stem"),Fo(t,"stem"),this.path=un.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new st(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+un.sep+"`")}function Uo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function m0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function v_(){}const vm=/[$_\p{ID_Start}]/u,Tm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_m=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Am=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xh={};function Zr(e){return e?vm.test(String.fromCodePoint(e)):!1}function ca(e,t){const n=(t||Xh).jsx?_m:Tm;return e?n.test(String.fromCodePoint(e)):!1}function va(e,t){return((t||Xh).jsx?Sm:Am).test(e)}class wm{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,r,n,i){t&&r&&(n!=null?t[r][n]=i:t[r]=i)}remove(t,r,n){t&&r&&(n!=null?t[r].splice(n,1):delete t[r])}}class km extends wm{constructor(t,r){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:n=>this.replacement=n},this.enter=t,this.leave=r}visit(t,r,n,i){if(t){if(this.enter){const s=this.should_skip,u=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const c=this.should_skip,f=this.should_remove;if(this.should_skip=s,this.should_remove=u,this.replacement=l,c)return t;if(f)return null}let a;for(a in t){const s=t[a];if(s&&typeof s=="object")if(Array.isArray(s)){const u=s;for(let l=0;l<u.length;l+=1){const c=u[l];g0(c)&&(this.visit(c,t,a,l)||l--)}}else g0(s)&&this.visit(s,t,a,null)}if(this.leave){const s=this.replacement,u=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const l=this.should_remove;if(this.replacement=s,this.should_remove=u,l)return null}}return t}}function g0(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function Cm(e,{enter:t,leave:r}){return new km(t,r).visit(e,null)}var zo={exports:{}},Ho,b0;function Nm(){return b0||(b0=1,Ho={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Ho}var xa={exports:{}},Im=xa.exports,x0;function E0(){return x0||(x0=1,(function(e,t){(function(r,n){n(t)})(Im,(function(r){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:l,"5module":l+" export import",6:l+" const class extends export import super"},f=/^in(stanceof)?$/,d=new RegExp("["+s+"]"),x=new RegExp("["+s+a+"]");function b(o,h){for(var y=65536,v=0;v<h.length;v+=2){if(y+=h[v],y>o)return!1;if(y+=h[v+1],y>=o)return!0}return!1}function T(o,h){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&d.test(String.fromCharCode(o)):h===!1?!1:b(o,i)}function A(o,h){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&x.test(String.fromCharCode(o)):h===!1?!1:b(o,i)||b(o,n)}var C=function(h,y){y===void 0&&(y={}),this.label=h,this.keyword=y.keyword,this.beforeExpr=!!y.beforeExpr,this.startsExpr=!!y.startsExpr,this.isLoop=!!y.isLoop,this.isAssign=!!y.isAssign,this.prefix=!!y.prefix,this.postfix=!!y.postfix,this.binop=y.binop||null,this.updateContext=null};function S(o,h){return new C(o,{beforeExpr:!0,binop:h})}var I={beforeExpr:!0},D={startsExpr:!0},q={};function O(o,h){return h===void 0&&(h={}),h.keyword=o,q[o]=new C(o,h)}var g={num:new C("num",D),regexp:new C("regexp",D),string:new C("string",D),name:new C("name",D),privateId:new C("privateId",D),eof:new C("eof"),bracketL:new C("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C("]"),braceL:new C("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C("}"),parenL:new C("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C(")"),comma:new C(",",I),semi:new C(";",I),colon:new C(":",I),dot:new C("."),question:new C("?",I),questionDot:new C("?."),arrow:new C("=>",I),template:new C("template"),invalidTemplate:new C("invalidTemplate"),ellipsis:new C("...",I),backQuote:new C("`",D),dollarBraceL:new C("${",{beforeExpr:!0,startsExpr:!0}),eq:new C("=",{beforeExpr:!0,isAssign:!0}),assign:new C("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new C("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new C("**",{beforeExpr:!0}),coalesce:S("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",D),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",D),_super:O("super",D),_class:O("class",D),_extends:O("extends",I),_export:O("export"),_import:O("import",D),_null:O("null",D),_true:O("true",D),_false:O("false",D),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},P=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(P.source,"g");function K(o){return o===10||o===13||o===8232||o===8233}function Y(o,h,y){y===void 0&&(y=o.length);for(var v=h;v<y;v++){var L=o.charCodeAt(v);if(K(L))return v<y-1&&L===13&&o.charCodeAt(v+1)===10?v+2:v+1}return-1}var re=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,be=Object.prototype,oe=be.hasOwnProperty,ne=be.toString,Se=Object.hasOwn||(function(o,h){return oe.call(o,h)}),Ie=Array.isArray||(function(o){return ne.call(o)==="[object Array]"}),Oe=Object.create(null);function qe(o){return Oe[o]||(Oe[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function F(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var We=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ge=function(h,y){this.line=h,this.column=y};Ge.prototype.offset=function(h){return new Ge(this.line,this.column+h)};var H=function(h,y,v){this.start=y,this.end=v,h.sourceFile!==null&&(this.source=h.sourceFile)};function xt(o,h){for(var y=1,v=0;;){var L=Y(o,v,h);if(L<0)return new Ge(y,h-v);++y,v=L}}var Nt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ut=!1;function Ht(o){var h={};for(var y in Nt)h[y]=o&&Se(o,y)?o[y]:Nt[y];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!ut&&typeof console=="object"&&console.warn&&(ut=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
2
|
Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=11):h.ecmaVersion>=2015&&(h.ecmaVersion-=2009),h.allowReserved==null&&(h.allowReserved=h.ecmaVersion<5),(!o||o.allowHashBang==null)&&(h.allowHashBang=h.ecmaVersion>=14),Ie(h.onToken)){var v=h.onToken;h.onToken=function(L){return v.push(L)}}return Ie(h.onComment)&&(h.onComment=Vt(h,h.onComment)),h}function Vt(o,h){return function(y,v,L,$,J,ce){var ge={type:y?"Block":"Line",value:v,start:L,end:$};o.locations&&(ge.loc=new H(this,J,ce)),o.ranges&&(ge.range=[L,$]),h.push(ge)}}var yt=1,vt=2,_t=4,Nr=8,er=16,lr=32,cr=64,Qe=128,Pt=256,Bt=512,tr=yt|vt|Pt;function Jt(o,h){return vt|(o?_t:0)|(h?Nr:0)}var Ir=0,jr=1,It=2,et=3,Or=4,Z=5,te=function(h,y,v){this.options=h=Ht(h),this.sourceFile=h.sourceFile,this.keywords=qe(c[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var L="";h.allowReserved!==!0&&(L=u[h.ecmaVersion>=6?6:h.ecmaVersion===5?5:3],h.sourceType==="module"&&(L+=" await")),this.reservedWords=qe(L);var $=(L?L+" ":"")+u.strict;this.reservedWordsStrict=qe($),this.reservedWordsStrictBind=qe($+" "+u.strictBind),this.input=String(y),this.containsEsc=!1,v?(this.pos=v,this.lineStart=this.input.lastIndexOf(`
|
|
3
3
|
`,v-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(P).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(yt),this.regexpState=null,this.privateNameStack=[]},N={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};te.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},N.inFunction.get=function(){return(this.currentVarScope().flags&vt)>0},N.inGenerator.get=function(){return(this.currentVarScope().flags&Nr)>0},N.inAsync.get=function(){return(this.currentVarScope().flags&_t)>0},N.canAwait.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],y=h.flags;if(y&(Pt|Bt))return!1;if(y&vt)return(y&_t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},N.allowSuper.get=function(){var o=this.currentThisScope(),h=o.flags;return(h&cr)>0||this.options.allowSuperOutsideMethod},N.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Qe)>0},N.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},N.allowNewDotTarget.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],y=h.flags;if(y&(Pt|Bt)||y&vt&&!(y&er))return!0}return!1},N.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Pt)>0},te.extend=function(){for(var h=[],y=arguments.length;y--;)h[y]=arguments[y];for(var v=this,L=0;L<h.length;L++)v=h[L](v);return v},te.parse=function(h,y){return new this(y,h).parse()},te.parseExpressionAt=function(h,y,v){var L=new this(v,h,y);return L.nextToken(),L.parseExpression()},te.tokenizer=function(h,y){return new this(y,h)},Object.defineProperties(te.prototype,N);var Ce=te.prototype,it=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ce.strictDirective=function(o){if(this.options.ecmaVersion<5)return!1;for(;;){ee.lastIndex=o,o+=ee.exec(this.input)[0].length;var h=it.exec(this.input.slice(o));if(!h)return!1;if((h[1]||h[2])==="use strict"){ee.lastIndex=o+h[0].length;var y=ee.exec(this.input),v=y.index+y[0].length,L=this.input.charAt(v);return L===";"||L==="}"||P.test(y[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(L)||L==="!"&&this.input.charAt(v+1)==="=")}o+=h[0].length,ee.lastIndex=o,o+=ee.exec(this.input)[0].length,this.input[o]===";"&&o++}},Ce.eat=function(o){return this.type===o?(this.next(),!0):!1},Ce.isContextual=function(o){return this.type===g.name&&this.value===o&&!this.containsEsc},Ce.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},Ce.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||P.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()},Ce.afterTrailingComma=function(o,h){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},Ce.expect=function(o){this.eat(o)||this.unexpected()},Ce.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};var Ft=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ce.checkPatternErrors=function(o,h){if(o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var y=h?o.parenthesizedAssign:o.parenthesizedBind;y>-1&&this.raiseRecoverable(y,h?"Assigning to rvalue":"Parenthesized pattern")}},Ce.checkExpressionErrors=function(o,h){if(!o)return!1;var y=o.shorthandAssign,v=o.doubleProto;if(!h)return y>=0||v>=0;y>=0&&this.raise(y,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ye=te.prototype;ye.parseTopLevel=function(o){var h=Object.create(null);for(o.body||(o.body=[]);this.type!==g.eof;){var y=this.parseStatement(null,!0,h);o.body.push(y)}if(this.inModule)for(var v=0,L=Object.keys(this.undefinedExports);v<L.length;v+=1){var $=L[v];this.raiseRecoverable(this.undefinedExports[$].start,"Export '"+$+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var hr={kind:"loop"},an={kind:"switch"};ye.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ee.lastIndex=this.pos;var h=ee.exec(this.input),y=this.pos+h[0].length,v=this.input.charCodeAt(y);if(v===91||v===92)return!0;if(o)return!1;if(v===123||v>55295&&v<56320)return!0;if(T(v,!0)){for(var L=y+1;A(v=this.input.charCodeAt(L),!0);)++L;if(v===92||v>55295&&v<56320)return!0;var $=this.input.slice(y,L);if(!f.test($))return!0}return!1},ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ee.lastIndex=this.pos;var o=ee.exec(this.input),h=this.pos+o[0].length,y;return!P.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(A(y=this.input.charCodeAt(h+8))||y>55295&&y<56320))},ye.isUsingKeyword=function(o,h){if(this.options.ecmaVersion<17||!this.isContextual(o?"await":"using"))return!1;ee.lastIndex=this.pos;var y=ee.exec(this.input),v=this.pos+y[0].length;if(P.test(this.input.slice(this.pos,v)))return!1;if(o){var L=v+5,$;if(this.input.slice(v,L)!=="using"||L===this.input.length||A($=this.input.charCodeAt(L))||$>55295&&$<56320)return!1;ee.lastIndex=L;var J=ee.exec(this.input);if(J&&P.test(this.input.slice(L,L+J[0].length)))return!1}if(h){var ce=v+2,ge;if(this.input.slice(v,ce)==="of"&&(ce===this.input.length||!A(ge=this.input.charCodeAt(ce))&&!(ge>55295&&ge<56320)))return!1}var Fe=this.input.charCodeAt(v);return T(Fe,!0)||Fe===92},ye.isAwaitUsing=function(o){return this.isUsingKeyword(!0,o)},ye.isUsing=function(o){return this.isUsingKeyword(!1,o)},ye.parseStatement=function(o,h,y){var v=this.type,L=this.startNode(),$;switch(this.isLet(o)&&(v=g._var,$="let"),v){case g._break:case g._continue:return this.parseBreakContinueStatement(L,v.keyword);case g._debugger:return this.parseDebuggerStatement(L);case g._do:return this.parseDoStatement(L);case g._for:return this.parseForStatement(L);case g._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(L,!1,!o);case g._class:return o&&this.unexpected(),this.parseClass(L,!0);case g._if:return this.parseIfStatement(L);case g._return:return this.parseReturnStatement(L);case g._switch:return this.parseSwitchStatement(L);case g._throw:return this.parseThrowStatement(L);case g._try:return this.parseTryStatement(L);case g._const:case g._var:return $=$||this.value,o&&$!=="var"&&this.unexpected(),this.parseVarStatement(L,$);case g._while:return this.parseWhileStatement(L);case g._with:return this.parseWithStatement(L);case g.braceL:return this.parseBlock(!0,L);case g.semi:return this.parseEmptyStatement(L);case g._export:case g._import:if(this.options.ecmaVersion>10&&v===g._import){ee.lastIndex=this.pos;var J=ee.exec(this.input),ce=this.pos+J[0].length,ge=this.input.charCodeAt(ce);if(ge===40||ge===46)return this.parseExpressionStatement(L,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),v===g._import?this.parseImport(L):this.parseExport(L,y);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(L,!0,!o);var Fe=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Fe)return h&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),Fe==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(L,!1,Fe),this.semicolon(),this.finishNode(L,"VariableDeclaration");var Je=this.value,Tt=this.parseExpression();return v===g.name&&Tt.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(L,Je,Tt,o):this.parseExpressionStatement(L,Tt)}},ye.parseBreakContinueStatement=function(o,h){var y=h==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?o.label=null:this.type!==g.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var v=0;v<this.labels.length;++v){var L=this.labels[v];if((o.label==null||L.name===o.label.name)&&(L.kind!=null&&(y||L.kind==="loop")||o.label&&y))break}return v===this.labels.length&&this.raise(o.start,"Unsyntactic "+h),this.finishNode(o,y?"BreakStatement":"ContinueStatement")},ye.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ye.parseDoStatement=function(o){return this.next(),this.labels.push(hr),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ye.parseForStatement=function(o){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(hr),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return h>-1&&this.unexpected(h),this.parseFor(o,null);var y=this.isLet();if(this.type===g._var||this.type===g._const||y){var v=this.startNode(),L=y?"let":this.value;return this.next(),this.parseVar(v,!0,L),this.finishNode(v,"VariableDeclaration"),this.parseForAfterInit(o,v,h)}var $=this.isContextual("let"),J=!1,ce=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ce){var ge=this.startNode();return this.next(),ce==="await using"&&this.next(),this.parseVar(ge,!0,ce),this.finishNode(ge,"VariableDeclaration"),this.parseForAfterInit(o,ge,h)}var Fe=this.containsEsc,Je=new Ft,Tt=this.start,nr=h>-1?this.parseExprSubscripts(Je,"await"):this.parseExpression(!0,Je);return this.type===g._in||(J=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===g._in&&this.unexpected(h),o.await=!0):J&&this.options.ecmaVersion>=8&&(nr.start===Tt&&!Fe&&nr.type==="Identifier"&&nr.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(o.await=!1)),$&&J&&this.raise(nr.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(nr,!1,Je),this.checkLValPattern(nr),this.parseForIn(o,nr)):(this.checkExpressionErrors(Je,!0),h>-1&&this.unexpected(h),this.parseFor(o,nr))},ye.parseForAfterInit=function(o,h,y){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?y>-1&&this.unexpected(y):o.await=y>-1),this.parseForIn(o,h)):(y>-1&&this.unexpected(y),this.parseFor(o,h))},ye.parseFunctionStatement=function(o,h,y){return this.next(),this.parseFunction(o,Ut|(y?0:Ur),!1,h)},ye.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ye.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ye.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(g.braceL),this.labels.push(an),this.enterScope(0);for(var h,y=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var v=this.type===g._case;h&&this.finishNode(h,"SwitchCase"),o.cases.push(h=this.startNode()),h.consequent=[],this.next(),v?h.test=this.parseExpression():(y&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),y=!0,h.test=null),this.expect(g.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ye.parseThrowStatement=function(o){return this.next(),P.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var vn=[];ye.parseCatchClauseParam=function(){var o=this.parseBindingAtom(),h=o.type==="Identifier";return this.enterScope(h?lr:0),this.checkLValPattern(o,h?Or:It),this.expect(g.parenR),o},ye.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===g._catch){var h=this.startNode();this.next(),this.eat(g.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(h,"CatchClause")}return o.finalizer=this.eat(g._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ye.parseVarStatement=function(o,h,y){return this.next(),this.parseVar(o,!1,h,y),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ye.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(hr),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ye.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ye.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ye.parseLabeledStatement=function(o,h,y,v){for(var L=0,$=this.labels;L<$.length;L+=1){var J=$[L];J.name===h&&this.raise(y.start,"Label '"+h+"' is already declared")}for(var ce=this.type.isLoop?"loop":this.type===g._switch?"switch":null,ge=this.labels.length-1;ge>=0;ge--){var Fe=this.labels[ge];if(Fe.statementStart===o.start)Fe.statementStart=this.start,Fe.kind=ce;else break}return this.labels.push({name:h,kind:ce,statementStart:this.start}),o.body=this.parseStatement(v?v.indexOf("label")===-1?v+"label":v:"label"),this.labels.pop(),o.label=y,this.finishNode(o,"LabeledStatement")},ye.parseExpressionStatement=function(o,h){return o.expression=h,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ye.parseBlock=function(o,h,y){for(o===void 0&&(o=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(g.braceL),o&&this.enterScope(0);this.type!==g.braceR;){var v=this.parseStatement(null);h.body.push(v)}return y&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(h,"BlockStatement")},ye.parseFor=function(o,h){return o.init=h,this.expect(g.semi),o.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),o.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ye.parseForIn=function(o,h){var y=this.type===g._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!y||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(y?"for-in":"for-of")+" loop variable declaration may not have an initializer"),o.left=h,o.right=y?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,y?"ForInStatement":"ForOfStatement")},ye.parseVar=function(o,h,y,v){for(o.declarations=[],o.kind=y;;){var L=this.startNode();if(this.parseVarId(L,y),this.eat(g.eq)?L.init=this.parseMaybeAssign(h):!v&&y==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!v&&(y==="using"||y==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+y+" declaration"):!v&&L.id.type!=="Identifier"&&!(h&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):L.init=null,o.declarations.push(this.finishNode(L,"VariableDeclarator")),!this.eat(g.comma))break}return o},ye.parseVarId=function(o,h){o.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(o.id,h==="var"?jr:It,!1)};var Ut=1,Ur=2,rr=4;ye.parseFunction=function(o,h,y,v,L){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===g.star&&h&Ur&&this.unexpected(),o.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(o.async=!!v),h&Ut&&(o.id=h&rr&&this.type!==g.name?null:this.parseIdent(),o.id&&!(h&Ur)&&this.checkLValSimple(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?jr:It:et));var $=this.yieldPos,J=this.awaitPos,ce=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Jt(o.async,o.generator)),h&Ut||(o.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,y,!1,L),this.yieldPos=$,this.awaitPos=J,this.awaitIdentPos=ce,this.finishNode(o,h&Ut?"FunctionDeclaration":"FunctionExpression")},ye.parseFunctionParams=function(o){this.expect(g.parenL),o.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ye.parseClass=function(o,h){this.next();var y=this.strict;this.strict=!0,this.parseClassId(o,h),this.parseClassSuper(o);var v=this.enterClassBody(),L=this.startNode(),$=!1;for(L.body=[],this.expect(g.braceL);this.type!==g.braceR;){var J=this.parseClassElement(o.superClass!==null);J&&(L.body.push(J),J.type==="MethodDefinition"&&J.kind==="constructor"?($&&this.raiseRecoverable(J.start,"Duplicate constructor in the same class"),$=!0):J.key&&J.key.type==="PrivateIdentifier"&&Ja(v,J)&&this.raiseRecoverable(J.key.start,"Identifier '#"+J.key.name+"' has already been declared"))}return this.strict=y,this.next(),o.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(o,h?"ClassDeclaration":"ClassExpression")},ye.parseClassElement=function(o){if(this.eat(g.semi))return null;var h=this.options.ecmaVersion,y=this.startNode(),v="",L=!1,$=!1,J="method",ce=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(y),y;this.isClassElementNameStart()||this.type===g.star?ce=!0:v="static"}if(y.static=ce,!v&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?$=!0:v="async"),!v&&(h>=9||!$)&&this.eat(g.star)&&(L=!0),!v&&!$&&!L){var ge=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?J=ge:v=ge)}if(v?(y.computed=!1,y.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),y.key.name=v,this.finishNode(y.key,"Identifier")):this.parseClassElementName(y),h<13||this.type===g.parenL||J!=="method"||L||$){var Fe=!y.static&&ei(y,"constructor"),Je=Fe&&o;Fe&&J!=="method"&&this.raise(y.key.start,"Constructor can't have get/set modifier"),y.kind=Fe?"constructor":J,this.parseClassMethod(y,L,$,Je)}else this.parseClassField(y);return y},ye.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},ye.parseClassElementName=function(o){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),o.computed=!1,o.key=this.parsePrivateIdent()):this.parsePropertyName(o)},ye.parseClassMethod=function(o,h,y,v){var L=o.key;o.kind==="constructor"?(h&&this.raise(L.start,"Constructor can't be a generator"),y&&this.raise(L.start,"Constructor can't be an async method")):o.static&&ei(o,"prototype")&&this.raise(L.start,"Classes may not have a static property named prototype");var $=o.value=this.parseMethod(h,y,v);return o.kind==="get"&&$.params.length!==0&&this.raiseRecoverable($.start,"getter should have no params"),o.kind==="set"&&$.params.length!==1&&this.raiseRecoverable($.start,"setter should have exactly one param"),o.kind==="set"&&$.params[0].type==="RestElement"&&this.raiseRecoverable($.params[0].start,"Setter cannot use rest params"),this.finishNode(o,"MethodDefinition")},ye.parseClassField=function(o){return ei(o,"constructor")?this.raise(o.key.start,"Classes can't have a field named 'constructor'"):o.static&&ei(o,"prototype")&&this.raise(o.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(Bt|cr),o.value=this.parseMaybeAssign(),this.exitScope()):o.value=null,this.semicolon(),this.finishNode(o,"PropertyDefinition")},ye.parseClassStaticBlock=function(o){o.body=[];var h=this.labels;for(this.labels=[],this.enterScope(Pt|cr);this.type!==g.braceR;){var y=this.parseStatement(null);o.body.push(y)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(o,"StaticBlock")},ye.parseClassId=function(o,h){this.type===g.name?(o.id=this.parseIdent(),h&&this.checkLValSimple(o.id,It,!1)):(h===!0&&this.unexpected(),o.id=null)},ye.parseClassSuper=function(o){o.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},ye.enterClassBody=function(){var o={declared:Object.create(null),used:[]};return this.privateNameStack.push(o),o.declared},ye.exitClassBody=function(){var o=this.privateNameStack.pop(),h=o.declared,y=o.used;if(this.options.checkPrivateFields)for(var v=this.privateNameStack.length,L=v===0?null:this.privateNameStack[v-1],$=0;$<y.length;++$){var J=y[$];Se(h,J.name)||(L?L.used.push(J):this.raiseRecoverable(J.start,"Private field '#"+J.name+"' must be declared in an enclosing class"))}};function Ja(o,h){var y=h.key.name,v=o[y],L="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(L=(h.static?"s":"i")+h.kind),v==="iget"&&L==="iset"||v==="iset"&&L==="iget"||v==="sget"&&L==="sset"||v==="sset"&&L==="sget"?(o[y]="true",!1):v?!0:(o[y]=L,!1)}function ei(o,h){var y=o.computed,v=o.key;return!y&&(v.type==="Identifier"&&v.name===h||v.type==="Literal"&&v.value===h)}ye.parseExportAllDeclaration=function(o,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseModuleExportName(),this.checkExport(h,o.exported,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ExportAllDeclaration")},ye.parseExport=function(o,h){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(o,h);if(this.eat(g._default))return this.checkExport(h,"default",this.lastTokStart),o.declaration=this.parseExportDefaultDeclaration(),this.finishNode(o,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())o.declaration=this.parseExportDeclaration(o),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,o.declaration.declarations):this.checkExport(h,o.declaration.id,o.declaration.id.start),o.specifiers=[],o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[]);else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause());else{for(var y=0,v=o.specifiers;y<v.length;y+=1){var L=v[y];this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal"&&this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.")}o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[])}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ye.parseExportDeclaration=function(o){return this.parseStatement(null)},ye.parseExportDefaultDeclaration=function(){var o;if(this.type===g._function||(o=this.isAsyncFunction())){var h=this.startNode();return this.next(),o&&this.next(),this.parseFunction(h,Ut|rr,!1,o)}else if(this.type===g._class){var y=this.startNode();return this.parseClass(y,"nullableID")}else{var v=this.parseMaybeAssign();return this.semicolon(),v}},ye.checkExport=function(o,h,y){o&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),Se(o,h)&&this.raiseRecoverable(y,"Duplicate export '"+h+"'"),o[h]=!0)},ye.checkPatternExport=function(o,h){var y=h.type;if(y==="Identifier")this.checkExport(o,h,h.start);else if(y==="ObjectPattern")for(var v=0,L=h.properties;v<L.length;v+=1){var $=L[v];this.checkPatternExport(o,$)}else if(y==="ArrayPattern")for(var J=0,ce=h.elements;J<ce.length;J+=1){var ge=ce[J];ge&&this.checkPatternExport(o,ge)}else y==="Property"?this.checkPatternExport(o,h.value):y==="AssignmentPattern"?this.checkPatternExport(o,h.left):y==="RestElement"&&this.checkPatternExport(o,h.argument)},ye.checkVariableExport=function(o,h){if(o)for(var y=0,v=h;y<v.length;y+=1){var L=v[y];this.checkPatternExport(o,L.id)}},ye.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ye.parseExportSpecifier=function(o){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(o,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},ye.parseExportSpecifiers=function(o){var h=[],y=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(y)y=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;h.push(this.parseExportSpecifier(o))}return h},ye.parseImport=function(o){return this.next(),this.type===g.string?(o.specifiers=vn,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ye.parseImportSpecifier=function(){var o=this.startNode();return o.imported=this.parseModuleExportName(),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportSpecifier")},ye.parseImportDefaultSpecifier=function(){var o=this.startNode();return o.local=this.parseIdent(),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportDefaultSpecifier")},ye.parseImportNamespaceSpecifier=function(){var o=this.startNode();return this.next(),this.expectContextual("as"),o.local=this.parseIdent(),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportNamespaceSpecifier")},ye.parseImportSpecifiers=function(){var o=[],h=!0;if(this.type===g.name&&(o.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return o;if(this.type===g.star)return o.push(this.parseImportNamespaceSpecifier()),o;for(this.expect(g.braceL);!this.eat(g.braceR);){if(h)h=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;o.push(this.parseImportSpecifier())}return o},ye.parseWithClause=function(){var o=[];if(!this.eat(g._with))return o;this.expect(g.braceL);for(var h={},y=!0;!this.eat(g.braceR);){if(y)y=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var v=this.parseImportAttribute(),L=v.key.type==="Identifier"?v.key.name:v.key.value;Se(h,L)&&this.raiseRecoverable(v.key.start,"Duplicate attribute key '"+L+"'"),h[L]=!0,o.push(v)}return o},ye.parseImportAttribute=function(){var o=this.startNode();return o.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),o.value=this.parseExprAtom(),this.finishNode(o,"ImportAttribute")},ye.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var o=this.parseLiteral(this.value);return We.test(o.value)&&this.raise(o.start,"An export name cannot include a lone surrogate."),o}return this.parseIdent(!0)},ye.adaptDirectivePrologue=function(o){for(var h=0;h<o.length&&this.isDirectiveCandidate(o[h]);++h)o[h].directive=o[h].expression.raw.slice(1,-1)},ye.isDirectiveCandidate=function(o){return this.options.ecmaVersion>=5&&o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var vr=te.prototype;vr.toAssignable=function(o,h,y){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",y&&this.checkPatternErrors(y,!0);for(var v=0,L=o.properties;v<L.length;v+=1){var $=L[v];this.toAssignable($,h),$.type==="RestElement"&&($.argument.type==="ArrayPattern"||$.argument.type==="ObjectPattern")&&this.raise($.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,h);break;case"ArrayExpression":o.type="ArrayPattern",y&&this.checkPatternErrors(y,!0),this.toAssignableList(o.elements,h);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,h),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,h);break;case"ParenthesizedExpression":this.toAssignable(o.expression,h,y);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(o.start,"Assigning to rvalue")}else y&&this.checkPatternErrors(y,!0);return o},vr.toAssignableList=function(o,h){for(var y=o.length,v=0;v<y;v++){var L=o[v];L&&this.toAssignable(L,h)}if(y){var $=o[y-1];this.options.ecmaVersion===6&&h&&$&&$.type==="RestElement"&&$.argument.type!=="Identifier"&&this.unexpected($.argument.start)}return o},vr.parseSpread=function(o){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,o),this.finishNode(h,"SpreadElement")},vr.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},vr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},vr.parseBindingList=function(o,h,y,v){for(var L=[],$=!0;!this.eat(o);)if($?$=!1:this.expect(g.comma),h&&this.type===g.comma)L.push(null);else{if(y&&this.afterTrailingComma(o))break;if(this.type===g.ellipsis){var J=this.parseRestBinding();this.parseBindingListItem(J),L.push(J),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else L.push(this.parseAssignableListItem(v))}return L},vr.parseAssignableListItem=function(o){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},vr.parseBindingListItem=function(o){return o},vr.parseMaybeDefault=function(o,h,y){if(y=y||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return y;var v=this.startNodeAt(o,h);return v.left=y,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},vr.checkLValSimple=function(o,h,y){h===void 0&&(h=Ir);var v=h!==Ir;switch(o.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(v?"Binding ":"Assigning to ")+o.name+" in strict mode"),v&&(h===It&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),y&&(Se(y,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),y[o.name]=!0),h!==Z&&this.declareName(o.name,h,o.start));break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":v&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ParenthesizedExpression":return v&&this.raiseRecoverable(o.start,"Binding parenthesized expression"),this.checkLValSimple(o.expression,h,y);default:this.raise(o.start,(v?"Binding":"Assigning to")+" rvalue")}},vr.checkLValPattern=function(o,h,y){switch(h===void 0&&(h=Ir),o.type){case"ObjectPattern":for(var v=0,L=o.properties;v<L.length;v+=1){var $=L[v];this.checkLValInnerPattern($,h,y)}break;case"ArrayPattern":for(var J=0,ce=o.elements;J<ce.length;J+=1){var ge=ce[J];ge&&this.checkLValInnerPattern(ge,h,y)}break;default:this.checkLValSimple(o,h,y)}},vr.checkLValInnerPattern=function(o,h,y){switch(h===void 0&&(h=Ir),o.type){case"Property":this.checkLValInnerPattern(o.value,h,y);break;case"AssignmentPattern":this.checkLValPattern(o.left,h,y);break;case"RestElement":this.checkLValPattern(o.argument,h,y);break;default:this.checkLValPattern(o,h,y)}};var fr=function(h,y,v,L,$){this.token=h,this.isExpr=!!y,this.preserveSpace=!!v,this.override=L,this.generator=!!$},ot={b_stat:new fr("{",!1),b_expr:new fr("{",!0),b_tmpl:new fr("${",!1),p_stat:new fr("(",!1),p_expr:new fr("(",!0),q_tmpl:new fr("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new fr("function",!1),f_expr:new fr("function",!0),f_expr_gen:new fr("function",!0,!1,null,!0),f_gen:new fr("function",!1,!1,null,!0)},V=te.prototype;V.initialContext=function(){return[ot.b_stat]},V.curContext=function(){return this.context[this.context.length-1]},V.braceIsBlock=function(o){var h=this.curContext();return h===ot.f_expr||h===ot.f_stat?!0:o===g.colon&&(h===ot.b_stat||h===ot.b_expr)?!h.isExpr:o===g._return||o===g.name&&this.exprAllowed?P.test(this.input.slice(this.lastTokEnd,this.start)):o===g._else||o===g.semi||o===g.eof||o===g.parenR||o===g.arrow?!0:o===g.braceL?h===ot.b_stat:o===g._var||o===g._const||o===g.name?!1:!this.exprAllowed},V.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var h=this.context[o];if(h.token==="function")return h.generator}return!1},V.updateContext=function(o){var h,y=this.type;y.keyword&&o===g.dot?this.exprAllowed=!1:(h=y.updateContext)?h.call(this,o):this.exprAllowed=y.beforeExpr},V.overrideContext=function(o){this.curContext()!==o&&(this.context[this.context.length-1]=o)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===ot.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},g.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?ot.b_stat:ot.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(ot.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(o){var h=o===g._if||o===g._for||o===g._with||o===g._while;this.context.push(h?ot.p_stat:ot.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(o){o.beforeExpr&&o!==g._else&&!(o===g.semi&&this.curContext()!==ot.p_stat)&&!(o===g._return&&P.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===g.colon||o===g.braceL)&&this.curContext()===ot.b_stat)?this.context.push(ot.f_expr):this.context.push(ot.f_stat),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===ot.q_tmpl?this.context.pop():this.context.push(ot.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(o){if(o===g._function){var h=this.context.length-1;this.context[h]===ot.f_expr?this.context[h]=ot.f_expr_gen:this.context[h]=ot.f_gen}this.exprAllowed=!0},g.name.updateContext=function(o){var h=!1;this.options.ecmaVersion>=6&&o!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var j=te.prototype;j.checkPropClash=function(o,h,y){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var v=o.key,L;switch(v.type){case"Identifier":L=v.name;break;case"Literal":L=String(v.value);break;default:return}var $=o.kind;if(this.options.ecmaVersion>=6){L==="__proto__"&&$==="init"&&(h.proto&&(y?y.doubleProto<0&&(y.doubleProto=v.start):this.raiseRecoverable(v.start,"Redefinition of __proto__ property")),h.proto=!0);return}L="$"+L;var J=h[L];if(J){var ce;$==="init"?ce=this.strict&&J.init||J.get||J.set:ce=J.init||J[$],ce&&this.raiseRecoverable(v.start,"Redefinition of property")}else J=h[L]={init:!1,get:!1,set:!1};J[$]=!0}},j.parseExpression=function(o,h){var y=this.start,v=this.startLoc,L=this.parseMaybeAssign(o,h);if(this.type===g.comma){var $=this.startNodeAt(y,v);for($.expressions=[L];this.eat(g.comma);)$.expressions.push(this.parseMaybeAssign(o,h));return this.finishNode($,"SequenceExpression")}return L},j.parseMaybeAssign=function(o,h,y){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var v=!1,L=-1,$=-1,J=-1;h?(L=h.parenthesizedAssign,$=h.trailingComma,J=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new Ft,v=!0);var ce=this.start,ge=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=o==="await");var Fe=this.parseMaybeConditional(o,h);if(y&&(Fe=y.call(this,Fe,ce,ge)),this.type.isAssign){var Je=this.startNodeAt(ce,ge);return Je.operator=this.value,this.type===g.eq&&(Fe=this.toAssignable(Fe,!1,h)),v||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=Fe.start&&(h.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(Fe):this.checkLValSimple(Fe),Je.left=Fe,this.next(),Je.right=this.parseMaybeAssign(o),J>-1&&(h.doubleProto=J),this.finishNode(Je,"AssignmentExpression")}else v&&this.checkExpressionErrors(h,!0);return L>-1&&(h.parenthesizedAssign=L),$>-1&&(h.trailingComma=$),Fe},j.parseMaybeConditional=function(o,h){var y=this.start,v=this.startLoc,L=this.parseExprOps(o,h);if(this.checkExpressionErrors(h))return L;if(this.eat(g.question)){var $=this.startNodeAt(y,v);return $.test=L,$.consequent=this.parseMaybeAssign(),this.expect(g.colon),$.alternate=this.parseMaybeAssign(o),this.finishNode($,"ConditionalExpression")}return L},j.parseExprOps=function(o,h){var y=this.start,v=this.startLoc,L=this.parseMaybeUnary(h,!1,!1,o);return this.checkExpressionErrors(h)||L.start===y&&L.type==="ArrowFunctionExpression"?L:this.parseExprOp(L,y,v,-1,o)},j.parseExprOp=function(o,h,y,v,L){var $=this.type.binop;if($!=null&&(!L||this.type!==g._in)&&$>v){var J=this.type===g.logicalOR||this.type===g.logicalAND,ce=this.type===g.coalesce;ce&&($=g.logicalAND.binop);var ge=this.value;this.next();var Fe=this.start,Je=this.startLoc,Tt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,L),Fe,Je,$,L),nr=this.buildBinary(h,y,o,Tt,ge,J||ce);return(J&&this.type===g.coalesce||ce&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nr,h,y,v,L)}return o},j.buildBinary=function(o,h,y,v,L,$){v.type==="PrivateIdentifier"&&this.raise(v.start,"Private identifier can only be left side of binary expression");var J=this.startNodeAt(o,h);return J.left=y,J.operator=L,J.right=v,this.finishNode(J,$?"LogicalExpression":"BinaryExpression")},j.parseMaybeUnary=function(o,h,y,v){var L=this.start,$=this.startLoc,J;if(this.isContextual("await")&&this.canAwait)J=this.parseAwait(v),h=!0;else if(this.type.prefix){var ce=this.startNode(),ge=this.type===g.incDec;ce.operator=this.value,ce.prefix=!0,this.next(),ce.argument=this.parseMaybeUnary(null,!0,ge,v),this.checkExpressionErrors(o,!0),ge?this.checkLValSimple(ce.argument):this.strict&&ce.operator==="delete"&&xe(ce.argument)?this.raiseRecoverable(ce.start,"Deleting local variable in strict mode"):ce.operator==="delete"&&Pe(ce.argument)?this.raiseRecoverable(ce.start,"Private fields can not be deleted"):h=!0,J=this.finishNode(ce,ge?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===g.privateId)(v||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),J=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(J=this.parseExprSubscripts(o,v),this.checkExpressionErrors(o))return J;for(;this.type.postfix&&!this.canInsertSemicolon();){var Fe=this.startNodeAt(L,$);Fe.operator=this.value,Fe.prefix=!1,Fe.argument=J,this.checkLValSimple(J),this.next(),J=this.finishNode(Fe,"UpdateExpression")}}if(!y&&this.eat(g.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(L,$,J,this.parseMaybeUnary(null,!1,!1,v),"**",!1);else return J};function xe(o){return o.type==="Identifier"||o.type==="ParenthesizedExpression"&&xe(o.expression)}function Pe(o){return o.type==="MemberExpression"&&o.property.type==="PrivateIdentifier"||o.type==="ChainExpression"&&Pe(o.expression)||o.type==="ParenthesizedExpression"&&Pe(o.expression)}j.parseExprSubscripts=function(o,h){var y=this.start,v=this.startLoc,L=this.parseExprAtom(o,h);if(L.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return L;var $=this.parseSubscripts(L,y,v,!1,h);return o&&$.type==="MemberExpression"&&(o.parenthesizedAssign>=$.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=$.start&&(o.parenthesizedBind=-1),o.trailingComma>=$.start&&(o.trailingComma=-1)),$},j.parseSubscripts=function(o,h,y,v,L){for(var $=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.potentialArrowAt===o.start,J=!1;;){var ce=this.parseSubscript(o,h,y,v,$,J,L);if(ce.optional&&(J=!0),ce===o||ce.type==="ArrowFunctionExpression"){if(J){var ge=this.startNodeAt(h,y);ge.expression=ce,ce=this.finishNode(ge,"ChainExpression")}return ce}o=ce}},j.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},j.parseSubscriptAsyncArrow=function(o,h,y,v){return this.parseArrowExpression(this.startNodeAt(o,h),y,!0,v)},j.parseSubscript=function(o,h,y,v,L,$,J){var ce=this.options.ecmaVersion>=11,ge=ce&&this.eat(g.questionDot);v&&ge&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Fe=this.eat(g.bracketL);if(Fe||ge&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var Je=this.startNodeAt(h,y);Je.object=o,Fe?(Je.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&o.type!=="Super"?Je.property=this.parsePrivateIdent():Je.property=this.parseIdent(this.options.allowReserved!=="never"),Je.computed=!!Fe,ce&&(Je.optional=ge),o=this.finishNode(Je,"MemberExpression")}else if(!v&&this.eat(g.parenL)){var Tt=new Ft,nr=this.yieldPos,la=this.awaitPos,Si=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var us=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,Tt);if(L&&!ge&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Tt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=nr,this.awaitPos=la,this.awaitIdentPos=Si,this.parseSubscriptAsyncArrow(h,y,us,J);this.checkExpressionErrors(Tt,!0),this.yieldPos=nr||this.yieldPos,this.awaitPos=la||this.awaitPos,this.awaitIdentPos=Si||this.awaitIdentPos;var wi=this.startNodeAt(h,y);wi.callee=o,wi.arguments=us,ce&&(wi.optional=ge),o=this.finishNode(wi,"CallExpression")}else if(this.type===g.backQuote){(ge||$)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ki=this.startNodeAt(h,y);ki.tag=o,ki.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(ki,"TaggedTemplateExpression")}return o},j.parseExprAtom=function(o,h,y){this.type===g.slash&&this.readRegexp();var v,L=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),v=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(v.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(v,"Super");case g._this:return v=this.startNode(),this.next(),this.finishNode(v,"ThisExpression");case g.name:var $=this.start,J=this.startLoc,ce=this.containsEsc,ge=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ce&&ge.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(ot.f_expr),this.parseFunction(this.startNodeAt($,J),0,!1,!0,h);if(L&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt($,J),[ge],!1,h);if(this.options.ecmaVersion>=8&&ge.name==="async"&&this.type===g.name&&!ce&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ge=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt($,J),[ge],!0,h)}return ge;case g.regexp:var Fe=this.value;return v=this.parseLiteral(Fe.value),v.regex={pattern:Fe.pattern,flags:Fe.flags},v;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return v=this.startNode(),v.value=this.type===g._null?null:this.type===g._true,v.raw=this.type.keyword,this.next(),this.finishNode(v,"Literal");case g.parenL:var Je=this.start,Tt=this.parseParenAndDistinguishExpression(L,h);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Tt)&&(o.parenthesizedAssign=Je),o.parenthesizedBind<0&&(o.parenthesizedBind=Je)),Tt;case g.bracketL:return v=this.startNode(),this.next(),v.elements=this.parseExprList(g.bracketR,!0,!0,o),this.finishNode(v,"ArrayExpression");case g.braceL:return this.overrideContext(ot.b_expr),this.parseObj(!1,o);case g._function:return v=this.startNode(),this.next(),this.parseFunction(v,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(y):this.unexpected();default:return this.parseExprAtomDefault()}},j.parseExprAtomDefault=function(){this.unexpected()},j.parseExprImport=function(o){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!o)return this.parseDynamicImport(h);if(this.type===g.dot){var y=this.startNodeAt(h.start,h.loc&&h.loc.start);return y.name="import",h.meta=this.finishNode(y,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},j.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?o.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?o.options=null:(o.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var h=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(o,"ImportExpression")},j.parseImportMeta=function(o){this.next();var h=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},j.parseLiteral=function(o){var h=this.startNode();return h.value=o,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},j.parseParenExpression=function(){this.expect(g.parenL);var o=this.parseExpression();return this.expect(g.parenR),o},j.shouldParseArrow=function(o){return!this.canInsertSemicolon()},j.parseParenAndDistinguishExpression=function(o,h){var y=this.start,v=this.startLoc,L,$=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var J=this.start,ce=this.startLoc,ge=[],Fe=!0,Je=!1,Tt=new Ft,nr=this.yieldPos,la=this.awaitPos,Si;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(Fe?Fe=!1:this.expect(g.comma),$&&this.afterTrailingComma(g.parenR,!0)){Je=!0;break}else if(this.type===g.ellipsis){Si=this.start,ge.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ge.push(this.parseMaybeAssign(!1,Tt,this.parseParenItem));var us=this.lastTokEnd,wi=this.lastTokEndLoc;if(this.expect(g.parenR),o&&this.shouldParseArrow(ge)&&this.eat(g.arrow))return this.checkPatternErrors(Tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nr,this.awaitPos=la,this.parseParenArrowList(y,v,ge,h);(!ge.length||Je)&&this.unexpected(this.lastTokStart),Si&&this.unexpected(Si),this.checkExpressionErrors(Tt,!0),this.yieldPos=nr||this.yieldPos,this.awaitPos=la||this.awaitPos,ge.length>1?(L=this.startNodeAt(J,ce),L.expressions=ge,this.finishNodeAt(L,"SequenceExpression",us,wi)):L=ge[0]}else L=this.parseParenExpression();if(this.options.preserveParens){var ki=this.startNodeAt(y,v);return ki.expression=L,this.finishNode(ki,"ParenthesizedExpression")}else return L},j.parseParenItem=function(o){return o},j.parseParenArrowList=function(o,h,y,v){return this.parseArrowExpression(this.startNodeAt(o,h),y,!1,v)};var Ot=[];j.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var h=this.startNodeAt(o.start,o.loc&&o.loc.start);h.name="new",o.meta=this.finishNode(h,"Identifier"),this.next();var y=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),y&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(o.start,"'new.target' can only be used in functions and class static block"),this.finishNode(o,"MetaProperty")}var v=this.start,L=this.startLoc;return o.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),v,L,!0,!1),this.eat(g.parenL)?o.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):o.arguments=Ot,this.finishNode(o,"NewExpression")},j.parseTemplateElement=function(o){var h=o.isTagged,y=this.startNode();return this.type===g.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),y.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
4
|
`),cooked:null}):y.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -324,4 +324,4 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
324
324
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,s,u,l){const c=a.value||"",f=u.createTracker(l),d="$".repeat(Math.max(H1(c,"$")+1,2)),x=u.enter("mathFlow");let b=f.move(d);if(a.meta){const T=u.enter("mathFlowMeta");b+=f.move(u.safe(a.meta,{after:`
|
|
325
325
|
`,before:b,encode:["$"],...f.current()})),T()}return b+=f.move(`
|
|
326
326
|
`),c&&(b+=f.move(c+`
|
|
327
|
-
`)),b+=f.move(d),x(),b}function n(a,s,u){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const f="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<u.unsafe.length;){const x=u.unsafe[d];if(!x.atBreak)continue;const b=u.compilePattern(x);let T;for(;T=b.exec(l);){let A=T.index;l.codePointAt(A)===10&&l.codePointAt(A-1)===13&&A--,l=l.slice(0,A)+" "+l.slice(T.index+1)}}return f+l+f}function i(){return"$"}}const a_={tokenize:s_,concrete:!0,name:"mathFlow"},Yh={tokenize:o_,partial:!0};function s_(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return u;function u(I){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(I)}function l(I){return I===36?(e.consume(I),s++,l):s<2?r(I):(e.exit("mathFlowFenceSequence"),Xe(e,c,"whitespace")(I))}function c(I){return I===null||_e(I)?d(I):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(I))}function f(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(I)):I===36?r(I):(e.consume(I),f)}function d(I){return e.exit("mathFlowFence"),n.interrupt?t(I):e.attempt(Yh,x,C)(I)}function x(I){return e.attempt({tokenize:S,partial:!0},C,b)(I)}function b(I){return(a?Xe(e,T,"linePrefix",a+1):T)(I)}function T(I){return I===null?C(I):_e(I)?e.attempt(Yh,x,C)(I):(e.enter("mathFlowValue"),A(I))}function A(I){return I===null||_e(I)?(e.exit("mathFlowValue"),T(I)):(e.consume(I),A)}function C(I){return e.exit("mathFlow"),t(I)}function S(I,D,q){let O=0;return Xe(I,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function g(K){return I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(K)}function P(K){return K===36?(O++,I.consume(K),P):O<s?q(K):(I.exit("mathFlowFenceSequence"),Xe(I,G,"whitespace")(K))}function G(K){return K===null||_e(K)?(I.exit("mathFlowFence"),D(K)):q(K)}}}function o_(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function u_(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:l_,previous:c_,name:"mathText"};function n(i,a,s){let u=0,l,c;return f;function f(A){return i.enter("mathText"),i.enter("mathTextSequence"),d(A)}function d(A){return A===36?(i.consume(A),u++,d):u<2&&!r?s(A):(i.exit("mathTextSequence"),x(A))}function x(A){return A===null?s(A):A===36?(c=i.enter("mathTextSequence"),l=0,T(A)):A===32?(i.enter("space"),i.consume(A),i.exit("space"),x):_e(A)?(i.enter("lineEnding"),i.consume(A),i.exit("lineEnding"),x):(i.enter("mathTextData"),b(A))}function b(A){return A===null||A===32||A===36||_e(A)?(i.exit("mathTextData"),x(A)):(i.consume(A),b)}function T(A){return A===36?(i.consume(A),l++,T):l===u?(i.exit("mathTextSequence"),i.exit("mathText"),a(A)):(c.type="mathTextData",b(A))}}}function l_(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function c_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function h_(e){return{flow:{36:a_},text:{36:u_(e)}}}const f_={};function M_(e){const t=this,r=e||f_,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(h_(r)),a.push(n_()),s.push(i_(r))}const d_=new Set(["h1","h2","h3","h4","h5","h6"]),p_="barkdown-section";function Wh(e){const t=/^h([1-6])$/.exec(e);return t?Number.parseInt(t[1],10):null}function m_(e){return e.type==="element"}function $h(e){return m_(e)&&d_.has(e.tagName)}function om(e){return e.type==="text"?e.value:e.children.map(t=>om(t)).join("")}function g_(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}class b_{seen=new Map;id(t){const r=g_(t)||"section",n=this.seen.get(r)??0;return this.seen.set(r,n+1),n===0?r:`${r}-${n}`}}function x_(e,t){const r=e.properties?.className,n=["barkdown-heading-wrapper"];return Array.isArray(r)?n.push(...r):typeof r=="string"&&r.length>0&&n.push(r),{...e,properties:{...e.properties,id:t,className:n}}}function um(e,t,r){const n=[];let i=0;for(;i<e.length;){const a=e[i];if(i++,!a||!$h(a)){a&&n.push(a);continue}const s=Wh(a.tagName);if(s===null||s<=t){n.push(a);continue}const u=r.id(om(a)),l=x_(a,u),c=[];for(;i<e.length;){const f=e[i];if(f&&$h(f)){const d=Wh(f.tagName);if(d!==null&&d<=s)break}f&&c.push(f),i++}n.push({type:"element",tagName:p_,properties:{},children:[l,...um(c,s,r)]})}return n}function D_(){return e=>{const t=new b_;e.children=um(e.children,0,t)}}const E_=new Set(["h1","h2","h3","h4","h5","h6"]);function lm(e){if(e.type==="element"){E_.has(e.tagName)&&e.position?.start?.line&&(e.properties.dataBarkdownLine=String(e.position.start.line));for(const t of e.children)lm(t)}}function P_(){return e=>{for(const t of e.children)lm(t)}}export{p_ as C,w_ as M,Kh as V,Lm as a,__ as b,S_ as c,Z3 as d,A_ as e,T_ as f,eo as g,
|
|
327
|
+
`)),b+=f.move(d),x(),b}function n(a,s,u){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const f="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<u.unsafe.length;){const x=u.unsafe[d];if(!x.atBreak)continue;const b=u.compilePattern(x);let T;for(;T=b.exec(l);){let A=T.index;l.codePointAt(A)===10&&l.codePointAt(A-1)===13&&A--,l=l.slice(0,A)+" "+l.slice(T.index+1)}}return f+l+f}function i(){return"$"}}const a_={tokenize:s_,concrete:!0,name:"mathFlow"},Yh={tokenize:o_,partial:!0};function s_(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return u;function u(I){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(I)}function l(I){return I===36?(e.consume(I),s++,l):s<2?r(I):(e.exit("mathFlowFenceSequence"),Xe(e,c,"whitespace")(I))}function c(I){return I===null||_e(I)?d(I):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(I))}function f(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(I)):I===36?r(I):(e.consume(I),f)}function d(I){return e.exit("mathFlowFence"),n.interrupt?t(I):e.attempt(Yh,x,C)(I)}function x(I){return e.attempt({tokenize:S,partial:!0},C,b)(I)}function b(I){return(a?Xe(e,T,"linePrefix",a+1):T)(I)}function T(I){return I===null?C(I):_e(I)?e.attempt(Yh,x,C)(I):(e.enter("mathFlowValue"),A(I))}function A(I){return I===null||_e(I)?(e.exit("mathFlowValue"),T(I)):(e.consume(I),A)}function C(I){return e.exit("mathFlow"),t(I)}function S(I,D,q){let O=0;return Xe(I,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function g(K){return I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(K)}function P(K){return K===36?(O++,I.consume(K),P):O<s?q(K):(I.exit("mathFlowFenceSequence"),Xe(I,G,"whitespace")(K))}function G(K){return K===null||_e(K)?(I.exit("mathFlowFence"),D(K)):q(K)}}}function o_(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function u_(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:l_,previous:c_,name:"mathText"};function n(i,a,s){let u=0,l,c;return f;function f(A){return i.enter("mathText"),i.enter("mathTextSequence"),d(A)}function d(A){return A===36?(i.consume(A),u++,d):u<2&&!r?s(A):(i.exit("mathTextSequence"),x(A))}function x(A){return A===null?s(A):A===36?(c=i.enter("mathTextSequence"),l=0,T(A)):A===32?(i.enter("space"),i.consume(A),i.exit("space"),x):_e(A)?(i.enter("lineEnding"),i.consume(A),i.exit("lineEnding"),x):(i.enter("mathTextData"),b(A))}function b(A){return A===null||A===32||A===36||_e(A)?(i.exit("mathTextData"),x(A)):(i.consume(A),b)}function T(A){return A===36?(i.consume(A),l++,T):l===u?(i.exit("mathTextSequence"),i.exit("mathText"),a(A)):(c.type="mathTextData",b(A))}}}function l_(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function c_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function h_(e){return{flow:{36:a_},text:{36:u_(e)}}}const f_={};function M_(e){const t=this,r=e||f_,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(h_(r)),a.push(n_()),s.push(i_(r))}const d_=new Set(["h1","h2","h3","h4","h5","h6"]),p_="barkdown-section";function Wh(e){const t=/^h([1-6])$/.exec(e);return t?Number.parseInt(t[1],10):null}function m_(e){return e.type==="element"}function $h(e){return m_(e)&&d_.has(e.tagName)}function om(e){return e.type==="text"?e.value:e.children.map(t=>om(t)).join("")}function g_(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}class b_{seen=new Map;id(t){const r=g_(t)||"section",n=this.seen.get(r)??0;return this.seen.set(r,n+1),n===0?r:`${r}-${n}`}}function x_(e,t){const r=e.properties?.className,n=["barkdown-heading-wrapper"];return Array.isArray(r)?n.push(...r):typeof r=="string"&&r.length>0&&n.push(r),{...e,properties:{...e.properties,id:t,className:n}}}function um(e,t,r){const n=[];let i=0;for(;i<e.length;){const a=e[i];if(i++,!a||!$h(a)){a&&n.push(a);continue}const s=Wh(a.tagName);if(s===null||s<=t){n.push(a);continue}const u=r.id(om(a)),l=x_(a,u),c=[];for(;i<e.length;){const f=e[i];if(f&&$h(f)){const d=Wh(f.tagName);if(d!==null&&d<=s)break}f&&c.push(f),i++}n.push({type:"element",tagName:p_,properties:{},children:[l,...um(c,s,r)]})}return n}function D_(){return e=>{const t=new b_;e.children=um(e.children,0,t)}}const E_=new Set(["h1","h2","h3","h4","h5","h6"]);function lm(e){if(e.type==="element"){E_.has(e.tagName)&&e.position?.start?.line&&(e.properties.dataBarkdownLine=String(e.position.start.line));for(const t of e.children)lm(t)}}function P_(){return e=>{for(const t of e.children)lm(t)}}export{p_ as C,w_ as M,Kh as V,Lm as a,__ as b,S_ as c,Z3 as d,A_ as e,T_ as f,eo as g,Ph as h,I_ as i,O_ as j,k_ as k,N_ as l,P_ as m,va as n,v_ as o,ks as p,D_ as q,s3 as r,wn as s,R_ as t,s6 as u,L_ as v,Cm as w,M_ as x,C_ as y};
|