@malloy-publisher/server 0.0.106 → 0.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/api-doc.yaml +133 -0
- package/dist/app/assets/Chip-DGhbYY0q.js +1 -0
- package/dist/app/assets/Container-B0KHzXKt.js +1 -0
- package/dist/app/assets/DialogTitle-DR48y6tE.js +1 -0
- package/dist/app/assets/Edit-DALFdGEc.js +1 -0
- package/dist/app/assets/FormControlContext-BRoFhJft.js +1 -0
- package/dist/app/assets/HomePage-D_nRraEL.js +3 -0
- package/dist/app/assets/MainPage-B4hVmqCL.js +1 -0
- package/dist/app/assets/MenuItem-_baoLhUG.js +1 -0
- package/dist/app/assets/Modal-BXBDnsg2.js +1 -0
- package/dist/app/assets/ModelPage-BKTJdSxS.js +2 -0
- package/dist/app/assets/MoreVert-CShGo3pe.js +1 -0
- package/dist/app/assets/PackagePage-z3SwXvJf.js +2 -0
- package/dist/app/assets/ProjectPage-jU6PqHcz.js +1 -0
- package/dist/app/assets/RouteError-xhztAFCv.js +1 -0
- package/dist/app/assets/WorkbookPage-BFAQAKC6.js +6 -0
- package/dist/app/assets/index-Bzmq4WOt.js +676 -0
- package/dist/app/assets/index-DIS-Myin.js +420 -0
- package/dist/app/assets/{index-CvbMKVwx.js → index-DoB7q17I.js} +7 -7
- package/dist/app/assets/index.es20-BPDKJ1mC.js +1 -0
- package/dist/app/assets/index.es23-CGcuw-pl.js +2 -0
- package/dist/app/assets/{index.es231-02O061a5.js → index.es297-CXXkvqrk.js} +1 -1
- package/dist/app/assets/{index.es232-DOZR37hD.js → index.es298-Clb9Gx4p.js} +1 -1
- package/dist/app/assets/{index.es235-CwaFVls_.js → index.es301-CvjmNg6I.js} +1 -1
- package/dist/app/assets/{index.es240-BXsCiix7.js → index.es306-BTbwrAfY.js} +1 -1
- package/dist/app/assets/{index.es248-BBXwDGlH.js → index.es314-i9HKymPG.js} +1 -1
- package/dist/app/assets/{index.es249-it6O0zLZ.js → index.es315-ffN5HvPT.js} +1 -1
- package/dist/app/assets/{index.es252-BU8jndoZ.js → index.es318-Dt5n7rl7.js} +1 -1
- package/dist/app/assets/{index.es256-BvZRwMxf.js → index.es322-DarpkShG.js} +1 -1
- package/dist/app/assets/{index.es259-6-xstYpb.js → index.es325-DGXcHkJW.js} +1 -1
- package/dist/app/assets/{index.es262-BDUOVoIz.js → index.es328-OrbxFN0T.js} +1 -1
- package/dist/app/assets/{index.es263-CHueaYAb.js → index.es329-DOg4tLZf.js} +1 -1
- package/dist/app/assets/{index.es277-CbrHqWmX.js → index.es343-B3c-LWee.js} +1 -1
- package/dist/app/assets/{index.es278-CI5gPs5v.js → index.es344-BzlM_qzj.js} +1 -1
- package/dist/app/assets/{index.es279-DH9b__8l.js → index.es345-Bx5jaaik.js} +1 -1
- package/dist/app/assets/{index.es281-CGN0Pl1D.js → index.es347-D4l698Ba.js} +1 -1
- package/dist/app/assets/{index.es286-XRt1U2aU.js → index.es352-CpzIN4Ck.js} +1 -1
- package/dist/app/assets/{index.es288-DSszyNly.js → index.es354-BzQZ7qJD.js} +1 -1
- package/dist/app/assets/{index.es289-xrNpklpB.js → index.es355-DX--h2FO.js} +1 -1
- package/dist/app/assets/{index.es294-B75OnIUq.js → index.es360-Brs4IhQL.js} +1 -1
- package/dist/app/assets/{index.es295-wxT8LaCU.js → index.es361-C_jQQEMZ.js} +1 -1
- package/dist/app/assets/{index.es297-DCQpwhAH.js → index.es363-BZd8QWNz.js} +1 -1
- package/dist/app/assets/{index.es298-Dtm6S7Te.js → index.es364-5Y8szdnr.js} +1 -1
- package/dist/app/assets/{index.es299-CO3NhjF0.js → index.es365-iXnPxtgs.js} +1 -1
- package/dist/app/assets/{index.es302-BNx4kwZQ.js → index.es368-BBVgx6aX.js} +1 -1
- package/dist/app/assets/{index.es304-Cslijulp.js → index.es370-ClbIH95T.js} +1 -1
- package/dist/app/assets/{index.es305-Bj5y75UJ.js → index.es371-DmqxEYIc.js} +1 -1
- package/dist/app/assets/{index.es306-BY9A-bfA.js → index.es372-Bot_-48c.js} +1 -1
- package/dist/app/assets/{index.es312-BOpCGR-W.js → index.es378-B9aRQ00Z.js} +1 -1
- package/dist/app/assets/{index.es313-j4e0V-ax.js → index.es379-DQAEtWxw.js} +1 -1
- package/dist/app/assets/{index.es314-QPXF8A7X.js → index.es380-BBp8E5gV.js} +1 -1
- package/dist/app/assets/{index.es315-BBht-U5W.js → index.es381-Cl0nVZsB.js} +1 -1
- package/dist/app/assets/{index.es317-Ba6bfhqW.js → index.es383-BMW5Mbfn.js} +1 -1
- package/dist/app/assets/{index.es321-BzMKJGft.js → index.es387-Cqwn90T2.js} +1 -1
- package/dist/app/assets/{index.es322-Dsh6cVFT.js → index.es388-BGLiezvQ.js} +1 -1
- package/dist/app/assets/{index.es330-CwhtB6Ga.js → index.es396-Dnto5_1_.js} +1 -1
- package/dist/app/assets/{index.es333-BkIXdkt8.js → index.es399-oYyQuMIn.js} +1 -1
- package/dist/app/assets/{index.es336-CDPSHwok.js → index.es402-C7bOCmc3.js} +1 -1
- package/dist/app/assets/{index.es339-CpmgqEMA.js → index.es405-CgiLlAXi.js} +1 -1
- package/dist/app/assets/{index.es343-DpQJ0N3s.js → index.es409-CTqIYL8X.js} +1 -1
- package/dist/app/assets/{index.es345-Cu1t0B48.js → index.es411-DCscG5n_.js} +1 -1
- package/dist/app/assets/{index.es353-Boayqq8b.js → index.es419-D8w4xXW-.js} +1 -1
- package/dist/app/assets/{index.es354-B25Rulno.js → index.es420-CoY4mPyG.js} +1 -1
- package/dist/app/assets/{index.es361-BbYa_qYT.js → index.es427-DPgNELR1.js} +1 -1
- package/dist/app/assets/{index.es362-BnUI1TJX.js → index.es428-CKGg3G7e.js} +1 -1
- package/dist/app/assets/{index.es372-Din3gmuj.js → index.es438-DLZwD0On.js} +1 -1
- package/dist/app/assets/{index.es376-CAM-NFdA.js → index.es442-CeFC_3kB.js} +1 -1
- package/dist/app/assets/{index.es382-r9NT2hns.js → index.es448-Bkdic4-K.js} +1 -1
- package/dist/app/assets/{index.es387-DWtDDVHa.js → index.es453-BTUy9umd.js} +1 -1
- package/dist/app/assets/{index.es388-Cddokof0.js → index.es454-B-wtdVwd.js} +1 -1
- package/dist/app/assets/{index.es390-BgcDic1S.js → index.es456-DMl0frQV.js} +1 -1
- package/dist/app/assets/{index.es394-Cuad4cFu.js → index.es460-BCFWaHpj.js} +1 -1
- package/dist/app/assets/{index.es396-CQcbzzI_.js → index.es462-CMWboMtJ.js} +1 -1
- package/dist/app/assets/{index.es398-DBUoETTk.js → index.es464-3Yi-DUIC.js} +1 -1
- package/dist/app/assets/{index.es401-D7FZbPq9.js → index.es467-Bhyygz2G.js} +1 -1
- package/dist/app/assets/{index.es402-C5ht0e8l.js → index.es468-HCYOhbfy.js} +1 -1
- package/dist/app/assets/{index.es406-pes6PLHN.js → index.es472-BGdt37JU.js} +1 -1
- package/dist/app/assets/{index.es408-DV2ChDJw.js → index.es474-Cvsrw_ol.js} +1 -1
- package/dist/app/assets/{index.es415-BI_J_S9x.js → index.es481-CQK61FBO.js} +1 -1
- package/dist/app/assets/{index.es417-BNH1K0F3.js → index.es483-_fCFzllD.js} +1 -1
- package/dist/app/assets/{index.es419-DaaHuOeT.js → index.es485-onmvNF-0.js} +1 -1
- package/dist/app/assets/{index.es423-BFNF97RC.js → index.es489-7PLT4DLq.js} +1 -1
- package/dist/app/assets/{index.es433-TWQYaV1h.js → index.es499-C0JWr_xK.js} +1 -1
- package/dist/app/assets/{index.es434-Dhj89L3U.js → index.es500-D41F9-Tw.js} +1 -1
- package/dist/app/assets/{index.es441-9pPCdH1i.js → index.es507-DKp0nulG.js} +1 -1
- package/dist/app/assets/{index.es442-B_JzqX5N.js → index.es508-ilzXBvKZ.js} +1 -1
- package/dist/app/assets/index.es7-C8O8lseo.js +1 -0
- package/dist/app/assets/index.modern-Da9HWSay.js +17 -0
- package/dist/app/assets/{index.umd-DknWdzGi.js → index.umd-BJAbIV_-.js} +61 -61
- package/dist/app/assets/listItemTextClasses-DhilXbg6.js +1 -0
- package/dist/app/index.html +1 -3
- package/dist/server.js +1838 -6280
- package/eslint.config.mjs +16 -3
- package/package.json +10 -10
- package/publisher.config.json +32 -25
- package/src/config.ts +61 -1
- package/src/constants.ts +0 -1
- package/src/controller/connection.controller.ts +2 -2
- package/src/server.ts +73 -13
- package/src/service/connection.ts +25 -15
- package/src/service/package.spec.ts +67 -22
- package/src/service/package.ts +8 -1
- package/src/service/project.ts +13 -31
- package/src/service/project_store.spec.ts +30 -53
- package/src/service/project_store.ts +100 -68
- package/dist/app/assets/index-Bh1cWMgT.js +0 -240
- package/dist/app/assets/index-SM0qJxoC.js +0 -676
- package/dist/app/assets/index.es24-CDJ3b9GD.js +0 -2
- package/dist/app/assets/mui-BL9dYvR2.js +0 -159
- package/dist/app/assets/vendor-c5ypKtDW.js +0 -17
- /package/dist/app/assets/{index.es220-CG6Dc4jp.js → index.es286-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es228-DsBKuouk.js → index.es294-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es229-D_z4Izcz.js → index.es295-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es230-727ZlQH0.js → index.es296-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es233-Dn00JSTd.js → index.es299-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es234-COJ4H7py.js → index.es300-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es236-Bu5BbsvL.js → index.es302-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es237-7O62HKoU.js → index.es303-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es238-BPT9niGB.js → index.es304-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es239-Dhn9LcZ4.js → index.es305-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es241-eg146-Ew.js → index.es307-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es242-Du268qiB.js → index.es308-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es243-fje9CFhw.js → index.es309-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es244-BwXTMy5W.js → index.es310-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es245-3xVqZejG.js → index.es311-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es246-xW4inM5L.js → index.es312-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es247-DHo0CJ0O.js → index.es313-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es250-C3t2pwGQ.js → index.es316-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es251-DNquZEk8.js → index.es317-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es253-BHOwM8T6.js → index.es319-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es254-DxSadP1t.js → index.es320-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es255-DbXoA79R.js → index.es321-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es257-Bp6g37R7.js → index.es323-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es258-sacFqUAJ.js → index.es324-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es260-C7gG9l05.js → index.es326-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es261-Dsg_Bt_b.js → index.es327-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es264-D9R-vmeu.js → index.es330-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es265-BPhBrDlE.js → index.es331-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es266-C-TU5hQ_.js → index.es332-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es267-DtFQj3wx.js → index.es333-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es268-m2LEI-9-.js → index.es334-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es269-BoXegm-a.js → index.es335-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es270-B9wLZaAG.js → index.es336-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es271-ClGRhx96.js → index.es337-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es272-DEIpsLCJ.js → index.es338-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es273-BgYniUM_.js → index.es339-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es274-COcR7UxN.js → index.es340-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es275-BjQB5zDj.js → index.es341-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es276-C-nORZOA.js → index.es342-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es280-BX77sIaO.js → index.es346-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es282-B-DoSBHF.js → index.es348-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es283-bCA53EVm.js → index.es349-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es284-w-ucz2PV.js → index.es350-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es285-Dayu4EKP.js → index.es351-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es287-DKXYxT9g.js → index.es353-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es290-DfxzS6Rs.js → index.es356-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es291-SKMF96pI.js → index.es357-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es292-ajMbGru0.js → index.es358-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es293--30QC5Em.js → index.es359--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es296-B430Bg39.js → index.es362-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es300-CM8KxXT1.js → index.es366-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es301-B1SYOhNW.js → index.es367-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es303-DkBy-JyN.js → index.es369-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es307-BILxekzW.js → index.es373-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es308-C5wWYbrZ.js → index.es374-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es309-HzYwdGDm.js → index.es375-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es310-T-Tgc4AT.js → index.es376-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es311-ifBTmRxC.js → index.es377-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es316-BMj5Y0dO.js → index.es382-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es318-BjABl1g7.js → index.es384-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es319-xI-RfyKK.js → index.es385-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es320-ySlJ1b_l.js → index.es386-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es323-BQoSv7ci.js → index.es389-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es324-w8dY5SsB.js → index.es390-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es325-TU54ms6u.js → index.es391-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es326-DREVFZK8.js → index.es392-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es327-BfivnA6A.js → index.es393-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es328-P4WzXJd0.js → index.es394-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es329-BAng5TT0.js → index.es395-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es331-B5lbUyaz.js → index.es397-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es332-mebxcVVE.js → index.es398-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es334-XBlWyCtg.js → index.es400-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es335-BfCpw3nA.js → index.es401-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es337-Cc5clBb7.js → index.es403-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es338-IuBKFhSY.js → index.es404-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es340-Du5NY7AG.js → index.es406-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es341-Bvotw-X0.js → index.es407-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es342-UIAJJxZW.js → index.es408-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es344-D9-PGadD.js → index.es410-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es346-sdHcTMYB.js → index.es412-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es347-Ci6OQyBP.js → index.es413-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es348-BC5c_5Pe.js → index.es414-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es349-Tz6hzZYG.js → index.es415-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es350-DB_GagMm.js → index.es416-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es351-DLbgOhZU.js → index.es417-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es352-B0XVJmRM.js → index.es418-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es355-shcSOmrb.js → index.es421-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es356-D4Tzg5kh.js → index.es422-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es357-Deuh7S70.js → index.es423-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es358-BUEGK8hf.js → index.es424-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es359-BNioltXt.js → index.es425-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es360-JqZropPD.js → index.es426-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es363-LKU2TuZ1.js → index.es429-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es364-BFLt1xDp.js → index.es430-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es365-DKykz6zU.js → index.es431-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es366-B3ZDOciz.js → index.es432-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es367-CSHBycmS.js → index.es433-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es368-BIEUsx6d.js → index.es434-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es369-B48N-Iqd.js → index.es435-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es370-BY-TUvya.js → index.es436-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es371-zocC4JxJ.js → index.es437-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es373-Cza_XSSt.js → index.es439-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es374-Bg-kzb6g.js → index.es440-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es375-DhUJRlN_.js → index.es441-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es377-C8lEn-DE.js → index.es443-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es378-DhMKtDLN.js → index.es444-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es379-CwjWoCRV.js → index.es445-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es380-CzouJOBO.js → index.es446-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es381-B1bQXN8T.js → index.es447-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es383-5LuOXUq_.js → index.es449-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es384-DWJ3fJO_.js → index.es450-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es385-DJlmqQ1C.js → index.es451-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es386-QhoSD0DR.js → index.es452-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es389-Be6lgOlo.js → index.es455-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es391-BJ4Li9vH.js → index.es457-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es392-DQVVAn-B.js → index.es458-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es393-BJGe-b2p.js → index.es459-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es395-BLhTXw86.js → index.es461-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es397-atvbtKCR.js → index.es463-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es399-DkLiglaE.js → index.es465-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es400-C1w2a3ep.js → index.es466-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es403-Cf8iN4DR.js → index.es469-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es404-COK4E0Yg.js → index.es470-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es405-BknIz3MU.js → index.es471-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es407-BeQkCIfX.js → index.es473-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es409-BSxZ-RaX.js → index.es475-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es410-C7L56vO4.js → index.es476-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es411-CUnW07Te.js → index.es477-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es412-C1XDQQGZ.js → index.es478-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es413-CQjiPCtT.js → index.es479-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es414-DQ1-QYvQ.js → index.es480-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es416-BbSNqyBO.js → index.es482-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es418-CB2ApiWb.js → index.es484-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es420-B_m7g4N7.js → index.es486-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es421-B6W0miNI.js → index.es487-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es422-BMR_PYu6.js → index.es488-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es424-Dj6nwHGl.js → index.es490-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es425-BpWG_bgh.js → index.es491-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es426-BVUVsWT6.js → index.es492-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es427-CAQ2eGtk.js → index.es493-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es428-BFOHcciG.js → index.es494-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es429-CdO5JTpU.js → index.es495-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es430-CJaU5se_.js → index.es496-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es431-DYoNaHQp.js → index.es497-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es432-m4uW47V2.js → index.es498-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es435-nyqBNV6O.js → index.es501-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es436-C6j12Q_x.js → index.es502-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es437-7A4Fjokl.js → index.es503-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es438-CB0Krxn9.js → index.es504-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es439-DCE3LsBG.js → index.es505-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es440-C3FkfJm5.js → index.es506-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es443-CVw76BM1.js → index.es509-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es444-HnGAYVZD.js → index.es510-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es445-BVz_zdnA.js → index.es511-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es446-C3khCPGq.js → index.es512-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es447-D-2ljcwZ.js → index.es513-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es448-Cv9koXgw.js → index.es514-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es449-CD_QflpE.js → index.es515-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es450-DRW-0cLl.js → index.es516-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es451-C-_shW-Y.js → index.es517-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es452-LGGdnPYs.js → index.es518-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es453-C3mMm8J8.js → index.es519-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es454-BzJJZx-M.js → index.es520-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es455-BXkSAIEj.js → index.es521-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es456-BgDCqdQA.js → index.es522-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es457-C8M2exoo.js → index.es523-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es458-DHJKELXO.js → index.es524-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es459-Cuk6v7N8.js → index.es525-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es460-DH5Ifo-i.js → index.es526-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es461-E3gJ1_iC.js → index.es527-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es462-DAi9KRSo.js → index.es528-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es463-D7oLnXFd.js → index.es529-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es464-BfjtVDDH.js → index.es530-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es465-DnULxvSX.js → index.es531-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es466-CkXjmgJE.js → index.es532-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es467-CfQXZHmo.js → index.es533-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es468-DWedfzmr.js → index.es534-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es469-DUszq2jm.js → index.es535-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es470-B7mTdjB0.js → index.es536-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es471-D5KoaKCx.js → index.es537-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es472-BfHTSMKl.js → index.es538-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es473-B0m2ddpp.js → index.es539-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es474-CyktbL80.js → index.es540-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es475-Csfq5Kiy.js → index.es541-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es476-CafNBF8u.js → index.es542-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es477-CTRr51gU.js → index.es543-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es478-D4h5O-jR.js → index.es544-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es479-C39BiMTA.js → index.es545-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es480-Ddv68eIx.js → index.es546-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es481-GBQ2dnAY.js → index.es547-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es482-PoHY5YXO.js → index.es548-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es483-3e1v2bzS.js → index.es549-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es484-CS3Unz2-.js → index.es550-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es485-bN70gL4F.js → index.es551-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es486-CmCqftbK.js → index.es552-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es487-Ds-gbosJ.js → index.es553-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es488-CjDtw9vr.js → index.es554-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es489-BthQWCQV.js → index.es555-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es490-DqwNpetd.js → index.es556-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es491-Bw305WKR.js → index.es557-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es492-DXbdFlpD.js → index.es558-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es493-L9t79GZl.js → index.es559-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es494-CbfX1IO0.js → index.es560-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es495-DBQeEorK.js → index.es561-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es496-BEBZ7ncR.js → index.es562-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es497-Bkuqu6BP.js → index.es563-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es498-D0r3Knsf.js → index.es564-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es499-CVO1_9PV.js → index.es565-CVO1_9PV.js} +0 -0
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es231-02O061a5.js","assets/index.es312-BOpCGR-W.js","assets/index.es320-ySlJ1b_l.js","assets/index.es265-BPhBrDlE.js","assets/index.es232-DOZR37hD.js","assets/index.es394-Cuad4cFu.js","assets/index.es235-CwaFVls_.js","assets/index.es441-9pPCdH1i.js","assets/index.es319-xI-RfyKK.js","assets/index.es323-BQoSv7ci.js","assets/index.es240-BXsCiix7.js","assets/index.es424-Dj6nwHGl.js","assets/index.es366-B3ZDOciz.js","assets/index.es248-BBXwDGlH.js","assets/index.es404-COK4E0Yg.js","assets/index.es249-it6O0zLZ.js","assets/index.es395-BLhTXw86.js","assets/index.es252-BU8jndoZ.js","assets/index.es375-DhUJRlN_.js","assets/index.es256-BvZRwMxf.js","assets/index.es259-6-xstYpb.js","assets/index.es262-BDUOVoIz.js","assets/index.es384-DWJ3fJO_.js","assets/index.es299-CO3NhjF0.js","assets/index.es250-C3t2pwGQ.js","assets/index.es263-CHueaYAb.js","assets/index.es397-atvbtKCR.js","assets/index.es277-CbrHqWmX.js","assets/index.es313-j4e0V-ax.js","assets/index.es278-CI5gPs5v.js","assets/index.es279-DH9b__8l.js","assets/index.es281-CGN0Pl1D.js","assets/index.es388-Cddokof0.js","assets/index.es305-Bj5y75UJ.js","assets/index.es302-BNx4kwZQ.js","assets/index.es329-BAng5TT0.js","assets/index.es421-B6W0miNI.js","assets/index.es339-CpmgqEMA.js","assets/index.es443-CVw76BM1.js","assets/index.es286-XRt1U2aU.js","assets/index.es287-DKXYxT9g.js","assets/index.es288-DSszyNly.js","assets/index.es342-UIAJJxZW.js","assets/index.es289-xrNpklpB.js","assets/index.es291-SKMF96pI.js","assets/index.es290-DfxzS6Rs.js","assets/index.es294-B75OnIUq.js","assets/index.es273-BgYniUM_.js","assets/index.es295-wxT8LaCU.js","assets/index.es297-DCQpwhAH.js","assets/index.es298-Dtm6S7Te.js","assets/index.es304-Cslijulp.js","assets/index.es306-BY9A-bfA.js","assets/index.es314-QPXF8A7X.js","assets/index.es315-BBht-U5W.js","assets/index.es308-C5wWYbrZ.js","assets/index.es317-Ba6bfhqW.js","assets/index.es321-BzMKJGft.js","assets/index.es322-Dsh6cVFT.js","assets/index.es330-CwhtB6Ga.js","assets/index.es379-CwjWoCRV.js","assets/index.es333-BkIXdkt8.js","assets/index.es417-BNH1K0F3.js","assets/index.es336-CDPSHwok.js","assets/index.es343-DpQJ0N3s.js","assets/index.es335-BfCpw3nA.js","assets/index.es345-Cu1t0B48.js","assets/index.es353-Boayqq8b.js","assets/index.es354-B25Rulno.js","assets/index.es361-BbYa_qYT.js","assets/index.es362-BnUI1TJX.js","assets/index.es372-Din3gmuj.js","assets/index.es376-CAM-NFdA.js","assets/index.es382-r9NT2hns.js","assets/index.es264-D9R-vmeu.js","assets/index.es387-DWtDDVHa.js","assets/index.es255-DbXoA79R.js","assets/index.es390-BgcDic1S.js","assets/index.es396-CQcbzzI_.js","assets/index.es311-ifBTmRxC.js","assets/index.es398-DBUoETTk.js","assets/index.es401-D7FZbPq9.js","assets/index.es402-C5ht0e8l.js","assets/index.es422-BMR_PYu6.js","assets/index.es406-pes6PLHN.js","assets/index.es408-DV2ChDJw.js","assets/index.es415-BI_J_S9x.js","assets/index.es301-B1SYOhNW.js","assets/index.es419-DaaHuOeT.js","assets/index.es423-BFNF97RC.js","assets/index.es433-TWQYaV1h.js","assets/index.es434-Dhj89L3U.js","assets/index.es442-B_JzqX5N.js","assets/index.es24-CDJ3b9GD.js","assets/mui-BL9dYvR2.js","assets/vendor-c5ypKtDW.js","assets/index-CvbMKVwx.js","assets/index-SM0qJxoC.js","assets/index.umd-DknWdzGi.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as w,a as j2,j as v,T as $e,u as i5,c as o5,b as s5,s as l5,B as Ke,C as c5,d as Wn,e as $l,f as Fl,g as u5,D as No,h as Oo,I as xn,i as Lo,F as d5,k as f5,L as pb,l as fh,m as $u,G as mn,n as Ms,R as Le,P as Lh,o as h5,S as p5,p as U2,q as fa,t as mb,v as td,w as gb,x as ri,y as Ut,z as nd,A as m5,E as hh,H as yb,J as $i,K as g5,M as y5,N as Pn,O as Px,Q as H2,U as Nr,V as b5,W as Ts,X as z2,Y as op,Z as E5,_ as v5,$ as bb,a0 as T5,a1 as _5,a2 as x5,a3 as A5,a4 as S5,a5 as C5,a6 as D5,a7 as k5,a8 as R5}from"./mui-BL9dYvR2.js";import{r as I5,a as w5}from"./vendor-c5ypKtDW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var z0={exports:{}},cu={},G0={exports:{}},V0={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* scheduler.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var $x;function N5(){return $x||($x=1,function(e){function t(G,oe){var le=G.length;G.push(oe);e:for(;0<le;){var se=le-1>>>1,P=G[se];if(0<a(P,oe))G[se]=oe,G[le]=P,le=se;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var oe=G[0],le=G.pop();if(le!==oe){G[0]=le;e:for(var se=0,P=G.length,Ce=P>>>1;se<Ce;){var he=2*(se+1)-1,O=G[he],ce=he+1,Ne=G[ce];if(0>a(O,le))ce<P&&0>a(Ne,O)?(G[se]=Ne,G[ce]=le,se=ce):(G[se]=O,G[he]=le,se=he);else if(ce<P&&0>a(Ne,le))G[se]=Ne,G[ce]=le,se=ce;else break e}}return oe}function a(G,oe){var le=G.sortIndex-oe.sortIndex;return le!==0?le:G.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,m=null,y=3,b=!1,_=!1,A=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function M(G){for(var oe=n(f);oe!==null;){if(oe.callback===null)r(f);else if(oe.startTime<=G)r(f),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=n(f)}}function L(G){if(A=!1,M(G),!_)if(n(d)!==null)_=!0,I||(I=!0,W());else{var oe=n(f);oe!==null&&me(L,oe.startTime-G)}}var I=!1,V=-1,te=5,Q=-1;function k(){return C?!0:!(e.unstable_now()-Q<te)}function H(){if(C=!1,I){var G=e.unstable_now();Q=G;var oe=!0;try{e:{_=!1,A&&(A=!1,D(V),V=-1),b=!0;var le=y;try{t:{for(M(G),m=n(d);m!==null&&!(m.expirationTime>G&&k());){var se=m.callback;if(typeof se=="function"){m.callback=null,y=m.priorityLevel;var P=se(m.expirationTime<=G);if(G=e.unstable_now(),typeof P=="function"){m.callback=P,M(G),oe=!0;break t}m===n(d)&&r(d),M(G)}else r(d);m=n(d)}if(m!==null)oe=!0;else{var Ce=n(f);Ce!==null&&me(L,Ce.startTime-G),oe=!1}}break e}finally{m=null,y=le,b=!1}oe=void 0}}finally{oe?W():I=!1}}}var W;if(typeof S=="function")W=function(){S(H)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,re=K.port2;K.port1.onmessage=H,W=function(){re.postMessage(null)}}else W=function(){x(H,0)};function me(G,oe){V=x(function(){G(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(G){switch(y){case 1:case 2:case 3:var oe=3;break;default:oe=y}var le=y;y=oe;try{return G()}finally{y=le}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(G,oe){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var le=y;y=G;try{return oe()}finally{y=le}},e.unstable_scheduleCallback=function(G,oe,le){var se=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?se+le:se):le=se,G){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=le+P,G={id:p++,callback:oe,priorityLevel:G,startTime:le,expirationTime:P,sortIndex:-1},le>se?(G.sortIndex=le,t(f,G),n(d)===null&&G===n(f)&&(A?(D(V),V=-1):A=!0,me(L,le-se))):(G.sortIndex=P,t(d,G),_||b||(_=!0,I||(I=!0,W()))),G},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(G){var oe=y;return function(){var le=y;y=oe;try{return G.apply(this,arguments)}finally{y=le}}}}(V0)),V0}var Fx;function O5(){return Fx||(Fx=1,G0.exports=N5()),G0.exports}/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-dom-client.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Bx;function L5(){if(Bx)return cu;Bx=1;var e=O5(),t=I5(),n=w5();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,h=s;;){var g=u.return;if(g===null)break;var E=g.alternate;if(E===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===E.child){for(E=g.child;E;){if(E===u)return c(g),i;if(E===h)return c(g),s;E=E.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=E;else{for(var R=!1,N=g.child;N;){if(N===u){R=!0,u=g,h=E;break}if(N===h){R=!0,h=g,u=E;break}N=N.sibling}if(!R){for(N=E.child;N;){if(N===u){R=!0,u=E,h=g;break}if(N===h){R=!0,h=E,u=g;break}N=N.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function f(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=f(i),s!==null)return s;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),S=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function W(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var K=Symbol.for("react.client.reference");function re(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===K?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case _:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case L:return"Suspense";case I:return"SuspenseList";case Q:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case S:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case M:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return s=i.displayName||null,s!==null?s:re(i.type)||"Memo";case te:s=i._payload,i=i._init;try{return re(i(s))}catch{}}return null}var me=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},se=[],P=-1;function Ce(i){return{current:i}}function he(i){0>P||(i.current=se[P],se[P]=null,P--)}function O(i,s){P++,se[P]=i.current,i.current=s}var ce=Ce(null),Ne=Ce(null),Ie=Ce(null),Me=Ce(null);function Oe(i,s){switch(O(Ie,s),O(Ne,i),O(ce,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?ux(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=ux(s),i=dx(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}he(ce),O(ce,i)}function st(){he(ce),he(Ne),he(Ie)}function dt(i){i.memoizedState!==null&&O(Me,i);var s=ce.current,u=dx(s,i.type);s!==u&&(O(Ne,i),O(ce,u))}function Ue(i){Ne.current===i&&(he(ce),he(Ne)),Me.current===i&&(he(Me),au._currentValue=le)}var Zt=Object.prototype.hasOwnProperty,wt=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,rr=e.unstable_shouldYield,dn=e.unstable_requestPaint,Ve=e.unstable_now,Zn=e.unstable_getCurrentPriorityLevel,rn=e.unstable_ImmediatePriority,on=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,xr=e.unstable_IdlePriority,Ba=e.log,Rt=e.unstable_setDisableYieldValue,ue=null,ve=null;function Be(i){if(typeof Ba=="function"&&Rt(i),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ue,i)}catch{}}var rt=Math.clz32?Math.clz32:zn,Dt=Math.log,Nt=Math.LN2;function zn(i){return i>>>=0,i===0?32:31-(Dt(i)/Nt|0)|0}var gn=256,An=4194304;function _e(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Te(i,s,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,E=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var N=h&134217727;return N!==0?(h=N&~E,h!==0?g=_e(h):(R&=N,R!==0?g=_e(R):u||(u=N&~i,u!==0&&(g=_e(u))))):(N=h&~E,N!==0?g=_e(N):R!==0?g=_e(R):u||(u=h&~i,u!==0&&(g=_e(u)))),g===0?0:s!==0&&s!==g&&(s&E)===0&&(E=g&-g,u=s&-s,E>=u||E===32&&(u&4194048)!==0)?s:g}function ot(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function Xe(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sn(){var i=gn;return gn<<=1,(gn&4194048)===0&&(gn=256),i}function $r(){var i=An;return An<<=1,(An&62914560)===0&&(An=4194304),i}function gr(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function ar(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ir(i,s,u,h,g,E){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var N=i.entanglements,U=i.expirationTimes,ee=i.hiddenUpdates;for(u=R&~u;0<u;){var ge=31-rt(u),be=1<<ge;N[ge]=0,U[ge]=-1;var ne=ee[ge];if(ne!==null)for(ee[ge]=null,ge=0;ge<ne.length;ge++){var ie=ne[ge];ie!==null&&(ie.lane&=-536870913)}u&=~be}h!==0&&ja(i,h,0),E!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=E&~(R&~s))}function ja(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-rt(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function fn(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var h=31-rt(u),g=1<<h;g&s|i[h]&s&&(i[h]|=s),u&=~g}}function Fr(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Da(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function z(){var i=oe.p;return i!==0?i:(i=window.event,i===void 0?32:Ix(i.type))}function X(i,s){var u=oe.p;try{return oe.p=i,s()}finally{oe.p=u}}var ae=Math.random().toString(36).slice(2),Ee="__reactFiber$"+ae,De="__reactProps$"+ae,je="__reactContainer$"+ae,Ge="__reactEvents$"+ae,He="__reactListeners$"+ae,We="__reactHandles$"+ae,Je="__reactResources$"+ae,ze="__reactMarker$"+ae;function qe(i){delete i[Ee],delete i[De],delete i[Ge],delete i[He],delete i[We]}function pt(i){var s=i[Ee];if(s)return s;for(var u=i.parentNode;u;){if(s=u[je]||u[Ee]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=mx(i);i!==null;){if(u=i[Ee])return u;i=mx(i)}return s}i=u,u=i.parentNode}return null}function Ot(i){if(i=i[Ee]||i[je]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function yn(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function bn(i){var s=i[Je];return s||(s=i[Je]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function ft(i){i[ze]=!0}var Pt=new Set,Ua={};function Br(i,s){yr(i,s),yr(i+"Capture",s)}function yr(i,s){for(Ua[i]=s,i=0;i<s.length;i++)Pt.add(s[i])}var ea=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zs={},qi={};function fi(i){return Zt.call(qi,i)?!0:Zt.call(zs,i)?!1:ea.test(i)?qi[i]=!0:(zs[i]=!0,!1)}function hi(i,s,u){if(fi(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function pi(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function gt(i,s,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+h)}}var In,zo;function ta(i){if(In===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);In=s&&s[1]||"",zo=-1<u.stack.indexOf(`
|
|
19
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
-
`+In+i+zo}var hn=!1;function Yi(i,s){if(!i||hn)return"";hn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(ie){var ne=ie}Reflect.construct(i,[],be)}else{try{be.call()}catch(ie){ne=ie}i.call(be.prototype)}}else{try{throw Error()}catch(ie){ne=ie}(be=i())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(ie){if(ie&&ne&&typeof ie.stack=="string")return[ie.stack,ne.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=h.DetermineComponentFrameRoot(),R=E[0],N=E[1];if(R&&N){var U=R.split(`
|
|
21
|
-
`),ee=N.split(`
|
|
22
|
-
`);for(g=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===U.length||g===ee.length)for(h=U.length-1,g=ee.length-1;1<=h&&0<=g&&U[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(U[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||U[h]!==ee[g]){var ge=`
|
|
23
|
-
`+U[h].replace(" at new "," at ");return i.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",i.displayName)),ge}while(1<=h&&0<=g);break}}}finally{hn=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ta(u):""}function tf(i){switch(i.tag){case 26:case 27:case 5:return ta(i.type);case 16:return ta("Lazy");case 13:return ta("Suspense");case 19:return ta("SuspenseList");case 0:case 15:return Yi(i.type,!1);case 11:return Yi(i.type.render,!1);case 1:return Yi(i.type,!0);case 31:return ta("Activity");default:return""}}function nf(i){try{var s="";do s+=tf(i),i=i.return;while(i);return s}catch(u){return`
|
|
24
|
-
Error generating stack: `+u.message+`
|
|
25
|
-
`+u.stack}}function na(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function iv(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function eN(i){var s=iv(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,E=u.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return g.call(this)},set:function(R){h=""+R,E.call(this,R)}}),Object.defineProperty(i,s,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function rf(i){i._valueTracker||(i._valueTracker=eN(i))}function ov(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),h="";return i&&(h=iv(i)?i.checked?"true":"false":i.value),i=h,i!==u?(s.setValue(i),!0):!1}function af(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var tN=/[\n"\\]/g;function ra(i){return i.replace(tN,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function jm(i,s,u,h,g,E,R,N){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),s!=null?R==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+na(s)):i.value!==""+na(s)&&(i.value=""+na(s)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),s!=null?Um(i,R,na(s)):u!=null?Um(i,R,na(u)):h!=null&&i.removeAttribute("value"),g==null&&E!=null&&(i.defaultChecked=!!E),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.name=""+na(N):i.removeAttribute("name")}function sv(i,s,u,h,g,E,R,N){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.type=E),s!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||s!=null))return;u=u!=null?""+na(u):"",s=s!=null?""+na(s):u,N||s===i.value||(i.value=s),i.defaultValue=s}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=N?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R)}function Um(i,s,u){s==="number"&&af(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Gs(i,s,u,h){if(i=i.options,s){s={};for(var g=0;g<u.length;g++)s["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=s.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+na(u),s=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}s!==null||i[g].disabled||(s=i[g])}s!==null&&(s.selected=!0)}}function lv(i,s,u){if(s!=null&&(s=""+na(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+na(u):""}function cv(i,s,u,h){if(s==null){if(h!=null){if(u!=null)throw Error(r(92));if(me(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),s=u}u=na(s),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function Vs(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var nN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uv(i,s,u){var h=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,u):typeof u!="number"||u===0||nN.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function dv(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in s)h=s[g],s.hasOwnProperty(g)&&u[g]!==h&&uv(i,g,h)}else for(var E in s)s.hasOwnProperty(E)&&uv(i,E,s[E])}function Hm(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),aN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function of(i){return aN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var zm=null;function Gm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var qs=null,Ys=null;function fv(i){var s=Ot(i);if(s&&(i=s.stateNode)){var u=i[De]||null;e:switch(i=s.stateNode,s.type){case"input":if(jm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+ra(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var h=u[s];if(h!==i&&h.form===i.form){var g=h[De]||null;if(!g)throw Error(r(90));jm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(s=0;s<u.length;s++)h=u[s],h.form===i.form&&ov(h)}break e;case"textarea":lv(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Gs(i,!!u.multiple,s,!1)}}}var Vm=!1;function hv(i,s,u){if(Vm)return i(s,u);Vm=!0;try{var h=i(s);return h}finally{if(Vm=!1,(qs!==null||Ys!==null)&&(Vf(),qs&&(s=qs,i=Ys,Ys=qs=null,fv(s),i)))for(s=0;s<i.length;s++)fv(i[s])}}function yc(i,s){var u=i.stateNode;if(u===null)return null;var h=u[De]||null;if(h===null)return null;u=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var mi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qm=!1;if(mi)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){qm=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch{qm=!1}var Qi=null,Ym=null,sf=null;function pv(){if(sf)return sf;var i,s=Ym,u=s.length,h,g="value"in Qi?Qi.value:Qi.textContent,E=g.length;for(i=0;i<u&&s[i]===g[i];i++);var R=u-i;for(h=1;h<=R&&s[u-h]===g[E-h];h++);return sf=g.slice(i,1<h?1-h:void 0)}function lf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function cf(){return!0}function mv(){return!1}function Ar(i){function s(u,h,g,E,R){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=E,this.target=R,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(u=i[N],this[N]=u?u(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?cf:mv,this.isPropagationStopped=mv,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=cf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=cf)},persist:function(){},isPersistent:cf}),s}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uf=Ar(Go),Ec=p({},Go,{view:0,detail:0}),iN=Ar(Ec),Qm,Km,vc,df=p({},Ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==vc&&(vc&&i.type==="mousemove"?(Qm=i.screenX-vc.screenX,Km=i.screenY-vc.screenY):Km=Qm=0,vc=i),Qm)},movementY:function(i){return"movementY"in i?i.movementY:Km}}),gv=Ar(df),oN=p({},df,{dataTransfer:0}),sN=Ar(oN),lN=p({},Ec,{relatedTarget:0}),Wm=Ar(lN),cN=p({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),uN=Ar(cN),dN=p({},Go,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),fN=Ar(dN),hN=p({},Go,{data:0}),yv=Ar(hN),pN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yN(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=gN[i])?!!s[i]:!1}function Xm(){return yN}var bN=p({},Ec,{key:function(i){if(i.key){var s=pN[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=lf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?mN[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xm,charCode:function(i){return i.type==="keypress"?lf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?lf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),EN=Ar(bN),vN=p({},df,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bv=Ar(vN),TN=p({},Ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xm}),_N=Ar(TN),xN=p({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),AN=Ar(xN),SN=p({},df,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),CN=Ar(SN),DN=p({},Go,{newState:0,oldState:0}),kN=Ar(DN),RN=[9,13,27,32],Zm=mi&&"CompositionEvent"in window,Tc=null;mi&&"documentMode"in document&&(Tc=document.documentMode);var IN=mi&&"TextEvent"in window&&!Tc,Ev=mi&&(!Zm||Tc&&8<Tc&&11>=Tc),vv=" ",Tv=!1;function _v(i,s){switch(i){case"keyup":return RN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Qs=!1;function wN(i,s){switch(i){case"compositionend":return xv(s);case"keypress":return s.which!==32?null:(Tv=!0,vv);case"textInput":return i=s.data,i===vv&&Tv?null:i;default:return null}}function NN(i,s){if(Qs)return i==="compositionend"||!Zm&&_v(i,s)?(i=pv(),sf=Ym=Qi=null,Qs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Ev&&s.locale!=="ko"?null:s.data;default:return null}}var ON={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Av(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!ON[i.type]:s==="textarea"}function Sv(i,s,u,h){qs?Ys?Ys.push(h):Ys=[h]:qs=h,s=Xf(s,"onChange"),0<s.length&&(u=new uf("onChange","change",null,u,h),i.push({event:u,listeners:s}))}var _c=null,xc=null;function LN(i){ix(i,0)}function ff(i){var s=yn(i);if(ov(s))return i}function Cv(i,s){if(i==="change")return s}var Dv=!1;if(mi){var Jm;if(mi){var eg="oninput"in document;if(!eg){var kv=document.createElement("div");kv.setAttribute("oninput","return;"),eg=typeof kv.oninput=="function"}Jm=eg}else Jm=!1;Dv=Jm&&(!document.documentMode||9<document.documentMode)}function Rv(){_c&&(_c.detachEvent("onpropertychange",Iv),xc=_c=null)}function Iv(i){if(i.propertyName==="value"&&ff(xc)){var s=[];Sv(s,xc,i,Gm(i)),hv(LN,s)}}function MN(i,s,u){i==="focusin"?(Rv(),_c=s,xc=u,_c.attachEvent("onpropertychange",Iv)):i==="focusout"&&Rv()}function PN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return ff(xc)}function $N(i,s){if(i==="click")return ff(s)}function FN(i,s){if(i==="input"||i==="change")return ff(s)}function BN(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var jr=typeof Object.is=="function"?Object.is:BN;function Ac(i,s){if(jr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),h=Object.keys(s);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!Zt.call(s,g)||!jr(i[g],s[g]))return!1}return!0}function wv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Nv(i,s){var u=wv(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=s&&h>=s)return{node:u,offset:s-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=wv(u)}}function Ov(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Ov(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Lv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=af(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=af(i.document)}return s}function tg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var jN=mi&&"documentMode"in document&&11>=document.documentMode,Ks=null,ng=null,Sc=null,rg=!1;function Mv(i,s,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rg||Ks==null||Ks!==af(h)||(h=Ks,"selectionStart"in h&&tg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Sc&&Ac(Sc,h)||(Sc=h,h=Xf(ng,"onSelect"),0<h.length&&(s=new uf("onSelect","select",null,s,u),i.push({event:s,listeners:h}),s.target=Ks)))}function Vo(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Ws={animationend:Vo("Animation","AnimationEnd"),animationiteration:Vo("Animation","AnimationIteration"),animationstart:Vo("Animation","AnimationStart"),transitionrun:Vo("Transition","TransitionRun"),transitionstart:Vo("Transition","TransitionStart"),transitioncancel:Vo("Transition","TransitionCancel"),transitionend:Vo("Transition","TransitionEnd")},ag={},Pv={};mi&&(Pv=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function qo(i){if(ag[i])return ag[i];if(!Ws[i])return i;var s=Ws[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in Pv)return ag[i]=s[u];return i}var $v=qo("animationend"),Fv=qo("animationiteration"),Bv=qo("animationstart"),UN=qo("transitionrun"),HN=qo("transitionstart"),zN=qo("transitioncancel"),jv=qo("transitionend"),Uv=new Map,ig="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ig.push("scrollEnd");function ka(i,s){Uv.set(i,s),Br(s,[i])}var Hv=new WeakMap;function aa(i,s){if(typeof i=="object"&&i!==null){var u=Hv.get(i);return u!==void 0?u:(s={value:i,source:s,stack:nf(s)},Hv.set(i,s),s)}return{value:i,source:s,stack:nf(s)}}var ia=[],Xs=0,og=0;function hf(){for(var i=Xs,s=og=Xs=0;s<i;){var u=ia[s];ia[s++]=null;var h=ia[s];ia[s++]=null;var g=ia[s];ia[s++]=null;var E=ia[s];if(ia[s++]=null,h!==null&&g!==null){var R=h.pending;R===null?g.next=g:(g.next=R.next,R.next=g),h.pending=g}E!==0&&zv(u,g,E)}}function pf(i,s,u,h){ia[Xs++]=i,ia[Xs++]=s,ia[Xs++]=u,ia[Xs++]=h,og|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function sg(i,s,u,h){return pf(i,s,u,h),mf(i)}function Zs(i,s){return pf(i,null,null,s),mf(i)}function zv(i,s,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,E=i.return;E!==null;)E.childLanes|=u,h=E.alternate,h!==null&&(h.childLanes|=u),E.tag===22&&(i=E.stateNode,i===null||i._visibility&1||(g=!0)),i=E,E=E.return;return i.tag===3?(E=i.stateNode,g&&s!==null&&(g=31-rt(u),i=E.hiddenUpdates,h=i[g],h===null?i[g]=[s]:h.push(s),s.lane=u|536870912),E):null}function mf(i){if(50<Wc)throw Wc=0,h0=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Js={};function GN(i,s,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(i,s,u,h){return new GN(i,s,u,h)}function lg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function gi(i,s){var u=i.alternate;return u===null?(u=Ur(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Gv(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function gf(i,s,u,h,g,E){var R=0;if(h=i,typeof i=="function")lg(i)&&(R=1);else if(typeof i=="string")R=qO(i,u,ce.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case Q:return i=Ur(31,u,s,g),i.elementType=Q,i.lanes=E,i;case _:return Yo(u.children,g,E,s);case A:R=8,g|=24;break;case C:return i=Ur(12,u,s,g|2),i.elementType=C,i.lanes=E,i;case L:return i=Ur(13,u,s,g),i.elementType=L,i.lanes=E,i;case I:return i=Ur(19,u,s,g),i.elementType=I,i.lanes=E,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case S:R=10;break e;case D:R=9;break e;case M:R=11;break e;case V:R=14;break e;case te:R=16,h=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=Ur(R,u,s,g),s.elementType=i,s.type=h,s.lanes=E,s}function Yo(i,s,u,h){return i=Ur(7,i,h,s),i.lanes=u,i}function cg(i,s,u){return i=Ur(6,i,null,s),i.lanes=u,i}function ug(i,s,u){return s=Ur(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var el=[],tl=0,yf=null,bf=0,oa=[],sa=0,Qo=null,yi=1,bi="";function Ko(i,s){el[tl++]=bf,el[tl++]=yf,yf=i,bf=s}function Vv(i,s,u){oa[sa++]=yi,oa[sa++]=bi,oa[sa++]=Qo,Qo=i;var h=yi;i=bi;var g=32-rt(h)-1;h&=~(1<<g),u+=1;var E=32-rt(s)+g;if(30<E){var R=g-g%5;E=(h&(1<<R)-1).toString(32),h>>=R,g-=R,yi=1<<32-rt(s)+g|u<<g|h,bi=E+i}else yi=1<<E|u<<g|h,bi=i}function dg(i){i.return!==null&&(Ko(i,1),Vv(i,1,0))}function fg(i){for(;i===yf;)yf=el[--tl],el[tl]=null,bf=el[--tl],el[tl]=null;for(;i===Qo;)Qo=oa[--sa],oa[sa]=null,bi=oa[--sa],oa[sa]=null,yi=oa[--sa],oa[sa]=null}var br=null,En=null,It=!1,Wo=null,Ha=!1,hg=Error(r(519));function Xo(i){var s=Error(r(418,""));throw kc(aa(s,i)),hg}function qv(i){var s=i.stateNode,u=i.type,h=i.memoizedProps;switch(s[Ee]=i,s[De]=h,u){case"dialog":vt("cancel",s),vt("close",s);break;case"iframe":case"object":case"embed":vt("load",s);break;case"video":case"audio":for(u=0;u<Zc.length;u++)vt(Zc[u],s);break;case"source":vt("error",s);break;case"img":case"image":case"link":vt("error",s),vt("load",s);break;case"details":vt("toggle",s);break;case"input":vt("invalid",s),sv(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),rf(s);break;case"select":vt("invalid",s);break;case"textarea":vt("invalid",s),cv(s,h.value,h.defaultValue,h.children),rf(s)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||h.suppressHydrationWarning===!0||cx(s.textContent,u)?(h.popover!=null&&(vt("beforetoggle",s),vt("toggle",s)),h.onScroll!=null&&vt("scroll",s),h.onScrollEnd!=null&&vt("scrollend",s),h.onClick!=null&&(s.onclick=Zf),s=!0):s=!1,s||Xo(i)}function Yv(i){for(br=i.return;br;)switch(br.tag){case 5:case 13:Ha=!1;return;case 27:case 3:Ha=!0;return;default:br=br.return}}function Cc(i){if(i!==br)return!1;if(!It)return Yv(i),It=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||R0(i.type,i.memoizedProps)),u=!u),u&&En&&Xo(i),Yv(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(s===0){En=Ia(i.nextSibling);break e}s--}else u!=="$"&&u!=="$!"&&u!=="$?"||s++;i=i.nextSibling}En=null}}else s===27?(s=En,uo(i.type)?(i=O0,O0=null,En=i):En=s):En=br?Ia(i.stateNode.nextSibling):null;return!0}function Dc(){En=br=null,It=!1}function Qv(){var i=Wo;return i!==null&&(Dr===null?Dr=i:Dr.push.apply(Dr,i),Wo=null),i}function kc(i){Wo===null?Wo=[i]:Wo.push(i)}var pg=Ce(null),Zo=null,Ei=null;function Ki(i,s,u){O(pg,s._currentValue),s._currentValue=u}function vi(i){i._currentValue=pg.current,he(pg)}function mg(i,s,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===u)break;i=i.return}}function gg(i,s,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var E=g.dependencies;if(E!==null){var R=g.child;E=E.firstContext;e:for(;E!==null;){var N=E;E=g;for(var U=0;U<s.length;U++)if(N.context===s[U]){E.lanes|=u,N=E.alternate,N!==null&&(N.lanes|=u),mg(E.return,u,i),h||(R=null);break e}E=N.next}}else if(g.tag===18){if(R=g.return,R===null)throw Error(r(341));R.lanes|=u,E=R.alternate,E!==null&&(E.lanes|=u),mg(R,u,i),R=null}else R=g.child;if(R!==null)R.return=g;else for(R=g;R!==null;){if(R===i){R=null;break}if(g=R.sibling,g!==null){g.return=R.return,R=g;break}R=R.return}g=R}}function Rc(i,s,u,h){i=null;for(var g=s,E=!1;g!==null;){if(!E){if((g.flags&524288)!==0)E=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var R=g.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var N=g.type;jr(g.pendingProps.value,R.value)||(i!==null?i.push(N):i=[N])}}else if(g===Me.current){if(R=g.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(au):i=[au])}g=g.return}i!==null&&gg(s,i,u,h),s.flags|=262144}function Ef(i){for(i=i.firstContext;i!==null;){if(!jr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Jo(i){Zo=i,Ei=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function or(i){return Kv(Zo,i)}function vf(i,s){return Zo===null&&Jo(i),Kv(i,s)}function Kv(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ei===null){if(i===null)throw Error(r(308));Ei=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Ei=Ei.next=s;return u}var VN=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},qN=e.unstable_scheduleCallback,YN=e.unstable_NormalPriority,Fn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new VN,data:new Map,refCount:0}}function Ic(i){i.refCount--,i.refCount===0&&qN(YN,function(){i.controller.abort()})}var wc=null,bg=0,nl=0,rl=null;function QN(i,s){if(wc===null){var u=wc=[];bg=0,nl=v0(),rl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return bg++,s.then(Wv,Wv),s}function Wv(){if(--bg===0&&wc!==null){rl!==null&&(rl.status="fulfilled");var i=wc;wc=null,nl=0,rl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function KN(i,s){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var g=0;g<u.length;g++)(0,u[g])(s)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Xv=G.S;G.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&QN(i,s),Xv!==null&&Xv(i,s)};var es=Ce(null);function Eg(){var i=es.current;return i!==null?i:Jt.pooledCache}function Tf(i,s){s===null?O(es,es.current):O(es,s.pool)}function Zv(){var i=Eg();return i===null?null:{parent:Fn._currentValue,pool:i}}var Nc=Error(r(460)),Jv=Error(r(474)),_f=Error(r(542)),vg={then:function(){}};function eT(i){return i=i.status,i==="fulfilled"||i==="rejected"}function xf(){}function tT(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(xf,xf),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,rT(i),i;default:if(typeof s.status=="string")s.then(xf,xf);else{if(i=Jt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var g=s;g.status="fulfilled",g.value=h}},function(h){if(s.status==="pending"){var g=s;g.status="rejected",g.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,rT(i),i}throw Oc=s,Nc}}var Oc=null;function nT(){if(Oc===null)throw Error(r(459));var i=Oc;return Oc=null,i}function rT(i){if(i===Nc||i===_f)throw Error(r(483))}var Wi=!1;function Tg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _g(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Xi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Zi(i,s,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Lt&2)!==0){var g=h.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),h.pending=s,s=mf(i),zv(i,null,u),s}return pf(i,h,s,u),mf(i)}function Lc(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,fn(i,u)}}function xg(i,s){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?g=E=R:E=E.next=R,u=u.next}while(u!==null);E===null?g=E=s:E=E.next=s}else g=E=s;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:E,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Ag=!1;function Mc(){if(Ag){var i=rl;if(i!==null)throw i}}function Pc(i,s,u,h){Ag=!1;var g=i.updateQueue;Wi=!1;var E=g.firstBaseUpdate,R=g.lastBaseUpdate,N=g.shared.pending;if(N!==null){g.shared.pending=null;var U=N,ee=U.next;U.next=null,R===null?E=ee:R.next=ee,R=U;var ge=i.alternate;ge!==null&&(ge=ge.updateQueue,N=ge.lastBaseUpdate,N!==R&&(N===null?ge.firstBaseUpdate=ee:N.next=ee,ge.lastBaseUpdate=U))}if(E!==null){var be=g.baseState;R=0,ge=ee=U=null,N=E;do{var ne=N.lane&-536870913,ie=ne!==N.lane;if(ie?(At&ne)===ne:(h&ne)===ne){ne!==0&&ne===nl&&(Ag=!0),ge!==null&&(ge=ge.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var it=i,et=N;ne=s;var Bt=u;switch(et.tag){case 1:if(it=et.payload,typeof it=="function"){be=it.call(Bt,be,ne);break e}be=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=et.payload,ne=typeof it=="function"?it.call(Bt,be,ne):it,ne==null)break e;be=p({},be,ne);break e;case 2:Wi=!0}}ne=N.callback,ne!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[ne]:ie.push(ne))}else ie={lane:ne,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ge===null?(ee=ge=ie,U=be):ge=ge.next=ie,R|=ne;if(N=N.next,N===null){if(N=g.shared.pending,N===null)break;ie=N,N=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);ge===null&&(U=be),g.baseState=U,g.firstBaseUpdate=ee,g.lastBaseUpdate=ge,E===null&&(g.shared.lanes=0),oo|=R,i.lanes=R,i.memoizedState=be}}function aT(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function iT(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)aT(u[i],s)}var al=Ce(null),Af=Ce(0);function oT(i,s){i=Di,O(Af,i),O(al,s),Di=i|s.baseLanes}function Sg(){O(Af,Di),O(al,al.current)}function Cg(){Di=Af.current,he(al),he(Af)}var Ji=0,mt=null,$t=null,wn=null,Sf=!1,il=!1,ts=!1,Cf=0,$c=0,ol=null,WN=0;function Cn(){throw Error(r(321))}function Dg(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!jr(i[u],s[u]))return!1;return!0}function kg(i,s,u,h,g,E){return Ji=E,mt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=i===null||i.memoizedState===null?zT:GT,ts=!1,E=u(h,g),ts=!1,il&&(E=lT(s,u,h,g)),sT(i),E}function sT(i){G.H=Nf;var s=$t!==null&&$t.next!==null;if(Ji=0,wn=$t=mt=null,Sf=!1,$c=0,ol=null,s)throw Error(r(300));i===null||Gn||(i=i.dependencies,i!==null&&Ef(i)&&(Gn=!0))}function lT(i,s,u,h){mt=i;var g=0;do{if(il&&(ol=null),$c=0,il=!1,25<=g)throw Error(r(301));if(g+=1,wn=$t=null,i.updateQueue!=null){var E=i.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}G.H=rO,E=s(u,h)}while(il);return E}function XN(){var i=G.H,s=i.useState()[0];return s=typeof s.then=="function"?Fc(s):s,i=i.useState()[0],($t!==null?$t.memoizedState:null)!==i&&(mt.flags|=1024),s}function Rg(){var i=Cf!==0;return Cf=0,i}function Ig(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function wg(i){if(Sf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Sf=!1}Ji=0,wn=$t=mt=null,il=!1,$c=Cf=0,ol=null}function Sr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wn===null?mt.memoizedState=wn=i:wn=wn.next=i,wn}function Nn(){if($t===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=$t.next;var s=wn===null?mt.memoizedState:wn.next;if(s!==null)wn=s,$t=i;else{if(i===null)throw mt.alternate===null?Error(r(467)):Error(r(310));$t=i,i={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},wn===null?mt.memoizedState=wn=i:wn=wn.next=i}return wn}function Ng(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fc(i){var s=$c;return $c+=1,ol===null&&(ol=[]),i=tT(ol,i,s),s=mt,(wn===null?s.memoizedState:wn.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?zT:GT),i}function Df(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Fc(i);if(i.$$typeof===S)return or(i)}throw Error(r(438,String(i)))}function Og(i){var s=null,u=mt.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var h=mt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(g){return g.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Ng(),mt.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),h=0;h<i;h++)u[h]=k;return s.index++,u}function Ti(i,s){return typeof s=="function"?s(i):s}function kf(i){var s=Nn();return Lg(s,$t,i)}function Lg(i,s,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,E=h.pending;if(E!==null){if(g!==null){var R=g.next;g.next=E.next,E.next=R}s.baseQueue=g=E,h.pending=null}if(E=i.baseState,g===null)i.memoizedState=E;else{s=g.next;var N=R=null,U=null,ee=s,ge=!1;do{var be=ee.lane&-536870913;if(be!==ee.lane?(At&be)===be:(Ji&be)===be){var ne=ee.revertLane;if(ne===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),be===nl&&(ge=!0);else if((Ji&ne)===ne){ee=ee.next,ne===nl&&(ge=!0);continue}else be={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(N=U=be,R=E):U=U.next=be,mt.lanes|=ne,oo|=ne;be=ee.action,ts&&u(E,be),E=ee.hasEagerState?ee.eagerState:u(E,be)}else ne={lane:be,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(N=U=ne,R=E):U=U.next=ne,mt.lanes|=be,oo|=be;ee=ee.next}while(ee!==null&&ee!==s);if(U===null?R=E:U.next=N,!jr(E,i.memoizedState)&&(Gn=!0,ge&&(u=rl,u!==null)))throw u;i.memoizedState=E,i.baseState=R,i.baseQueue=U,h.lastRenderedState=E}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Mg(i){var s=Nn(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,E=s.memoizedState;if(g!==null){u.pending=null;var R=g=g.next;do E=i(E,R.action),R=R.next;while(R!==g);jr(E,s.memoizedState)||(Gn=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),u.lastRenderedState=E}return[E,h]}function cT(i,s,u){var h=mt,g=Nn(),E=It;if(E){if(u===void 0)throw Error(r(407));u=u()}else u=s();var R=!jr(($t||g).memoizedState,u);R&&(g.memoizedState=u,Gn=!0),g=g.queue;var N=fT.bind(null,h,g,i);if(Bc(2048,8,N,[i]),g.getSnapshot!==s||R||wn!==null&&wn.memoizedState.tag&1){if(h.flags|=2048,sl(9,Rf(),dT.bind(null,h,g,u,s),null),Jt===null)throw Error(r(349));E||(Ji&124)!==0||uT(h,s,u)}return u}function uT(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=mt.updateQueue,s===null?(s=Ng(),mt.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function dT(i,s,u,h){s.value=u,s.getSnapshot=h,hT(s)&&pT(i)}function fT(i,s,u){return u(function(){hT(s)&&pT(i)})}function hT(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!jr(i,u)}catch{return!0}}function pT(i){var s=Zs(i,2);s!==null&&qr(s,i,2)}function Pg(i){var s=Sr();if(typeof i=="function"){var u=i;if(i=u(),ts){Be(!0);try{u()}finally{Be(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:i},s}function mT(i,s,u,h){return i.baseState=u,Lg(i,$t,typeof h=="function"?h:Ti)}function ZN(i,s,u,h,g){if(wf(i))throw Error(r(485));if(i=s.action,i!==null){var E={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){E.listeners.push(R)}};G.T!==null?u(!0):E.isTransition=!1,h(E),u=s.pending,u===null?(E.next=s.pending=E,gT(s,E)):(E.next=u.next,s.pending=u.next=E)}}function gT(i,s){var u=s.action,h=s.payload,g=i.state;if(s.isTransition){var E=G.T,R={};G.T=R;try{var N=u(g,h),U=G.S;U!==null&&U(R,N),yT(i,s,N)}catch(ee){$g(i,s,ee)}finally{G.T=E}}else try{E=u(g,h),yT(i,s,E)}catch(ee){$g(i,s,ee)}}function yT(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){bT(i,s,h)},function(h){return $g(i,s,h)}):bT(i,s,u)}function bT(i,s,u){s.status="fulfilled",s.value=u,ET(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,gT(i,u)))}function $g(i,s,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=u,ET(s),s=s.next;while(s!==h)}i.action=null}function ET(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function vT(i,s){return s}function TT(i,s){if(It){var u=Jt.formState;if(u!==null){e:{var h=mt;if(It){if(En){t:{for(var g=En,E=Ha;g.nodeType!==8;){if(!E){g=null;break t}if(g=Ia(g.nextSibling),g===null){g=null;break t}}E=g.data,g=E==="F!"||E==="F"?g:null}if(g){En=Ia(g.nextSibling),h=g.data==="F!";break e}}Xo(h)}h=!1}h&&(s=u[0])}}return u=Sr(),u.memoizedState=u.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vT,lastRenderedState:s},u.queue=h,u=jT.bind(null,mt,h),h.dispatch=u,h=Pg(!1),E=Hg.bind(null,mt,!1,h.queue),h=Sr(),g={state:s,dispatch:null,action:i,pending:null},h.queue=g,u=ZN.bind(null,mt,g,E,u),g.dispatch=u,h.memoizedState=i,[s,u,!1]}function _T(i){var s=Nn();return xT(s,$t,i)}function xT(i,s,u){if(s=Lg(i,s,vT)[0],i=kf(Ti)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Fc(s)}catch(R){throw R===Nc?_f:R}else h=s;s=Nn();var g=s.queue,E=g.dispatch;return u!==s.memoizedState&&(mt.flags|=2048,sl(9,Rf(),JN.bind(null,g,u),null)),[h,E,i]}function JN(i,s){i.action=s}function AT(i){var s=Nn(),u=$t;if(u!==null)return xT(s,u,i);Nn(),s=s.memoizedState,u=Nn();var h=u.queue.dispatch;return u.memoizedState=i,[s,h,!1]}function sl(i,s,u,h){return i={tag:i,create:u,deps:h,inst:s,next:null},s=mt.updateQueue,s===null&&(s=Ng(),mt.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,s.lastEffect=i),i}function Rf(){return{destroy:void 0,resource:void 0}}function ST(){return Nn().memoizedState}function If(i,s,u,h){var g=Sr();h=h===void 0?null:h,mt.flags|=i,g.memoizedState=sl(1|s,Rf(),u,h)}function Bc(i,s,u,h){var g=Nn();h=h===void 0?null:h;var E=g.memoizedState.inst;$t!==null&&h!==null&&Dg(h,$t.memoizedState.deps)?g.memoizedState=sl(s,E,u,h):(mt.flags|=i,g.memoizedState=sl(1|s,E,u,h))}function CT(i,s){If(8390656,8,i,s)}function DT(i,s){Bc(2048,8,i,s)}function kT(i,s){return Bc(4,2,i,s)}function RT(i,s){return Bc(4,4,i,s)}function IT(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function wT(i,s,u){u=u!=null?u.concat([i]):null,Bc(4,4,IT.bind(null,s,i),u)}function Fg(){}function NT(i,s){var u=Nn();s=s===void 0?null:s;var h=u.memoizedState;return s!==null&&Dg(s,h[1])?h[0]:(u.memoizedState=[i,s],i)}function OT(i,s){var u=Nn();s=s===void 0?null:s;var h=u.memoizedState;if(s!==null&&Dg(s,h[1]))return h[0];if(h=i(),ts){Be(!0);try{i()}finally{Be(!1)}}return u.memoizedState=[h,s],h}function Bg(i,s,u){return u===void 0||(Ji&1073741824)!==0?i.memoizedState=s:(i.memoizedState=u,i=P_(),mt.lanes|=i,oo|=i,u)}function LT(i,s,u,h){return jr(u,s)?u:al.current!==null?(i=Bg(i,u,h),jr(i,s)||(Gn=!0),i):(Ji&42)===0?(Gn=!0,i.memoizedState=u):(i=P_(),mt.lanes|=i,oo|=i,s)}function MT(i,s,u,h,g){var E=oe.p;oe.p=E!==0&&8>E?E:8;var R=G.T,N={};G.T=N,Hg(i,!1,s,u);try{var U=g(),ee=G.S;if(ee!==null&&ee(N,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ge=KN(U,h);jc(i,s,ge,Vr(i))}else jc(i,s,h,Vr(i))}catch(be){jc(i,s,{then:function(){},status:"rejected",reason:be},Vr())}finally{oe.p=E,G.T=R}}function eO(){}function jg(i,s,u,h){if(i.tag!==5)throw Error(r(476));var g=PT(i).queue;MT(i,g,s,le,u===null?eO:function(){return $T(i),u(h)})}function PT(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:le},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function $T(i){var s=PT(i).next.queue;jc(i,s,{},Vr())}function Ug(){return or(au)}function FT(){return Nn().memoizedState}function BT(){return Nn().memoizedState}function tO(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=Vr();i=Xi(u);var h=Zi(s,i,u);h!==null&&(qr(h,s,u),Lc(h,s,u)),s={cache:yg()},i.payload=s;return}s=s.return}}function nO(i,s,u){var h=Vr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},wf(i)?UT(s,u):(u=sg(i,s,u,h),u!==null&&(qr(u,i,h),HT(u,s,h)))}function jT(i,s,u){var h=Vr();jc(i,s,u,h)}function jc(i,s,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(wf(i))UT(s,g);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null))try{var R=s.lastRenderedState,N=E(R,u);if(g.hasEagerState=!0,g.eagerState=N,jr(N,R))return pf(i,s,g,0),Jt===null&&hf(),!1}catch{}finally{}if(u=sg(i,s,g,h),u!==null)return qr(u,i,h),HT(u,s,h),!0}return!1}function Hg(i,s,u,h){if(h={lane:2,revertLane:v0(),action:h,hasEagerState:!1,eagerState:null,next:null},wf(i)){if(s)throw Error(r(479))}else s=sg(i,u,h,2),s!==null&&qr(s,i,2)}function wf(i){var s=i.alternate;return i===mt||s!==null&&s===mt}function UT(i,s){il=Sf=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function HT(i,s,u){if((u&4194048)!==0){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,fn(i,u)}}var Nf={readContext:or,use:Df,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useLayoutEffect:Cn,useInsertionEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useSyncExternalStore:Cn,useId:Cn,useHostTransitionStatus:Cn,useFormState:Cn,useActionState:Cn,useOptimistic:Cn,useMemoCache:Cn,useCacheRefresh:Cn},zT={readContext:or,use:Df,useCallback:function(i,s){return Sr().memoizedState=[i,s===void 0?null:s],i},useContext:or,useEffect:CT,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,If(4194308,4,IT.bind(null,s,i),u)},useLayoutEffect:function(i,s){return If(4194308,4,i,s)},useInsertionEffect:function(i,s){If(4,2,i,s)},useMemo:function(i,s){var u=Sr();s=s===void 0?null:s;var h=i();if(ts){Be(!0);try{i()}finally{Be(!1)}}return u.memoizedState=[h,s],h},useReducer:function(i,s,u){var h=Sr();if(u!==void 0){var g=u(s);if(ts){Be(!0);try{u(s)}finally{Be(!1)}}}else g=s;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=nO.bind(null,mt,i),[h.memoizedState,i]},useRef:function(i){var s=Sr();return i={current:i},s.memoizedState=i},useState:function(i){i=Pg(i);var s=i.queue,u=jT.bind(null,mt,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Sr();return Bg(u,i,s)},useTransition:function(){var i=Pg(!1);return i=MT.bind(null,mt,i.queue,!0,!1),Sr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var h=mt,g=Sr();if(It){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),Jt===null)throw Error(r(349));(At&124)!==0||uT(h,s,u)}g.memoizedState=u;var E={value:u,getSnapshot:s};return g.queue=E,CT(fT.bind(null,h,E,i),[i]),h.flags|=2048,sl(9,Rf(),dT.bind(null,h,E,u,s),null),u},useId:function(){var i=Sr(),s=Jt.identifierPrefix;if(It){var u=bi,h=yi;u=(h&~(1<<32-rt(h)-1)).toString(32)+u,s="«"+s+"R"+u,u=Cf++,0<u&&(s+="H"+u.toString(32)),s+="»"}else u=WN++,s="«"+s+"r"+u.toString(32)+"»";return i.memoizedState=s},useHostTransitionStatus:Ug,useFormState:TT,useActionState:TT,useOptimistic:function(i){var s=Sr();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Hg.bind(null,mt,!0,u),u.dispatch=s,[i,s]},useMemoCache:Og,useCacheRefresh:function(){return Sr().memoizedState=tO.bind(null,mt)}},GT={readContext:or,use:Df,useCallback:NT,useContext:or,useEffect:DT,useImperativeHandle:wT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:OT,useReducer:kf,useRef:ST,useState:function(){return kf(Ti)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Nn();return LT(u,$t.memoizedState,i,s)},useTransition:function(){var i=kf(Ti)[0],s=Nn().memoizedState;return[typeof i=="boolean"?i:Fc(i),s]},useSyncExternalStore:cT,useId:FT,useHostTransitionStatus:Ug,useFormState:_T,useActionState:_T,useOptimistic:function(i,s){var u=Nn();return mT(u,$t,i,s)},useMemoCache:Og,useCacheRefresh:BT},rO={readContext:or,use:Df,useCallback:NT,useContext:or,useEffect:DT,useImperativeHandle:wT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:OT,useReducer:Mg,useRef:ST,useState:function(){return Mg(Ti)},useDebugValue:Fg,useDeferredValue:function(i,s){var u=Nn();return $t===null?Bg(u,i,s):LT(u,$t.memoizedState,i,s)},useTransition:function(){var i=Mg(Ti)[0],s=Nn().memoizedState;return[typeof i=="boolean"?i:Fc(i),s]},useSyncExternalStore:cT,useId:FT,useHostTransitionStatus:Ug,useFormState:AT,useActionState:AT,useOptimistic:function(i,s){var u=Nn();return $t!==null?mT(u,$t,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Og,useCacheRefresh:BT},ll=null,Uc=0;function Of(i){var s=Uc;return Uc+=1,ll===null&&(ll=[]),tT(ll,i,s)}function Hc(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Lf(i,s){throw s.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function VT(i){var s=i._init;return s(i._payload)}function qT(i){function s(Y,q){if(i){var Z=Y.deletions;Z===null?(Y.deletions=[q],Y.flags|=16):Z.push(q)}}function u(Y,q){if(!i)return null;for(;q!==null;)s(Y,q),q=q.sibling;return null}function h(Y){for(var q=new Map;Y!==null;)Y.key!==null?q.set(Y.key,Y):q.set(Y.index,Y),Y=Y.sibling;return q}function g(Y,q){return Y=gi(Y,q),Y.index=0,Y.sibling=null,Y}function E(Y,q,Z){return Y.index=Z,i?(Z=Y.alternate,Z!==null?(Z=Z.index,Z<q?(Y.flags|=67108866,q):Z):(Y.flags|=67108866,q)):(Y.flags|=1048576,q)}function R(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function N(Y,q,Z,ye){return q===null||q.tag!==6?(q=cg(Z,Y.mode,ye),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function U(Y,q,Z,ye){var Fe=Z.type;return Fe===_?ge(Y,q,Z.props.children,ye,Z.key):q!==null&&(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===te&&VT(Fe)===q.type)?(q=g(q,Z.props),Hc(q,Z),q.return=Y,q):(q=gf(Z.type,Z.key,Z.props,null,Y.mode,ye),Hc(q,Z),q.return=Y,q)}function ee(Y,q,Z,ye){return q===null||q.tag!==4||q.stateNode.containerInfo!==Z.containerInfo||q.stateNode.implementation!==Z.implementation?(q=ug(Z,Y.mode,ye),q.return=Y,q):(q=g(q,Z.children||[]),q.return=Y,q)}function ge(Y,q,Z,ye,Fe){return q===null||q.tag!==7?(q=Yo(Z,Y.mode,ye,Fe),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function be(Y,q,Z){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=cg(""+q,Y.mode,Z),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case y:return Z=gf(q.type,q.key,q.props,null,Y.mode,Z),Hc(Z,q),Z.return=Y,Z;case b:return q=ug(q,Y.mode,Z),q.return=Y,q;case te:var ye=q._init;return q=ye(q._payload),be(Y,q,Z)}if(me(q)||W(q))return q=Yo(q,Y.mode,Z,null),q.return=Y,q;if(typeof q.then=="function")return be(Y,Of(q),Z);if(q.$$typeof===S)return be(Y,vf(Y,q),Z);Lf(Y,q)}return null}function ne(Y,q,Z,ye){var Fe=q!==null?q.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Fe!==null?null:N(Y,q,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:return Z.key===Fe?U(Y,q,Z,ye):null;case b:return Z.key===Fe?ee(Y,q,Z,ye):null;case te:return Fe=Z._init,Z=Fe(Z._payload),ne(Y,q,Z,ye)}if(me(Z)||W(Z))return Fe!==null?null:ge(Y,q,Z,ye,null);if(typeof Z.then=="function")return ne(Y,q,Of(Z),ye);if(Z.$$typeof===S)return ne(Y,q,vf(Y,Z),ye);Lf(Y,Z)}return null}function ie(Y,q,Z,ye,Fe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return Y=Y.get(Z)||null,N(q,Y,""+ye,Fe);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case y:return Y=Y.get(ye.key===null?Z:ye.key)||null,U(q,Y,ye,Fe);case b:return Y=Y.get(ye.key===null?Z:ye.key)||null,ee(q,Y,ye,Fe);case te:var yt=ye._init;return ye=yt(ye._payload),ie(Y,q,Z,ye,Fe)}if(me(ye)||W(ye))return Y=Y.get(Z)||null,ge(q,Y,ye,Fe,null);if(typeof ye.then=="function")return ie(Y,q,Z,Of(ye),Fe);if(ye.$$typeof===S)return ie(Y,q,Z,vf(q,ye),Fe);Lf(q,ye)}return null}function it(Y,q,Z,ye){for(var Fe=null,yt=null,Qe=q,nt=q=0,qn=null;Qe!==null&&nt<Z.length;nt++){Qe.index>nt?(qn=Qe,Qe=null):qn=Qe.sibling;var kt=ne(Y,Qe,Z[nt],ye);if(kt===null){Qe===null&&(Qe=qn);break}i&&Qe&&kt.alternate===null&&s(Y,Qe),q=E(kt,q,nt),yt===null?Fe=kt:yt.sibling=kt,yt=kt,Qe=qn}if(nt===Z.length)return u(Y,Qe),It&&Ko(Y,nt),Fe;if(Qe===null){for(;nt<Z.length;nt++)Qe=be(Y,Z[nt],ye),Qe!==null&&(q=E(Qe,q,nt),yt===null?Fe=Qe:yt.sibling=Qe,yt=Qe);return It&&Ko(Y,nt),Fe}for(Qe=h(Qe);nt<Z.length;nt++)qn=ie(Qe,Y,nt,Z[nt],ye),qn!==null&&(i&&qn.alternate!==null&&Qe.delete(qn.key===null?nt:qn.key),q=E(qn,q,nt),yt===null?Fe=qn:yt.sibling=qn,yt=qn);return i&&Qe.forEach(function(go){return s(Y,go)}),It&&Ko(Y,nt),Fe}function et(Y,q,Z,ye){if(Z==null)throw Error(r(151));for(var Fe=null,yt=null,Qe=q,nt=q=0,qn=null,kt=Z.next();Qe!==null&&!kt.done;nt++,kt=Z.next()){Qe.index>nt?(qn=Qe,Qe=null):qn=Qe.sibling;var go=ne(Y,Qe,kt.value,ye);if(go===null){Qe===null&&(Qe=qn);break}i&&Qe&&go.alternate===null&&s(Y,Qe),q=E(go,q,nt),yt===null?Fe=go:yt.sibling=go,yt=go,Qe=qn}if(kt.done)return u(Y,Qe),It&&Ko(Y,nt),Fe;if(Qe===null){for(;!kt.done;nt++,kt=Z.next())kt=be(Y,kt.value,ye),kt!==null&&(q=E(kt,q,nt),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return It&&Ko(Y,nt),Fe}for(Qe=h(Qe);!kt.done;nt++,kt=Z.next())kt=ie(Qe,Y,nt,kt.value,ye),kt!==null&&(i&&kt.alternate!==null&&Qe.delete(kt.key===null?nt:kt.key),q=E(kt,q,nt),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return i&&Qe.forEach(function(a5){return s(Y,a5)}),It&&Ko(Y,nt),Fe}function Bt(Y,q,Z,ye){if(typeof Z=="object"&&Z!==null&&Z.type===_&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:e:{for(var Fe=Z.key;q!==null;){if(q.key===Fe){if(Fe=Z.type,Fe===_){if(q.tag===7){u(Y,q.sibling),ye=g(q,Z.props.children),ye.return=Y,Y=ye;break e}}else if(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===te&&VT(Fe)===q.type){u(Y,q.sibling),ye=g(q,Z.props),Hc(ye,Z),ye.return=Y,Y=ye;break e}u(Y,q);break}else s(Y,q);q=q.sibling}Z.type===_?(ye=Yo(Z.props.children,Y.mode,ye,Z.key),ye.return=Y,Y=ye):(ye=gf(Z.type,Z.key,Z.props,null,Y.mode,ye),Hc(ye,Z),ye.return=Y,Y=ye)}return R(Y);case b:e:{for(Fe=Z.key;q!==null;){if(q.key===Fe)if(q.tag===4&&q.stateNode.containerInfo===Z.containerInfo&&q.stateNode.implementation===Z.implementation){u(Y,q.sibling),ye=g(q,Z.children||[]),ye.return=Y,Y=ye;break e}else{u(Y,q);break}else s(Y,q);q=q.sibling}ye=ug(Z,Y.mode,ye),ye.return=Y,Y=ye}return R(Y);case te:return Fe=Z._init,Z=Fe(Z._payload),Bt(Y,q,Z,ye)}if(me(Z))return it(Y,q,Z,ye);if(W(Z)){if(Fe=W(Z),typeof Fe!="function")throw Error(r(150));return Z=Fe.call(Z),et(Y,q,Z,ye)}if(typeof Z.then=="function")return Bt(Y,q,Of(Z),ye);if(Z.$$typeof===S)return Bt(Y,q,vf(Y,Z),ye);Lf(Y,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,q!==null&&q.tag===6?(u(Y,q.sibling),ye=g(q,Z),ye.return=Y,Y=ye):(u(Y,q),ye=cg(Z,Y.mode,ye),ye.return=Y,Y=ye),R(Y)):u(Y,q)}return function(Y,q,Z,ye){try{Uc=0;var Fe=Bt(Y,q,Z,ye);return ll=null,Fe}catch(Qe){if(Qe===Nc||Qe===_f)throw Qe;var yt=Ur(29,Qe,null,Y.mode);return yt.lanes=ye,yt.return=Y,yt}finally{}}}var cl=qT(!0),YT=qT(!1),la=Ce(null),za=null;function eo(i){var s=i.alternate;O(Bn,Bn.current&1),O(la,i),za===null&&(s===null||al.current!==null||s.memoizedState!==null)&&(za=i)}function QT(i){if(i.tag===22){if(O(Bn,Bn.current),O(la,i),za===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(za=i)}}else to()}function to(){O(Bn,Bn.current),O(la,la.current)}function _i(i){he(la),za===i&&(za=null),he(Bn)}var Bn=Ce(0);function Mf(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||N0(u)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function zg(i,s,u,h){s=i.memoizedState,u=u(h,s),u=u==null?s:p({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Gg={enqueueSetState:function(i,s,u){i=i._reactInternals;var h=Vr(),g=Xi(h);g.payload=s,u!=null&&(g.callback=u),s=Zi(i,g,h),s!==null&&(qr(s,i,h),Lc(s,i,h))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var h=Vr(),g=Xi(h);g.tag=1,g.payload=s,u!=null&&(g.callback=u),s=Zi(i,g,h),s!==null&&(qr(s,i,h),Lc(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=Vr(),h=Xi(u);h.tag=2,s!=null&&(h.callback=s),s=Zi(i,h,u),s!==null&&(qr(s,i,u),Lc(s,i,u))}};function KT(i,s,u,h,g,E,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,E,R):s.prototype&&s.prototype.isPureReactComponent?!Ac(u,h)||!Ac(g,E):!0}function WT(i,s,u,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,h),s.state!==i&&Gg.enqueueReplaceState(s,s.state,null)}function ns(i,s){var u=s;if("ref"in s){u={};for(var h in s)h!=="ref"&&(u[h]=s[h])}if(i=i.defaultProps){u===s&&(u=p({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var Pf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function XT(i){Pf(i)}function ZT(i){console.error(i)}function JT(i){Pf(i)}function $f(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function e_(i,s,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Vg(i,s,u){return u=Xi(u),u.tag=3,u.payload={element:null},u.callback=function(){$f(i,s)},u}function t_(i){return i=Xi(i),i.tag=3,i}function n_(i,s,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var E=h.value;i.payload=function(){return g(E)},i.callback=function(){e_(s,u,h)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){e_(s,u,h),typeof g!="function"&&(so===null?so=new Set([this]):so.add(this));var N=h.stack;this.componentDidCatch(h.value,{componentStack:N!==null?N:""})})}function aO(i,s,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=u.alternate,s!==null&&Rc(s,u,g,!0),u=la.current,u!==null){switch(u.tag){case 13:return za===null?m0():u.alternate===null&&vn===0&&(vn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([h]):s.add(h),y0(i,h,g)),!1;case 22:return u.flags|=65536,h===vg?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([h]):u.add(h)),y0(i,h,g)),!1}throw Error(r(435,u.tag))}return y0(i,h,g),m0(),!1}if(It)return s=la.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=g,h!==hg&&(i=Error(r(422),{cause:h}),kc(aa(i,u)))):(h!==hg&&(s=Error(r(423),{cause:h}),kc(aa(s,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=aa(h,u),g=Vg(i.stateNode,h,g),xg(i,g),vn!==4&&(vn=2)),!1;var E=Error(r(520),{cause:h});if(E=aa(E,u),Kc===null?Kc=[E]:Kc.push(E),vn!==4&&(vn=2),s===null)return!0;h=aa(h,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=Vg(u.stateNode,h,i),xg(u,i),!1;case 1:if(s=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(so===null||!so.has(E))))return u.flags|=65536,g&=-g,u.lanes|=g,g=t_(g),n_(g,i,u,h),xg(u,g),!1}u=u.return}while(u!==null);return!1}var r_=Error(r(461)),Gn=!1;function Jn(i,s,u,h){s.child=i===null?YT(s,null,u,h):cl(s,i.child,u,h)}function a_(i,s,u,h,g){u=u.render;var E=s.ref;if("ref"in h){var R={};for(var N in h)N!=="ref"&&(R[N]=h[N])}else R=h;return Jo(s),h=kg(i,s,u,R,E,g),N=Rg(),i!==null&&!Gn?(Ig(i,s,g),xi(i,s,g)):(It&&N&&dg(s),s.flags|=1,Jn(i,s,h,g),s.child)}function i_(i,s,u,h,g){if(i===null){var E=u.type;return typeof E=="function"&&!lg(E)&&E.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=E,o_(i,s,E,h,g)):(i=gf(u.type,null,h,s,s.mode,g),i.ref=s.ref,i.return=s,s.child=i)}if(E=i.child,!Jg(i,g)){var R=E.memoizedProps;if(u=u.compare,u=u!==null?u:Ac,u(R,h)&&i.ref===s.ref)return xi(i,s,g)}return s.flags|=1,i=gi(E,h),i.ref=s.ref,i.return=s,s.child=i}function o_(i,s,u,h,g){if(i!==null){var E=i.memoizedProps;if(Ac(E,h)&&i.ref===s.ref)if(Gn=!1,s.pendingProps=h=E,Jg(i,g))(i.flags&131072)!==0&&(Gn=!0);else return s.lanes=i.lanes,xi(i,s,g)}return qg(i,s,u,h,g)}function s_(i,s,u){var h=s.pendingProps,g=h.children,E=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((s.flags&128)!==0){if(h=E!==null?E.baseLanes|u:u,i!==null){for(g=s.child=i.child,E=0;g!==null;)E=E|g.lanes|g.childLanes,g=g.sibling;s.childLanes=E&~h}else s.childLanes=0,s.child=null;return l_(i,s,h,u)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Tf(s,E!==null?E.cachePool:null),E!==null?oT(s,E):Sg(),QT(s);else return s.lanes=s.childLanes=536870912,l_(i,s,E!==null?E.baseLanes|u:u,u)}else E!==null?(Tf(s,E.cachePool),oT(s,E),to(),s.memoizedState=null):(i!==null&&Tf(s,null),Sg(),to());return Jn(i,s,g,u),s.child}function l_(i,s,u,h){var g=Eg();return g=g===null?null:{parent:Fn._currentValue,pool:g},s.memoizedState={baseLanes:u,cachePool:g},i!==null&&Tf(s,null),Sg(),QT(s),i!==null&&Rc(i,s,h,!0),null}function Ff(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function qg(i,s,u,h,g){return Jo(s),u=kg(i,s,u,h,void 0,g),h=Rg(),i!==null&&!Gn?(Ig(i,s,g),xi(i,s,g)):(It&&h&&dg(s),s.flags|=1,Jn(i,s,u,g),s.child)}function c_(i,s,u,h,g,E){return Jo(s),s.updateQueue=null,u=lT(s,h,u,g),sT(i),h=Rg(),i!==null&&!Gn?(Ig(i,s,E),xi(i,s,E)):(It&&h&&dg(s),s.flags|=1,Jn(i,s,u,E),s.child)}function u_(i,s,u,h,g){if(Jo(s),s.stateNode===null){var E=Js,R=u.contextType;typeof R=="object"&&R!==null&&(E=or(R)),E=new u(h,E),s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Gg,s.stateNode=E,E._reactInternals=s,E=s.stateNode,E.props=h,E.state=s.memoizedState,E.refs={},Tg(s),R=u.contextType,E.context=typeof R=="object"&&R!==null?or(R):Js,E.state=s.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(zg(s,u,R,h),E.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(R=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),R!==E.state&&Gg.enqueueReplaceState(E,E.state,null),Pc(s,h,E,g),Mc(),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){E=s.stateNode;var N=s.memoizedProps,U=ns(u,N);E.props=U;var ee=E.context,ge=u.contextType;R=Js,typeof ge=="object"&&ge!==null&&(R=or(ge));var be=u.getDerivedStateFromProps;ge=typeof be=="function"||typeof E.getSnapshotBeforeUpdate=="function",N=s.pendingProps!==N,ge||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(N||ee!==R)&&WT(s,E,h,R),Wi=!1;var ne=s.memoizedState;E.state=ne,Pc(s,h,E,g),Mc(),ee=s.memoizedState,N||ne!==ee||Wi?(typeof be=="function"&&(zg(s,u,be,h),ee=s.memoizedState),(U=Wi||KT(s,u,U,h,ne,ee,R))?(ge||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(s.flags|=4194308)):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=ee),E.props=h,E.state=ee,E.context=R,h=U):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{E=s.stateNode,_g(i,s),R=s.memoizedProps,ge=ns(u,R),E.props=ge,be=s.pendingProps,ne=E.context,ee=u.contextType,U=Js,typeof ee=="object"&&ee!==null&&(U=or(ee)),N=u.getDerivedStateFromProps,(ee=typeof N=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(R!==be||ne!==U)&&WT(s,E,h,U),Wi=!1,ne=s.memoizedState,E.state=ne,Pc(s,h,E,g),Mc();var ie=s.memoizedState;R!==be||ne!==ie||Wi||i!==null&&i.dependencies!==null&&Ef(i.dependencies)?(typeof N=="function"&&(zg(s,u,N,h),ie=s.memoizedState),(ge=Wi||KT(s,u,ge,h,ne,ie,U)||i!==null&&i.dependencies!==null&&Ef(i.dependencies))?(ee||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(h,ie,U),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(h,ie,U)),typeof E.componentDidUpdate=="function"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof E.componentDidUpdate!="function"||R===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ie),E.props=h,E.state=ie,E.context=U,h=ge):(typeof E.componentDidUpdate!="function"||R===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),h=!1)}return E=h,Ff(i,s),h=(s.flags&128)!==0,E||h?(E=s.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:E.render(),s.flags|=1,i!==null&&h?(s.child=cl(s,i.child,null,g),s.child=cl(s,null,u,g)):Jn(i,s,u,g),s.memoizedState=E.state,i=s.child):i=xi(i,s,g),i}function d_(i,s,u,h){return Dc(),s.flags|=256,Jn(i,s,u,h),s.child}var Yg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qg(i){return{baseLanes:i,cachePool:Zv()}}function Kg(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=ca),i}function f_(i,s,u){var h=s.pendingProps,g=!1,E=(s.flags&128)!==0,R;if((R=E)||(R=i!==null&&i.memoizedState===null?!1:(Bn.current&2)!==0),R&&(g=!0,s.flags&=-129),R=(s.flags&32)!==0,s.flags&=-33,i===null){if(It){if(g?eo(s):to(),It){var N=En,U;if(U=N){e:{for(U=N,N=Ha;U.nodeType!==8;){if(!N){N=null;break e}if(U=Ia(U.nextSibling),U===null){N=null;break e}}N=U}N!==null?(s.memoizedState={dehydrated:N,treeContext:Qo!==null?{id:yi,overflow:bi}:null,retryLane:536870912,hydrationErrors:null},U=Ur(18,null,null,0),U.stateNode=N,U.return=s,s.child=U,br=s,En=null,U=!0):U=!1}U||Xo(s)}if(N=s.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return N0(N)?s.lanes=32:s.lanes=536870912,null;_i(s)}return N=h.children,h=h.fallback,g?(to(),g=s.mode,N=Bf({mode:"hidden",children:N},g),h=Yo(h,g,u,null),N.return=s,h.return=s,N.sibling=h,s.child=N,g=s.child,g.memoizedState=Qg(u),g.childLanes=Kg(i,R,u),s.memoizedState=Yg,h):(eo(s),Wg(s,N))}if(U=i.memoizedState,U!==null&&(N=U.dehydrated,N!==null)){if(E)s.flags&256?(eo(s),s.flags&=-257,s=Xg(i,s,u)):s.memoizedState!==null?(to(),s.child=i.child,s.flags|=128,s=null):(to(),g=h.fallback,N=s.mode,h=Bf({mode:"visible",children:h.children},N),g=Yo(g,N,u,null),g.flags|=2,h.return=s,g.return=s,h.sibling=g,s.child=h,cl(s,i.child,null,u),h=s.child,h.memoizedState=Qg(u),h.childLanes=Kg(i,R,u),s.memoizedState=Yg,s=g);else if(eo(s),N0(N)){if(R=N.nextSibling&&N.nextSibling.dataset,R)var ee=R.dgst;R=ee,h=Error(r(419)),h.stack="",h.digest=R,kc({value:h,source:null,stack:null}),s=Xg(i,s,u)}else if(Gn||Rc(i,s,u,!1),R=(u&i.childLanes)!==0,Gn||R){if(R=Jt,R!==null&&(h=u&-u,h=(h&42)!==0?1:Fr(h),h=(h&(R.suspendedLanes|u))!==0?0:h,h!==0&&h!==U.retryLane))throw U.retryLane=h,Zs(i,h),qr(R,i,h),r_;N.data==="$?"||m0(),s=Xg(i,s,u)}else N.data==="$?"?(s.flags|=192,s.child=i.child,s=null):(i=U.treeContext,En=Ia(N.nextSibling),br=s,It=!0,Wo=null,Ha=!1,i!==null&&(oa[sa++]=yi,oa[sa++]=bi,oa[sa++]=Qo,yi=i.id,bi=i.overflow,Qo=s),s=Wg(s,h.children),s.flags|=4096);return s}return g?(to(),g=h.fallback,N=s.mode,U=i.child,ee=U.sibling,h=gi(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?g=gi(ee,g):(g=Yo(g,N,u,null),g.flags|=2),g.return=s,h.return=s,h.sibling=g,s.child=h,h=g,g=s.child,N=i.child.memoizedState,N===null?N=Qg(u):(U=N.cachePool,U!==null?(ee=Fn._currentValue,U=U.parent!==ee?{parent:ee,pool:ee}:U):U=Zv(),N={baseLanes:N.baseLanes|u,cachePool:U}),g.memoizedState=N,g.childLanes=Kg(i,R,u),s.memoizedState=Yg,h):(eo(s),u=i.child,i=u.sibling,u=gi(u,{mode:"visible",children:h.children}),u.return=s,u.sibling=null,i!==null&&(R=s.deletions,R===null?(s.deletions=[i],s.flags|=16):R.push(i)),s.child=u,s.memoizedState=null,u)}function Wg(i,s){return s=Bf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Bf(i,s){return i=Ur(22,i,null,s),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Xg(i,s,u){return cl(s,i.child,null,u),i=Wg(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function h_(i,s,u){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),mg(i.return,s,u)}function Zg(i,s,u,h,g){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=u,E.tailMode=g)}function p_(i,s,u){var h=s.pendingProps,g=h.revealOrder,E=h.tail;if(Jn(i,s,h.children,u),h=Bn.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&h_(i,u,s);else if(i.tag===19)h_(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(O(Bn,h),g){case"forwards":for(u=s.child,g=null;u!==null;)i=u.alternate,i!==null&&Mf(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=s.child,s.child=null):(g=u.sibling,u.sibling=null),Zg(s,!1,g,u,E);break;case"backwards":for(u=null,g=s.child,s.child=null;g!==null;){if(i=g.alternate,i!==null&&Mf(i)===null){s.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}Zg(s,!0,u,null,E);break;case"together":Zg(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function xi(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),oo|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(Rc(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=gi(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=gi(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function Jg(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Ef(i)))}function iO(i,s,u){switch(s.tag){case 3:Oe(s,s.stateNode.containerInfo),Ki(s,Fn,i.memoizedState.cache),Dc();break;case 27:case 5:dt(s);break;case 4:Oe(s,s.stateNode.containerInfo);break;case 10:Ki(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(eo(s),s.flags|=128,null):(u&s.child.childLanes)!==0?f_(i,s,u):(eo(s),i=xi(i,s,u),i!==null?i.sibling:null);eo(s);break;case 19:var g=(i.flags&128)!==0;if(h=(u&s.childLanes)!==0,h||(Rc(i,s,u,!1),h=(u&s.childLanes)!==0),g){if(h)return p_(i,s,u);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),O(Bn,Bn.current),h)break;return null;case 22:case 23:return s.lanes=0,s_(i,s,u);case 24:Ki(s,Fn,i.memoizedState.cache)}return xi(i,s,u)}function m_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Gn=!0;else{if(!Jg(i,u)&&(s.flags&128)===0)return Gn=!1,iO(i,s,u);Gn=(i.flags&131072)!==0}else Gn=!1,It&&(s.flags&1048576)!==0&&Vv(s,bf,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,g=h._init;if(h=g(h._payload),s.type=h,typeof h=="function")lg(h)?(i=ns(h,i),s.tag=1,s=u_(null,s,h,i,u)):(s.tag=0,s=qg(null,s,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===M){s.tag=11,s=a_(null,s,h,i,u);break e}else if(g===V){s.tag=14,s=i_(null,s,h,i,u);break e}}throw s=re(h)||h,Error(r(306,s,""))}}return s;case 0:return qg(i,s,s.type,s.pendingProps,u);case 1:return h=s.type,g=ns(h,s.pendingProps),u_(i,s,h,g,u);case 3:e:{if(Oe(s,s.stateNode.containerInfo),i===null)throw Error(r(387));h=s.pendingProps;var E=s.memoizedState;g=E.element,_g(i,s),Pc(s,h,null,u);var R=s.memoizedState;if(h=R.cache,Ki(s,Fn,h),h!==E.cache&&gg(s,[Fn],u,!0),Mc(),h=R.element,E.isDehydrated)if(E={element:h,isDehydrated:!1,cache:R.cache},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){s=d_(i,s,h,u);break e}else if(h!==g){g=aa(Error(r(424)),s),kc(g),s=d_(i,s,h,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(En=Ia(i.firstChild),br=s,It=!0,Wo=null,Ha=!0,u=YT(s,null,h,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Dc(),h===g){s=xi(i,s,u);break e}Jn(i,s,h,u)}s=s.child}return s;case 26:return Ff(i,s),i===null?(u=Ex(s.type,null,s.pendingProps,null))?s.memoizedState=u:It||(u=s.type,i=s.pendingProps,h=Jf(Ie.current).createElement(u),h[Ee]=s,h[De]=i,tr(h,u,i),ft(h),s.stateNode=h):s.memoizedState=Ex(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return dt(s),i===null&&It&&(h=s.stateNode=gx(s.type,s.pendingProps,Ie.current),br=s,Ha=!0,g=En,uo(s.type)?(O0=g,En=Ia(h.firstChild)):En=g),Jn(i,s,s.pendingProps.children,u),Ff(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&It&&((g=h=En)&&(h=OO(h,s.type,s.pendingProps,Ha),h!==null?(s.stateNode=h,br=s,En=Ia(h.firstChild),Ha=!1,g=!0):g=!1),g||Xo(s)),dt(s),g=s.type,E=s.pendingProps,R=i!==null?i.memoizedProps:null,h=E.children,R0(g,E)?h=null:R!==null&&R0(g,R)&&(s.flags|=32),s.memoizedState!==null&&(g=kg(i,s,XN,null,null,u),au._currentValue=g),Ff(i,s),Jn(i,s,h,u),s.child;case 6:return i===null&&It&&((i=u=En)&&(u=LO(u,s.pendingProps,Ha),u!==null?(s.stateNode=u,br=s,En=null,i=!0):i=!1),i||Xo(s)),null;case 13:return f_(i,s,u);case 4:return Oe(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=cl(s,null,h,u):Jn(i,s,h,u),s.child;case 11:return a_(i,s,s.type,s.pendingProps,u);case 7:return Jn(i,s,s.pendingProps,u),s.child;case 8:return Jn(i,s,s.pendingProps.children,u),s.child;case 12:return Jn(i,s,s.pendingProps.children,u),s.child;case 10:return h=s.pendingProps,Ki(s,s.type,h.value),Jn(i,s,h.children,u),s.child;case 9:return g=s.type._context,h=s.pendingProps.children,Jo(s),g=or(g),h=h(g),s.flags|=1,Jn(i,s,h,u),s.child;case 14:return i_(i,s,s.type,s.pendingProps,u);case 15:return o_(i,s,s.type,s.pendingProps,u);case 19:return p_(i,s,u);case 31:return h=s.pendingProps,u=s.mode,h={mode:h.mode,children:h.children},i===null?(u=Bf(h,u),u.ref=s.ref,s.child=u,u.return=s,s=u):(u=gi(i.child,h),u.ref=s.ref,s.child=u,u.return=s,s=u),s;case 22:return s_(i,s,u);case 24:return Jo(s),h=or(Fn),i===null?(g=Eg(),g===null&&(g=Jt,E=yg(),g.pooledCache=E,E.refCount++,E!==null&&(g.pooledCacheLanes|=u),g=E),s.memoizedState={parent:h,cache:g},Tg(s),Ki(s,Fn,g)):((i.lanes&u)!==0&&(_g(i,s),Pc(s,null,null,u),Mc()),g=i.memoizedState,E=s.memoizedState,g.parent!==h?(g={parent:h,cache:h},s.memoizedState=g,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=g),Ki(s,Fn,h)):(h=E.cache,Ki(s,Fn,h),h!==g.cache&&gg(s,[Fn],u,!0))),Jn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Ai(i){i.flags|=4}function g_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Ax(s)){if(s=la.current,s!==null&&((At&4194048)===At?za!==null:(At&62914560)!==At&&(At&536870912)===0||s!==za))throw Oc=vg,Jv;i.flags|=8192}}function jf(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?$r():536870912,i.lanes|=s,hl|=s)}function zc(i,s){if(!It)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function pn(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(s)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,s}function oO(i,s,u){var h=s.pendingProps;switch(fg(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pn(s),null;case 1:return pn(s),null;case 3:return u=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),vi(Fn),st(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Cc(s)?Ai(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Qv())),pn(s),null;case 26:return u=s.memoizedState,i===null?(Ai(s),u!==null?(pn(s),g_(s,u)):(pn(s),s.flags&=-16777217)):u?u!==i.memoizedState?(Ai(s),pn(s),g_(s,u)):(pn(s),s.flags&=-16777217):(i.memoizedProps!==h&&Ai(s),pn(s),s.flags&=-16777217),null;case 27:Ue(s),u=Ie.current;var g=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Ai(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return pn(s),null}i=ce.current,Cc(s)?qv(s):(i=gx(g,h,u),s.stateNode=i,Ai(s))}return pn(s),null;case 5:if(Ue(s),u=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Ai(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return pn(s),null}if(i=ce.current,Cc(s))qv(s);else{switch(g=Jf(Ie.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[Ee]=s,i[De]=h;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=i;e:switch(tr(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ai(s)}}return pn(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Ai(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=Ie.current,Cc(s)){if(i=s.stateNode,u=s.memoizedProps,h=null,g=br,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[Ee]=s,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||cx(i.nodeValue,u)),i||Xo(s)}else i=Jf(i).createTextNode(h),i[Ee]=s,s.stateNode=i}return pn(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=Cc(s),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Ee]=s}else Dc(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pn(s),g=!1}else g=Qv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return s.flags&256?(_i(s),s):(_i(s),null)}if(_i(s),(s.flags&128)!==0)return s.lanes=u,s;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=s.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var E=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(E=h.memoizedState.cachePool.pool),E!==g&&(h.flags|=2048)}return u!==i&&u&&(s.child.flags|=8192),jf(s,s.updateQueue),pn(s),null;case 4:return st(),i===null&&A0(s.stateNode.containerInfo),pn(s),null;case 10:return vi(s.type),pn(s),null;case 19:if(he(Bn),g=s.memoizedState,g===null)return pn(s),null;if(h=(s.flags&128)!==0,E=g.rendering,E===null)if(h)zc(g,!1);else{if(vn!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(E=Mf(i),E!==null){for(s.flags|=128,zc(g,!1),i=E.updateQueue,s.updateQueue=i,jf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)Gv(u,i),u=u.sibling;return O(Bn,Bn.current&1|2),s.child}i=i.sibling}g.tail!==null&&Ve()>zf&&(s.flags|=128,h=!0,zc(g,!1),s.lanes=4194304)}else{if(!h)if(i=Mf(E),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,jf(s,i),zc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!It)return pn(s),null}else 2*Ve()-g.renderingStartTime>zf&&u!==536870912&&(s.flags|=128,h=!0,zc(g,!1),s.lanes=4194304);g.isBackwards?(E.sibling=s.child,s.child=E):(i=g.last,i!==null?i.sibling=E:s.child=E,g.last=E)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Ve(),s.sibling=null,i=Bn.current,O(Bn,h?i&1|2:i&1),s):(pn(s),null);case 22:case 23:return _i(s),Cg(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(u&536870912)!==0&&(s.flags&128)===0&&(pn(s),s.subtreeFlags&6&&(s.flags|=8192)):pn(s),u=s.updateQueue,u!==null&&jf(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==u&&(s.flags|=2048),i!==null&&he(es),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),vi(Fn),pn(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function sO(i,s){switch(fg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return vi(Fn),st(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ue(s),null;case 13:if(_i(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Dc()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return he(Bn),null;case 4:return st(),null;case 10:return vi(s.type),null;case 22:case 23:return _i(s),Cg(),i!==null&&he(es),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return vi(Fn),null;case 25:return null;default:return null}}function y_(i,s){switch(fg(s),s.tag){case 3:vi(Fn),st();break;case 26:case 27:case 5:Ue(s);break;case 4:st();break;case 13:_i(s);break;case 19:he(Bn);break;case 10:vi(s.type);break;case 22:case 23:_i(s),Cg(),i!==null&&he(es);break;case 24:vi(Fn)}}function Gc(i,s){try{var u=s.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var E=u.create,R=u.inst;h=E(),R.destroy=h}u=u.next}while(u!==g)}}catch(N){zt(s,s.return,N)}}function no(i,s,u){try{var h=s.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var E=g.next;h=E;do{if((h.tag&i)===i){var R=h.inst,N=R.destroy;if(N!==void 0){R.destroy=void 0,g=s;var U=u,ee=N;try{ee()}catch(ge){zt(g,U,ge)}}}h=h.next}while(h!==E)}}catch(ge){zt(s,s.return,ge)}}function b_(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{iT(s,u)}catch(h){zt(i,i.return,h)}}}function E_(i,s,u){u.props=ns(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){zt(i,s,h)}}function Vc(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){zt(i,s,g)}}function Ga(i,s){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){zt(i,s,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){zt(i,s,g)}else u.current=null}function v_(i){var s=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){zt(i,i.return,g)}}function e0(i,s,u){try{var h=i.stateNode;kO(h,i.type,u,s),h[De]=s}catch(g){zt(i,i.return,g)}}function T_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&uo(i.type)||i.tag===4}function t0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||T_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&uo(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function n0(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=Zf));else if(h!==4&&(h===27&&uo(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(n0(i,s,u),i=i.sibling;i!==null;)n0(i,s,u),i=i.sibling}function Uf(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(h!==4&&(h===27&&uo(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Uf(i,s,u),i=i.sibling;i!==null;)Uf(i,s,u),i=i.sibling}function __(i){var s=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=s.attributes;g.length;)s.removeAttributeNode(g[0]);tr(s,h,u),s[Ee]=i,s[De]=u}catch(E){zt(i,i.return,E)}}var Si=!1,Dn=!1,r0=!1,x_=typeof WeakSet=="function"?WeakSet:Set,Vn=null;function lO(i,s){if(i=i.containerInfo,D0=ih,i=Lv(i),tg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,E=h.focusNode;h=h.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var R=0,N=-1,U=-1,ee=0,ge=0,be=i,ne=null;t:for(;;){for(var ie;be!==u||g!==0&&be.nodeType!==3||(N=R+g),be!==E||h!==0&&be.nodeType!==3||(U=R+h),be.nodeType===3&&(R+=be.nodeValue.length),(ie=be.firstChild)!==null;)ne=be,be=ie;for(;;){if(be===i)break t;if(ne===u&&++ee===g&&(N=R),ne===E&&++ge===h&&(U=R),(ie=be.nextSibling)!==null)break;be=ne,ne=be.parentNode}be=ie}u=N===-1||U===-1?null:{start:N,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(k0={focusedElem:i,selectionRange:u},ih=!1,Vn=s;Vn!==null;)if(s=Vn,i=s.child,(s.subtreeFlags&1024)!==0&&i!==null)i.return=s,Vn=i;else for(;Vn!==null;){switch(s=Vn,E=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&E!==null){i=void 0,u=s,g=E.memoizedProps,E=E.memoizedState,h=u.stateNode;try{var it=ns(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(it,E),h.__reactInternalSnapshotBeforeUpdate=i}catch(et){zt(u,u.return,et)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)w0(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":w0(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Vn=i;break}Vn=s.return}}function A_(i,s,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:ro(i,u),h&4&&Gc(5,u);break;case 1:if(ro(i,u),h&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(R){zt(u,u.return,R)}else{var g=ns(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(g,s,i.__reactInternalSnapshotBeforeUpdate)}catch(R){zt(u,u.return,R)}}h&64&&b_(u),h&512&&Vc(u,u.return);break;case 3:if(ro(i,u),h&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{iT(i,s)}catch(R){zt(u,u.return,R)}}break;case 27:s===null&&h&4&&__(u);case 26:case 5:ro(i,u),s===null&&h&4&&v_(u),h&512&&Vc(u,u.return);break;case 12:ro(i,u);break;case 13:ro(i,u),h&4&&D_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=yO.bind(null,u),MO(i,u))));break;case 22:if(h=u.memoizedState!==null||Si,!h){s=s!==null&&s.memoizedState!==null||Dn,g=Si;var E=Dn;Si=h,(Dn=s)&&!E?ao(i,u,(u.subtreeFlags&8772)!==0):ro(i,u),Si=g,Dn=E}break;case 30:break;default:ro(i,u)}}function S_(i){var s=i.alternate;s!==null&&(i.alternate=null,S_(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&qe(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var sn=null,Cr=!1;function Ci(i,s,u){for(u=u.child;u!==null;)C_(i,s,u),u=u.sibling}function C_(i,s,u){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:Dn||Ga(u,s),Ci(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Dn||Ga(u,s);var h=sn,g=Cr;uo(u.type)&&(sn=u.stateNode,Cr=!1),Ci(i,s,u),eu(u.stateNode),sn=h,Cr=g;break;case 5:Dn||Ga(u,s);case 6:if(h=sn,g=Cr,sn=null,Ci(i,s,u),sn=h,Cr=g,sn!==null)if(Cr)try{(sn.nodeType===9?sn.body:sn.nodeName==="HTML"?sn.ownerDocument.body:sn).removeChild(u.stateNode)}catch(E){zt(u,s,E)}else try{sn.removeChild(u.stateNode)}catch(E){zt(u,s,E)}break;case 18:sn!==null&&(Cr?(i=sn,px(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),lu(i)):px(sn,u.stateNode));break;case 4:h=sn,g=Cr,sn=u.stateNode.containerInfo,Cr=!0,Ci(i,s,u),sn=h,Cr=g;break;case 0:case 11:case 14:case 15:Dn||no(2,u,s),Dn||no(4,u,s),Ci(i,s,u);break;case 1:Dn||(Ga(u,s),h=u.stateNode,typeof h.componentWillUnmount=="function"&&E_(u,s,h)),Ci(i,s,u);break;case 21:Ci(i,s,u);break;case 22:Dn=(h=Dn)||u.memoizedState!==null,Ci(i,s,u),Dn=h;break;default:Ci(i,s,u)}}function D_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{lu(i)}catch(u){zt(s,s.return,u)}}function cO(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new x_),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new x_),s;default:throw Error(r(435,i.tag))}}function a0(i,s){var u=cO(i);s.forEach(function(h){var g=bO.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function Hr(i,s){var u=s.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],E=i,R=s,N=R;e:for(;N!==null;){switch(N.tag){case 27:if(uo(N.type)){sn=N.stateNode,Cr=!1;break e}break;case 5:sn=N.stateNode,Cr=!1;break e;case 3:case 4:sn=N.stateNode.containerInfo,Cr=!0;break e}N=N.return}if(sn===null)throw Error(r(160));C_(E,R,g),sn=null,Cr=!1,E=g.alternate,E!==null&&(E.return=null),g.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)k_(s,i),s=s.sibling}var Ra=null;function k_(i,s){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Hr(s,i),zr(i),h&4&&(no(3,i,i.return),Gc(3,i),no(5,i,i.return));break;case 1:Hr(s,i),zr(i),h&512&&(Dn||u===null||Ga(u,u.return)),h&64&&Si&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ra;if(Hr(s,i),zr(i),h&512&&(Dn||u===null||Ga(u,u.return)),h&4){var E=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":E=g.getElementsByTagName("title")[0],(!E||E[ze]||E[Ee]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=g.createElement(h),g.head.insertBefore(E,g.querySelector("head > title"))),tr(E,h,u),E[Ee]=i,ft(E),h=E;break e;case"link":var R=_x("link","href",g).get(h+(u.href||""));if(R){for(var N=0;N<R.length;N++)if(E=R[N],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(N,1);break t}}E=g.createElement(h),tr(E,h,u),g.head.appendChild(E);break;case"meta":if(R=_x("meta","content",g).get(h+(u.content||""))){for(N=0;N<R.length;N++)if(E=R[N],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(N,1);break t}}E=g.createElement(h),tr(E,h,u),g.head.appendChild(E);break;default:throw Error(r(468,h))}E[Ee]=i,ft(E),h=E}i.stateNode=h}else xx(g,i.type,i.stateNode);else i.stateNode=Tx(g,h,i.memoizedProps);else E!==h?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,h===null?xx(g,i.type,i.stateNode):Tx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&e0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Hr(s,i),zr(i),h&512&&(Dn||u===null||Ga(u,u.return)),u!==null&&h&4&&e0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Hr(s,i),zr(i),h&512&&(Dn||u===null||Ga(u,u.return)),i.flags&32){g=i.stateNode;try{Vs(g,"")}catch(ie){zt(i,i.return,ie)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,e0(i,g,u!==null?u.memoizedProps:g)),h&1024&&(r0=!0);break;case 6:if(Hr(s,i),zr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(ie){zt(i,i.return,ie)}}break;case 3:if(nh=null,g=Ra,Ra=eh(s.containerInfo),Hr(s,i),Ra=g,zr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{lu(s.containerInfo)}catch(ie){zt(i,i.return,ie)}r0&&(r0=!1,R_(i));break;case 4:h=Ra,Ra=eh(i.stateNode.containerInfo),Hr(s,i),zr(i),Ra=h;break;case 12:Hr(s,i),zr(i);break;case 13:Hr(s,i),zr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(u0=Ve()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 22:g=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Si,ge=Dn;if(Si=ee||g,Dn=ge||U,Hr(s,i),Dn=ge,Si=ee,zr(i),h&8192)e:for(s=i.stateNode,s._visibility=g?s._visibility&-2:s._visibility|1,g&&(u===null||U||Si||Dn||rs(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){U=u=s;try{if(E=U.stateNode,g)R=E.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{N=U.stateNode;var be=U.memoizedProps.style,ne=be!=null&&be.hasOwnProperty("display")?be.display:null;N.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(ie){zt(U,U.return,ie)}}}else if(s.tag===6){if(u===null){U=s;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(ie){zt(U,U.return,ie)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,a0(i,u))));break;case 19:Hr(s,i),zr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,a0(i,h)));break;case 30:break;case 21:break;default:Hr(s,i),zr(i)}}function zr(i){var s=i.flags;if(s&2){try{for(var u,h=i.return;h!==null;){if(T_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,E=t0(i);Uf(i,E,g);break;case 5:var R=u.stateNode;u.flags&32&&(Vs(R,""),u.flags&=-33);var N=t0(i);Uf(i,N,R);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=t0(i);n0(i,ee,U);break;default:throw Error(r(161))}}catch(ge){zt(i,i.return,ge)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function R_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;R_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function ro(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)A_(i,s.alternate,s),s=s.sibling}function rs(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:no(4,s,s.return),rs(s);break;case 1:Ga(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&E_(s,s.return,u),rs(s);break;case 27:eu(s.stateNode);case 26:case 5:Ga(s,s.return),rs(s);break;case 22:s.memoizedState===null&&rs(s);break;case 30:rs(s);break;default:rs(s)}i=i.sibling}}function ao(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,g=i,E=s,R=E.flags;switch(E.tag){case 0:case 11:case 15:ao(g,E,u),Gc(4,E);break;case 1:if(ao(g,E,u),h=E,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){zt(h,h.return,ee)}if(h=E,g=h.updateQueue,g!==null){var N=h.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)aT(U[g],N)}catch(ee){zt(h,h.return,ee)}}u&&R&64&&b_(E),Vc(E,E.return);break;case 27:__(E);case 26:case 5:ao(g,E,u),u&&h===null&&R&4&&v_(E),Vc(E,E.return);break;case 12:ao(g,E,u);break;case 13:ao(g,E,u),u&&R&4&&D_(g,E);break;case 22:E.memoizedState===null&&ao(g,E,u),Vc(E,E.return);break;case 30:break;default:ao(g,E,u)}s=s.sibling}}function i0(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Ic(u))}function o0(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Ic(i))}function Va(i,s,u,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)I_(i,s,u,h),s=s.sibling}function I_(i,s,u,h){var g=s.flags;switch(s.tag){case 0:case 11:case 15:Va(i,s,u,h),g&2048&&Gc(9,s);break;case 1:Va(i,s,u,h);break;case 3:Va(i,s,u,h),g&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Ic(i)));break;case 12:if(g&2048){Va(i,s,u,h),i=s.stateNode;try{var E=s.memoizedProps,R=E.id,N=E.onPostCommit;typeof N=="function"&&N(R,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){zt(s,s.return,U)}}else Va(i,s,u,h);break;case 13:Va(i,s,u,h);break;case 23:break;case 22:E=s.stateNode,R=s.alternate,s.memoizedState!==null?E._visibility&2?Va(i,s,u,h):qc(i,s):E._visibility&2?Va(i,s,u,h):(E._visibility|=2,ul(i,s,u,h,(s.subtreeFlags&10256)!==0)),g&2048&&i0(R,s);break;case 24:Va(i,s,u,h),g&2048&&o0(s.alternate,s);break;default:Va(i,s,u,h)}}function ul(i,s,u,h,g){for(g=g&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var E=i,R=s,N=u,U=h,ee=R.flags;switch(R.tag){case 0:case 11:case 15:ul(E,R,N,U,g),Gc(8,R);break;case 23:break;case 22:var ge=R.stateNode;R.memoizedState!==null?ge._visibility&2?ul(E,R,N,U,g):qc(E,R):(ge._visibility|=2,ul(E,R,N,U,g)),g&&ee&2048&&i0(R.alternate,R);break;case 24:ul(E,R,N,U,g),g&&ee&2048&&o0(R.alternate,R);break;default:ul(E,R,N,U,g)}s=s.sibling}}function qc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,h=s,g=h.flags;switch(h.tag){case 22:qc(u,h),g&2048&&i0(h.alternate,h);break;case 24:qc(u,h),g&2048&&o0(h.alternate,h);break;default:qc(u,h)}s=s.sibling}}var Yc=8192;function dl(i){if(i.subtreeFlags&Yc)for(i=i.child;i!==null;)w_(i),i=i.sibling}function w_(i){switch(i.tag){case 26:dl(i),i.flags&Yc&&i.memoizedState!==null&&QO(Ra,i.memoizedState,i.memoizedProps);break;case 5:dl(i);break;case 3:case 4:var s=Ra;Ra=eh(i.stateNode.containerInfo),dl(i),Ra=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Yc,Yc=16777216,dl(i),Yc=s):dl(i));break;default:dl(i)}}function N_(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Qc(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Vn=h,L_(h,i)}N_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)O_(i),i=i.sibling}function O_(i){switch(i.tag){case 0:case 11:case 15:Qc(i),i.flags&2048&&no(9,i,i.return);break;case 3:Qc(i);break;case 12:Qc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,Hf(i)):Qc(i);break;default:Qc(i)}}function Hf(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Vn=h,L_(h,i)}N_(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:no(8,s,s.return),Hf(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,Hf(s));break;default:Hf(s)}i=i.sibling}}function L_(i,s){for(;Vn!==null;){var u=Vn;switch(u.tag){case 0:case 11:case 15:no(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Ic(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Vn=h;else e:for(u=i;Vn!==null;){h=Vn;var g=h.sibling,E=h.return;if(S_(h),h===u){Vn=null;break e}if(g!==null){g.return=E,Vn=g;break e}Vn=E}}}var uO={getCacheForType:function(i){var s=or(Fn),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u}},dO=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Jt=null,Et=null,At=0,Mt=0,Gr=null,io=!1,fl=!1,s0=!1,Di=0,vn=0,oo=0,as=0,l0=0,ca=0,hl=0,Kc=null,Dr=null,c0=!1,u0=0,zf=1/0,Gf=null,so=null,er=0,lo=null,pl=null,ml=0,d0=0,f0=null,M_=null,Wc=0,h0=null;function Vr(){if((Lt&2)!==0&&At!==0)return At&-At;if(G.T!==null){var i=nl;return i!==0?i:v0()}return z()}function P_(){ca===0&&(ca=(At&536870912)===0||It?Sn():536870912);var i=la.current;return i!==null&&(i.flags|=32),ca}function qr(i,s,u){(i===Jt&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)&&(gl(i,0),co(i,At,ca,!1)),ar(i,u),((Lt&2)===0||i!==Jt)&&(i===Jt&&((Lt&2)===0&&(as|=u),vn===4&&co(i,At,ca,!1)),qa(i))}function $_(i,s,u){if((Lt&6)!==0)throw Error(r(327));var h=!u&&(s&124)===0&&(s&i.expiredLanes)===0||ot(i,s),g=h?pO(i,s):g0(i,s,!0),E=h;do{if(g===0){fl&&!h&&co(i,s,0,!1);break}else{if(u=i.current.alternate,E&&!fO(u)){g=g0(i,s,!1),E=!1;continue}if(g===2){if(E=s,i.errorRecoveryDisabledLanes&E)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){s=R;e:{var N=i;g=Kc;var U=N.current.memoizedState.isDehydrated;if(U&&(gl(N,R).flags|=256),R=g0(N,R,!1),R!==2){if(s0&&!U){N.errorRecoveryDisabledLanes|=E,as|=E,g=4;break e}E=Dr,Dr=g,E!==null&&(Dr===null?Dr=E:Dr.push.apply(Dr,E))}g=R}if(E=!1,g!==2)continue}}if(g===1){gl(i,0),co(i,s,0,!0);break}e:{switch(h=i,E=g,E){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:co(h,s,ca,!io);break e;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(g=u0+300-Ve(),10<g)){if(co(h,s,ca,!io),Te(h,0,!0)!==0)break e;h.timeoutHandle=fx(F_.bind(null,h,u,Dr,Gf,c0,s,ca,as,hl,io,E,2,-0,0),g);break e}F_(h,u,Dr,Gf,c0,s,ca,as,hl,io,E,0,-0,0)}}break}while(!0);qa(i)}function F_(i,s,u,h,g,E,R,N,U,ee,ge,be,ne,ie){if(i.timeoutHandle=-1,be=s.subtreeFlags,(be&8192||(be&16785408)===16785408)&&(ru={stylesheets:null,count:0,unsuspend:YO},w_(s),be=KO(),be!==null)){i.cancelPendingCommit=be(V_.bind(null,i,s,E,u,h,g,R,N,U,ge,1,ne,ie)),co(i,E,R,!ee);return}V_(i,s,E,u,h,g,R,N,U)}function fO(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],E=g.getSnapshot;g=g.value;try{if(!jr(E(),g))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function co(i,s,u,h){s&=~l0,s&=~as,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var g=s;0<g;){var E=31-rt(g),R=1<<E;h[E]=-1,g&=~R}u!==0&&ja(i,u,s)}function Vf(){return(Lt&6)===0?(Xc(0),!1):!0}function p0(){if(Et!==null){if(Mt===0)var i=Et.return;else i=Et,Ei=Zo=null,wg(i),ll=null,Uc=0,i=Et;for(;i!==null;)y_(i.alternate,i),i=i.return;Et=null}}function gl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,IO(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),p0(),Jt=i,Et=u=gi(i.current,null),At=s,Mt=0,Gr=null,io=!1,fl=ot(i,s),s0=!1,hl=ca=l0=as=oo=vn=0,Dr=Kc=null,c0=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var g=31-rt(h),E=1<<g;s|=i[g],h&=~E}return Di=s,hf(),u}function B_(i,s){mt=null,G.H=Nf,s===Nc||s===_f?(s=nT(),Mt=3):s===Jv?(s=nT(),Mt=4):Mt=s===r_?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Gr=s,Et===null&&(vn=1,$f(i,aa(s,i.current)))}function j_(){var i=G.H;return G.H=Nf,i===null?Nf:i}function U_(){var i=G.A;return G.A=uO,i}function m0(){vn=4,io||(At&4194048)!==At&&la.current!==null||(fl=!0),(oo&134217727)===0&&(as&134217727)===0||Jt===null||co(Jt,At,ca,!1)}function g0(i,s,u){var h=Lt;Lt|=2;var g=j_(),E=U_();(Jt!==i||At!==s)&&(Gf=null,gl(i,s)),s=!1;var R=vn;e:do try{if(Mt!==0&&Et!==null){var N=Et,U=Gr;switch(Mt){case 8:p0(),R=6;break e;case 3:case 2:case 9:case 6:la.current===null&&(s=!0);var ee=Mt;if(Mt=0,Gr=null,yl(i,N,U,ee),u&&fl){R=0;break e}break;default:ee=Mt,Mt=0,Gr=null,yl(i,N,U,ee)}}hO(),R=vn;break}catch(ge){B_(i,ge)}while(!0);return s&&i.shellSuspendCounter++,Ei=Zo=null,Lt=h,G.H=g,G.A=E,Et===null&&(Jt=null,At=0,hf()),R}function hO(){for(;Et!==null;)H_(Et)}function pO(i,s){var u=Lt;Lt|=2;var h=j_(),g=U_();Jt!==i||At!==s?(Gf=null,zf=Ve()+500,gl(i,s)):fl=ot(i,s);e:do try{if(Mt!==0&&Et!==null){s=Et;var E=Gr;t:switch(Mt){case 1:Mt=0,Gr=null,yl(i,s,E,1);break;case 2:case 9:if(eT(E)){Mt=0,Gr=null,z_(s);break}s=function(){Mt!==2&&Mt!==9||Jt!==i||(Mt=7),qa(i)},E.then(s,s);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:eT(E)?(Mt=0,Gr=null,z_(s)):(Mt=0,Gr=null,yl(i,s,E,7));break;case 5:var R=null;switch(Et.tag){case 26:R=Et.memoizedState;case 5:case 27:var N=Et;if(!R||Ax(R)){Mt=0,Gr=null;var U=N.sibling;if(U!==null)Et=U;else{var ee=N.return;ee!==null?(Et=ee,qf(ee)):Et=null}break t}}Mt=0,Gr=null,yl(i,s,E,5);break;case 6:Mt=0,Gr=null,yl(i,s,E,6);break;case 8:p0(),vn=6;break e;default:throw Error(r(462))}}mO();break}catch(ge){B_(i,ge)}while(!0);return Ei=Zo=null,G.H=h,G.A=g,Lt=u,Et!==null?0:(Jt=null,At=0,hf(),vn)}function mO(){for(;Et!==null&&!rr();)H_(Et)}function H_(i){var s=m_(i.alternate,i,Di);i.memoizedProps=i.pendingProps,s===null?qf(i):Et=s}function z_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=c_(u,s,s.pendingProps,s.type,void 0,At);break;case 11:s=c_(u,s,s.pendingProps,s.type.render,s.ref,At);break;case 5:wg(s);default:y_(u,s),s=Et=Gv(s,Di),s=m_(u,s,Di)}i.memoizedProps=i.pendingProps,s===null?qf(i):Et=s}function yl(i,s,u,h){Ei=Zo=null,wg(s),ll=null,Uc=0;var g=s.return;try{if(aO(i,g,s,u,At)){vn=1,$f(i,aa(u,i.current)),Et=null;return}}catch(E){if(g!==null)throw Et=g,E;vn=1,$f(i,aa(u,i.current)),Et=null;return}s.flags&32768?(It||h===1?i=!0:fl||(At&536870912)!==0?i=!1:(io=i=!0,(h===2||h===9||h===3||h===6)&&(h=la.current,h!==null&&h.tag===13&&(h.flags|=16384))),G_(s,i)):qf(s)}function qf(i){var s=i;do{if((s.flags&32768)!==0){G_(s,io);return}i=s.return;var u=oO(s.alternate,s,Di);if(u!==null){Et=u;return}if(s=s.sibling,s!==null){Et=s;return}Et=s=i}while(s!==null);vn===0&&(vn=5)}function G_(i,s){do{var u=sO(i.alternate,i);if(u!==null){u.flags&=32767,Et=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){Et=i;return}Et=i=u}while(i!==null);vn=6,Et=null}function V_(i,s,u,h,g,E,R,N,U){i.cancelPendingCommit=null;do Yf();while(er!==0);if((Lt&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(E=s.lanes|s.childLanes,E|=og,ir(i,u,E,R,N,U),i===Jt&&(Et=Jt=null,At=0),pl=s,lo=i,ml=u,d0=E,f0=g,M_=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,EO(Ye,function(){return W_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=G.T,G.T=null,g=oe.p,oe.p=2,R=Lt,Lt|=4;try{lO(i,s,u)}finally{Lt=R,oe.p=g,G.T=h}}er=1,q_(),Y_(),Q_()}}function q_(){if(er===1){er=0;var i=lo,s=pl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var h=oe.p;oe.p=2;var g=Lt;Lt|=4;try{k_(s,i);var E=k0,R=Lv(i.containerInfo),N=E.focusedElem,U=E.selectionRange;if(R!==N&&N&&N.ownerDocument&&Ov(N.ownerDocument.documentElement,N)){if(U!==null&&tg(N)){var ee=U.start,ge=U.end;if(ge===void 0&&(ge=ee),"selectionStart"in N)N.selectionStart=ee,N.selectionEnd=Math.min(ge,N.value.length);else{var be=N.ownerDocument||document,ne=be&&be.defaultView||window;if(ne.getSelection){var ie=ne.getSelection(),it=N.textContent.length,et=Math.min(U.start,it),Bt=U.end===void 0?et:Math.min(U.end,it);!ie.extend&&et>Bt&&(R=Bt,Bt=et,et=R);var Y=Nv(N,et),q=Nv(N,Bt);if(Y&&q&&(ie.rangeCount!==1||ie.anchorNode!==Y.node||ie.anchorOffset!==Y.offset||ie.focusNode!==q.node||ie.focusOffset!==q.offset)){var Z=be.createRange();Z.setStart(Y.node,Y.offset),ie.removeAllRanges(),et>Bt?(ie.addRange(Z),ie.extend(q.node,q.offset)):(Z.setEnd(q.node,q.offset),ie.addRange(Z))}}}}for(be=[],ie=N;ie=ie.parentNode;)ie.nodeType===1&&be.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<be.length;N++){var ye=be[N];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}ih=!!D0,k0=D0=null}finally{Lt=g,oe.p=h,G.T=u}}i.current=s,er=2}}function Y_(){if(er===2){er=0;var i=lo,s=pl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var h=oe.p;oe.p=2;var g=Lt;Lt|=4;try{A_(i,s.alternate,s)}finally{Lt=g,oe.p=h,G.T=u}}er=3}}function Q_(){if(er===4||er===3){er=0,dn();var i=lo,s=pl,u=ml,h=M_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?er=5:(er=0,pl=lo=null,K_(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(so=null),Da(u),s=s.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ue,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=G.T,g=oe.p,oe.p=2,G.T=null;try{for(var E=i.onRecoverableError,R=0;R<h.length;R++){var N=h[R];E(N.value,{componentStack:N.stack})}}finally{G.T=s,oe.p=g}}(ml&3)!==0&&Yf(),qa(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===h0?Wc++:(Wc=0,h0=i):Wc=0,Xc(0)}}function K_(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Ic(s)))}function Yf(i){return q_(),Y_(),Q_(),W_()}function W_(){if(er!==5)return!1;var i=lo,s=d0;d0=0;var u=Da(ml),h=G.T,g=oe.p;try{oe.p=32>u?32:u,G.T=null,u=f0,f0=null;var E=lo,R=ml;if(er=0,pl=lo=null,ml=0,(Lt&6)!==0)throw Error(r(331));var N=Lt;if(Lt|=4,O_(E.current),I_(E,E.current,R,u),Lt=N,Xc(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ue,E)}catch{}return!0}finally{oe.p=g,G.T=h,K_(i,s)}}function X_(i,s,u){s=aa(u,s),s=Vg(i.stateNode,s,2),i=Zi(i,s,2),i!==null&&(ar(i,2),qa(i))}function zt(i,s,u){if(i.tag===3)X_(i,i,u);else for(;s!==null;){if(s.tag===3){X_(s,i,u);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(so===null||!so.has(h))){i=aa(u,i),u=t_(2),h=Zi(s,u,2),h!==null&&(n_(u,h,s,i),ar(h,2),qa(h));break}}s=s.return}}function y0(i,s,u){var h=i.pingCache;if(h===null){h=i.pingCache=new dO;var g=new Set;h.set(s,g)}else g=h.get(s),g===void 0&&(g=new Set,h.set(s,g));g.has(u)||(s0=!0,g.add(u),i=gO.bind(null,i,s,u),s.then(i,i))}function gO(i,s,u){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,Jt===i&&(At&u)===u&&(vn===4||vn===3&&(At&62914560)===At&&300>Ve()-u0?(Lt&2)===0&&gl(i,0):l0|=u,hl===At&&(hl=0)),qa(i)}function Z_(i,s){s===0&&(s=$r()),i=Zs(i,s),i!==null&&(ar(i,s),qa(i))}function yO(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),Z_(i,u)}function bO(i,s){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),Z_(i,u)}function EO(i,s){return wt(i,s)}var Qf=null,bl=null,b0=!1,Kf=!1,E0=!1,is=0;function qa(i){i!==bl&&i.next===null&&(bl===null?Qf=bl=i:bl=bl.next=i),Kf=!0,b0||(b0=!0,TO())}function Xc(i,s){if(!E0&&Kf){E0=!0;do for(var u=!1,h=Qf;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var E=0;else{var R=h.suspendedLanes,N=h.pingedLanes;E=(1<<31-rt(42|i)+1)-1,E&=g&~(R&~N),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,nx(h,E))}else E=At,E=Te(h,h===Jt?E:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(E&3)===0||ot(h,E)||(u=!0,nx(h,E));h=h.next}while(u);E0=!1}}function vO(){J_()}function J_(){Kf=b0=!1;var i=0;is!==0&&(RO()&&(i=is),is=0);for(var s=Ve(),u=null,h=Qf;h!==null;){var g=h.next,E=ex(h,s);E===0?(h.next=null,u===null?Qf=g:u.next=g,g===null&&(bl=u)):(u=h,(i!==0||(E&3)!==0)&&(Kf=!0)),h=g}Xc(i)}function ex(i,s){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,E=i.pendingLanes&-62914561;0<E;){var R=31-rt(E),N=1<<R,U=g[R];U===-1?((N&u)===0||(N&h)!==0)&&(g[R]=Xe(N,s)):U<=s&&(i.expiredLanes|=N),E&=~N}if(s=Jt,u=At,u=Te(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===s&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Pe(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||ot(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(h!==null&&Pe(h),Da(u)){case 2:case 8:u=on;break;case 32:u=Ye;break;case 268435456:u=xr;break;default:u=Ye}return h=tx.bind(null,i),u=wt(u,h),i.callbackPriority=s,i.callbackNode=u,s}return h!==null&&h!==null&&Pe(h),i.callbackPriority=2,i.callbackNode=null,2}function tx(i,s){if(er!==0&&er!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Yf()&&i.callbackNode!==u)return null;var h=At;return h=Te(i,i===Jt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:($_(i,h,s),ex(i,Ve()),i.callbackNode!=null&&i.callbackNode===u?tx.bind(null,i):null)}function nx(i,s){if(Yf())return null;$_(i,s,!0)}function TO(){wO(function(){(Lt&6)!==0?wt(rn,vO):J_()})}function v0(){return is===0&&(is=Sn()),is}function rx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:of(""+i)}function ax(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function _O(i,s,u,h,g){if(s==="submit"&&u&&u.stateNode===g){var E=rx((g[De]||null).action),R=h.submitter;R&&(s=(s=R[De]||null)?rx(s.formAction):R.getAttribute("formAction"),s!==null&&(E=s,R=null));var N=new uf("action","action",null,h,g);i.push({event:N,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(is!==0){var U=R?ax(g,R):new FormData(g);jg(u,{pending:!0,data:U,method:g.method,action:E},null,U)}}else typeof E=="function"&&(N.preventDefault(),U=R?ax(g,R):new FormData(g),jg(u,{pending:!0,data:U,method:g.method,action:E},E,U))},currentTarget:g}]})}}for(var T0=0;T0<ig.length;T0++){var _0=ig[T0],xO=_0.toLowerCase(),AO=_0[0].toUpperCase()+_0.slice(1);ka(xO,"on"+AO)}ka($v,"onAnimationEnd"),ka(Fv,"onAnimationIteration"),ka(Bv,"onAnimationStart"),ka("dblclick","onDoubleClick"),ka("focusin","onFocus"),ka("focusout","onBlur"),ka(UN,"onTransitionRun"),ka(HN,"onTransitionStart"),ka(zN,"onTransitionCancel"),ka(jv,"onTransitionEnd"),yr("onMouseEnter",["mouseout","mouseover"]),yr("onMouseLeave",["mouseout","mouseover"]),yr("onPointerEnter",["pointerout","pointerover"]),yr("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zc));function ix(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var E=void 0;if(s)for(var R=h.length-1;0<=R;R--){var N=h[R],U=N.instance,ee=N.currentTarget;if(N=N.listener,U!==E&&g.isPropagationStopped())break e;E=N,g.currentTarget=ee;try{E(g)}catch(ge){Pf(ge)}g.currentTarget=null,E=U}else for(R=0;R<h.length;R++){if(N=h[R],U=N.instance,ee=N.currentTarget,N=N.listener,U!==E&&g.isPropagationStopped())break e;E=N,g.currentTarget=ee;try{E(g)}catch(ge){Pf(ge)}g.currentTarget=null,E=U}}}}function vt(i,s){var u=s[Ge];u===void 0&&(u=s[Ge]=new Set);var h=i+"__bubble";u.has(h)||(ox(s,i,2,!1),u.add(h))}function x0(i,s,u){var h=0;s&&(h|=4),ox(u,i,h,s)}var Wf="_reactListening"+Math.random().toString(36).slice(2);function A0(i){if(!i[Wf]){i[Wf]=!0,Pt.forEach(function(u){u!=="selectionchange"&&(SO.has(u)||x0(u,!1,i),x0(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Wf]||(s[Wf]=!0,x0("selectionchange",!1,s))}}function ox(i,s,u,h){switch(Ix(s)){case 2:var g=ZO;break;case 8:g=JO;break;default:g=F0}u=g.bind(null,s,u,i),g=void 0,!qm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(s,u,{capture:!0,passive:g}):i.addEventListener(s,u,!0):g!==void 0?i.addEventListener(s,u,{passive:g}):i.addEventListener(s,u,!1)}function S0(i,s,u,h,g){var E=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var N=h.stateNode.containerInfo;if(N===g)break;if(R===4)for(R=h.return;R!==null;){var U=R.tag;if((U===3||U===4)&&R.stateNode.containerInfo===g)return;R=R.return}for(;N!==null;){if(R=pt(N),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){h=E=R;continue e}N=N.parentNode}}h=h.return}hv(function(){var ee=E,ge=Gm(u),be=[];e:{var ne=Uv.get(i);if(ne!==void 0){var ie=uf,it=i;switch(i){case"keypress":if(lf(u)===0)break e;case"keydown":case"keyup":ie=EN;break;case"focusin":it="focus",ie=Wm;break;case"focusout":it="blur",ie=Wm;break;case"beforeblur":case"afterblur":ie=Wm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=gv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=sN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=_N;break;case $v:case Fv:case Bv:ie=uN;break;case jv:ie=AN;break;case"scroll":case"scrollend":ie=iN;break;case"wheel":ie=CN;break;case"copy":case"cut":case"paste":ie=fN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=bv;break;case"toggle":case"beforetoggle":ie=kN}var et=(s&4)!==0,Bt=!et&&(i==="scroll"||i==="scrollend"),Y=et?ne!==null?ne+"Capture":null:ne;et=[];for(var q=ee,Z;q!==null;){var ye=q;if(Z=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||Z===null||Y===null||(ye=yc(q,Y),ye!=null&&et.push(Jc(q,ye,Z))),Bt)break;q=q.return}0<et.length&&(ne=new ie(ne,it,null,u,ge),be.push({event:ne,listeners:et}))}}if((s&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",ne&&u!==zm&&(it=u.relatedTarget||u.fromElement)&&(pt(it)||it[je]))break e;if((ie||ne)&&(ne=ge.window===ge?ge:(ne=ge.ownerDocument)?ne.defaultView||ne.parentWindow:window,ie?(it=u.relatedTarget||u.toElement,ie=ee,it=it?pt(it):null,it!==null&&(Bt=o(it),et=it.tag,it!==Bt||et!==5&&et!==27&&et!==6)&&(it=null)):(ie=null,it=ee),ie!==it)){if(et=gv,ye="onMouseLeave",Y="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(et=bv,ye="onPointerLeave",Y="onPointerEnter",q="pointer"),Bt=ie==null?ne:yn(ie),Z=it==null?ne:yn(it),ne=new et(ye,q+"leave",ie,u,ge),ne.target=Bt,ne.relatedTarget=Z,ye=null,pt(ge)===ee&&(et=new et(Y,q+"enter",it,u,ge),et.target=Z,et.relatedTarget=Bt,ye=et),Bt=ye,ie&&it)t:{for(et=ie,Y=it,q=0,Z=et;Z;Z=El(Z))q++;for(Z=0,ye=Y;ye;ye=El(ye))Z++;for(;0<q-Z;)et=El(et),q--;for(;0<Z-q;)Y=El(Y),Z--;for(;q--;){if(et===Y||Y!==null&&et===Y.alternate)break t;et=El(et),Y=El(Y)}et=null}else et=null;ie!==null&&sx(be,ne,ie,et,!1),it!==null&&Bt!==null&&sx(be,Bt,it,et,!0)}}e:{if(ne=ee?yn(ee):window,ie=ne.nodeName&&ne.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ne.type==="file")var Fe=Cv;else if(Av(ne))if(Dv)Fe=FN;else{Fe=PN;var yt=MN}else ie=ne.nodeName,!ie||ie.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Hm(ee.elementType)&&(Fe=Cv):Fe=$N;if(Fe&&(Fe=Fe(i,ee))){Sv(be,Fe,u,ge);break e}yt&&yt(i,ne,ee),i==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&Um(ne,"number",ne.value)}switch(yt=ee?yn(ee):window,i){case"focusin":(Av(yt)||yt.contentEditable==="true")&&(Ks=yt,ng=ee,Sc=null);break;case"focusout":Sc=ng=Ks=null;break;case"mousedown":rg=!0;break;case"contextmenu":case"mouseup":case"dragend":rg=!1,Mv(be,u,ge);break;case"selectionchange":if(jN)break;case"keydown":case"keyup":Mv(be,u,ge)}var Qe;if(Zm)e:{switch(i){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else Qs?_v(i,u)&&(nt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(nt="onCompositionStart");nt&&(Ev&&u.locale!=="ko"&&(Qs||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&Qs&&(Qe=pv()):(Qi=ge,Ym="value"in Qi?Qi.value:Qi.textContent,Qs=!0)),yt=Xf(ee,nt),0<yt.length&&(nt=new yv(nt,i,null,u,ge),be.push({event:nt,listeners:yt}),Qe?nt.data=Qe:(Qe=xv(u),Qe!==null&&(nt.data=Qe)))),(Qe=IN?wN(i,u):NN(i,u))&&(nt=Xf(ee,"onBeforeInput"),0<nt.length&&(yt=new yv("onBeforeInput","beforeinput",null,u,ge),be.push({event:yt,listeners:nt}),yt.data=Qe)),_O(be,i,ee,u,ge)}ix(be,s)})}function Jc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function Xf(i,s){for(var u=s+"Capture",h=[];i!==null;){var g=i,E=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||E===null||(g=yc(i,u),g!=null&&h.unshift(Jc(i,g,E)),g=yc(i,s),g!=null&&h.push(Jc(i,g,E))),i.tag===3)return h;i=i.return}return[]}function El(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function sx(i,s,u,h,g){for(var E=s._reactName,R=[];u!==null&&u!==h;){var N=u,U=N.alternate,ee=N.stateNode;if(N=N.tag,U!==null&&U===h)break;N!==5&&N!==26&&N!==27||ee===null||(U=ee,g?(ee=yc(u,E),ee!=null&&R.unshift(Jc(u,ee,U))):g||(ee=yc(u,E),ee!=null&&R.push(Jc(u,ee,U)))),u=u.return}R.length!==0&&i.push({event:s,listeners:R})}var CO=/\r\n?/g,DO=/\u0000|\uFFFD/g;function lx(i){return(typeof i=="string"?i:""+i).replace(CO,`
|
|
26
|
-
`).replace(DO,"")}function cx(i,s){return s=lx(s),lx(i)===s}function Zf(){}function Ft(i,s,u,h,g,E){switch(u){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Vs(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Vs(i,""+h);break;case"className":pi(i,"class",h);break;case"tabIndex":pi(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(i,u,h);break;case"style":dv(i,h,E);break;case"data":if(s!=="object"){pi(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=of(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(u==="formAction"?(s!=="input"&&Ft(i,s,"name",g.name,g,null),Ft(i,s,"formEncType",g.formEncType,g,null),Ft(i,s,"formMethod",g.formMethod,g,null),Ft(i,s,"formTarget",g.formTarget,g,null)):(Ft(i,s,"encType",g.encType,g,null),Ft(i,s,"method",g.method,g,null),Ft(i,s,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=of(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=Zf);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=of(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":vt("beforetoggle",i),vt("toggle",i),hi(i,"popover",h);break;case"xlinkActuate":gt(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":gt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":gt(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":gt(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":gt(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":gt(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":gt(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":gt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":gt(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":hi(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=rN.get(u)||u,hi(i,u,h))}}function C0(i,s,u,h,g,E){switch(u){case"style":dv(i,h,E);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Vs(i,h):(typeof h=="number"||typeof h=="bigint")&&Vs(i,""+h);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Zf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ua.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),s=u.slice(2,g?u.length-7:void 0),E=i[De]||null,E=E!=null?E[u]:null,typeof E=="function"&&i.removeEventListener(s,E,g),typeof h=="function")){typeof E!="function"&&E!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):hi(i,u,h)}}}function tr(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",i),vt("load",i);var h=!1,g=!1,E;for(E in u)if(u.hasOwnProperty(E)){var R=u[E];if(R!=null)switch(E){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Ft(i,s,E,R,u,null)}}g&&Ft(i,s,"srcSet",u.srcSet,u,null),h&&Ft(i,s,"src",u.src,u,null);return;case"input":vt("invalid",i);var N=E=R=g=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var ge=u[h];if(ge!=null)switch(h){case"name":g=ge;break;case"type":R=ge;break;case"checked":U=ge;break;case"defaultChecked":ee=ge;break;case"value":E=ge;break;case"defaultValue":N=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,s));break;default:Ft(i,s,h,ge,u,null)}}sv(i,E,N,U,ee,R,g,!1),rf(i);return;case"select":vt("invalid",i),h=R=E=null;for(g in u)if(u.hasOwnProperty(g)&&(N=u[g],N!=null))switch(g){case"value":E=N;break;case"defaultValue":R=N;break;case"multiple":h=N;default:Ft(i,s,g,N,u,null)}s=E,u=R,i.multiple=!!h,s!=null?Gs(i,!!h,s,!1):u!=null&&Gs(i,!!h,u,!0);return;case"textarea":vt("invalid",i),E=g=h=null;for(R in u)if(u.hasOwnProperty(R)&&(N=u[R],N!=null))switch(R){case"value":h=N;break;case"defaultValue":g=N;break;case"children":E=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:Ft(i,s,R,N,u,null)}cv(i,h,g,E),rf(i);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ft(i,s,U,h,u,null)}return;case"dialog":vt("beforetoggle",i),vt("toggle",i),vt("cancel",i),vt("close",i);break;case"iframe":case"object":vt("load",i);break;case"video":case"audio":for(h=0;h<Zc.length;h++)vt(Zc[h],i);break;case"image":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"embed":case"source":case"link":vt("error",i),vt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Ft(i,s,ee,h,u,null)}return;default:if(Hm(s)){for(ge in u)u.hasOwnProperty(ge)&&(h=u[ge],h!==void 0&&C0(i,s,ge,h,u,void 0));return}}for(N in u)u.hasOwnProperty(N)&&(h=u[N],h!=null&&Ft(i,s,N,h,u,null))}function kO(i,s,u,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,E=null,R=null,N=null,U=null,ee=null,ge=null;for(ie in u){var be=u[ie];if(u.hasOwnProperty(ie)&&be!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":U=be;default:h.hasOwnProperty(ie)||Ft(i,s,ie,null,h,be)}}for(var ne in h){var ie=h[ne];if(be=u[ne],h.hasOwnProperty(ne)&&(ie!=null||be!=null))switch(ne){case"type":E=ie;break;case"name":g=ie;break;case"checked":ee=ie;break;case"defaultChecked":ge=ie;break;case"value":R=ie;break;case"defaultValue":N=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,s));break;default:ie!==be&&Ft(i,s,ne,ie,h,be)}}jm(i,R,N,U,ee,ge,E,g);return;case"select":ie=R=N=ne=null;for(E in u)if(U=u[E],u.hasOwnProperty(E)&&U!=null)switch(E){case"value":break;case"multiple":ie=U;default:h.hasOwnProperty(E)||Ft(i,s,E,null,h,U)}for(g in h)if(E=h[g],U=u[g],h.hasOwnProperty(g)&&(E!=null||U!=null))switch(g){case"value":ne=E;break;case"defaultValue":N=E;break;case"multiple":R=E;default:E!==U&&Ft(i,s,g,E,h,U)}s=N,u=R,h=ie,ne!=null?Gs(i,!!u,ne,!1):!!h!=!!u&&(s!=null?Gs(i,!!u,s,!0):Gs(i,!!u,u?[]:"",!1));return;case"textarea":ie=ne=null;for(N in u)if(g=u[N],u.hasOwnProperty(N)&&g!=null&&!h.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ft(i,s,N,null,h,g)}for(R in h)if(g=h[R],E=u[R],h.hasOwnProperty(R)&&(g!=null||E!=null))switch(R){case"value":ne=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==E&&Ft(i,s,R,g,h,E)}lv(i,ne,ie);return;case"option":for(var it in u)if(ne=u[it],u.hasOwnProperty(it)&&ne!=null&&!h.hasOwnProperty(it))switch(it){case"selected":i.selected=!1;break;default:Ft(i,s,it,null,h,ne)}for(U in h)if(ne=h[U],ie=u[U],h.hasOwnProperty(U)&&ne!==ie&&(ne!=null||ie!=null))switch(U){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:Ft(i,s,U,ne,h,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var et in u)ne=u[et],u.hasOwnProperty(et)&&ne!=null&&!h.hasOwnProperty(et)&&Ft(i,s,et,null,h,ne);for(ee in h)if(ne=h[ee],ie=u[ee],h.hasOwnProperty(ee)&&ne!==ie&&(ne!=null||ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,s));break;default:Ft(i,s,ee,ne,h,ie)}return;default:if(Hm(s)){for(var Bt in u)ne=u[Bt],u.hasOwnProperty(Bt)&&ne!==void 0&&!h.hasOwnProperty(Bt)&&C0(i,s,Bt,void 0,h,ne);for(ge in h)ne=h[ge],ie=u[ge],!h.hasOwnProperty(ge)||ne===ie||ne===void 0&&ie===void 0||C0(i,s,ge,ne,h,ie);return}}for(var Y in u)ne=u[Y],u.hasOwnProperty(Y)&&ne!=null&&!h.hasOwnProperty(Y)&&Ft(i,s,Y,null,h,ne);for(be in h)ne=h[be],ie=u[be],!h.hasOwnProperty(be)||ne===ie||ne==null&&ie==null||Ft(i,s,be,ne,h,ie)}var D0=null,k0=null;function Jf(i){return i.nodeType===9?i:i.ownerDocument}function ux(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dx(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function R0(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var I0=null;function RO(){var i=window.event;return i&&i.type==="popstate"?i===I0?!1:(I0=i,!0):(I0=null,!1)}var fx=typeof setTimeout=="function"?setTimeout:void 0,IO=typeof clearTimeout=="function"?clearTimeout:void 0,hx=typeof Promise=="function"?Promise:void 0,wO=typeof queueMicrotask=="function"?queueMicrotask:typeof hx<"u"?function(i){return hx.resolve(null).then(i).catch(NO)}:fx;function NO(i){setTimeout(function(){throw i})}function uo(i){return i==="head"}function px(i,s){var u=s,h=0,g=0;do{var E=u.nextSibling;if(i.removeChild(u),E&&E.nodeType===8)if(u=E.data,u==="/$"){if(0<h&&8>h){u=h;var R=i.ownerDocument;if(u&1&&eu(R.documentElement),u&2&&eu(R.body),u&4)for(u=R.head,eu(u),R=u.firstChild;R;){var N=R.nextSibling,U=R.nodeName;R[ze]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&R.rel.toLowerCase()==="stylesheet"||u.removeChild(R),R=N}}if(g===0){i.removeChild(E),lu(s);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=E}while(u);lu(s)}function w0(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":w0(u),qe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function OO(i,s,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[ze])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(E=i.getAttribute("rel"),E==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(E!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(E=i.getAttribute("src"),(E!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&E&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var E=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===E)return i}else return i;if(i=Ia(i.nextSibling),i===null)break}return null}function LO(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ia(i.nextSibling),i===null))return null;return i}function N0(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function MO(i,s){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")s();else{var h=function(){s(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Ia(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}var O0=null;function mx(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(s===0)return i;s--}else u==="/$"&&s++}i=i.previousSibling}return null}function gx(i,s,u){switch(s=Jf(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function eu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);qe(i)}var ua=new Map,yx=new Set;function eh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var ki=oe.d;oe.d={f:PO,r:$O,D:FO,C:BO,L:jO,m:UO,X:zO,S:HO,M:GO};function PO(){var i=ki.f(),s=Vf();return i||s}function $O(i){var s=Ot(i);s!==null&&s.tag===5&&s.type==="form"?$T(s):ki.r(i)}var vl=typeof document>"u"?null:document;function bx(i,s,u){var h=vl;if(h&&typeof s=="string"&&s){var g=ra(s);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),yx.has(g)||(yx.add(g),i={rel:i,crossOrigin:u,href:s},h.querySelector(g)===null&&(s=h.createElement("link"),tr(s,"link",i),ft(s),h.head.appendChild(s)))}}function FO(i){ki.D(i),bx("dns-prefetch",i,null)}function BO(i,s){ki.C(i,s),bx("preconnect",i,s)}function jO(i,s,u){ki.L(i,s,u);var h=vl;if(h&&i&&s){var g='link[rel="preload"][as="'+ra(s)+'"]';s==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+ra(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+ra(u.imageSizes)+'"]')):g+='[href="'+ra(i)+'"]';var E=g;switch(s){case"style":E=Tl(i);break;case"script":E=_l(i)}ua.has(E)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),ua.set(E,i),h.querySelector(g)!==null||s==="style"&&h.querySelector(tu(E))||s==="script"&&h.querySelector(nu(E))||(s=h.createElement("link"),tr(s,"link",i),ft(s),h.head.appendChild(s)))}}function UO(i,s){ki.m(i,s);var u=vl;if(u&&i){var h=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+ra(h)+'"][href="'+ra(i)+'"]',E=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=_l(i)}if(!ua.has(E)&&(i=p({rel:"modulepreload",href:i},s),ua.set(E,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(nu(E)))return}h=u.createElement("link"),tr(h,"link",i),ft(h),u.head.appendChild(h)}}}function HO(i,s,u){ki.S(i,s,u);var h=vl;if(h&&i){var g=bn(h).hoistableStyles,E=Tl(i);s=s||"default";var R=g.get(E);if(!R){var N={loading:0,preload:null};if(R=h.querySelector(tu(E)))N.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=ua.get(E))&&L0(i,u);var U=R=h.createElement("link");ft(U),tr(U,"link",i),U._p=new Promise(function(ee,ge){U.onload=ee,U.onerror=ge}),U.addEventListener("load",function(){N.loading|=1}),U.addEventListener("error",function(){N.loading|=2}),N.loading|=4,th(R,s,h)}R={type:"stylesheet",instance:R,count:1,state:N},g.set(E,R)}}}function zO(i,s){ki.X(i,s);var u=vl;if(u&&i){var h=bn(u).hoistableScripts,g=_l(i),E=h.get(g);E||(E=u.querySelector(nu(g)),E||(i=p({src:i,async:!0},s),(s=ua.get(g))&&M0(i,s),E=u.createElement("script"),ft(E),tr(E,"link",i),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},h.set(g,E))}}function GO(i,s){ki.M(i,s);var u=vl;if(u&&i){var h=bn(u).hoistableScripts,g=_l(i),E=h.get(g);E||(E=u.querySelector(nu(g)),E||(i=p({src:i,async:!0,type:"module"},s),(s=ua.get(g))&&M0(i,s),E=u.createElement("script"),ft(E),tr(E,"link",i),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},h.set(g,E))}}function Ex(i,s,u,h){var g=(g=Ie.current)?eh(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=Tl(u.href),u=bn(g).hoistableStyles,h=u.get(s),h||(h={type:"style",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Tl(u.href);var E=bn(g).hoistableStyles,R=E.get(i);if(R||(g=g.ownerDocument||g,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(i,R),(E=g.querySelector(tu(i)))&&!E._p&&(R.instance=E,R.state.loading=5),ua.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ua.set(i,u),E||VO(g,i,u,R.state))),s&&h===null)throw Error(r(528,""));return R}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=_l(u),u=bn(g).hoistableScripts,h=u.get(s),h||(h={type:"script",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Tl(i){return'href="'+ra(i)+'"'}function tu(i){return'link[rel="stylesheet"]['+i+"]"}function vx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function VO(i,s,u,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),tr(s,"link",u),ft(s),i.head.appendChild(s))}function _l(i){return'[src="'+ra(i)+'"]'}function nu(i){return"script[async]"+i}function Tx(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+ra(u.href)+'"]');if(h)return s.instance=h,ft(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),ft(h),tr(h,"style",g),th(h,u.precedence,i),s.instance=h;case"stylesheet":g=Tl(u.href);var E=i.querySelector(tu(g));if(E)return s.state.loading|=4,s.instance=E,ft(E),E;h=vx(u),(g=ua.get(g))&&L0(h,g),E=(i.ownerDocument||i).createElement("link"),ft(E);var R=E;return R._p=new Promise(function(N,U){R.onload=N,R.onerror=U}),tr(E,"link",h),s.state.loading|=4,th(E,u.precedence,i),s.instance=E;case"script":return E=_l(u.src),(g=i.querySelector(nu(E)))?(s.instance=g,ft(g),g):(h=u,(g=ua.get(E))&&(h=p({},u),M0(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),ft(g),tr(g,"link",h),i.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,th(h,u.precedence,i));return s.instance}function th(i,s,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,E=g,R=0;R<h.length;R++){var N=h[R];if(N.dataset.precedence===s)E=N;else if(E!==g)break}E?E.parentNode.insertBefore(i,E.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function L0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function M0(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var nh=null;function _x(i,s,u){if(nh===null){var h=new Map,g=nh=new Map;g.set(u,h)}else g=nh,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var E=u[g];if(!(E[ze]||E[Ee]||i==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var R=E.getAttribute(s)||"";R=i+R;var N=h.get(R);N?N.push(E):h.set(R,[E])}}return h}function xx(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function qO(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Ax(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var ru=null;function YO(){}function QO(i,s,u){if(ru===null)throw Error(r(475));var h=ru;if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=Tl(u.href),E=i.querySelector(tu(g));if(E){i=E._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=rh.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=E,ft(E);return}E=i.ownerDocument||i,u=vx(u),(g=ua.get(g))&&L0(u,g),E=E.createElement("link"),ft(E);var R=E;R._p=new Promise(function(N,U){R.onload=N,R.onerror=U}),tr(E,"link",u),s.instance=E}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=rh.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function KO(){if(ru===null)throw Error(r(475));var i=ru;return i.stylesheets&&i.count===0&&P0(i,i.stylesheets),0<i.count?function(s){var u=setTimeout(function(){if(i.stylesheets&&P0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(u)}}:null}function rh(){if(this.count--,this.count===0){if(this.stylesheets)P0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var ah=null;function P0(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,ah=new Map,s.forEach(WO,i),ah=null,rh.call(i))}function WO(i,s){if(!(s.state.loading&4)){var u=ah.get(i);if(u)var h=u.get(null);else{u=new Map,ah.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<g.length;E++){var R=g[E];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),h=R)}h&&u.set(null,h)}g=s.instance,R=g.getAttribute("data-precedence"),E=u.get(R)||h,E===h&&u.set(null,g),u.set(R,g),this.count++,h=rh.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),E?E.parentNode.insertBefore(g,E.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),s.state.loading|=4}}var au={$$typeof:S,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function XO(i,s,u,h,g,E,R,N){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gr(0),this.hiddenUpdates=gr(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=E,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Sx(i,s,u,h,g,E,R,N,U,ee,ge,be){return i=new XO(i,s,u,R,N,U,ee,be),s=1,E===!0&&(s|=24),E=Ur(3,null,null,s),i.current=E,E.stateNode=i,s=yg(),s.refCount++,i.pooledCache=s,s.refCount++,E.memoizedState={element:h,isDehydrated:u,cache:s},Tg(E),i}function Cx(i){return i?(i=Js,i):Js}function Dx(i,s,u,h,g,E){g=Cx(g),h.context===null?h.context=g:h.pendingContext=g,h=Xi(s),h.payload={element:u},E=E===void 0?null:E,E!==null&&(h.callback=E),u=Zi(i,h,s),u!==null&&(qr(u,i,s),Lc(u,i,s))}function kx(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function $0(i,s){kx(i,s),(i=i.alternate)&&kx(i,s)}function Rx(i){if(i.tag===13){var s=Zs(i,67108864);s!==null&&qr(s,i,67108864),$0(i,67108864)}}var ih=!0;function ZO(i,s,u,h){var g=G.T;G.T=null;var E=oe.p;try{oe.p=2,F0(i,s,u,h)}finally{oe.p=E,G.T=g}}function JO(i,s,u,h){var g=G.T;G.T=null;var E=oe.p;try{oe.p=8,F0(i,s,u,h)}finally{oe.p=E,G.T=g}}function F0(i,s,u,h){if(ih){var g=B0(h);if(g===null)S0(i,s,h,oh,u),wx(i,h);else if(t5(g,i,s,u,h))h.stopPropagation();else if(wx(i,h),s&4&&-1<e5.indexOf(i)){for(;g!==null;){var E=Ot(g);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var R=_e(E.pendingLanes);if(R!==0){var N=E;for(N.pendingLanes|=2,N.entangledLanes|=2;R;){var U=1<<31-rt(R);N.entanglements[1]|=U,R&=~U}qa(E),(Lt&6)===0&&(zf=Ve()+500,Xc(0))}}break;case 13:N=Zs(E,2),N!==null&&qr(N,E,2),Vf(),$0(E,2)}if(E=B0(h),E===null&&S0(i,s,h,oh,u),E===g)break;g=E}g!==null&&h.stopPropagation()}else S0(i,s,h,null,u)}}function B0(i){return i=Gm(i),j0(i)}var oh=null;function j0(i){if(oh=null,i=pt(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return oh=i,null}function Ix(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Zn()){case rn:return 2;case on:return 8;case Ye:case Ct:return 32;case xr:return 268435456;default:return 32}default:return 32}}var U0=!1,fo=null,ho=null,po=null,iu=new Map,ou=new Map,mo=[],e5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function wx(i,s){switch(i){case"focusin":case"focusout":fo=null;break;case"dragenter":case"dragleave":ho=null;break;case"mouseover":case"mouseout":po=null;break;case"pointerover":case"pointerout":iu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(s.pointerId)}}function su(i,s,u,h,g,E){return i===null||i.nativeEvent!==E?(i={blockedOn:s,domEventName:u,eventSystemFlags:h,nativeEvent:E,targetContainers:[g]},s!==null&&(s=Ot(s),s!==null&&Rx(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),i)}function t5(i,s,u,h,g){switch(s){case"focusin":return fo=su(fo,i,s,u,h,g),!0;case"dragenter":return ho=su(ho,i,s,u,h,g),!0;case"mouseover":return po=su(po,i,s,u,h,g),!0;case"pointerover":var E=g.pointerId;return iu.set(E,su(iu.get(E)||null,i,s,u,h,g)),!0;case"gotpointercapture":return E=g.pointerId,ou.set(E,su(ou.get(E)||null,i,s,u,h,g)),!0}return!1}function Nx(i){var s=pt(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,X(i.priority,function(){if(u.tag===13){var h=Vr();h=Fr(h);var g=Zs(u,h);g!==null&&qr(g,u,h),$0(u,h)}});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function sh(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=B0(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);zm=h,u.target.dispatchEvent(h),zm=null}else return s=Ot(u),s!==null&&Rx(s),i.blockedOn=u,!1;s.shift()}return!0}function Ox(i,s,u){sh(i)&&u.delete(s)}function n5(){U0=!1,fo!==null&&sh(fo)&&(fo=null),ho!==null&&sh(ho)&&(ho=null),po!==null&&sh(po)&&(po=null),iu.forEach(Ox),ou.forEach(Ox)}function lh(i,s){i.blockedOn===s&&(i.blockedOn=null,U0||(U0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,n5)))}var ch=null;function Lx(i){ch!==i&&(ch=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ch===i&&(ch=null);for(var s=0;s<i.length;s+=3){var u=i[s],h=i[s+1],g=i[s+2];if(typeof h!="function"){if(j0(h||u)===null)continue;break}var E=Ot(u);E!==null&&(i.splice(s,3),s-=3,jg(E,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function lu(i){function s(U){return lh(U,i)}fo!==null&&lh(fo,i),ho!==null&&lh(ho,i),po!==null&&lh(po,i),iu.forEach(s),ou.forEach(s);for(var u=0;u<mo.length;u++){var h=mo[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<mo.length&&(u=mo[0],u.blockedOn===null);)Nx(u),u.blockedOn===null&&mo.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],E=u[h+1],R=g[De]||null;if(typeof E=="function")R||Lx(u);else if(R){var N=null;if(E&&E.hasAttribute("formAction")){if(g=E,R=E[De]||null)N=R.formAction;else if(j0(g)!==null)continue}else N=R.action;typeof N=="function"?u[h+1]=N:(u.splice(h,3),h-=3),Lx(u)}}}function H0(i){this._internalRoot=i}uh.prototype.render=H0.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,h=Vr();Dx(u,h,i,s,null,null)},uh.prototype.unmount=H0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Dx(i.current,2,null,i,null,null),Vf(),s[je]=null}};function uh(i){this._internalRoot=i}uh.prototype.unstable_scheduleHydration=function(i){if(i){var s=z();i={blockedOn:null,target:i,priority:s};for(var u=0;u<mo.length&&s!==0&&s<mo[u].priority;u++);mo.splice(u,0,i),u===0&&Nx(i)}};var Mx=t.version;if(Mx!=="19.1.1")throw Error(r(527,Mx,"19.1.1"));oe.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var r5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dh.isDisabled&&dh.supportsFiber)try{ue=dh.inject(r5),ve=dh}catch{}}return cu.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,h="",g=XT,E=ZT,R=JT,N=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(E=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(N=s.unstable_transitionCallbacks)),s=Sx(i,1,!1,null,null,u,h,g,E,R,N,null),i[je]=s.current,A0(i),new H0(s)},cu.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var h=!1,g="",E=XT,R=ZT,N=JT,U=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(N=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(U=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),s=Sx(i,1,!0,s,u??null,h,g,E,R,N,U,ee),s.context=Cx(null),u=s.current,h=Vr(),h=Fr(h),g=Xi(h),g.callback=null,Zi(u,g,h),u=h,s.current.lanes=u,ar(s,u),qa(s),i[je]=s.current,A0(i),new uh(s)},cu.version="19.1.1",cu}var jx;function M5(){if(jx)return z0.exports;jx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),z0.exports=L5(),z0.exports}var P5=M5();/**
|
|
27
|
-
* react-router v7.7.1
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Remix Software Inc.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
33
|
-
*
|
|
34
|
-
* @license MIT
|
|
35
|
-
*/var G2=e=>{throw TypeError(e)},$5=(e,t,n)=>t.has(e)||G2("Cannot "+n),q0=(e,t,n)=>($5(e,t,"read from private field"),n?n.call(e):t.get(e)),F5=(e,t,n)=>t.has(e)?G2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ux="popstate";function B5(e={}){function t(r,a){let{pathname:o,search:l,hash:c}=r.location;return rd("",{pathname:o,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Mo(a)}return U5(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $n(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function j5(){return Math.random().toString(36).substring(2,10)}function Hx(e,t){return{usr:e.state,key:e.key,idx:t}}function rd(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$o(t):t,state:n,key:t&&t.key||r||j5()}}function Mo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function $o(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function U5(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let C=p(),x=C==null?null:C-f;f=C,d&&d({action:c,location:A.location,delta:x})}function y(C,x){c="PUSH";let D=rd(A.location,C,x);f=p()+1;let S=Hx(D,f),M=A.createHref(D);try{l.pushState(S,"",M)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;a.location.assign(M)}o&&d&&d({action:c,location:A.location,delta:1})}function b(C,x){c="REPLACE";let D=rd(A.location,C,x);f=p();let S=Hx(D,f),M=A.createHref(D);l.replaceState(S,"",M),o&&d&&d({action:c,location:A.location,delta:0})}function _(C){return V2(C)}let A={get action(){return c},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Ux,m),d=C,()=>{a.removeEventListener(Ux,m),d=null}},createHref(C){return t(a,C)},createURL:_,encodeLocation(C){let x=_(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:y,replace:b,go(C){return l.go(C)}};return A}function V2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Mo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Iu,zx=class{constructor(e){if(F5(this,Iu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(q0(this,Iu).has(e))return q0(this,Iu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){q0(this,Iu).set(e,t)}};Iu=new WeakMap;var H5=new Set(["lazy","caseSensitive","path","id","index","children"]);function z5(e){return H5.has(e)}var G5=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function V5(e){return G5.has(e)}function q5(e){return e.index===!0}function ad(e,t,n=[],r={},a=!1){return e.map((o,l)=>{let c=[...n,String(l)],d=typeof o.id=="string"?o.id:c.join("-");if(Tt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Tt(a||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),q5(o)){let f={...o,...t(o),id:d};return r[d]=f,f}else{let f={...o,...t(o),id:d,children:void 0};return r[d]=f,o.children&&(f.children=ad(o.children,t,c,r,a)),f}})}function Ao(e,t,n="/"){return Mh(e,t,n,!1)}function Mh(e,t,n,r){let a=typeof t=="string"?$o(t):t,o=xa(a.pathname||"/",n);if(o==null)return null;let l=q2(e);Q5(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=i4(o);c=r4(l[d],f,r)}return c}function Y5(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function q2(e,t=[],n=[],r=""){let a=(o,l,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Tt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=ai([r,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),q2(o.children,t,p,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:t4(f,o.index),routesMeta:p})};return e.forEach((o,l)=>{if(o.path===""||!o.path?.includes("?"))a(o,l);else for(let c of Y2(o.path))a(o,l,c)}),t}function Y2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Y2(r.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Q5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var K5=/^:[\w-]+$/,W5=3,X5=2,Z5=1,J5=10,e4=-2,Gx=e=>e==="*";function t4(e,t){let n=e.split("/"),r=n.length;return n.some(Gx)&&(r+=e4),t&&(r+=X5),n.filter(a=>!Gx(a)).reduce((a,o)=>a+(K5.test(o)?W5:o===""?Z5:J5),r)}function n4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function r4(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",m=sp({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),y=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=sp({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:ai([o,m.pathname]),pathnameBase:c4(ai([o,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(o=ai([o,m.pathnameBase]))}return l}function sp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=a4(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},y)=>{if(p==="*"){let _=c[y]||"";l=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const b=c[y];return m&&!b?f[p]=void 0:f[p]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function a4(e,t=!1,n=!0){$n(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function i4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $n(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function o4({basename:e,pathname:t}){return t==="/"?e:ai([e,t])}function s4(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$o(e):e;return{pathname:n?n.startsWith("/")?n:l4(n,t):t,search:u4(r),hash:d4(a)}}function l4(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Y0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Q2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eb(e){let t=Q2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function vb(e,t,n,r=!1){let a;typeof e=="string"?a=$o(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Y0("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Y0("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Y0("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;a.pathname=y.join("/")}c=m>=0?t[m]:"/"}let d=s4(a,c),f=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var ai=e=>e.join("/").replace(/\/\/+/g,"/"),c4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lp=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function id(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var K2=["POST","PUT","PATCH","DELETE"],f4=new Set(K2),h4=["GET",...K2],p4=new Set(h4),m4=new Set([301,302,303,307,308]),g4=new Set([307,308]),Q0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},y4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tb=e=>b4.test(e),E4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),W2="remix-router-transitions",X2=Symbol("ResetLoaderData");function v4(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||E4,o={},l=ad(e.routes,a,void 0,o),c,d=e.basename||"/",f=e.dataStrategy||S4,p={unstable_middleware:!1,...e.future},m=null,y=new Set,b=null,_=null,A=null,C=e.hydrationData!=null,x=Ao(l,e.history.location,d),D=!1,S=null,M;if(x==null&&!e.patchRoutesOnNavigation){let z=pa(404,{pathname:e.history.location.pathname}),{matches:X,route:ae}=nA(l);M=!0,x=X,S={[ae.id]:z}}else if(x&&!e.hydrationData&&ja(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some(z=>z.route.lazy))M=!1;else if(!x.some(z=>z.route.loader))M=!0;else{let z=e.hydrationData?e.hydrationData.loaderData:null,X=e.hydrationData?e.hydrationData.errors:null;if(X){let ae=x.findIndex(Ee=>X[Ee.route.id]!==void 0);M=x.slice(0,ae+1).every(Ee=>!ny(Ee.route,z,X))}else M=x.every(ae=>!ny(ae.route,z,X))}else{M=!1,x=[];let z=ja(null,l,e.history.location.pathname);z.active&&z.matches&&(D=!0,x=z.matches)}let L,I={historyAction:e.history.action,location:e.history.location,matches:x,initialized:M,navigation:Q0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},V="POP",te=!1,Q,k=!1,H=new Map,W=null,K=!1,re=!1,me=new Set,G=new Map,oe=0,le=-1,se=new Map,P=new Set,Ce=new Map,he=new Map,O=new Set,ce=new Map,Ne,Ie=null;function Me(){if(m=e.history.listen(({action:z,location:X,delta:ae})=>{if(Ne){Ne(),Ne=void 0;return}$n(ce.size===0||ae!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ee=Xe({currentLocation:I.location,nextLocation:X,historyAction:z});if(Ee&&ae!=null){let De=new Promise(je=>{Ne=je});e.history.go(ae*-1),ot(Ee,{state:"blocked",location:X,proceed(){ot(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),De.then(()=>e.history.go(ae))},reset(){let je=new Map(I.blockers);je.set(Ee,uu),dt({blockers:je})}});return}return Pe(z,X)}),n){P4(t,H);let z=()=>$4(t,H);t.addEventListener("pagehide",z),W=()=>t.removeEventListener("pagehide",z)}return I.initialized||Pe("POP",I.location,{initialHydration:!0}),L}function Oe(){m&&m(),W&&W(),y.clear(),Q&&Q.abort(),I.fetchers.forEach((z,X)=>rt(X)),I.blockers.forEach((z,X)=>Te(X))}function st(z){return y.add(z),()=>y.delete(z)}function dt(z,X={}){z.matches&&(z.matches=z.matches.map(De=>{let je=o[De.route.id],Ge=De.route;return Ge.element!==je.element||Ge.errorElement!==je.errorElement||Ge.hydrateFallbackElement!==je.hydrateFallbackElement?{...De,route:je}:De})),I={...I,...z};let ae=[],Ee=[];I.fetchers.forEach((De,je)=>{De.state==="idle"&&(O.has(je)?ae.push(je):Ee.push(je))}),O.forEach(De=>{!I.fetchers.has(De)&&!G.has(De)&&ae.push(De)}),[...y].forEach(De=>De(I,{deletedFetchers:ae,viewTransitionOpts:X.viewTransitionOpts,flushSync:X.flushSync===!0})),ae.forEach(De=>rt(De)),Ee.forEach(De=>I.fetchers.delete(De))}function Ue(z,X,{flushSync:ae}={}){let Ee=I.actionData!=null&&I.navigation.formMethod!=null&&Ir(I.navigation.formMethod)&&I.navigation.state==="loading"&&z.state?._isRedirect!==!0,De;X.actionData?Object.keys(X.actionData).length>0?De=X.actionData:De=null:Ee?De=I.actionData:De=null;let je=X.loaderData?eA(I.loaderData,X.loaderData,X.matches||[],X.errors):I.loaderData,Ge=I.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((ze,qe)=>Ge.set(qe,uu)));let He=K?!1:ir(z,X.matches||I.matches),We=te===!0||I.navigation.formMethod!=null&&Ir(I.navigation.formMethod)&&z.state?._isRedirect!==!0;c&&(l=c,c=void 0),K||V==="POP"||(V==="PUSH"?e.history.push(z,z.state):V==="REPLACE"&&e.history.replace(z,z.state));let Je;if(V==="POP"){let ze=H.get(I.location.pathname);ze&&ze.has(z.pathname)?Je={currentLocation:I.location,nextLocation:z}:H.has(z.pathname)&&(Je={currentLocation:z,nextLocation:I.location})}else if(k){let ze=H.get(I.location.pathname);ze?ze.add(z.pathname):(ze=new Set([z.pathname]),H.set(I.location.pathname,ze)),Je={currentLocation:I.location,nextLocation:z}}dt({...X,actionData:De,loaderData:je,historyAction:V,location:z,initialized:!0,navigation:Q0,revalidation:"idle",restoreScrollPosition:He,preventScrollReset:We,blockers:Ge},{viewTransitionOpts:Je,flushSync:ae===!0}),V="POP",te=!1,k=!1,K=!1,re=!1,Ie?.resolve(),Ie=null}async function Zt(z,X){if(typeof z=="number"){e.history.go(z);return}let ae=ty(I.location,I.matches,d,z,X?.fromRouteId,X?.relative),{path:Ee,submission:De,error:je}=Vx(!1,ae,X),Ge=I.location,He=rd(I.location,Ee,X&&X.state);He={...He,...e.history.encodeLocation(He)};let We=X&&X.replace!=null?X.replace:void 0,Je="PUSH";We===!0?Je="REPLACE":We===!1||De!=null&&Ir(De.formMethod)&&De.formAction===I.location.pathname+I.location.search&&(Je="REPLACE");let ze=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,qe=(X&&X.flushSync)===!0,pt=Xe({currentLocation:Ge,nextLocation:He,historyAction:Je});if(pt){ot(pt,{state:"blocked",location:He,proceed(){ot(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),Zt(z,X)},reset(){let Ot=new Map(I.blockers);Ot.set(pt,uu),dt({blockers:Ot})}});return}await Pe(Je,He,{submission:De,pendingError:je,preventScrollReset:ze,replace:X&&X.replace,enableViewTransition:X&&X.viewTransition,flushSync:qe})}function wt(){Ie||(Ie=F4()),Rt(),dt({revalidation:"loading"});let z=Ie.promise;return I.navigation.state==="submitting"?z:I.navigation.state==="idle"?(Pe(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),z):(Pe(V||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:k===!0}),z)}async function Pe(z,X,ae){Q&&Q.abort(),Q=null,V=z,K=(ae&&ae.startUninterruptedRevalidation)===!0,ar(I.location,I.matches),te=(ae&&ae.preventScrollReset)===!0,k=(ae&&ae.enableViewTransition)===!0;let Ee=c||l,De=ae&&ae.overrideNavigation,je=ae?.initialHydration&&I.matches&&I.matches.length>0&&!D?I.matches:Ao(Ee,X,d),Ge=(ae&&ae.flushSync)===!0;if(je&&I.initialized&&!re&&w4(I.location,X)&&!(ae&&ae.submission&&Ir(ae.submission.formMethod))){Ue(X,{matches:je},{flushSync:Ge});return}let He=ja(je,Ee,X.pathname);if(He.active&&He.matches&&(je=He.matches),!je){let{error:bn,notFoundMatches:ft,route:Pt}=Sn(X.pathname);Ue(X,{matches:ft,loaderData:{},errors:{[Pt.id]:bn}},{flushSync:Ge});return}Q=new AbortController;let We=Ll(e.history,X,Q.signal,ae&&ae.submission),Je=new zx(e.unstable_getContext?await e.unstable_getContext():void 0),ze;if(ae&&ae.pendingError)ze=[us(je).route.id,{type:"error",error:ae.pendingError}];else if(ae&&ae.submission&&Ir(ae.submission.formMethod)){let bn=await rr(We,X,ae.submission,je,Je,He.active,ae&&ae.initialHydration===!0,{replace:ae.replace,flushSync:Ge});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[ft,Pt]=bn.pendingActionResult;if(Kr(Pt)&&id(Pt.error)&&Pt.error.status===404){Q=null,Ue(X,{matches:bn.matches,loaderData:{},errors:{[ft]:Pt.error}});return}}je=bn.matches||je,ze=bn.pendingActionResult,De=K0(X,ae.submission),Ge=!1,He.active=!1,We=Ll(e.history,We.url,We.signal)}let{shortCircuited:qe,matches:pt,loaderData:Ot,errors:yn}=await dn(We,X,je,Je,He.active,De,ae&&ae.submission,ae&&ae.fetcherSubmission,ae&&ae.replace,ae&&ae.initialHydration===!0,Ge,ze);qe||(Q=null,Ue(X,{matches:pt||je,...tA(ze),loaderData:Ot,errors:yn}))}async function rr(z,X,ae,Ee,De,je,Ge,He={}){Rt();let We=L4(X,ae);if(dt({navigation:We},{flushSync:He.flushSync===!0}),je){let qe=await fn(Ee,X.pathname,z.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let pt=us(qe.partialMatches).route.id;return{matches:qe.partialMatches,pendingActionResult:[pt,{type:"error",error:qe.error}]}}else if(qe.matches)Ee=qe.matches;else{let{notFoundMatches:pt,error:Ot,route:yn}=Sn(X.pathname);return{matches:pt,pendingActionResult:[yn.id,{type:"error",error:Ot}]}}}let Je,ze=Ph(Ee,X);if(!ze.route.action&&!ze.route.lazy)Je={type:"error",error:pa(405,{method:z.method,pathname:X.pathname,routeId:ze.route.id})};else{let qe=Ul(a,o,z,Ee,ze,Ge?[]:r,De),pt=await xr(z,qe,De,null);if(Je=pt[ze.route.id],!Je){for(let Ot of Ee)if(pt[Ot.route.id]){Je=pt[Ot.route.id];break}}if(z.signal.aborted)return{shortCircuited:!0}}if(hs(Je)){let qe;return He&&He.replace!=null?qe=He.replace:qe=Xx(Je.response.headers.get("Location"),new URL(z.url),d)===I.location.pathname+I.location.search,await Ct(z,Je,!0,{submission:ae,replace:qe}),{shortCircuited:!0}}if(Kr(Je)){let qe=us(Ee,ze.route.id);return(He&&He.replace)!==!0&&(V="PUSH"),{matches:Ee,pendingActionResult:[qe.route.id,Je,ze.route.id]}}return{matches:Ee,pendingActionResult:[ze.route.id,Je]}}async function dn(z,X,ae,Ee,De,je,Ge,He,We,Je,ze,qe){let pt=je||K0(X,Ge),Ot=Ge||He||aA(pt),yn=!K&&!Je;if(De){if(yn){let In=Ve(qe);dt({navigation:pt,...In!==void 0?{actionData:In}:{}},{flushSync:ze})}let gt=await fn(ae,X.pathname,z.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){let In=us(gt.partialMatches).route.id;return{matches:gt.partialMatches,loaderData:{},errors:{[In]:gt.error}}}else if(gt.matches)ae=gt.matches;else{let{error:In,notFoundMatches:zo,route:ta}=Sn(X.pathname);return{matches:zo,loaderData:{},errors:{[ta.id]:In}}}}let bn=c||l,{dsMatches:ft,revalidatingFetchers:Pt}=qx(z,Ee,a,o,e.history,I,ae,Ot,X,Je?[]:r,Je===!0,re,me,O,Ce,P,bn,d,e.patchRoutesOnNavigation!=null,qe);if(le=++oe,!e.dataStrategy&&!ft.some(gt=>gt.shouldLoad)&&Pt.length===0){let gt=gn();return Ue(X,{matches:ae,loaderData:{},errors:qe&&Kr(qe[1])?{[qe[0]]:qe[1].error}:null,...tA(qe),...gt?{fetchers:new Map(I.fetchers)}:{}},{flushSync:ze}),{shortCircuited:!0}}if(yn){let gt={};if(!De){gt.navigation=pt;let In=Ve(qe);In!==void 0&&(gt.actionData=In)}Pt.length>0&&(gt.fetchers=Zn(Pt)),dt(gt,{flushSync:ze})}Pt.forEach(gt=>{Nt(gt.key),gt.controller&&G.set(gt.key,gt.controller)});let Ua=()=>Pt.forEach(gt=>Nt(gt.key));Q&&Q.signal.addEventListener("abort",Ua);let{loaderResults:Br,fetcherResults:yr}=await Ba(ft,Pt,z,Ee);if(z.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",Ua),Pt.forEach(gt=>G.delete(gt.key));let ea=ph(Br);if(ea)return await Ct(z,ea.result,!0,{replace:We}),{shortCircuited:!0};if(ea=ph(yr),ea)return P.add(ea.key),await Ct(z,ea.result,!0,{replace:We}),{shortCircuited:!0};let{loaderData:zs,errors:qi}=Jx(I,ae,Br,qe,Pt,yr);Je&&I.errors&&(qi={...I.errors,...qi});let fi=gn(),hi=An(le),pi=fi||hi||Pt.length>0;return{matches:ae,loaderData:zs,errors:qi,...pi?{fetchers:new Map(I.fetchers)}:{}}}function Ve(z){if(z&&!Kr(z[1]))return{[z[0]]:z[1].data};if(I.actionData)return Object.keys(I.actionData).length===0?null:I.actionData}function Zn(z){return z.forEach(X=>{let ae=I.fetchers.get(X.key),Ee=du(void 0,ae?ae.data:void 0);I.fetchers.set(X.key,Ee)}),new Map(I.fetchers)}async function rn(z,X,ae,Ee){Nt(z);let De=(Ee&&Ee.flushSync)===!0,je=c||l,Ge=ty(I.location,I.matches,d,ae,X,Ee?.relative),He=Ao(je,Ge,d),We=ja(He,je,Ge);if(We.active&&We.matches&&(He=We.matches),!He){ve(z,X,pa(404,{pathname:Ge}),{flushSync:De});return}let{path:Je,submission:ze,error:qe}=Vx(!0,Ge,Ee);if(qe){ve(z,X,qe,{flushSync:De});return}let pt=new zx(e.unstable_getContext?await e.unstable_getContext():void 0),Ot=(Ee&&Ee.preventScrollReset)===!0;if(ze&&Ir(ze.formMethod)){await on(z,X,Je,He,pt,We.active,De,Ot,ze);return}Ce.set(z,{routeId:X,path:Je}),await Ye(z,X,Je,He,pt,We.active,De,Ot,ze)}async function on(z,X,ae,Ee,De,je,Ge,He,We){Rt(),Ce.delete(z);let Je=I.fetchers.get(z);ue(z,M4(We,Je),{flushSync:Ge});let ze=new AbortController,qe=Ll(e.history,ae,ze.signal,We);if(je){let hn=await fn(Ee,new URL(qe.url).pathname,qe.signal,z);if(hn.type==="aborted")return;if(hn.type==="error"){ve(z,X,hn.error,{flushSync:Ge});return}else if(hn.matches)Ee=hn.matches;else{ve(z,X,pa(404,{pathname:ae}),{flushSync:Ge});return}}let pt=Ph(Ee,ae);if(!pt.route.action&&!pt.route.lazy){let hn=pa(405,{method:We.formMethod,pathname:ae,routeId:X});ve(z,X,hn,{flushSync:Ge});return}G.set(z,ze);let Ot=oe,yn=Ul(a,o,qe,Ee,pt,r,De),ft=(await xr(qe,yn,De,z))[pt.route.id];if(qe.signal.aborted){G.get(z)===ze&&G.delete(z);return}if(O.has(z)){if(hs(ft)||Kr(ft)){ue(z,To(void 0));return}}else{if(hs(ft))if(G.delete(z),le>Ot){ue(z,To(void 0));return}else return P.add(z),ue(z,du(We)),Ct(qe,ft,!1,{fetcherSubmission:We,preventScrollReset:He});if(Kr(ft)){ve(z,X,ft.error);return}}let Pt=I.navigation.location||I.location,Ua=Ll(e.history,Pt,ze.signal),Br=c||l,yr=I.navigation.state!=="idle"?Ao(Br,I.navigation.location,d):I.matches;Tt(yr,"Didn't find any matches after fetcher action");let ea=++oe;se.set(z,ea);let zs=du(We,ft.data);I.fetchers.set(z,zs);let{dsMatches:qi,revalidatingFetchers:fi}=qx(Ua,De,a,o,e.history,I,yr,We,Pt,r,!1,re,me,O,Ce,P,Br,d,e.patchRoutesOnNavigation!=null,[pt.route.id,ft]);fi.filter(hn=>hn.key!==z).forEach(hn=>{let Yi=hn.key,tf=I.fetchers.get(Yi),nf=du(void 0,tf?tf.data:void 0);I.fetchers.set(Yi,nf),Nt(Yi),hn.controller&&G.set(Yi,hn.controller)}),dt({fetchers:new Map(I.fetchers)});let hi=()=>fi.forEach(hn=>Nt(hn.key));ze.signal.addEventListener("abort",hi);let{loaderResults:pi,fetcherResults:gt}=await Ba(qi,fi,Ua,De);if(ze.signal.aborted)return;if(ze.signal.removeEventListener("abort",hi),se.delete(z),G.delete(z),fi.forEach(hn=>G.delete(hn.key)),I.fetchers.has(z)){let hn=To(ft.data);I.fetchers.set(z,hn)}let In=ph(pi);if(In)return Ct(Ua,In.result,!1,{preventScrollReset:He});if(In=ph(gt),In)return P.add(In.key),Ct(Ua,In.result,!1,{preventScrollReset:He});let{loaderData:zo,errors:ta}=Jx(I,yr,pi,void 0,fi,gt);An(ea),I.navigation.state==="loading"&&ea>le?(Tt(V,"Expected pending action"),Q&&Q.abort(),Ue(I.navigation.location,{matches:yr,loaderData:zo,errors:ta,fetchers:new Map(I.fetchers)})):(dt({errors:ta,loaderData:eA(I.loaderData,zo,yr,ta),fetchers:new Map(I.fetchers)}),re=!1)}async function Ye(z,X,ae,Ee,De,je,Ge,He,We){let Je=I.fetchers.get(z);ue(z,du(We,Je?Je.data:void 0),{flushSync:Ge});let ze=new AbortController,qe=Ll(e.history,ae,ze.signal);if(je){let Pt=await fn(Ee,new URL(qe.url).pathname,qe.signal,z);if(Pt.type==="aborted")return;if(Pt.type==="error"){ve(z,X,Pt.error,{flushSync:Ge});return}else if(Pt.matches)Ee=Pt.matches;else{ve(z,X,pa(404,{pathname:ae}),{flushSync:Ge});return}}let pt=Ph(Ee,ae);G.set(z,ze);let Ot=oe,yn=Ul(a,o,qe,Ee,pt,r,De),ft=(await xr(qe,yn,De,z))[pt.route.id];if(G.get(z)===ze&&G.delete(z),!qe.signal.aborted){if(O.has(z)){ue(z,To(void 0));return}if(hs(ft))if(le>Ot){ue(z,To(void 0));return}else{P.add(z),await Ct(qe,ft,!1,{preventScrollReset:He});return}if(Kr(ft)){ve(z,X,ft.error);return}ue(z,To(ft.data))}}async function Ct(z,X,ae,{submission:Ee,fetcherSubmission:De,preventScrollReset:je,replace:Ge}={}){X.response.headers.has("X-Remix-Revalidate")&&(re=!0);let He=X.response.headers.get("Location");Tt(He,"Expected a Location header on the redirect Response"),He=Xx(He,new URL(z.url),d);let We=rd(I.location,He,{_isRedirect:!0});if(n){let yn=!1;if(X.response.headers.has("X-Remix-Reload-Document"))yn=!0;else if(Tb(He)){const bn=V2(He,!0);yn=bn.origin!==t.location.origin||xa(bn.pathname,d)==null}if(yn){Ge?t.location.replace(He):t.location.assign(He);return}}Q=null;let Je=Ge===!0||X.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ze,formAction:qe,formEncType:pt}=I.navigation;!Ee&&!De&&ze&&qe&&pt&&(Ee=aA(I.navigation));let Ot=Ee||De;if(g4.has(X.response.status)&&Ot&&Ir(Ot.formMethod))await Pe(Je,We,{submission:{...Ot,formAction:He},preventScrollReset:je||te,enableViewTransition:ae?k:void 0});else{let yn=K0(We,Ee);await Pe(Je,We,{overrideNavigation:yn,fetcherSubmission:De,preventScrollReset:je||te,enableViewTransition:ae?k:void 0})}}async function xr(z,X,ae,Ee){let De,je={};try{De=await C4(f,z,X,Ee,ae,!1)}catch(Ge){return X.filter(He=>He.shouldLoad).forEach(He=>{je[He.route.id]={type:"error",error:Ge}}),je}if(z.signal.aborted)return je;for(let[Ge,He]of Object.entries(De))if(N4(He)){let We=He.result;je[Ge]={type:"redirect",response:R4(We,z,Ge,X,d)}}else je[Ge]=await k4(He);return je}async function Ba(z,X,ae,Ee){let De=xr(ae,z,Ee,null),je=Promise.all(X.map(async We=>{if(We.matches&&We.match&&We.request&&We.controller){let ze=(await xr(We.request,We.matches,Ee,We.key))[We.match.route.id];return{[We.key]:ze}}else return Promise.resolve({[We.key]:{type:"error",error:pa(404,{pathname:We.path})}})})),Ge=await De,He=(await je).reduce((We,Je)=>Object.assign(We,Je),{});return{loaderResults:Ge,fetcherResults:He}}function Rt(){re=!0,Ce.forEach((z,X)=>{G.has(X)&&me.add(X),Nt(X)})}function ue(z,X,ae={}){I.fetchers.set(z,X),dt({fetchers:new Map(I.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function ve(z,X,ae,Ee={}){let De=us(I.matches,X);rt(z),dt({errors:{[De.route.id]:ae},fetchers:new Map(I.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function Be(z){return he.set(z,(he.get(z)||0)+1),O.has(z)&&O.delete(z),I.fetchers.get(z)||y4}function rt(z){let X=I.fetchers.get(z);G.has(z)&&!(X&&X.state==="loading"&&se.has(z))&&Nt(z),Ce.delete(z),se.delete(z),P.delete(z),O.delete(z),me.delete(z),I.fetchers.delete(z)}function Dt(z){let X=(he.get(z)||0)-1;X<=0?(he.delete(z),O.add(z)):he.set(z,X),dt({fetchers:new Map(I.fetchers)})}function Nt(z){let X=G.get(z);X&&(X.abort(),G.delete(z))}function zn(z){for(let X of z){let ae=Be(X),Ee=To(ae.data);I.fetchers.set(X,Ee)}}function gn(){let z=[],X=!1;for(let ae of P){let Ee=I.fetchers.get(ae);Tt(Ee,`Expected fetcher: ${ae}`),Ee.state==="loading"&&(P.delete(ae),z.push(ae),X=!0)}return zn(z),X}function An(z){let X=[];for(let[ae,Ee]of se)if(Ee<z){let De=I.fetchers.get(ae);Tt(De,`Expected fetcher: ${ae}`),De.state==="loading"&&(Nt(ae),se.delete(ae),X.push(ae))}return zn(X),X.length>0}function _e(z,X){let ae=I.blockers.get(z)||uu;return ce.get(z)!==X&&ce.set(z,X),ae}function Te(z){I.blockers.delete(z),ce.delete(z)}function ot(z,X){let ae=I.blockers.get(z)||uu;Tt(ae.state==="unblocked"&&X.state==="blocked"||ae.state==="blocked"&&X.state==="blocked"||ae.state==="blocked"&&X.state==="proceeding"||ae.state==="blocked"&&X.state==="unblocked"||ae.state==="proceeding"&&X.state==="unblocked",`Invalid blocker state transition: ${ae.state} -> ${X.state}`);let Ee=new Map(I.blockers);Ee.set(z,X),dt({blockers:Ee})}function Xe({currentLocation:z,nextLocation:X,historyAction:ae}){if(ce.size===0)return;ce.size>1&&$n(!1,"A router only supports one blocker at a time");let Ee=Array.from(ce.entries()),[De,je]=Ee[Ee.length-1],Ge=I.blockers.get(De);if(!(Ge&&Ge.state==="proceeding")&&je({currentLocation:z,nextLocation:X,historyAction:ae}))return De}function Sn(z){let X=pa(404,{pathname:z}),ae=c||l,{matches:Ee,route:De}=nA(ae);return{notFoundMatches:Ee,route:De,error:X}}function $r(z,X,ae){if(b=z,A=X,_=ae||null,!C&&I.navigation===Q0){C=!0;let Ee=ir(I.location,I.matches);Ee!=null&&dt({restoreScrollPosition:Ee})}return()=>{b=null,A=null,_=null}}function gr(z,X){return _&&_(z,X.map(Ee=>Y5(Ee,I.loaderData)))||z.key}function ar(z,X){if(b&&A){let ae=gr(z,X);b[ae]=A()}}function ir(z,X){if(b){let ae=gr(z,X),Ee=b[ae];if(typeof Ee=="number")return Ee}return null}function ja(z,X,ae){if(e.patchRoutesOnNavigation)if(z){if(Object.keys(z[0].params).length>0)return{active:!0,matches:Mh(X,ae,d,!0)}}else return{active:!0,matches:Mh(X,ae,d,!0)||[]};return{active:!1,matches:null}}async function fn(z,X,ae,Ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:z};let De=z;for(;;){let je=c==null,Ge=c||l,He=o;try{await e.patchRoutesOnNavigation({signal:ae,path:X,matches:De,fetcherKey:Ee,patch:(ze,qe)=>{ae.aborted||Yx(ze,qe,Ge,He,a,!1)}})}catch(ze){return{type:"error",error:ze,partialMatches:De}}finally{je&&!ae.aborted&&(l=[...l])}if(ae.aborted)return{type:"aborted"};let We=Ao(Ge,X,d);if(We)return{type:"success",matches:We};let Je=Mh(Ge,X,d,!0);if(!Je||De.length===Je.length&&De.every((ze,qe)=>ze.route.id===Je[qe].route.id))return{type:"success",matches:null};De=Je}}function Fr(z){o={},c=ad(z,a,void 0,o)}function Da(z,X,ae=!1){let Ee=c==null;Yx(z,X,c||l,o,a,ae),Ee&&(l=[...l],dt({}))}return L={get basename(){return d},get future(){return p},get state(){return I},get routes(){return l},get window(){return t},initialize:Me,subscribe:st,enableScrollRestoration:$r,navigate:Zt,fetch:rn,revalidate:wt,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:Be,deleteFetcher:Dt,dispose:Oe,getBlocker:_e,deleteBlocker:Te,patchRoutes:Da,_internalFetchControllers:G,_internalSetRoutes:Fr,_internalSetStateDoNotUseOrYouWillBreakYourApp(z){dt(z)}},L}function T4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ty(e,t,n,r,a,o){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=vb(r||".",Eb(l),xa(e.pathname,n)||e.pathname,o==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=_b(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(d.search),m=p.getAll("index");p.delete("index"),m.filter(b=>b).forEach(b=>p.append("index",b));let y=p.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=o4({basename:n,pathname:d.pathname})),Mo(d)}function Vx(e,t,n){if(!n||!T4(n))return{path:t};if(n.formMethod&&!O4(n.formMethod))return{path:t,error:pa(405,{method:n.formMethod})};let r=()=>({path:t,error:pa(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),l=rD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ir(o))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[b,_])=>`${y}${b}=${_}
|
|
36
|
-
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Ir(o))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Tt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=ay(n.formData),d=n.formData;else if(n.body instanceof FormData)c=ay(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=Zx(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=Zx(c)}catch{return r()}let f={formMethod:o,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ir(f.formMethod))return{path:t,submission:f};let p=$o(t);return e&&p.search&&_b(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Mo(p),submission:f}}function qx(e,t,n,r,a,o,l,c,d,f,p,m,y,b,_,A,C,x,D,S){let M=S?Kr(S[1])?S[1].error:S[1].data:void 0,L=a.createURL(o.location),I=a.createURL(d),V;if(p&&o.errors){let K=Object.keys(o.errors)[0];V=l.findIndex(re=>re.route.id===K)}else if(S&&Kr(S[1])){let K=S[0];V=l.findIndex(re=>re.route.id===K)-1}let te=S?S[1].statusCode:void 0,Q=te&&te>=400,k={currentUrl:L,currentParams:o.matches[0]?.params||{},nextUrl:I,nextParams:l[0].params,...c,actionResult:M,actionStatus:te},H=l.map((K,re)=>{let{route:me}=K,G=null;if(V!=null&&re>V?G=!1:me.lazy?G=!0:me.loader==null?G=!1:p?G=ny(me,o.loaderData,o.errors):_4(o.loaderData,o.matches[re],K)&&(G=!0),G!==null)return ry(n,r,e,K,f,t,G);let oe=Q?!1:m||L.pathname+L.search===I.pathname+I.search||L.search!==I.search||x4(o.matches[re],K),le={...k,defaultShouldRevalidate:oe},se=cp(K,le);return ry(n,r,e,K,f,t,se,le)}),W=[];return _.forEach((K,re)=>{if(p||!l.some(he=>he.route.id===K.routeId)||b.has(re))return;let me=o.fetchers.get(re),G=me&&me.state!=="idle"&&me.data===void 0,oe=Ao(C,K.path,x);if(!oe){if(D&&G)return;W.push({key:re,routeId:K.routeId,path:K.path,matches:null,match:null,request:null,controller:null});return}if(A.has(re))return;let le=Ph(oe,K.path),se=new AbortController,P=Ll(a,K.path,se.signal),Ce=null;if(y.has(re))y.delete(re),Ce=Ul(n,r,P,oe,le,f,t);else if(G)m&&(Ce=Ul(n,r,P,oe,le,f,t));else{let he={...k,defaultShouldRevalidate:Q?!1:m};cp(le,he)&&(Ce=Ul(n,r,P,oe,le,f,t,he))}Ce&&W.push({key:re,routeId:K.routeId,path:K.path,matches:Ce,match:le,request:P,controller:se})}),{dsMatches:H,revalidatingFetchers:W}}function ny(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function _4(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function x4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function cp(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Yx(e,t,n,r,a,o){let l;if(e){let f=r[e];Tt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let p=l.find(m=>Z2(f,m));p?d.push({existingRoute:p,newRoute:f}):c.push(f)}),c.length>0){let f=ad(c,a,[e||"_","patch",String(l?.length||"0")],r);l.push(...f)}if(o&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:p,newRoute:m}=d[f],y=p,[b]=ad([m],a,[],{},!0);Object.assign(y,{element:b.element?b.element:y.element,errorElement:b.errorElement?b.errorElement:y.errorElement,hydrateFallbackElement:b.hydrateFallbackElement?b.hydrateFallbackElement:y.hydrateFallbackElement})}}function Z2(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>Z2(n,a))):!1}var Qx=new WeakMap,J2=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Tt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let l=Qx.get(a);l||(l={},Qx.set(a,l));let c=l[e];if(c)return c;let d=(async()=>{let f=z5(e),m=a[e]!==void 0&&e!=="hasErrorBoundary";if(f)$n(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(m)$n(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return l[e]=d,d},Kx=new WeakMap;function A4(e,t,n,r,a){let o=n[e.id];if(Tt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=Kx.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let m=(async()=>{Tt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),b={};for(let _ in y){let A=y[_];if(A===void 0)continue;let C=V5(_),D=o[_]!==void 0&&_!=="hasErrorBoundary";C?$n(!C,"Route property "+_+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?$n(!D,`Route "${o.id}" has a static property "${_}" defined but its lazy function is also returning a value for this property. The lazy route property "${_}" will be ignored.`):b[_]=A}Object.assign(o,b),Object.assign(o,{...r(o),lazy:void 0})})();return Kx.set(o,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let l=Object.keys(e.lazy),c=[],d;for(let p of l){if(a&&a.includes(p))continue;let m=J2({key:p,route:e,manifest:n,mapRouteProperties:r});m&&(c.push(m),p===t&&(d=m))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function Wx(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{n[t[o].route.id]=a}),n}async function S4(e){return e.matches.some(t=>t.route.unstable_middleware)?eD(e,!1,()=>Wx(e),(t,n)=>({[n]:{type:"error",result:t}})):Wx(e)}async function eD(e,t,n,r){let{matches:a,request:o,params:l,context:c}=e,d={handlerResult:void 0};try{let f=a.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(y=>[m.route.id,y]):[]),p=await tD({request:o,params:l,context:c},f,t,d,n);return t?p:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let p=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,p):p}}async function tD(e,t,n,r,a,o=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[o];if(!c)return r.handlerResult=await a(),r.handlerResult;let[d,f]=c,p=!1,m,y=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await tD(e,t,n,r,a,o+1)};try{let b=await f({request:e.request,params:e.params,context:e.context},y);return p?b===void 0?m:b:y()}catch(b){throw r.middlewareError?r.middlewareError.error!==b&&(r.middlewareError={routeId:d,error:b}):r.middlewareError={routeId:d,error:b},b}}function nD(e,t,n,r,a){let o=J2({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=A4(r.route,Ir(n.method)?"action":"loader",t,e,a);return{middleware:o,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function ry(e,t,n,r,a,o,l,c=null){let d=!1,f=nD(e,t,n,r,a);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return d=!0,c?typeof p=="boolean"?cp(r,{...c,defaultShouldRevalidate:p}):cp(r,c):l},resolve(p){return d||l||p&&!Ir(n.method)&&(r.route.lazy||r.route.loader)?D4({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:p,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Ul(e,t,n,r,a,o,l,c=null){return r.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:nD(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ry(e,t,n,d,o,l,!0,c))}async function C4(e,t,n,r,a,o){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let l={request:t,params:n[0].params,context:a,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let p=l;return eD(p,!1,()=>f({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,y)=>({[y]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return d}async function D4({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:o}){let l,c,d=Ir(e.method),f=d?"action":"loader",p=m=>{let y,b=new Promise((C,x)=>y=x);c=()=>y(),e.signal.addEventListener("abort",c);let _=C=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:o},...C!==void 0?[C]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(x=>_(x)):_())}}catch(C){return{type:"error",result:C}}})();return Promise.race([A,b])};try{let m=d?t.route.action:t.route.loader;if(n||r)if(m){let y,[b]=await Promise.all([p(m).catch(_=>{y=_}),n,r]);if(y!==void 0)throw y;l=b}else{await n;let y=d?t.route.action:t.route.loader;if(y)[l]=await Promise.all([p(y),r]);else if(f==="action"){let b=new URL(e.url),_=b.pathname+b.search;throw pa(405,{method:e.method,pathname:_,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)l=await p(m);else{let y=new URL(e.url),b=y.pathname+y.search;throw pa(404,{pathname:b})}}catch(m){return{type:"error",result:m}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function k4(e){let{result:t,type:n}=e;if(aD(t)){let r;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new lp(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?rA(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new lp(t.init?.status||500,void 0,t.data),statusCode:id(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:id(t)?t.status:void 0}:rA(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function R4(e,t,n,r,a){let o=e.headers.get("Location");if(Tt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Tb(o)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=ty(new URL(t.url),l,a,o),e.headers.set("Location",o)}return e}function Xx(e,t,n){if(Tb(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=xa(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Ll(e,t,n,r){let a=e.createURL(rD(t)).toString(),o={signal:n};if(r&&Ir(r.formMethod)){let{formMethod:l,formEncType:c}=r;o.method=l.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(r.json)):c==="text/plain"?o.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?o.body=ay(r.formData):o.body=r.formData}return new Request(a,o)}function ay(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Zx(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function I4(e,t,n,r=!1,a=!1){let o={},l=null,c,d=!1,f={},p=n&&Kr(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let y=m.route.id,b=t[y];if(Tt(!hs(b),"Cannot handle redirect results in processLoaderData"),Kr(b)){let _=b.error;if(p!==void 0&&(_=p,p=void 0),l=l||{},a)l[y]=_;else{let A=us(e,y);l[A.route.id]==null&&(l[A.route.id]=_)}r||(o[y]=X2),d||(d=!0,c=id(b.error)?b.error.status:500),b.headers&&(f[y]=b.headers)}else o[y]=b.data,b.statusCode&&b.statusCode!==200&&!d&&(c=b.statusCode),b.headers&&(f[y]=b.headers)}),p!==void 0&&n&&(l={[n[0]]:p},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:l,statusCode:c||200,loaderHeaders:f}}function Jx(e,t,n,r,a,o){let{loaderData:l,errors:c}=I4(t,n,r);return a.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:p,controller:m}=d,y=o[f];if(Tt(y,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Kr(y)){let b=us(e.matches,p?.route.id);c&&c[b.route.id]||(c={...c,[b.route.id]:y.error}),e.fetchers.delete(f)}else if(hs(y))Tt(!1,"Unhandled fetcher revalidation redirect");else{let b=To(y.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function eA(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==X2).reduce((o,[l,c])=>(o[l]=c,o),{});for(let o of n){let l=o.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&o.route.loader&&(a[l]=e[l]),r&&r.hasOwnProperty(l))break}return a}function tA(e){return e?Kr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function us(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function nA(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pa(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new lp(e||500,l,new Error(c),!0)}function ph(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(hs(a))return{key:r,result:a}}}function rD(e){let t=typeof e=="string"?$o(e):e;return Mo({...t,hash:""})}function w4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function N4(e){return aD(e.result)&&m4.has(e.result.status)}function Kr(e){return e.type==="error"}function hs(e){return(e&&e.type)==="redirect"}function rA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function aD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function O4(e){return p4.has(e.toUpperCase())}function Ir(e){return f4.has(e.toUpperCase())}function _b(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ph(e,t){let n=typeof t=="string"?$o(t).search:t.search;if(e[e.length-1].route.index&&_b(n||""))return e[e.length-1];let r=Q2(e);return r[r.length-1]}function aA(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:l}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function K0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function L4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function du(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function M4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function To(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function P4(e,t){try{let n=e.sessionStorage.getItem(W2);if(n){let r=JSON.parse(n);for(let[a,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function $4(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(W2,JSON.stringify(n))}catch(r){$n(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function F4(){let e,t,n=new Promise((r,a)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{a(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ps=w.createContext(null);Ps.displayName="DataRouter";var Id=w.createContext(null);Id.displayName="DataRouterState";w.createContext(!1);var xb=w.createContext({isTransitioning:!1});xb.displayName="ViewTransition";var iD=w.createContext(new Map);iD.displayName="Fetchers";var B4=w.createContext(null);B4.displayName="Await";var li=w.createContext(null);li.displayName="Navigation";var Vp=w.createContext(null);Vp.displayName="Location";var Pa=w.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var Ab=w.createContext(null);Ab.displayName="RouteError";function j4(e,{relative:t}={}){Tt(wd(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(li),{hash:a,pathname:o,search:l}=Od(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ai([n,o])),r.createHref({pathname:c,search:l,hash:a})}function wd(){return w.useContext(Vp)!=null}function $s(){return Tt(wd(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Vp).location}var oD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sD(e){w.useContext(li).static||w.useLayoutEffect(e)}function Sb(){let{isDataRoute:e}=w.useContext(Pa);return e?e6():U4()}function U4(){Tt(wd(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(Ps),{basename:t,navigator:n}=w.useContext(li),{matches:r}=w.useContext(Pa),{pathname:a}=$s(),o=JSON.stringify(Eb(r)),l=w.useRef(!1);return sD(()=>{l.current=!0}),w.useCallback((d,f={})=>{if($n(l.current,oD),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=vb(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ai([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,o,a,e])}var H4=w.createContext(null);function z4(e){let t=w.useContext(Pa).outlet;return t&&w.createElement(H4.Provider,{value:e},t)}function Nd(){let{matches:e}=w.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function Od(e,{relative:t}={}){let{matches:n}=w.useContext(Pa),{pathname:r}=$s(),a=JSON.stringify(Eb(n));return w.useMemo(()=>vb(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function G4(e,t,n,r){Tt(wd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=w.useContext(li),{matches:o}=w.useContext(Pa),l=o[o.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let x=p&&p.path||"";cD(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
37
|
-
|
|
38
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=$s(),y;y=m;let b=y.pathname||"/",_=b;if(f!=="/"){let x=f.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(x.length).join("/")}let A=Ao(e,{pathname:_});return $n(p||A!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),$n(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),K4(A&&A.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ai([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:ai([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function V4(){let e=lD(),t=id(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:o},"ErrorBoundary")," or"," ",w.createElement("code",{style:o},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:a},n):null,l)}var q4=w.createElement(V4,null),Y4=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?w.createElement(Pa.Provider,{value:this.props.routeContext},w.createElement(Ab.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Q4({routeContext:e,match:t,children:n}){let r=w.useContext(Ps);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Pa.Provider,{value:e},n)}function K4(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let d=a.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);Tt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:m}=n,y=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let m,y=!1,b=null,_=null;n&&(m=o&&f.route.id?o[f.route.id]:void 0,b=f.route.errorElement||q4,l&&(c<0&&p===0?(cD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):c===p&&(y=!0,_=f.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,p+1)),C=()=>{let x;return m?x=b:y?x=_:f.route.Component?x=w.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,w.createElement(Q4,{match:f,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?w.createElement(Y4,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):C()},null)}function Cb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function W4(e){let t=w.useContext(Ps);return Tt(t,Cb(e)),t}function X4(e){let t=w.useContext(Id);return Tt(t,Cb(e)),t}function Z4(e){let t=w.useContext(Pa);return Tt(t,Cb(e)),t}function Db(e){let t=Z4(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function J4(){return Db("useRouteId")}function lD(){let e=w.useContext(Ab),t=X4("useRouteError"),n=Db("useRouteError");return e!==void 0?e:t.errors?.[n]}function e6(){let{router:e}=W4("useNavigate"),t=Db("useNavigate"),n=w.useRef(!1);return sD(()=>{n.current=!0}),w.useCallback(async(a,o={})=>{$n(n.current,oD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var iA={};function cD(e,t,n){!t&&!iA[e]&&(iA[e]=!0,$n(!1,n))}var oA={};function sA(e,t){!e&&!oA[t]&&(oA[t]=!0,console.warn(t))}function t6(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&$n(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:w.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&$n(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&$n(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var n6=["HydrateFallback","hydrateFallbackElement"],r6=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function a6({router:e,flushSync:t}){let[n,r]=w.useState(e.state),[a,o]=w.useState(),[l,c]=w.useState({isTransitioning:!1}),[d,f]=w.useState(),[p,m]=w.useState(),[y,b]=w.useState(),_=w.useRef(new Map),A=w.useCallback((S,{deletedFetchers:M,flushSync:L,viewTransitionOpts:I})=>{S.fetchers.forEach((te,Q)=>{te.data!==void 0&&_.current.set(Q,te.data)}),M.forEach(te=>_.current.delete(te)),sA(L===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let V=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(sA(I==null||V,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!I||!V){t&&L?t(()=>r(S)):w.startTransition(()=>r(S));return}if(t&&L){t(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let te=e.window.document.startViewTransition(()=>{t(()=>r(S))});te.finished.finally(()=>{t(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})})}),t(()=>m(te));return}p?(d&&d.resolve(),p.skipTransition(),b({state:S,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(o(S),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[e.window,t,p,d]);w.useLayoutEffect(()=>e.subscribe(A),[e,A]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new r6)},[l]),w.useEffect(()=>{if(d&&a&&e.window){let S=a,M=d.promise,L=e.window.document.startViewTransition(async()=>{w.startTransition(()=>r(S)),await M});L.finished.finally(()=>{f(void 0),m(void 0),o(void 0),c({isTransitioning:!1})}),m(L)}},[a,d,e.window]),w.useEffect(()=>{d&&a&&n.location.key===a.location.key&&d.resolve()},[d,p,n.location,a]),w.useEffect(()=>{!l.isTransitioning&&y&&(o(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),b(void 0))},[l.isTransitioning,y]);let C=w.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:S=>e.navigate(S),push:(S,M,L)=>e.navigate(S,{state:M,preventScrollReset:L?.preventScrollReset}),replace:(S,M,L)=>e.navigate(S,{replace:!0,state:M,preventScrollReset:L?.preventScrollReset})}),[e]),x=e.basename||"/",D=w.useMemo(()=>({router:e,navigator:C,static:!1,basename:x}),[e,C,x]);return w.createElement(w.Fragment,null,w.createElement(Ps.Provider,{value:D},w.createElement(Id.Provider,{value:n},w.createElement(iD.Provider,{value:_.current},w.createElement(xb.Provider,{value:l},w.createElement(l6,{basename:x,location:n.location,navigationType:n.historyAction,navigator:C},w.createElement(i6,{routes:e.routes,future:e.future,state:n})))))),null)}var i6=w.memo(o6);function o6({routes:e,future:t,state:n}){return G4(e,void 0,n,t)}function s6(e){return z4(e.context)}function l6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!wd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=$o(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:y="default"}=n,b=w.useMemo(()=>{let _=xa(d,l);return _==null?null:{location:{pathname:_,search:f,hash:p,state:m,key:y},navigationType:r}},[l,d,f,p,m,y,r]);return $n(b!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:w.createElement(li.Provider,{value:c},w.createElement(Vp.Provider,{children:t,value:b}))}var $h="get",Fh="application/x-www-form-urlencoded";function qp(e){return e!=null&&typeof e.tagName=="string"}function c6(e){return qp(e)&&e.tagName.toLowerCase()==="button"}function u6(e){return qp(e)&&e.tagName.toLowerCase()==="form"}function d6(e){return qp(e)&&e.tagName.toLowerCase()==="input"}function f6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h6(e,t){return e.button===0&&(!t||t==="_self")&&!f6(e)}var mh=null;function p6(){if(mh===null)try{new FormData(document.createElement("form"),0),mh=!1}catch{mh=!0}return mh}var m6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function W0(e){return e!=null&&!m6.has(e)?($n(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fh}"`),null):e}function g6(e,t){let n,r,a,o,l;if(u6(e)){let c=e.getAttribute("action");r=c?xa(c,t):null,n=e.getAttribute("method")||$h,a=W0(e.getAttribute("enctype"))||Fh,o=new FormData(e)}else if(c6(e)||d6(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?xa(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||$h,a=W0(e.getAttribute("formenctype"))||W0(c.getAttribute("enctype"))||Fh,o=new FormData(c,e),!p6()){let{name:f,type:p,value:m}=e;if(p==="image"){let y=f?`${f}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else f&&o.append(f,m)}}else{if(qp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=$h,r=null,a=Fh,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function y6(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&xa(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function b6(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function E6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function v6(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await b6(o,n);return l.links?l.links():[]}return[]}));return A6(r.flat(1).filter(E6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function lA(e,t,n,r,a,o){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return o==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):o==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function T6(e,t,{includeHydrateFallback:n}={}){return _6(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function _6(e){return[...new Set(e)]}function x6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function A6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(x6(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function uD(){let e=w.useContext(Ps);return kb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function S6(){let e=w.useContext(Id);return kb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rb=w.createContext(void 0);Rb.displayName="FrameworkContext";function dD(){let e=w.useContext(Rb);return kb(e,"You must render this element inside a <HydratedRouter> element"),e}function C6(e,t){let n=w.useContext(Rb),[r,a]=w.useState(!1),[o,l]=w.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,y=w.useRef(null);w.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=x=>{x.forEach(D=>{l(D.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[e]),w.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{a(!0)},_=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:fu(c,b),onBlur:fu(d,_),onMouseEnter:fu(f,b),onMouseLeave:fu(p,_),onTouchStart:fu(m,b)}]:[!1,y,{}]}function fu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function D6({page:e,...t}){let{router:n}=uD(),r=w.useMemo(()=>Ao(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(R6,{page:e,matches:r,...t}):null}function k6(e){let{manifest:t,routeModules:n}=dD(),[r,a]=w.useState([]);return w.useEffect(()=>{let o=!1;return v6(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function R6({page:e,matches:t,...n}){let r=$s(),{manifest:a,routeModules:o}=dD(),{basename:l}=uD(),{loaderData:c,matches:d}=S6(),f=w.useMemo(()=>lA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=w.useMemo(()=>lA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,A=!1;if(t.forEach(x=>{let D=a.routes[x.route.id];!D||!D.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in c&&o[x.route.id]?.shouldRevalidate||D.hasClientLoader?A=!0:_.add(x.route.id))}),_.size===0)return[];let C=y6(e,l,"data");return A&&_.size>0&&C.searchParams.set("_routes",t.filter(x=>_.has(x.route.id)).map(x=>x.route.id).join(",")),[C.pathname+C.search]},[l,c,r,a,f,t,e,o]),y=w.useMemo(()=>T6(p,a),[p,a]),b=k6(p);return w.createElement(w.Fragment,null,m.map(_=>w.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),y.map(_=>w.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),b.map(({key:_,link:A})=>w.createElement("link",{key:_,...A})))}function I6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var fD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fD&&(window.__reactRouterVersion="7.7.1")}catch{}function w6(e,t){return v4({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:B5({window:t?.window}),hydrationData:N6(),routes:e,mapRouteProperties:t6,hydrationRouteProperties:n6,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function N6(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:O6(e.errors)}),e}function O6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new lp(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let l=new o(a.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(a.message);o.stack="",n[r]=o}}else n[r]=a;return n}var hD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pD=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:m,...y},b){let{basename:_}=w.useContext(li),A=typeof f=="string"&&hD.test(f),C,x=!1;if(typeof f=="string"&&A&&(C=f,fD))try{let Q=new URL(window.location.href),k=f.startsWith("//")?new URL(Q.protocol+f):new URL(f),H=xa(k.pathname,_);k.origin===Q.origin&&H!=null?f=H+k.search+k.hash:x=!0}catch{$n(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=j4(f,{relative:a}),[S,M,L]=C6(r,y),I=$6(f,{replace:l,state:c,target:d,preventScrollReset:p,relative:a,viewTransition:m});function V(Q){t&&t(Q),Q.defaultPrevented||I(Q)}let te=w.createElement("a",{...y,...L,href:C||D,onClick:x||o?t:V,ref:I6(b,M),target:d,"data-discover":!A&&n==="render"?"true":void 0});return S&&!A?w.createElement(w.Fragment,null,te,w.createElement(D6,{page:D})):te});pD.displayName="Link";var L6=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:d,...f},p){let m=Od(l,{relative:f.relative}),y=$s(),b=w.useContext(Id),{navigator:_,basename:A}=w.useContext(li),C=b!=null&&H6(m)&&c===!0,x=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,D=y.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(D=D.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&A&&(S=xa(S,A)||S);const M=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let L=D===x||!a&&D.startsWith(x)&&D.charAt(M)==="/",I=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),V={isActive:L,isPending:I,isTransitioning:C},te=L?t:void 0,Q;typeof r=="function"?Q=r(V):Q=[r,L?"active":null,I?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof o=="function"?o(V):o;return w.createElement(pD,{...f,"aria-current":te,className:Q,ref:p,style:k,to:l,viewTransition:c},typeof d=="function"?d(V):d)});L6.displayName="NavLink";var M6=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=$h,action:c,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...y},b)=>{let _=j6(),A=U6(c,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&hD.test(c),D=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,L=M?.getAttribute("formmethod")||l;_(M||S.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:a,state:o,relative:f,preventScrollReset:p,viewTransition:m})};return w.createElement("form",{ref:b,method:C,action:A,onSubmit:r?d:D,...y,"data-discover":!x&&e==="render"?"true":void 0})});M6.displayName="Form";function P6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mD(e){let t=w.useContext(Ps);return Tt(t,P6(e)),t}function $6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let c=Sb(),d=$s(),f=Od(e,{relative:o});return w.useCallback(p=>{if(h6(p,t)){p.preventDefault();let m=n!==void 0?n:Mo(d)===Mo(f);c(e,{replace:m,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[d,c,f,n,r,t,e,a,o,l])}var F6=0,B6=()=>`__${String(++F6)}__`;function j6(){let{router:e}=mD("useSubmit"),{basename:t}=w.useContext(li),n=J4();return w.useCallback(async(r,a={})=>{let{action:o,method:l,encType:c,formData:d,body:f}=g6(r,t);if(a.navigate===!1){let p=a.fetcherKey||B6();await e.fetch(p,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function U6(e,{relative:t}={}){let{basename:n}=w.useContext(li),r=w.useContext(Pa);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Od(e||".",{relative:t})},l=$s();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),d=c.getAll("index");if(d.some(p=>p==="")){c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let p=c.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ai([n,o.pathname])),Mo(o)}function H6(e,{relative:t}={}){let n=w.useContext(xb);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mD("useViewTransitionState"),a=Od(e,{relative:t});if(!n.isTransitioning)return!1;let o=xa(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=xa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return sp(a.pathname,l)!=null||sp(a.pathname,o)!=null}function z6(e){return w.createElement(a6,{flushSync:j2.flushSync,...e})}function fr({error:e,context:t}){const n=e.data?.message||"Unknown Error";return v.jsxs(v.Fragment,{children:[t&&v.jsx($e,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),v.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function gD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=gD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mn(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=gD(e))&&(r&&(r+=" "),r+=t);return r}const Ib=i5,cA=e=>e,G6=()=>{let e=cA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cA}}},V6=G6(),q6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fo(e,t,n="Mui"){const r=q6[t];return r?`${n}-${r}`:`${V6.generate(e)}-${t}`}function Bo(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Fo(e,a,n)}),r}function Y6(e){return Fo("MuiSvgIcon",e)}Bo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function up(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const o=a;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const l=e[o],c=t[o];if(!c)r[o]=l||{};else if(!l)r[o]=c;else{r[o]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const f=d;r[o][f]=up(l[f],c[f],n)}}}else o==="className"&&n&&t.className?r.className=Mn(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}const Q6=w.createContext(void 0);function K6(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?up(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?up(a,r,t.components.mergeClassNameAndStyle):r}function W6({props:e,name:t}){const n=w.useContext(Q6);return K6({props:e,name:t,theme:{components:n}})}function rc(e){return W6(e)}const od={black:"#000",white:"#fff"},X6={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Al={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},hu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Sl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Cl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Dl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var X0={exports:{}},jt={};/**
|
|
39
|
-
* @license React
|
|
40
|
-
* react-is.production.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var uA;function Z6(){if(uA)return jt;uA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function _(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case n:case a:case r:case d:case f:case y:return A;default:switch(A=A&&A.$$typeof,A){case l:case c:case m:case p:return A;case o:return A;default:return C}}case t:return C}}}return jt.ContextConsumer=o,jt.ContextProvider=l,jt.Element=e,jt.ForwardRef=c,jt.Fragment=n,jt.Lazy=m,jt.Memo=p,jt.Portal=t,jt.Profiler=a,jt.StrictMode=r,jt.Suspense=d,jt.SuspenseList=f,jt.isContextConsumer=function(A){return _(A)===o},jt.isContextProvider=function(A){return _(A)===l},jt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},jt.isForwardRef=function(A){return _(A)===c},jt.isFragment=function(A){return _(A)===n},jt.isLazy=function(A){return _(A)===m},jt.isMemo=function(A){return _(A)===p},jt.isPortal=function(A){return _(A)===t},jt.isProfiler=function(A){return _(A)===a},jt.isStrictMode=function(A){return _(A)===r},jt.isSuspense=function(A){return _(A)===d},jt.isSuspenseList=function(A){return _(A)===f},jt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===p||A.$$typeof===l||A.$$typeof===o||A.$$typeof===c||A.$$typeof===b||A.getModuleId!==void 0)},jt.typeOf=_,jt}var dA;function J6(){return dA||(dA=1,X0.exports=Z6()),X0.exports}var yD=J6();function Mi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bD(e){if(w.isValidElement(e)||yD.isValidElementType(e)||!Mi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=bD(e[n])}),t}function Zr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Mi(e)&&Mi(t)&&Object.keys(t).forEach(a=>{w.isValidElement(t[a])||yD.isValidElementType(t[a])?r[a]=t[a]:Mi(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Mi(e[a])?r[a]=Zr(e[a],t[a],n):n.clone?r[a]=Mi(t[a])?bD(t[a]):t[a]:r[a]=t[a]}),r}function Ds(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function eL(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function wb(e,t=0,n=1){return eL(e,t,n)}function tL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Po(e){if(e.type)return e;if(e.charAt(0)==="#")return Po(tL(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ds(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Ds(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const nL=e=>{const t=Po(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wu=(e,t)=>{try{return nL(e)}catch{return e}};function Yp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ED(e){e=Po(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),l=(f,p=(f+n/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Yp({type:c,values:d})}function iy(e){e=Po(e);let t=e.type==="hsl"||e.type==="hsla"?Po(ED(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rL(e,t){const n=iy(e),r=iy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function oy(e,t){return e=Po(e),t=wb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yp(e)}function gh(e,t,n){try{return oy(e,t)}catch{return e}}function Nb(e,t){if(e=Po(e),t=wb(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Yp(e)}function Gt(e,t,n){try{return Nb(e,t)}catch{return e}}function Ob(e,t){if(e=Po(e),t=wb(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yp(e)}function Vt(e,t,n){try{return Ob(e,t)}catch{return e}}function aL(e,t=.15){return iy(e)>.5?Nb(e,t):Ob(e,t)}function yh(e,t,n){try{return aL(e,t)}catch{return e}}function vD(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:od.white,default:od.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const iL=vD();function TD(){return{text:{primary:od.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:od.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const fA=TD();function hA(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ob(e.main,a):t==="dark"&&(e.dark=Nb(e.main,o)))}function oL(e="light"){return e==="dark"?{main:Sl[200],light:Sl[50],dark:Sl[400]}:{main:Sl[700],light:Sl[400],dark:Sl[800]}}function sL(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[500],light:xl[300],dark:xl[700]}}function lL(e="light"){return e==="dark"?{main:Al[500],light:Al[300],dark:Al[700]}:{main:Al[700],light:Al[400],dark:Al[800]}}function cL(e="light"){return e==="dark"?{main:Cl[400],light:Cl[300],dark:Cl[700]}:{main:Cl[700],light:Cl[500],dark:Cl[900]}}function uL(e="light"){return e==="dark"?{main:Dl[400],light:Dl[300],dark:Dl[700]}:{main:Dl[800],light:Dl[500],dark:Dl[900]}}function dL(e="light"){return e==="dark"?{main:hu[400],light:hu[300],dark:hu[700]}:{main:"#ed6c02",light:hu[500],dark:hu[900]}}function Lb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,o=e.primary||oL(t),l=e.secondary||sL(t),c=e.error||lL(t),d=e.info||cL(t),f=e.success||uL(t),p=e.warning||dL(t);function m(_){return rL(_,fA.text.primary)>=n?fA.text.primary:iL.text.primary}const y=({color:_,name:A,mainShade:C=500,lightShade:x=300,darkShade:D=700})=>{if(_={..._},!_.main&&_[C]&&(_.main=_[C]),!_.hasOwnProperty("main"))throw new Error(Ds(11,A?` (${A})`:"",C));if(typeof _.main!="string")throw new Error(Ds(12,A?` (${A})`:"",JSON.stringify(_.main)));return hA(_,"light",x,r),hA(_,"dark",D,r),_.contrastText||(_.contrastText=m(_.main)),_};let b;return t==="light"?b=vD():t==="dark"&&(b=TD()),Zr({common:{...od},mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:f,name:"success"}),grey:X6,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...b},a)}function fL(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function hL(e){return Math.round(e*1e5)/1e5}const pA={textTransform:"uppercase"},mA='"Roboto", "Helvetica", "Arial", sans-serif';function pL(e,t){const{fontFamily:n=mA,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p,...m}=typeof t=="function"?t(e):t,y=r/14,b=p||(C=>`${C/d*y}rem`),_=(C,x,D,S,M)=>({fontFamily:n,fontWeight:C,fontSize:b(x),lineHeight:D,...n===mA?{letterSpacing:`${hL(S/x)}em`}:{},...M,...f}),A={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(o,48,1.167,0),h4:_(o,34,1.235,.25),h5:_(o,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(o,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(o,16,1.5,.15),body2:_(o,14,1.43,.15),button:_(l,14,1.75,.4,pA),caption:_(o,12,1.66,.4),overline:_(o,12,2.66,1,pA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:c,...A},m,{clone:!1})}function ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}const mL=["none",ln(0,2,1,-1,0,1,1,0,0,1,3,0),ln(0,3,1,-2,0,2,2,0,0,1,5,0),ln(0,3,3,-2,0,3,4,0,0,1,8,0),ln(0,2,4,-1,0,4,5,0,0,1,10,0),ln(0,3,5,-1,0,5,8,0,0,1,14,0),ln(0,3,5,-1,0,6,10,0,0,1,18,0),ln(0,4,5,-2,0,7,10,1,0,2,16,1),ln(0,5,5,-3,0,8,10,1,0,3,14,2),ln(0,5,6,-3,0,9,12,1,0,3,16,2),ln(0,6,6,-3,0,10,14,1,0,4,18,3),ln(0,6,7,-4,0,11,15,1,0,4,20,3),ln(0,7,8,-4,0,12,17,2,0,5,22,4),ln(0,7,8,-4,0,13,19,2,0,5,24,4),ln(0,7,9,-4,0,14,21,2,0,5,26,4),ln(0,8,9,-5,0,15,22,2,0,6,28,5),ln(0,8,10,-5,0,16,24,2,0,6,30,5),ln(0,8,11,-5,0,17,26,2,0,6,32,5),ln(0,9,11,-5,0,18,28,2,0,7,34,6),ln(0,9,12,-6,0,19,29,2,0,7,36,6),ln(0,10,13,-6,0,20,31,3,0,8,38,7),ln(0,10,13,-6,0,21,33,3,0,8,40,7),ln(0,10,14,-6,0,22,35,3,0,8,42,7),ln(0,11,14,-7,0,23,36,3,0,9,44,8),ln(0,11,15,-7,0,24,38,3,0,9,46,8)],gL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},_D={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gA(e){return`${Math.round(e)}ms`}function yL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bL(e){const t={...gL,...e.easing},n={..._D,...e.duration};return{getAutoHeightDuration:yL,create:(r=["all"],a={})=>{const{duration:o=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=a;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof o=="string"?o:gA(o)} ${l} ${typeof c=="string"?c:gA(c)}`).join(",")},...e,easing:t,duration:n}}const EL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function vL(e){return Mi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function xD(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[l,c]=a[o];!vL(c)||l.startsWith("unstable_")?delete r[l]:Mi(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
47
|
-
|
|
48
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
49
|
-
|
|
50
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
51
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
52
|
-
|
|
53
|
-
export default theme;`}const TL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _L(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=TL(t),l=Object.keys(o);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,b){const _=l.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(_!==-1&&typeof t[l[_]]=="number"?t[l[_]]:b)-r/100}${n})`}function p(y){return l.indexOf(y)+1<l.length?f(y,l[l.indexOf(y)+1]):c(y)}function m(y){const b=l.indexOf(y);return b===0?c(l[1]):b===l.length-1?d(l[b]):f(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:o,up:c,down:d,between:f,only:p,not:m,unit:n,...a}}const xL={borderRadius:4};function yA(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function AL(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function SL(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function CL(e){const t=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function n(o,l){o.up=(...c)=>t(e.breakpoints.up(...c),l),o.down=(...c)=>t(e.breakpoints.down(...c),l),o.between=(...c)=>t(e.breakpoints.between(...c),l),o.only=(...c)=>t(e.breakpoints.only(...c),l),o.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const Qp={xs:0,sm:600,md:900,lg:1200,xl:1536},bA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qp[e]}px)`},DL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qp[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ji(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||bA;return t.reduce((o,l,c)=>(o[a.up(a.keys[c])]=n(t[c]),o),{})}if(typeof t=="object"){const a=r.breakpoints||bA;return Object.keys(t).reduce((o,l)=>{if(AL(a.keys,l)){const c=SL(r.containerQueries?r:DL,l);c&&(o[c]=n(t[l],l))}else if(Object.keys(a.values||Qp).includes(l)){const c=a.up(l);o[c]=n(t[l],l)}else{const c=l;o[c]=t[c]}return o},{})}return n(t)}function kL(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function EA(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function La(e){if(typeof e!="string")throw new Error(Ds(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function dp(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Kp(e,n)||r,t&&(a=t(a,r,e)),a}function Rn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=Kp(d,r)||{};return ji(l,c,p=>{let m=dp(f,a,p);return p===m&&typeof p=="string"&&(m=dp(f,a,`${t}${p==="default"?"":La(p)}`,p)),n===!1?m:{[n]:m}})};return o.propTypes={},o.filterProps=[t],o}function Fu(e,t){return t?Zr(e,t,{clone:!1}):e}function RL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const IL={m:"margin",p:"padding"},wL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NL=RL(e=>{if(e.length>2)if(vA[e])e=vA[e];else return[e];const[t,n]=e.split(""),r=IL[t],a=wL[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),Mb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Mb,...Pb];function Ld(e,t,n,r){const a=Kp(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const l=Math.abs(o),c=a[l];return o>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function $b(e){return Ld(e,"spacing",8)}function Md(e,t){return typeof t=="string"||t==null?t:e(t)}function OL(e,t){return n=>e.reduce((r,a)=>(r[a]=Md(t,n),r),{})}function LL(e,t,n,r){if(!t.includes(n))return null;const a=NL(n),o=OL(a,r),l=e[n];return ji(e,l,o)}function AD(e,t){const n=$b(e.theme);return Object.keys(e).map(r=>LL(e,t,r,n)).reduce(Fu,{})}function Tn(e){return AD(e,Mb)}Tn.propTypes={};Tn.filterProps=Mb;function _n(e){return AD(e,Pb)}_n.propTypes={};_n.filterProps=Pb;function ML(e=8,t=$b({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Wp(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Fu(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Wr(e){return e<=1&&e!==0?`${e*100}%`:e}const PL=Rn({prop:"width",transform:Wr}),Fb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Qp[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Wr(n)}};return ji(e,e.maxWidth,t)}return null};Fb.filterProps=["maxWidth"];const $L=Rn({prop:"minWidth",transform:Wr}),FL=Rn({prop:"height",transform:Wr}),BL=Rn({prop:"maxHeight",transform:Wr}),jL=Rn({prop:"minHeight",transform:Wr});Rn({prop:"size",cssProperty:"width",transform:Wr});Rn({prop:"size",cssProperty:"height",transform:Wr});const UL=Rn({prop:"boxSizing"});Wp(PL,Fb,$L,FL,BL,jL,UL);const Xp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ld(e.theme,"spacing",8),n=r=>({gap:Md(t,r)});return ji(e,e.gap,n)}return null};Xp.propTypes={};Xp.filterProps=["gap"];const Zp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ld(e.theme,"spacing",8),n=r=>({columnGap:Md(t,r)});return ji(e,e.columnGap,n)}return null};Zp.propTypes={};Zp.filterProps=["columnGap"];const Jp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ld(e.theme,"spacing",8),n=r=>({rowGap:Md(t,r)});return ji(e,e.rowGap,n)}return null};Jp.propTypes={};Jp.filterProps=["rowGap"];const HL=Rn({prop:"gridColumn"}),zL=Rn({prop:"gridRow"}),GL=Rn({prop:"gridAutoFlow"}),VL=Rn({prop:"gridAutoColumns"}),qL=Rn({prop:"gridAutoRows"}),YL=Rn({prop:"gridTemplateColumns"}),QL=Rn({prop:"gridTemplateRows"}),KL=Rn({prop:"gridTemplateAreas"}),WL=Rn({prop:"gridArea"});Wp(Xp,Zp,Jp,HL,zL,GL,VL,qL,YL,QL,KL,WL);function Hl(e,t){return t==="grey"?t:e}const XL=Rn({prop:"color",themeKey:"palette",transform:Hl}),ZL=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hl}),JL=Rn({prop:"backgroundColor",themeKey:"palette",transform:Hl});Wp(XL,ZL,JL);function ya(e){return typeof e!="number"?e:`${e}px solid`}function Aa(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const eM=Aa("border",ya),tM=Aa("borderTop",ya),nM=Aa("borderRight",ya),rM=Aa("borderBottom",ya),aM=Aa("borderLeft",ya),iM=Aa("borderColor"),oM=Aa("borderTopColor"),sM=Aa("borderRightColor"),lM=Aa("borderBottomColor"),cM=Aa("borderLeftColor"),uM=Aa("outline",ya),dM=Aa("outlineColor"),em=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ld(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Md(t,r)});return ji(e,e.borderRadius,n)}return null};em.propTypes={};em.filterProps=["borderRadius"];Wp(eM,tM,nM,rM,aM,iM,oM,sM,lM,cM,em,uM,dM);const tm={border:{themeKey:"borders",transform:ya},borderTop:{themeKey:"borders",transform:ya},borderRight:{themeKey:"borders",transform:ya},borderBottom:{themeKey:"borders",transform:ya},borderLeft:{themeKey:"borders",transform:ya},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ya},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:em},color:{themeKey:"palette",transform:Hl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hl},backgroundColor:{themeKey:"palette",transform:Hl},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Tn},mt:{style:Tn},mr:{style:Tn},mb:{style:Tn},ml:{style:Tn},mx:{style:Tn},my:{style:Tn},margin:{style:Tn},marginTop:{style:Tn},marginRight:{style:Tn},marginBottom:{style:Tn},marginLeft:{style:Tn},marginX:{style:Tn},marginY:{style:Tn},marginInline:{style:Tn},marginInlineStart:{style:Tn},marginInlineEnd:{style:Tn},marginBlock:{style:Tn},marginBlockStart:{style:Tn},marginBlockEnd:{style:Tn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xp},rowGap:{style:Jp},columnGap:{style:Zp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wr},maxWidth:{style:Fb},minWidth:{transform:Wr},height:{transform:Wr},maxHeight:{transform:Wr},minHeight:{transform:Wr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fM(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hM(e,t){return typeof e=="function"?e(t):e}function pM(){function e(n,r,a,o){const l={[n]:r,theme:a},c=o[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:p,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Kp(a,f)||{};return m?m(l):ji(l,r,b=>{let _=dp(y,p,b);return b===_&&typeof b=="string"&&(_=dp(y,p,`${n}${b==="default"?"":La(b)}`,b)),d===!1?_:{[d]:_}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const l=a.unstable_sxConfig??tm;function c(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=kL(a.breakpoints),m=Object.keys(p);let y=p;return Object.keys(f).forEach(b=>{const _=hM(f[b],a);if(_!=null)if(typeof _=="object")if(l[b])y=Fu(y,e(b,_,a,l));else{const A=ji({theme:a},_,C=>({[b]:C}));fM(A,_)?y[b]=t({sx:_,theme:a,nested:!0}):y=Fu(y,A)}else y=Fu(y,e(b,_,a,l))}),!o&&a.modularCssLayers?{"@layer sx":yA(a,EA(m,y))}:yA(a,EA(m,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Kl=pM();Kl.filterProps=["sx"];function mM(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Bb(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...l}=e,c=_L(n),d=ML(a);let f=Zr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...xL,...o}},l);return f=CL(f),f.applyStyles=mM,f=t.reduce((p,m)=>Zr(p,m),f),f.unstable_sxConfig={...tm,...l?.unstable_sxConfig},f.unstable_sx=function(p){return Kl({sx:p,theme:this})},f}function sy(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ds(20));const p=Lb(o),m=Bb(e);let y=Zr(m,{mixins:fL(m.breakpoints,r),palette:p,shadows:mL.slice(),typography:pL(p,c),transitions:bL(l),zIndex:{...EL}});return y=Zr(y,f),y=t.reduce((b,_)=>Zr(b,_),y),y.unstable_sxConfig={...tm,...f?.unstable_sxConfig},y.unstable_sx=function(b){return Kl({sx:b,theme:this})},y.toRuntimeSource=xD,y}function gM(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const yM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=gM(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function SD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function CD(e){return e==="dark"?yM:[]}function bM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,o=Lb(t);return{palette:o,opacity:{...SD(o.mode),...n},overlays:r||CD(o.mode),...a}}function EM(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const vM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],TM=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return vM(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:o?{[o.replace("%s",t)]:l,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function _M(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const TA=(e,t,n,r=[])=>{let a=e;t.forEach((o,l)=>{l===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},xM=(e,t,n)=>{function r(a,o=[],l=[]){Object.entries(a).forEach(([c,d])=>{(!n||n&&!n([...o,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...o,c],Array.isArray(d)?[...l,c]:l):t([...o,c],d,l))})}r(e)},AM=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Z0(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},l={};return xM(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,m=AM(c,d);Object.assign(a,{[p]:m}),TA(o,c,`var(${p})`,f),TA(l,c,`var(${p}, ${m})`,f)}},c=>c[0]==="vars"),{css:a,vars:o,varsWithDefaults:l}}function SM(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:p,varsWithDefaults:m}=Z0(d,t);let y=m;const b={},{[c]:_,...A}=o;if(Object.entries(A||{}).forEach(([x,D])=>{const{vars:S,css:M,varsWithDefaults:L}=Z0(D,t);y=Zr(y,L),b[x]={css:M,vars:S}}),_){const{css:x,vars:D,varsWithDefaults:S}=Z0(_,t);y=Zr(y,S),b[c]={css:x,vars:D}}function C(x,D){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${o[x]?.palette?.mode||x})`]:{":root":D}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...f};return Object.entries(b).forEach(([,{vars:D}])=>{x=Zr(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function S(I,V){Object.keys(V).length&&x.push(typeof I=="string"?{[I]:{...V}}:I)}S(n(void 0,{...p}),p);const{[D]:M,...L}=b;if(M){const{css:I}=M,V=o[D]?.palette?.mode,te=!r&&V?{colorScheme:V,...I}:{...I};S(n(D,{...te}),te)}return Object.entries(L).forEach(([I,{css:V}])=>{const te=o[I]?.palette?.mode,Q=!r&&te?{colorScheme:te,...V}:{...V};S(n(I,{...Q}),Q)}),x}}}function CM(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function DM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function pe(e,t,n){!e[t]&&n&&(e[t]=n)}function Nu(e){return typeof e!="string"||!e.startsWith("hsl")?e:ED(e)}function Ri(e,t){`${t}Channel`in e||(e[`${t}Channel`]=wu(Nu(e[t])))}function kM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ya=e=>{try{return e()}catch{}},RM=(e="mui")=>o5(e);function J0(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=bM({...t,palette:{mode:a,...t?.palette}});return}const{palette:o,...l}=sy({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:o,opacity:{...SD(a),...t?.opacity},overlays:t?.overlays||CD(a)},l}function IM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=EM,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),y=RM(o),{[m]:b,light:_,dark:A,...C}=n,x={...C};let D=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Ds(21,m));const S=J0(x,D,f,m);_&&!x.light&&J0(x,_,void 0,"light"),A&&!x.dark&&J0(x,A,void 0,"dark");let M={defaultColorScheme:m,...S,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:d,getCssVar:y,colorSchemes:x,font:{..._M(S.typography),...S.font},spacing:kM(f.spacing)};Object.keys(M.colorSchemes).forEach(Q=>{const k=M.colorSchemes[Q].palette,H=W=>{const K=W.split("-"),re=K[1],me=K[2];return y(W,k[re][me])};if(k.mode==="light"&&(pe(k.common,"background","#fff"),pe(k.common,"onBackground","#000")),k.mode==="dark"&&(pe(k.common,"background","#000"),pe(k.common,"onBackground","#fff")),DM(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){pe(k.Alert,"errorColor",Gt(k.error.light,.6)),pe(k.Alert,"infoColor",Gt(k.info.light,.6)),pe(k.Alert,"successColor",Gt(k.success.light,.6)),pe(k.Alert,"warningColor",Gt(k.warning.light,.6)),pe(k.Alert,"errorFilledBg",H("palette-error-main")),pe(k.Alert,"infoFilledBg",H("palette-info-main")),pe(k.Alert,"successFilledBg",H("palette-success-main")),pe(k.Alert,"warningFilledBg",H("palette-warning-main")),pe(k.Alert,"errorFilledColor",Ya(()=>k.getContrastText(k.error.main))),pe(k.Alert,"infoFilledColor",Ya(()=>k.getContrastText(k.info.main))),pe(k.Alert,"successFilledColor",Ya(()=>k.getContrastText(k.success.main))),pe(k.Alert,"warningFilledColor",Ya(()=>k.getContrastText(k.warning.main))),pe(k.Alert,"errorStandardBg",Vt(k.error.light,.9)),pe(k.Alert,"infoStandardBg",Vt(k.info.light,.9)),pe(k.Alert,"successStandardBg",Vt(k.success.light,.9)),pe(k.Alert,"warningStandardBg",Vt(k.warning.light,.9)),pe(k.Alert,"errorIconColor",H("palette-error-main")),pe(k.Alert,"infoIconColor",H("palette-info-main")),pe(k.Alert,"successIconColor",H("palette-success-main")),pe(k.Alert,"warningIconColor",H("palette-warning-main")),pe(k.AppBar,"defaultBg",H("palette-grey-100")),pe(k.Avatar,"defaultBg",H("palette-grey-400")),pe(k.Button,"inheritContainedBg",H("palette-grey-300")),pe(k.Button,"inheritContainedHoverBg",H("palette-grey-A100")),pe(k.Chip,"defaultBorder",H("palette-grey-400")),pe(k.Chip,"defaultAvatarColor",H("palette-grey-700")),pe(k.Chip,"defaultIconColor",H("palette-grey-700")),pe(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pe(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pe(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pe(k.LinearProgress,"primaryBg",Vt(k.primary.main,.62)),pe(k.LinearProgress,"secondaryBg",Vt(k.secondary.main,.62)),pe(k.LinearProgress,"errorBg",Vt(k.error.main,.62)),pe(k.LinearProgress,"infoBg",Vt(k.info.main,.62)),pe(k.LinearProgress,"successBg",Vt(k.success.main,.62)),pe(k.LinearProgress,"warningBg",Vt(k.warning.main,.62)),pe(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),pe(k.Slider,"primaryTrack",Vt(k.primary.main,.62)),pe(k.Slider,"secondaryTrack",Vt(k.secondary.main,.62)),pe(k.Slider,"errorTrack",Vt(k.error.main,.62)),pe(k.Slider,"infoTrack",Vt(k.info.main,.62)),pe(k.Slider,"successTrack",Vt(k.success.main,.62)),pe(k.Slider,"warningTrack",Vt(k.warning.main,.62));const W=yh(k.background.default,.8);pe(k.SnackbarContent,"bg",W),pe(k.SnackbarContent,"color",Ya(()=>k.getContrastText(W))),pe(k.SpeedDialAction,"fabHoverBg",yh(k.background.paper,.15)),pe(k.StepConnector,"border",H("palette-grey-400")),pe(k.StepContent,"border",H("palette-grey-400")),pe(k.Switch,"defaultColor",H("palette-common-white")),pe(k.Switch,"defaultDisabledColor",H("palette-grey-100")),pe(k.Switch,"primaryDisabledColor",Vt(k.primary.main,.62)),pe(k.Switch,"secondaryDisabledColor",Vt(k.secondary.main,.62)),pe(k.Switch,"errorDisabledColor",Vt(k.error.main,.62)),pe(k.Switch,"infoDisabledColor",Vt(k.info.main,.62)),pe(k.Switch,"successDisabledColor",Vt(k.success.main,.62)),pe(k.Switch,"warningDisabledColor",Vt(k.warning.main,.62)),pe(k.TableCell,"border",Vt(gh(k.divider,1),.88)),pe(k.Tooltip,"bg",gh(k.grey[700],.92))}if(k.mode==="dark"){pe(k.Alert,"errorColor",Vt(k.error.light,.6)),pe(k.Alert,"infoColor",Vt(k.info.light,.6)),pe(k.Alert,"successColor",Vt(k.success.light,.6)),pe(k.Alert,"warningColor",Vt(k.warning.light,.6)),pe(k.Alert,"errorFilledBg",H("palette-error-dark")),pe(k.Alert,"infoFilledBg",H("palette-info-dark")),pe(k.Alert,"successFilledBg",H("palette-success-dark")),pe(k.Alert,"warningFilledBg",H("palette-warning-dark")),pe(k.Alert,"errorFilledColor",Ya(()=>k.getContrastText(k.error.dark))),pe(k.Alert,"infoFilledColor",Ya(()=>k.getContrastText(k.info.dark))),pe(k.Alert,"successFilledColor",Ya(()=>k.getContrastText(k.success.dark))),pe(k.Alert,"warningFilledColor",Ya(()=>k.getContrastText(k.warning.dark))),pe(k.Alert,"errorStandardBg",Gt(k.error.light,.9)),pe(k.Alert,"infoStandardBg",Gt(k.info.light,.9)),pe(k.Alert,"successStandardBg",Gt(k.success.light,.9)),pe(k.Alert,"warningStandardBg",Gt(k.warning.light,.9)),pe(k.Alert,"errorIconColor",H("palette-error-main")),pe(k.Alert,"infoIconColor",H("palette-info-main")),pe(k.Alert,"successIconColor",H("palette-success-main")),pe(k.Alert,"warningIconColor",H("palette-warning-main")),pe(k.AppBar,"defaultBg",H("palette-grey-900")),pe(k.AppBar,"darkBg",H("palette-background-paper")),pe(k.AppBar,"darkColor",H("palette-text-primary")),pe(k.Avatar,"defaultBg",H("palette-grey-600")),pe(k.Button,"inheritContainedBg",H("palette-grey-800")),pe(k.Button,"inheritContainedHoverBg",H("palette-grey-700")),pe(k.Chip,"defaultBorder",H("palette-grey-700")),pe(k.Chip,"defaultAvatarColor",H("palette-grey-300")),pe(k.Chip,"defaultIconColor",H("palette-grey-300")),pe(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pe(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pe(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pe(k.LinearProgress,"primaryBg",Gt(k.primary.main,.5)),pe(k.LinearProgress,"secondaryBg",Gt(k.secondary.main,.5)),pe(k.LinearProgress,"errorBg",Gt(k.error.main,.5)),pe(k.LinearProgress,"infoBg",Gt(k.info.main,.5)),pe(k.LinearProgress,"successBg",Gt(k.success.main,.5)),pe(k.LinearProgress,"warningBg",Gt(k.warning.main,.5)),pe(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),pe(k.Slider,"primaryTrack",Gt(k.primary.main,.5)),pe(k.Slider,"secondaryTrack",Gt(k.secondary.main,.5)),pe(k.Slider,"errorTrack",Gt(k.error.main,.5)),pe(k.Slider,"infoTrack",Gt(k.info.main,.5)),pe(k.Slider,"successTrack",Gt(k.success.main,.5)),pe(k.Slider,"warningTrack",Gt(k.warning.main,.5));const W=yh(k.background.default,.98);pe(k.SnackbarContent,"bg",W),pe(k.SnackbarContent,"color",Ya(()=>k.getContrastText(W))),pe(k.SpeedDialAction,"fabHoverBg",yh(k.background.paper,.15)),pe(k.StepConnector,"border",H("palette-grey-600")),pe(k.StepContent,"border",H("palette-grey-600")),pe(k.Switch,"defaultColor",H("palette-grey-300")),pe(k.Switch,"defaultDisabledColor",H("palette-grey-600")),pe(k.Switch,"primaryDisabledColor",Gt(k.primary.main,.55)),pe(k.Switch,"secondaryDisabledColor",Gt(k.secondary.main,.55)),pe(k.Switch,"errorDisabledColor",Gt(k.error.main,.55)),pe(k.Switch,"infoDisabledColor",Gt(k.info.main,.55)),pe(k.Switch,"successDisabledColor",Gt(k.success.main,.55)),pe(k.Switch,"warningDisabledColor",Gt(k.warning.main,.55)),pe(k.TableCell,"border",Gt(gh(k.divider,1),.68)),pe(k.Tooltip,"bg",gh(k.grey[700],.92))}Ri(k.background,"default"),Ri(k.background,"paper"),Ri(k.common,"background"),Ri(k.common,"onBackground"),Ri(k,"divider"),Object.keys(k).forEach(W=>{const K=k[W];W!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&pe(k[W],"mainChannel",wu(Nu(K.main))),K.light&&pe(k[W],"lightChannel",wu(Nu(K.light))),K.dark&&pe(k[W],"darkChannel",wu(Nu(K.dark))),K.contrastText&&pe(k[W],"contrastTextChannel",wu(Nu(K.contrastText))),W==="text"&&(Ri(k[W],"primary"),Ri(k[W],"secondary")),W==="action"&&(K.active&&Ri(k[W],"active"),K.selected&&Ri(k[W],"selected")))})}),M=t.reduce((Q,k)=>Zr(Q,k),M);const L={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:TM(M)},{vars:I,generateThemeVars:V,generateStyleSheets:te}=SM(M,L);return M.vars=I,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([Q,k])=>{M[Q]=k}),M.generateThemeVars=V,M.generateStyleSheets=te,M.generateSpacing=function(){return s5(f.spacing,$b(this))},M.getColorSchemeSelector=CM(c),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=l,M.unstable_sxConfig={...tm,...f?.unstable_sxConfig},M.unstable_sx=function(Q){return Kl({sx:Q,theme:this})},M.toRuntimeSource=xD,M}function _A(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Lb({...n===!0?{}:n.palette,mode:t})})}function wM(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...l}=e,c=o||"light",d=a?.[c],f={...a,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return sy(e,...t);let p=n;"palette"in e||f[c]&&(f[c]!==!0?p=f[c].palette:c==="dark"&&(p={mode:"dark"}));const m=sy({...e,palette:p},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},_A(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},_A(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),IM({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const jb=wM(),Ub="$$material";function NM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hb=e=>NM(e)&&e!=="classes";function OM(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function MM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var PM=/[A-Z]|^ms/g,$M=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DD=function(e){return e.charCodeAt(1)===45},xA=function(e){return e!=null&&typeof e!="boolean"},e1=MM(function(e){return DD(e)?e:e.replace(PM,"-$&").toLowerCase()}),AA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($M,function(n,r,a){return So={name:r,styles:a,next:So},r})}return LM[e]!==1&&!DD(e)&&typeof t=="number"&&t!==0?t+"px":t};function fp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return So={name:a.name,styles:a.styles,next:So},a.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)So={name:l.name,styles:l.styles,next:So},l=l.next;var c=o.styles+";";return c}return FM(e,t,n)}}var d=n;return d}function FM(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=fp(e,t,n[a])+";";else for(var o in n){var l=n[o];if(typeof l!="object"){var c=l;xA(c)&&(r+=e1(o)+":"+AA(o,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)xA(l[d])&&(r+=e1(o)+":"+AA(o,l[d])+";");else{var f=fp(e,t,l);switch(o){case"animation":case"animationName":{r+=e1(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}return r}var SA=/label:\s*([^\s;{]+)\s*(;|$)/g,So;function BM(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";So=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=fp(n,t,o);else{var l=o;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=fp(n,t,e[c]),r){var d=o;a+=d[c]}SA.lastIndex=0;for(var f="",p;(p=SA.exec(a))!==null;)f+="-"+p[1];var m=OM(a)+f;return{name:m,styles:a,next:So}}function jM(e,t){return l5(e,t)}function UM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const CA=[];function _s(e){return CA[0]=e,BM(CA)}function HM(e){const{variants:t,...n}=e,r={variants:t,style:_s(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=_s(a.style))}),r}const zM=Bb();function Ro(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ps(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function GM(e){return e?(t,n)=>n[e]:null}function VM(e,t,n){e.theme=YM(e.theme)?n:e.theme[t]||e.theme}function Bh(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Bh(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?ps(r.style,n):r.style;else{const{variants:o,...l}=r;a=n?ps(_s(l),n):l}return kD(e,r.variants,[a],n)}return r?.isProcessed?n?ps(_s(r.style),n):r.style:n?ps(_s(r),n):r}function kD(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const l=t[o];if(typeof l.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(a))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ps(_s(l.style(a)),r):l.style(a))):n.push(r?ps(_s(l.style),r):l.style)}return n}function qM(e={}){const{themeId:t,defaultTheme:n=zM,rootShouldForwardProp:r=Ro,slotShouldForwardProp:a=Ro}=e;function o(l){VM(l,t,n)}return(l,c={})=>{UM(l,L=>L.filter(I=>I!==Kl));const{name:d,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:y=GM(KM(f)),...b}=c,_=d&&d.startsWith("Mui")||f?"components":"custom",A=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,C=m||!1;let x=Ro;f==="Root"||f==="root"?x=r:f?x=a:QM(l)&&(x=void 0);const D=jM(l,{shouldForwardProp:x,label:void 0,...b}),S=L=>{if(L.__emotion_real===L)return L;if(typeof L=="function")return function(I){return Bh(I,L,I.theme.modularCssLayers?_:void 0)};if(Mi(L)){const I=HM(L);return function(V){return I.variants?Bh(V,I,V.theme.modularCssLayers?_:void 0):V.theme.modularCssLayers?ps(I.style,_):I.style}}return L},M=(...L)=>{const I=[],V=L.map(S),te=[];if(I.push(o),d&&y&&te.push(function(H){const W=H.theme.components?.[d]?.styleOverrides;if(!W)return null;const K={};for(const re in W)K[re]=Bh(H,W[re],H.theme.modularCssLayers?"theme":void 0);return y(H,K)}),d&&!A&&te.push(function(H){const W=H.theme?.components?.[d]?.variants;return W?kD(H,W,[],H.theme.modularCssLayers?"theme":void 0):null}),C||te.push(Kl),Array.isArray(V[0])){const H=V.shift(),W=new Array(I.length).fill(""),K=new Array(te.length).fill("");let re;re=[...W,...H,...K],re.raw=[...W,...H.raw,...K],I.unshift(re)}const Q=[...I,...V,...te],k=D(...Q);return l.muiName&&(k.muiName=l.muiName),k};return D.withConfig&&(M.withConfig=D.withConfig),M}}function YM(e){for(const t in e)return!1;return!0}function QM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function KM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const an=qM({themeId:Ub,defaultTheme:jb,rootShouldForwardProp:Hb});function Fs(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let l="",c=!0;for(let d=0;d<o.length;d+=1){const f=o[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[a]=l}return r}const WM=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${La(t)}`,`fontSize${La(n)}`]};return Fs(a,Y6,r)},XM=an("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${La(n.color)}`],t[`fontSize${La(n.fontSize)}`]]}})(Ib(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ly=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:o="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...y}=n,b=w.isValidElement(r)&&r.type==="svg",_={...n,color:o,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:b},A={};f||(A.viewBox=m);const C=WM(_);return v.jsxs(XM,{as:l,className:Mn(C.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...A,...y,...b&&r.props,ownerState:_,children:[b?r.props.children:r,p?v.jsx("title",{children:p}):null]})});ly.muiName="SvgIcon";function nn(e,t){function n(r,a){return v.jsx(ly,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=ly.muiName,w.memo(w.forwardRef(n))}const Wl=nn(v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function dr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:l="body2"}){const c=v.jsxs(Ke,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[v.jsx(c5,{size:t,color:n,thickness:r}),e&&v.jsx($e,{variant:l,color:"text.secondary",children:e})]});return a?v.jsx(Ke,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const hp=Wn($l)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),RD=Wn(Fl)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),zb=Wn(u5)({padding:"0"}),ZM=Wn("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});Wn("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const JM=Wn("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),cy=Wn("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),uy=Wn("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});Wn("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});Wn("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const eP=Wn("div")({height:"100%"});Wn("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const ID=Wn("div")({height:"75vh",width:"100%",overflowY:"auto"});Wn("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Ui=Wn($l)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),Hi=Wn(Fl)({padding:"0","&:last-child":{paddingBottom:"0"}}),jo=Wn("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),wD=Wn("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"}),tP="modulepreload",nP=function(e){return"/"+e},DA={},F=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=l(n.map(f=>{if(f=nP(f),f in DA)return;DA[f]=!0;const p=f.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":tP,p||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),p)return new Promise((b,_)=>{y.addEventListener("load",b),y.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})};function ND(e,t){return function(){return e.apply(t,arguments)}}const{toString:rP}=Object.prototype,{getPrototypeOf:Gb}=Object,{iterator:nm,toStringTag:OD}=Symbol,rm=(e=>t=>{const n=rP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>rm(t)===e),am=e=>t=>typeof t===e,{isArray:ac}=Array,sd=am("undefined");function Pd(e){return e!==null&&!sd(e)&&e.constructor!==null&&!sd(e.constructor)&&Or(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LD=$a("ArrayBuffer");function aP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LD(e.buffer),t}const iP=am("string"),Or=am("function"),MD=am("number"),$d=e=>e!==null&&typeof e=="object",oP=e=>e===!0||e===!1,jh=e=>{if(rm(e)!=="object")return!1;const t=Gb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(OD in e)&&!(nm in e)},sP=e=>{if(!$d(e)||Pd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},lP=$a("Date"),cP=$a("File"),uP=$a("Blob"),dP=$a("FileList"),fP=e=>$d(e)&&Or(e.pipe),hP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Or(e.append)&&((t=rm(e))==="formdata"||t==="object"&&Or(e.toString)&&e.toString()==="[object FormData]"))},pP=$a("URLSearchParams"),[mP,gP,yP,bP]=["ReadableStream","Request","Response","Headers"].map($a),EP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ac(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Pd(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(r=0;r<l;r++)c=o[r],t.call(null,e[c],c,e)}}function PD(e,t){if(Pd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$D=e=>!sd(e)&&e!==ms;function dy(){const{caseless:e}=$D(this)&&this||{},t={},n=(r,a)=>{const o=e&&PD(t,a)||a;jh(t[o])&&jh(r)?t[o]=dy(t[o],r):jh(r)?t[o]=dy({},r):ac(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Fd(arguments[r],n);return t}const vP=(e,t,n,{allOwnKeys:r}={})=>(Fd(t,(a,o)=>{n&&Or(a)?e[o]=ND(a,n):e[o]=a},{allOwnKeys:r}),e),TP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_P=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xP=(e,t,n,r)=>{let a,o,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)l=a[o],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Gb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},AP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},SP=e=>{if(!e)return null;if(ac(e))return e;let t=e.length;if(!MD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},CP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gb(Uint8Array)),DP=(e,t)=>{const r=(e&&e[nm]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},kP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},RP=$a("HTMLFormElement"),IP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),kA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wP=$a("RegExp"),FD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fd(n,(a,o)=>{let l;(l=t(a,o,e))!==!1&&(r[o]=l||a)}),Object.defineProperties(e,r)},NP=e=>{FD(e,(t,n)=>{if(Or(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Or(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OP=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return ac(e)?r(e):r(String(e).split(t)),n},LP=()=>{},MP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function PP(e){return!!(e&&Or(e.append)&&e[OD]==="FormData"&&e[nm])}const $P=e=>{const t=new Array(10),n=(r,a)=>{if($d(r)){if(t.indexOf(r)>=0)return;if(Pd(r))return r;if(!("toJSON"in r)){t[a]=r;const o=ac(r)?[]:{};return Fd(r,(l,c)=>{const d=n(l,a+1);!sd(d)&&(o[c]=d)}),t[a]=void 0,o}}return r};return n(e,0)},FP=$a("AsyncFunction"),BP=e=>e&&($d(e)||Or(e))&&Or(e.then)&&Or(e.catch),BD=((e,t)=>e?setImmediate:t?((n,r)=>(ms.addEventListener("message",({source:a,data:o})=>{a===ms&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),ms.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Or(ms.postMessage)),jP=typeof queueMicrotask<"u"?queueMicrotask.bind(ms):typeof process<"u"&&process.nextTick||BD,UP=e=>e!=null&&Or(e[nm]),de={isArray:ac,isArrayBuffer:LD,isBuffer:Pd,isFormData:hP,isArrayBufferView:aP,isString:iP,isNumber:MD,isBoolean:oP,isObject:$d,isPlainObject:jh,isEmptyObject:sP,isReadableStream:mP,isRequest:gP,isResponse:yP,isHeaders:bP,isUndefined:sd,isDate:lP,isFile:cP,isBlob:uP,isRegExp:wP,isFunction:Or,isStream:fP,isURLSearchParams:pP,isTypedArray:CP,isFileList:dP,forEach:Fd,merge:dy,extend:vP,trim:EP,stripBOM:TP,inherits:_P,toFlatObject:xP,kindOf:rm,kindOfTest:$a,endsWith:AP,toArray:SP,forEachEntry:DP,matchAll:kP,isHTMLForm:RP,hasOwnProperty:kA,hasOwnProp:kA,reduceDescriptors:FD,freezeMethods:NP,toObjectSet:OP,toCamelCase:IP,noop:LP,toFiniteNumber:MP,findKey:PD,global:ms,isContextDefined:$D,isSpecCompliantForm:PP,toJSONObject:$P,isAsyncFn:FP,isThenable:BP,setImmediate:BD,asap:jP,isIterable:UP};function ut(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}de.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const jD=ut.prototype,UD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UD[e]={value:e}});Object.defineProperties(ut,UD);Object.defineProperty(jD,"isAxiosError",{value:!0});ut.from=(e,t,n,r,a,o)=>{const l=Object.create(jD);return de.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),ut.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const HP=null;function fy(e){return de.isPlainObject(e)||de.isArray(e)}function HD(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function RA(e,t,n){return e?e.concat(t).map(function(a,o){return a=HD(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function zP(e){return de.isArray(e)&&!e.some(fy)}const GP=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function im(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!de.isUndefined(C[A])});const r=n.metaTokens,a=n.visitor||p,o=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(de.isDate(_))return _.toISOString();if(de.isBoolean(_))return _.toString();if(!d&&de.isBlob(_))throw new ut("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(_)||de.isTypedArray(_)?d&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,A,C){let x=_;if(_&&!C&&typeof _=="object"){if(de.endsWith(A,"{}"))A=r?A:A.slice(0,-2),_=JSON.stringify(_);else if(de.isArray(_)&&zP(_)||(de.isFileList(_)||de.endsWith(A,"[]"))&&(x=de.toArray(_)))return A=HD(A),x.forEach(function(S,M){!(de.isUndefined(S)||S===null)&&t.append(l===!0?RA([A],M,o):l===null?A:A+"[]",f(S))}),!1}return fy(_)?!0:(t.append(RA(C,A,o),f(_)),!1)}const m=[],y=Object.assign(GP,{defaultVisitor:p,convertValue:f,isVisitable:fy});function b(_,A){if(!de.isUndefined(_)){if(m.indexOf(_)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(_),de.forEach(_,function(x,D){(!(de.isUndefined(x)||x===null)&&a.call(t,x,de.isString(D)?D.trim():D,A,y))===!0&&b(x,A?A.concat(D):[D])}),m.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return b(e),t}function IA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vb(e,t){this._pairs=[],e&&im(e,this,t)}const zD=Vb.prototype;zD.append=function(t,n){this._pairs.push([t,n])};zD.toString=function(t){const n=t?function(r){return t.call(this,r,IA)}:IA;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function VP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GD(e,t,n){if(!t)return e;const r=n&&n.encode||VP;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=de.isURLSearchParams(t)?t.toString():new Vb(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class wA{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const VD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qP=typeof URLSearchParams<"u"?URLSearchParams:Vb,YP=typeof FormData<"u"?FormData:null,QP=typeof Blob<"u"?Blob:null,KP={isBrowser:!0,classes:{URLSearchParams:qP,FormData:YP,Blob:QP},protocols:["http","https","file","blob","url","data"]},qb=typeof window<"u"&&typeof document<"u",hy=typeof navigator=="object"&&navigator||void 0,WP=qb&&(!hy||["ReactNative","NativeScript","NS"].indexOf(hy.product)<0),XP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZP=qb&&window.location.href||"http://localhost",JP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qb,hasStandardBrowserEnv:WP,hasStandardBrowserWebWorkerEnv:XP,navigator:hy,origin:ZP},Symbol.toStringTag,{value:"Module"})),lr={...JP,...KP};function e7(e,t){return im(e,new lr.classes.URLSearchParams,{visitor:function(n,r,a,o){return lr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function t7(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function n7(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function qD(e){function t(n,r,a,o){let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=o>=n.length;return l=!l&&de.isArray(a)?a.length:l,d?(de.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!de.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],o)&&de.isArray(a[l])&&(a[l]=n7(a[l])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(t7(r),a,n,0)}),n}return null}function r7(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bd={transitional:VD,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=de.isObject(t);if(o&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(qD(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return e7(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return im(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),r7(t)):t}],transformResponse:[function(t){const n=this.transitional||Bd.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ut.from(c,ut.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lr.classes.FormData,Blob:lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Bd.headers[e]={}});const a7=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i7=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
54
|
-
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&a7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},NA=Symbol("internals");function pu(e){return e&&String(e).trim().toLowerCase()}function Uh(e){return e===!1||e==null?e:de.isArray(e)?e.map(Uh):String(e)}function o7(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const s7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function t1(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function l7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function c7(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,l){return this[r].call(this,t,a,o,l)},configurable:!0})})}let Lr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,d,f){const p=pu(d);if(!p)throw new Error("header name must be a non-empty string");const m=de.findKey(a,p);(!m||a[m]===void 0||f===!0||f===void 0&&a[m]!==!1)&&(a[m||d]=Uh(c))}const l=(c,d)=>de.forEach(c,(f,p)=>o(f,p,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!s7(t))l(i7(t),n);else if(de.isObject(t)&&de.isIterable(t)){let c={},d,f;for(const p of t){if(!de.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(d=c[f])?de.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=pu(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return o7(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=pu(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||t1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(l){if(l=pu(l),l){const c=de.findKey(r,l);c&&(!n||t1(r,r[c],c,n))&&(delete r[c],a=!0)}}return de.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||t1(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,o)=>{const l=de.findKey(r,o);if(l){n[l]=Uh(a),delete n[o];return}const c=t?l7(o):String(o).trim();c!==o&&delete n[o],n[c]=Uh(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
55
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[NA]=this[NA]={accessors:{}}).accessors,a=this.prototype;function o(l){const c=pu(l);r[c]||(c7(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(o):o(t),this}};Lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Lr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Lr);function n1(e,t){const n=this||Bd,r=t||n,a=Lr.from(r.headers);let o=r.data;return de.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function YD(e){return!!(e&&e.__CANCEL__)}function ic(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(ic,ut,{__CANCEL__:!0});function QD(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function u7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function d7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[o];l||(l=f),n[a]=d,r[a]=f;let m=o,y=0;for(;m!==a;)y+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),f-l<t)return;const b=p&&f-p;return b?Math.round(y*1e3/b):void 0}}function f7(e,t){let n=0,r=1e3/t,a,o;const l=(f,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,o||(o=setTimeout(()=>{o=null,l(a)},r-m)))},()=>a&&l(a)]}const pp=(e,t,n=3)=>{let r=0;const a=d7(50,250);return f7(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},OA=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},LA=e=>(...t)=>de.asap(()=>e(...t)),h7=lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lr.origin),lr.navigator&&/(msie|trident)/i.test(lr.navigator.userAgent)):()=>!0,p7=lr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function g7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function KD(e,t,n){let r=!m7(t);return e&&(r||n==!1)?g7(e,t):t}const MA=e=>e instanceof Lr?{...e}:e;function ks(e,t){t=t||{};const n={};function r(f,p,m,y){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:y},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,y){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,y)}else return r(f,p,m,y)}function o(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(MA(f),MA(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,y=m(e[p],t[p],p);de.isUndefined(y)&&m!==c||(n[p]=y)}),n}const WD=e=>{const t=ks({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:c}=t;t.headers=l=Lr.from(l),t.url=GD(KD(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(lr.hasStandardBrowserEnv||lr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(lr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&h7(t.url))){const f=a&&o&&p7.read(o);f&&l.set(a,f)}return t},y7=typeof XMLHttpRequest<"u",b7=y7&&function(e){return new Promise(function(n,r){const a=WD(e);let o=a.data;const l=Lr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,y,b,_;function A(){b&&b(),_&&_(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Lr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};QD(function(V){n(V),A()},function(V){r(V),A()},L),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ut("Request aborted",ut.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ut("Network Error",ut.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const L=a.transitional||VD;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),r(new ut(M,L.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,C)),C=null},o===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(M,L){C.setRequestHeader(L,M)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([y,_]=pp(f,!0),C.addEventListener("progress",y)),d&&C.upload&&([m,b]=pp(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new ic(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=u7(a.url);if(D&&lr.protocols.indexOf(D)===-1){r(new ut("Unsupported protocol "+D+":",ut.ERR_BAD_REQUEST,e));return}C.send(o||null)})},E7=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ut?p:new ic(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,o(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},v7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},T7=async function*(e,t){for await(const n of _7(e))yield*v7(n,t)},_7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},PA=(e,t,n,r)=>{const a=T7(e,t);let o=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let y=o+=m;n(y)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},om=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",XD=om&&typeof ReadableStream=="function",x7=om&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ZD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},A7=XD&&ZD(()=>{let e=!1;const t=new Request(lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$A=64*1024,py=XD&&ZD(()=>de.isReadableStream(new Response("").body)),mp={stream:py&&(e=>e.body)};om&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!mp[t]&&(mp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ut(`Response type '${t}' is not supported`,ut.ERR_NOT_SUPPORT,r)})})})(new Response);const S7=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await x7(e)).byteLength},C7=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??S7(t)},D7=om&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:y}=WD(e);f=f?(f+"").toLowerCase():"text";let b=E7([a,o&&o.toAbortSignal()],l),_;const A=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(d&&A7&&n!=="get"&&n!=="head"&&(C=await C7(p,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(de.isFormData(r)&&(I=L.headers.get("content-type"))&&p.setContentType(I),L.body){const[V,te]=OA(C,pp(LA(d)));r=PA(L.body,$A,V,te)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;_=new Request(t,{...y,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(_,y);const S=py&&(f==="stream"||f==="response");if(py&&(c||S&&A)){const L={};["status","statusText","headers"].forEach(Q=>{L[Q]=D[Q]});const I=de.toFiniteNumber(D.headers.get("content-length")),[V,te]=c&&OA(I,pp(LA(c),!0))||[];D=new Response(PA(D.body,$A,V,()=>{te&&te(),A&&A()}),L)}f=f||"text";let M=await mp[de.findKey(mp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((L,I)=>{QD(L,I,{data:M,headers:Lr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:_})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,_),{cause:x.cause||x}):ut.from(x,x&&x.code,e,_)}}),my={http:HP,xhr:b7,fetch:D7};de.forEach(my,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const FA=e=>`- ${e}`,k7=e=>de.isFunction(e)||e===null||e===!1,JD={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!k7(n)&&(r=my[(l=String(n)).toLowerCase()],r===void 0))throw new ut(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
|
|
56
|
-
`+o.map(FA).join(`
|
|
57
|
-
`):" "+FA(o[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:my};function r1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ic(null,e)}function BA(e){return r1(e),e.headers=Lr.from(e.headers),e.data=n1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JD.getAdapter(e.adapter||Bd.adapter)(e).then(function(r){return r1(e),r.data=n1.call(e,e.transformResponse,r),r.headers=Lr.from(r.headers),r},function(r){return YD(r)||(r1(e),r&&r.response&&(r.response.data=n1.call(e,e.transformResponse,r.response),r.response.headers=Lr.from(r.response.headers))),Promise.reject(r)})}const ek="1.11.0",sm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jA={};sm.transitional=function(t,n,r){function a(o,l){return"[Axios v"+ek+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,c)=>{if(t===!1)throw new ut(a(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!jA[l]&&(jA[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};sm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function R7(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new ut("option "+o+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const Hh={assertOptions:R7,validators:sm},Qa=Hh.validators;let xs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wA,response:new wA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
58
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ks(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Hh.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hh.assertOptions(a,{encode:Qa.function,serialize:Qa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hh.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=Lr.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const _=[BA.bind(this),void 0];for(_.unshift(...c),_.push(...f),y=_.length,p=Promise.resolve(n);m<y;)p=p.then(_[m++],_[m++]);return p}y=c.length;let b=n;for(m=0;m<y;){const _=c[m++],A=c[m++];try{b=_(b)}catch(C){A.call(this,C);break}}try{p=BA.call(this,b)}catch(_){return Promise.reject(_)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=ks(this.defaults,t);const n=KD(t.baseURL,t.url,t.allowAbsoluteUrls);return GD(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){xs.prototype[t]=function(n,r){return this.request(ks(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(ks(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}xs.prototype[t]=n(),xs.prototype[t+"Form"]=n(!0)});let I7=class tk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const l=new Promise(c=>{r.subscribe(c),o=c}).then(a);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new ic(o,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tk(function(a){t=a}),cancel:t}}};function w7(e){return function(n){return e.apply(null,n)}}function N7(e){return de.isObject(e)&&e.isAxiosError===!0}const gy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gy).forEach(([e,t])=>{gy[t]=e});function nk(e){const t=new xs(e),n=ND(xs.prototype.request,t);return de.extend(n,xs.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return nk(ks(e,a))},n}const at=nk(Bd);at.Axios=xs;at.CanceledError=ic;at.CancelToken=I7;at.isCancel=YD;at.VERSION=ek;at.toFormData=im;at.AxiosError=ut;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=w7;at.isAxiosError=N7;at.mergeConfig=ks;at.AxiosHeaders=Lr;at.formToJSON=e=>qD(de.isHTMLForm(e)?new FormData(e):e);at.getAdapter=JD.getAdapter;at.HttpStatusCode=gy;at.default=at;const{Axios:vre,AxiosError:Tre,CanceledError:_re,isCancel:xre,CancelToken:Are,VERSION:Sre,all:Cre,Cancel:Dre,isAxiosError:kre,spread:Rre,toFormData:Ire,AxiosHeaders:wre,HttpStatusCode:Nre,formToJSON:Ore,getAdapter:Lre,mergeConfig:Mre}=at,Ht="http://localhost/api/v0".replace(/\/+$/,"");let Uo=class{constructor(t,n=Ht,r=at){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},O7=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const qt={},Yt="https://example.com",tt=function(e,t,n){if(n==null)throw new O7(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function yy(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>yy(e,r,n)):Object.keys(t).forEach(r=>yy(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Qt=function(e,...t){const n=new URLSearchParams(e.search);yy(n,t),e.search=n.toString()},ld=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Kt=function(e){return e.pathname+e.search+e.hash},Wt=function(e,t,n,r){return(a=t,o=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(l)}},L7=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};Qt(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:Kt(l),options:d}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}}}},Ka=function(e){const t=L7(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getQuerydata(n,r,a,o,l){const c=await t.getQuerydata(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getSqlsource(n,r,a,o){const l=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async getTablesource(n,r,a,o,l){const c=await t.getTablesource(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getTemporarytable(n,r,a,o){const l=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listTables(n,r,a,o){const l=await t.listTables(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.testConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)}}};let rk=class extends Uo{getConnection(t,n,r){return Ka(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ka(this.configuration).getQuerydata(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ka(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ka(this.configuration).getTablesource(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ka(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Ka(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ka(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ka(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Ka(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Ka(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const M7=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},P7=function(e){const t=M7(e);return{async listDatabases(n,r,a,o){const l=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,d=qt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let $7=class extends Uo{listDatabases(t,n,r,a){return P7(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const F7=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},UA=function(e){const t=F7(e);return{async getModel(n,r,a,o,l){const c=await t.getModel(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listModels(n,r,a,o){const l=await t.listModels(n,r,a,o),c=e?.serverIndex??0,d=qt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let lm=class extends Uo{getModel(t,n,r,a,o){return UA(this.configuration).getModel(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return UA(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const B7=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},HA=function(e){const t=B7(e);return{async getNotebook(n,r,a,o,l){const c=await t.getNotebook(n,r,a,o,l),d=e?.serverIndex??0,f=qt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listNotebooks(n,r,a,o){const l=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,d=qt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ak=class extends Uo{getNotebook(t,n,r,a,o){return HA(this.configuration).getNotebook(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return HA(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const j7=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=ld(r,d,e),{url:Kt(l),options:d}}}},mu=function(e){const t=j7(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getPackage(n,r,a,o,l){const c=await t.getPackage(n,r,a,o,l),d=e?.serverIndex??0,f=qt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,l=qt["PackagesApi.listPackages"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async updatePackage(n,r,a,o){const l=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,d=qt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ik=class extends Uo{createPackage(t,n,r){return mu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return mu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return mu(this.configuration).getPackage(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return mu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return mu(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const U7=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:Kt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Yt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},l={};Qt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...l,...c,...t.headers},{url:Kt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}}}},gu=function(e){const t=U7(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.createProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async getProject(n,r,a){const o=await t.getProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=qt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>Wt(r,at,Ht,e)(l,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)}}};let ok=class extends Uo{createProject(t,n){return gu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return gu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return gu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return gu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return gu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const H7=function(e){return{executeQuery:async(t,n,r,a,o,l,c,d={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,Yt);let m;e&&(m=e.baseOptions);const y={method:"GET",...m,...d},b={},_={};a!==void 0&&(_.query=a),o!==void 0&&(_.sourceName=o),l!==void 0&&(_.queryName=l),c!==void 0&&(_.versionId=c),Qt(p,_);let A=m&&m.headers?m.headers:{};return y.headers={...b,...A,...d.headers},{url:Kt(p),options:y}}}},z7=function(e){const t=H7(e);return{async executeQuery(n,r,a,o,l,c,d,f){const p=await t.executeQuery(n,r,a,o,l,c,d,f),m=e?.serverIndex??0,y=qt["QueryresultsApi.executeQuery"]?.[m]?.url;return(b,_)=>Wt(p,at,Ht,e)(b,y||_)}}};let cm=class extends Uo{executeQuery(t,n,r,a,o,l,c,d){return z7(this.configuration).executeQuery(t,n,r,a,o,l,c,d).then(f=>f(this.axios,this.basePath))}};const G7=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},V7=function(e){const t=G7(e);return{async listSchedules(n,r,a,o){const l=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,d=qt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let q7=class extends Uo{listSchedules(t,n,r,a){return V7(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}},Xn=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};var oc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rs=typeof window>"u"||"Deno"in globalThis;function Er(){}function Y7(e,t){return typeof e=="function"?e(t):e}function by(e){return typeof e=="number"&&e>=0&&e!==1/0}function sk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Io(e,t){return typeof e=="function"?e(t):e}function ma(e,t){return typeof e=="function"?e(t):e}function zA(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Yb(l,t.options))return!1}else if(!cd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function GA(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Is(t.options.mutationKey)!==Is(o))return!1}else if(!cd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Yb(e,t){return(t?.queryKeyHashFn||Is)(e)}function Is(e){return JSON.stringify(e,(t,n)=>Ey(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function cd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>cd(e[n],t[n])):!1}function lk(e,t){if(e===t)return e;const n=VA(e)&&VA(t);if(n||Ey(e)&&Ey(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),l=o.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:o[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=lk(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function gp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function VA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ey(e){if(!qA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qA(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q7(e){return new Promise(t=>{setTimeout(t,e)})}function vy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lk(e,t):t}function K7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qb=Symbol();function ck(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Qb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uk(e,t){return typeof e=="function"?e(...t):!!e}var X7=class extends oc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Kb=new X7,Z7=class extends oc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},yp=new Z7;function Ty(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function J7(e){return Math.min(1e3*2**e,3e4)}function dk(e){return(e??"online")==="online"?yp.isOnline():!0}var fk=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function a1(e){return e instanceof fk}function hk(e){let t=!1,n=0,r=!1,a;const o=Ty(),l=A=>{r||(y(new fk(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>Kb.isFocused()&&(e.networkMode==="always"||yp.isOnline())&&e.canRun(),p=()=>dk(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),o.resolve(A))},y=A=>{r||(r=!0,e.onError?.(A),a?.(),o.reject(A))},b=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),_=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(Rs?0:3),S=e.retryDelay??J7,M=typeof S=="function"?S(n,x):S,L=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!L){y(x);return}n++,e.onFail?.(n,x),Q7(M).then(()=>f()?void 0:b()).then(()=>{t?y(x):_()})})};return{promise:o,cancel:l,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?_():b().then(_),o)}}var e8=e=>setTimeout(e,0);function t8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=e8;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Un=t8(),pk=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),by(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},n8=class extends pk{#t;#e;#n;#r;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=r8(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vy(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ma(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Io(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const d=ck(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{a1(d)&&d.silent||this.#i({type:"error",error:d}),a1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=hk({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mk(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return a1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Un.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function mk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function r8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var a8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Yb(r,t);let o=this.get(a);return o||(o=new n8({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Un.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zA(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zA(e,n)):t}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},i8=class extends pk{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||gk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=hk({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Un.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function gk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new i8({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=bh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=bh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Un.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>GA(t,n))}findAll(e={}){return this.getAll().filter(t=>GA(e,t))}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Un.batch(()=>Promise.all(e.map(t=>t.continue().catch(Er))))}};function bh(e){return e.options.scope?.id}function YA(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=ck(t.options,t.fetchOptions),b=async(_,A,C)=>{if(p)return Promise.reject();if(A==null&&_.pages.length)return Promise.resolve(_);const D=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(D),{maxPages:M}=t.options,L=C?W7:K7;return{pages:L(_.pages,S,M),pageParams:L(_.pageParams,A,M)}};if(a&&o.length){const _=a==="backward",A=_?s8:QA,C={pages:o,pageParams:l},x=A(r,C);c=await b(C,x,_)}else{const _=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:QA(r,c);if(d>0&&A==null)break;c=await b(c,A),d++}while(d<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function QA(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function s8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var l8=class{#t;#e;#n;#r;#a;#o;#s;#i;constructor(e={}){this.#t=e.queryCache||new a8,this.#e=e.mutationCache||new o8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Kb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=yp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Io(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=Y7(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Un.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Un.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Un.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Un.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(e,t={}){return Un.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Un.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Er)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Er)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Io(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=YA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=YA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{cd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{cd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Qb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},c8=class extends oc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=Ty(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#o;#s;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),KA(this.#e,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _y(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _y(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ma(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!gp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&WA(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||Io(this.options.staleTime,this.#e)!==Io(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||a!==this.#l)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return d8(this,n)&&(this.#r=n,this.#o=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Er)),t}#g(){this.#v();const e=Io(this.options.staleTime,this.#e);if(Rs||this.#r.isStale||!by(e))return;const n=sk(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#T(),this.#l=e,!(Rs||ma(this.options.enabled,this.#e)===!1||!by(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Kb.isFocused())&&this.#d()},this.#l))}#E(){this.#g(),this.#b(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,y;if(t._optimisticResults){const te=this.hasListeners(),Q=!te&&KA(e,t),k=te&&WA(e,n,t,r);(Q||k)&&(p={...p,...mk(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:_,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let te;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(te=a.data,C=!0):te=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,te!==void 0&&(A="success",y=vy(a?.data,te,t),m=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===o?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=vy(a?.data,y,t),this.#f=y,this.#i=null}catch(te){this.#i=te}this.#i&&(b=this.#i,y=this.#f,_=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",M=D&&x,L=y!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&L,isStale:Wb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ma(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const te=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},Q=()=>{const H=this.#s=V.promise=Ty();te(H)},k=this.#s;switch(k.status){case"pending":e.queryHash===n.queryHash&&te(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&Q();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&Q();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),gp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const o=new Set(a??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&o.has(c)})};this.#x({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#x(e){Un.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function u8(e,t){return ma(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KA(e,t){return u8(e,t)||e.state.data!==void 0&&_y(e,t,t.refetchOnMount)}function _y(e,t,n){if(ma(t.enabled,e)!==!1&&Io(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wb(e,t)}return!1}function WA(e,t,n,r){return(e!==t||ma(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Wb(e,n)}function Wb(e,t){return ma(t.enabled,e)!==!1&&e.isStaleByTime(Io(t.staleTime,e))}function d8(e,t){return!gp(e.getCurrentResult(),t)}var f8=class extends oc{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),gp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Is(n.mutationKey)!==Is(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??gk();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Un.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},h8=w.createContext(void 0),yk=e=>{const t=w.useContext(h8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bk=w.createContext(!1),p8=()=>w.useContext(bk);bk.Provider;function m8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var g8=w.createContext(m8()),y8=()=>w.useContext(g8),b8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},E8=e=>{w.useEffect(()=>{e.clearReset()},[e])},v8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||uk(n,[e.error,r])),T8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_8=(e,t)=>e.isLoading&&e.isFetching&&!t,x8=(e,t)=>e?.suspense&&t.isPending,XA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A8(e,t,n){const r=p8(),a=y8(),o=yk(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",T8(l),b8(l,a),E8(a);const c=!o.getQueryCache().get(l.queryHash),[d]=w.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(m=>{const y=p?d.subscribe(Un.batchCalls(m)):Er;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),w.useEffect(()=>{d.setOptions(l)},[l,d]),x8(l,f))throw XA(l,d,a);if(v8({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!Rs&&_8(f,r)&&(c?XA(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(Er).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function S8(e,t){return A8(e,c8,t)}function C8(e,t){const n=yk(t),[r]=w.useState(()=>new f8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Un.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Er)},[r]);if(a.error&&uk(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const Ek=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es228-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es229-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es230-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es231-02O061a5.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es232-DOZR37hD.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es233-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es234-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es235-CwaFVls_.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es236-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es237-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es238-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es239-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es240-BXsCiix7.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es241-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es242-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es243-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es244-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es245-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es246-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es247-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es248-BBXwDGlH.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es249-it6O0zLZ.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es250-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es251-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es252-BU8jndoZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es253-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es254-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es255-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es256-BvZRwMxf.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es257-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es258-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es259-6-xstYpb.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es260-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es261-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es262-BDUOVoIz.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es263-CHueaYAb.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es264-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es265-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es266-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es267-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es268-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es269-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es270-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es271-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es272-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es273-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es274-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es275-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es276-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es277-CbrHqWmX.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es278-CI5gPs5v.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es279-DH9b__8l.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es280-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es281-CGN0Pl1D.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>F(()=>import("./index.es282-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es283-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es284-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es285-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es286-XRt1U2aU.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es287-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es288-DSszyNly.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es289-xrNpklpB.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es290-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es291-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es292-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es293--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es294-B75OnIUq.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es295-wxT8LaCU.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es296-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es297-DCQpwhAH.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es298-Dtm6S7Te.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es299-CO3NhjF0.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es300-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es301-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es302-BNx4kwZQ.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es303-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es304-Cslijulp.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es305-Bj5y75UJ.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es306-BY9A-bfA.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es307-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es308-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es309-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es310-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es311-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es312-BOpCGR-W.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es313-j4e0V-ax.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es314-QPXF8A7X.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es315-BBht-U5W.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es316-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es317-Ba6bfhqW.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es318-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es319-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es320-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es321-BzMKJGft.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es322-Dsh6cVFT.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es323-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es324-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es325-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es326-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es327-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es328-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es329-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es330-CwhtB6Ga.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es331-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es332-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es333-BkIXdkt8.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es334-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es335-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es336-CDPSHwok.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es337-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es338-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es339-CpmgqEMA.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es340-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es341-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es342-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es343-DpQJ0N3s.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es344-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es345-Cu1t0B48.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es346-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es347-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es348-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es349-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es350-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es351-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es352-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es353-Boayqq8b.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es354-B25Rulno.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es355-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es356-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es357-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es358-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es359-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es360-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es361-BbYa_qYT.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es362-BnUI1TJX.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es363-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es364-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es365-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es366-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es367-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es368-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es369-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es370-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es371-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es372-Din3gmuj.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es373-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es374-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es375-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es376-CAM-NFdA.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es377-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es378-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es379-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es380-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es381-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es382-r9NT2hns.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es383-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es384-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es385-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es386-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es387-DWtDDVHa.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>F(()=>import("./index.es388-Cddokof0.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>F(()=>import("./index.es389-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es390-BgcDic1S.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es391-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es392-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es393-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es394-Cuad4cFu.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es395-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es396-CQcbzzI_.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es397-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es398-DBUoETTk.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es399-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es400-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es401-D7FZbPq9.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es402-C5ht0e8l.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es403-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es404-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es405-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es406-pes6PLHN.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es407-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es408-DV2ChDJw.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es409-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es410-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es411-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es412-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es413-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es414-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es415-BI_J_S9x.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es416-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es417-BNH1K0F3.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es418-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es419-DaaHuOeT.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es420-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es421-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es422-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es423-BFNF97RC.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>F(()=>import("./index.es424-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es425-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es426-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es427-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es428-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es429-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es430-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es431-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es432-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es433-TWQYaV1h.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es434-Dhj89L3U.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es435-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es436-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es437-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es438-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es439-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es440-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es441-9pPCdH1i.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es442-B_JzqX5N.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es443-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es444-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es445-BVz_zdnA.js"),[])}],D8=Object.fromEntries(Ek.map(e=>[e.id,e.import])),k8=Object.fromEntries(Ek.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),R8={...D8,...k8},I8=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es446-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es447-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es448-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es449-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es450-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es451-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es452-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es453-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es454-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es455-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es456-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es457-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es458-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es459-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es460-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es461-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es462-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es463-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es464-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es465-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es466-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es467-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es468-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es469-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es470-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es471-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es472-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es473-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es474-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es475-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es476-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es477-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es478-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es479-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es480-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es481-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es482-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es483-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es484-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es485-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es486-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es487-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es488-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es489-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es490-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es491-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es492-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es493-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es494-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es495-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es496-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es497-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es498-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es499-CVO1_9PV.js"),[])}],w8=Object.fromEntries(I8.map(e=>[e.id,e.import]));let Bi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Xb=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function N8(){return 2147483648}function O8(){return typeof performance<"u"?performance.now():Date.now()}const L8=(e,t)=>e+(t-e%t)%t;async function M8(e){let t,n;const r={};function a(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function o(b,_,A){r.HEAPU8.copyWithin(b,_,_+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(b){const _=r.HEAPU8.length;b=b>>>0;const A=N8();if(b>A)return!1;for(let C=1;C<=4;C*=2){let x=_*(1+.2/C);x=Math.min(x,b+100663296);const D=Math.min(A,L8(Math.max(b,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,_,A=1024){const C=_+A;let x=_;for(;b[x]&&!(x>=C);)++x;if(x-_>16&&b.buffer&&d)return d.decode(b.subarray(_,x));let D="";for(;_<x;){let S=b[_++];if(!(S&128)){D+=String.fromCharCode(S);continue}const M=b[_++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|M);continue}const L=b[_++]&63;if((S&240)===224?S=(S&15)<<12|M<<6|L:S=(S&7)<<18|M<<12|L<<6|b[_++]&63,S<65536)D+=String.fromCharCode(S);else{const I=S-65536;D+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return D}function p(b,_){return b?f(r.HEAPU8,b,_):""}const m={emscripten_get_now:O8,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const b=await e({env:m,wasi_snapshot_preview1:m});t=b.memory,a(t.buffer),Object.assign(r,b),r.UTF8ToString=p}return await y(),r}var P8=Object.defineProperty,$8=(e,t,n)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t,n)=>($8(e,typeof t!="symbol"?t+"":t,n),n);let Qn=null;function F8(e){throw new Xb(e.UTF8ToString(e.getLastOnigError()))}let vk=class Tk{constructor(t){jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16Value"),jn(this,"utf8Value"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16");const n=t.length,r=Tk._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,y=!0)}a&&(o[f]=d,y&&(o[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(o-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Xa=class{constructor(t){if(jn(this,"id",++Xa.LAST_ID),jn(this,"_onigBinding"),jn(this,"content"),jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16"),jn(this,"ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");this._onigBinding=Qn,this.content=t;const n=new vk(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xa._sharedPtrInUse?(Xa._sharedPtr||(Xa._sharedPtr=Qn.omalloc(1e4)),Xa._sharedPtrInUse=!0,Qn.HEAPU8.set(n.utf8Value,Xa._sharedPtr),this.ptr=Xa._sharedPtr):this.ptr=n.createString(Qn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Xa._sharedPtr?Xa._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let jd=Xa;jn(jd,"LAST_ID",0);jn(jd,"_sharedPtr",0);jn(jd,"_sharedPtrInUse",!1);let B8=class{constructor(t){if(jn(this,"_onigBinding"),jn(this,"_ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new vk(t[c]);n[c]=f.createString(Qn),r[c]=f.utf8Length}const a=Qn.omalloc(4*t.length);Qn.HEAPU32.set(n,a/4);const o=Qn.omalloc(4*t.length);Qn.HEAPU32.set(r,o/4);const l=Qn.createOnigScanner(a,o,t.length);for(let c=0,d=t.length;c<d;c++)Qn.ofree(n[c]);Qn.ofree(o),Qn.ofree(a),l===0&&F8(Qn),this._onigBinding=Qn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new jd(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=o.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let y=0;y<p;y++){const b=t.convertUtf8OffsetToUtf16(c[d++]),_=t.convertUtf8OffsetToUtf16(c[d++]);m[y]={start:b,end:_,length:_-b}}return{index:f,captureIndices:m}}};function j8(e){return typeof e.instantiator=="function"}function U8(e){return typeof e.default=="function"}function H8(e){return typeof e.data<"u"}function z8(e){return typeof Response<"u"&&e instanceof Response}function G8(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Eh;function V8(e){if(Eh)return Eh;async function t(){Qn=await M8(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),j8(r)?r=await r.instantiator(n):U8(r)?r=await r.default(n):(H8(r)&&(r=r.data),z8(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await q8(r)(n):r=await Y8(r)(n):G8(r)?r=await i1(r)(n):r instanceof WebAssembly.Module?r=await i1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await i1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Eh=t(),Eh}function i1(e){return t=>WebAssembly.instantiate(e,t)}function q8(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Y8(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Q8;function K8(){return Q8}async function _k(e){return e&&await V8(e),{createScanner(t){return new B8(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new jd(t)}}}function W8(e){return Zb(e)}function Zb(e){return Array.isArray(e)?X8(e):e instanceof RegExp?e:typeof e=="object"?Z8(e):e}function X8(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Zb(e[n]);return t}function Z8(e){let t={};for(let n in e)t[n]=Zb(e[n]);return t}function xk(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ak(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ak(e.substring(0,e.length-1)):e.substr(~t+1)}var o1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vh=class{static hasCaptures(t){return t===null?!1:(o1.lastIndex=0,o1.test(t))}static replaceCaptures(t,n,r){return t.replace(o1,(a,o,l,c)=>{let d=r[parseInt(o||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function Sk(e,t){return e<t?-1:e>t?1:0}function Ck(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=Sk(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ZA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Dk(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var kk=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},bp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(t$(t),n)}static createFromParsedTheme(t,n){return r$(t,n)}_cachedMatchRoot=new kk(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>J8(t.parent,a.parentScopes));return r?new Rk(r.fontStyle,r.foreground,r.background):null}},s1=class zh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new zh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new zh(n,t[r]);return n}push(t){return new zh(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function J8(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!e$(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function e$(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rk=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function t$(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let y=0,b=m.length;y<b;y++)switch(m[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&ZA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&ZA(l.settings.background)&&(p=l.settings.background);for(let m=0,y=c.length;m<y;m++){let b=c[m].trim().split(" "),_=b[b.length-1],A=null;b.length>1&&(A=b.slice(0,b.length-1),A.reverse()),n[r++]=new n$(_,A,a,d,f,p)}}return n}var n$=class{constructor(t,n,r,a,o,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=l}},Fi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fi||{});function r$(e,t){e.sort((d,f)=>{let p=Sk(d.scope,f.scope);return p!==0||(p=Ck(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let o=new a$(t),l=new Rk(n,o.getId(r),o.getId(a)),c=new o$(new xy(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new bp(o,l,c)}var a$=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},i$=Object.freeze([]),xy=class Ik{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||i$,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new Ik(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},o$=class Ay{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Ay._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new Ay(this._mainRule.clone(),xy.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(Ck(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new xy(t,n,r,a,o))}},Xl=class da{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=da.getLanguageId(t),r=da.getTokenType(t),a=da.getFontStyle(t),o=da.getForeground(t),l=da.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,l,c){let d=da.getLanguageId(t),f=da.getTokenType(t),p=da.containsBalancedBrackets(t)?1:0,m=da.getFontStyle(t),y=da.getForeground(t),b=da.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),o!==-1&&(m=o),l!==0&&(y=l),c!==0&&(b=c),(d<<0|f<<8|p<<10|m<<11|y<<15|b<<24)>>>0}};function Ep(e,t){const n=[],r=s$(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const d=o();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(JA(a)){const d=[];do d.push(a),a=r.next();while(JA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=o();for(;f;)d.push(f),f=o();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function JA(e){return!!e&&!!e.match(/[\w\.:]+/)}function s$(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function wk(e){typeof e.dispose=="function"&&e.dispose()}var ud=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},l$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},c$=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},u$=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ud(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new c$;for(const r of t)d$(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof ud){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function d$(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof ud?Gh({baseGrammar:o,selfGrammar:a},r):Sy(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new ud(c))}function Sy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];vp([r],t,n)}}function Gh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&vp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&vp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function vp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?xk({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&vp(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=Nk(o);switch(l.kind){case 0:Gh({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gh(t,n);break;case 2:Sy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?Sy(l.ruleName,d,n):Gh(d,n)}else l.kind===4?n.add(new l$(l.scopeName,l.ruleName)):n.add(new ud(l.scopeName));break}}}var f$=class{kind=0},h$=class{kind=1},p$=class{constructor(t){this.ruleName=t}kind=2},m$=class{constructor(t){this.scopeName=t}kind=3},g$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function Nk(e){if(e==="$base")return new f$;if(e==="$self")return new h$;const t=e.indexOf("#");if(t===-1)return new m$(e);if(t===0)return new p$(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g$(n,r)}}var y$=/\\(\d+)/,eS=/\\(\d+)/g,b$=-1,Ok=-2,Ud=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=vh.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=vh.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Ak(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:vh.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vh.replaceCaptures(this._contentName,t,n)}},E$=class extends Ud{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},v$=class extends Ud{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new dd(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tS=class extends Ud{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Cy=class extends Ud{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,l,c,d,f,p){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this._end=new dd(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Tp=class extends Ud{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,l,c,d,f){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new dd(c,Ok),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Lk=class sr{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new E$(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new v$(t.$vscodeTextmateLocation,t.id,t.name,t.match,sr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=xk({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new tS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,sr._compilePatterns(o,n,r))}return t.while?new Tp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,sr._compileCaptures(t.whileCaptures||t.captures,n,r),sr._compilePatterns(t.patterns,n,r)):new Cy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,sr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,sr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=sr.getCompiledRuleId(t[l],n,r)),a[c]=sr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let d=-1;if(c.include){const f=Nk(c.include);switch(f.kind){case 0:case 1:d=sr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=sr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(m,r);if(b)if(y){let _=b.repository[y];_&&(d=sr.getCompiledRuleId(_,n,b.repository))}else d=sr.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=sr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof tS||f instanceof Cy||f instanceof Tp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},dd=class Mk{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=y$.test(this.source):this.hasBackReferences=!1}clone(){return new Mk(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return eS.lastIndex=0,this.source.replace(eS,(a,o)=>Dk(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,l,c,d;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<l&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=d,n[o+1]=d,r[o+1]=d,a[o+1]=d),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new nS(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new nS(t,a,this._items.map(o=>o.ruleId))}},nS=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
59
|
-
`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},l1=class{constructor(t,n){this.languageId=t,this.tokenType=n}},T$=class Dy{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new l1(t,8),this._embeddedLanguagesMatcher=new _$(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Dy._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new l1(0,0);_getBasicScopeAttributes=new kk(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new l1(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Dy.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},_$=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>Dk(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},rS=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function Pk(e,t,n,r,a,o,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const b=x$(e,t,n,r,a,o);a=b.stack,r=b.linePos,n=b.isFirstLine,p=b.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new rS(a,!0);y()}return new rS(a,!1);function y(){const b=A$(e,t,n,r,a,p);if(!b){o.produce(a,d),f=!0;return}const _=b.captureIndices,A=b.matchedRuleId,C=_&&_.length>0?_[0].end>r:!1;if(A===b$){const x=a.getRule(e);o.produce(a,_[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ou(e,t,n,a,o,x.endCaptures,_),o.produce(a,_[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,o.produce(a,d),f=!0;return}}else{const x=e.getRule(A);o.produce(a,_[0].start);const D=a,S=x.getName(t.content,_),M=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,_[0].end===d,null,M,M),x instanceof Cy){const L=x;Ou(e,t,n,a,o,L.beginCaptures,_),o.produce(a,_[0].end),p=_[0].end;const I=L.getContentName(t.content,_),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.endHasBackReferences&&(a=a.withEndRule(L.getEndWithResolvedBackReferences(t.content,_))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(x instanceof Tp){const L=x;Ou(e,t,n,a,o,L.beginCaptures,_),o.produce(a,_[0].end),p=_[0].end;const I=L.getContentName(t.content,_),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.whileHasBackReferences&&(a=a.withEndRule(L.getWhileWithResolvedBackReferences(t.content,_))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(Ou(e,t,n,a,o,x.captures,_),o.produce(a,_[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,d),f=!0;return}}_[0].end>r&&(r=_[0].end,n=!1)}}function x$(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof Tp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=D$(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==Ok){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(d.stack,m.captureIndices[0].start),Ou(e,t,n,d.stack,o,d.rule.whileCaptures,m.captureIndices),o.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function A$(e,t,n,r,a,o){const l=S$(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return l;const d=C$(c,e,t,n,r,a,o);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function S$(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=$k(l,e,a.endRule,n,r===o),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function C$(e,t,n,r,a,o,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=o.contentNameScopesList.getScopeNames();for(let y=0,b=e.length;y<b;y++){const _=e[y];if(!_.matcher(m))continue;const A=t.getRule(_.ruleId),{ruleScanner:C,findOptions:x}=$k(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=_.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function $k(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function D$(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Ou(e,t,n,r,a,o,l){if(o.length===0)return;const c=t.content,d=Math.min(o.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const y=o[m];if(y===null)continue;const b=l[m];if(b.length===0)continue;if(b.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,b.start):a.produce(r,b.start),y.retokenizeCapturedWithRuleId){const A=y.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=y.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(y.retokenizeCapturedWithRuleId,b.start,-1,!1,null,C,D),M=e.createOnigString(c.substring(0,b.end));Pk(e,M,n&&b.start===0,b.start,S,a,!1,0),wk(M);continue}const _=y.getName(c,l);if(_!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(_,e);f.push(new k$(A,b.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var k$=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function R$(e,t,n,r,a,o,l,c){return new w$(e,t,n,r,a,o,l,c)}function aS(e,t,n,r,a){const o=Ep(t,_p),l=Lk.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function _p(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(I$(t[a],r))return n=a+1,!0;return!1})}function I$(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var w$=class{constructor(t,n,r,a,o,l,c,d){if(this._rootScopeName=t,this.balancedBracketSelectors=l,this._onigLib=d,this._basicScopeAttributesProvider=new T$(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=iS(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const f of Object.keys(o)){const p=Ep(f,_p);for(const m of p)this._tokenTypeMatchers.push({matcher:m.matcher,type:o[f]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)aS(n,c,o[c],this,a);const l=this._grammarRepository.injections(r);l&&l.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&aS(n,f,d,this,d)}})}return n.sort((o,l)=>o.priority-l.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=iS(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=Lk.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===ky.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),y=Xl.set(0,p.languageId,p.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),b=this.getRule(this._rootId).getName(null,null);let _;b?_=Bu.createRootAndLookUpScopeName(b,y,this):_=Bu.createRoot("unknown",y),n=new ky(null,this._rootId,-1,-1,!1,null,_,_)}else o=!1,n.reset();t=t+`
|
|
60
|
-
`;const l=this.createOnigString(t),c=l.content.length,d=new O$(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),f=Pk(this,l,o,0,n,d,!0,a);return wk(l),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function iS(e,t){return e=W8(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Bu=class Za{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=s1.push(a,o.scopeNames),r=new Za(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Za(null,new s1(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new s1(null,t),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(n,a,l);return new Za(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Za.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),Xl.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Za._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Za._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(t.tokenAttributes,a,l);return new Za(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ky=class ss{constructor(t,n,r,a,o,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new ss(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ss._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Bu.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ss._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,c){return new ss(this,t,n,r,a,o,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ss(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Bu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ss(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Bu.fromExtension(r,n.contentNameScopesList))}},N$=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ep(r,_p).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ep(r,_p).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},O$=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(a=Xl.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=Xl.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},L$=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let l=this._rawGrammars.get(t);if(!l)return null;this._grammars.set(t,R$(t,l,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},M$=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new L$(bp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(bp.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new N$(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new u$(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},Ry=ky.NULL;const Fk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Hd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Hd.prototype.normal={};Hd.prototype.property={};Hd.prototype.space=void 0;function Bk(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Hd(n,r,t)}function hd(e){return e.toLowerCase()}let Pr=class{constructor(t,n){this.attribute=n,this.property=t}};Pr.prototype.attribute="";Pr.prototype.booleanish=!1;Pr.prototype.boolean=!1;Pr.prototype.commaOrSpaceSeparated=!1;Pr.prototype.commaSeparated=!1;Pr.prototype.defined=!1;Pr.prototype.mustUseProperty=!1;Pr.prototype.number=!1;Pr.prototype.overloadedBoolean=!1;Pr.prototype.property="";Pr.prototype.spaceSeparated=!1;Pr.prototype.space=void 0;let P$=0;const ht=Bs(),On=Bs(),Iy=Bs(),ke=Bs(),en=Bs(),zl=Bs(),Yr=Bs();function Bs(){return 2**++P$}const wy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:On,commaOrSpaceSeparated:Yr,commaSeparated:zl,number:ke,overloadedBoolean:Iy,spaceSeparated:en},Symbol.toStringTag,{value:"Module"})),c1=Object.keys(wy);let Jb=class extends Pr{constructor(t,n,r,a){let o=-1;if(super(t,n),oS(this,"space",a),typeof r=="number")for(;++o<c1.length;){const l=c1[o];oS(this,c1[o],(r&wy[l])===wy[l])}}};Jb.prototype.defined=!0;function oS(e,t,n){n&&(e[t]=n)}function sc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Jb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[hd(r)]=r,n[hd(o.attribute)]=r}return new Hd(t,n,e.space)}const jk=sc({properties:{ariaActiveDescendant:null,ariaAtomic:On,ariaAutoComplete:null,ariaBusy:On,ariaChecked:On,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:en,ariaCurrent:null,ariaDescribedBy:en,ariaDetails:null,ariaDisabled:On,ariaDropEffect:en,ariaErrorMessage:null,ariaExpanded:On,ariaFlowTo:en,ariaGrabbed:On,ariaHasPopup:null,ariaHidden:On,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:en,ariaLevel:ke,ariaLive:null,ariaModal:On,ariaMultiLine:On,ariaMultiSelectable:On,ariaOrientation:null,ariaOwns:en,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:On,ariaReadOnly:On,ariaRelevant:null,ariaRequired:On,ariaRoleDescription:en,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:On,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Uk(e,t){return t in e?e[t]:t}function Hk(e,t){return Uk(e,t.toLowerCase())}const $$=sc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zl,acceptCharset:en,accessKey:en,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:en,autoFocus:ht,autoPlay:ht,blocking:en,capture:null,charSet:null,checked:ht,cite:null,className:en,cols:ke,colSpan:null,content:null,contentEditable:On,controls:ht,controlsList:en,coords:ke|zl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:Iy,draggable:On,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:en,height:ke,hidden:Iy,high:ke,href:null,hrefLang:null,htmlFor:en,httpEquiv:en,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:en,itemRef:en,itemScope:ht,itemType:en,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ht,optimum:ke,pattern:null,ping:en,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:en,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:en,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:On,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:On,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:en,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:On,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:Hk}),F$=sc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Yr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:en,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zl,g2:zl,glyphName:zl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Yr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:en,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yr,rev:Yr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yr,requiredFeatures:Yr,requiredFonts:Yr,requiredFormats:Yr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Yr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Uk}),zk=sc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Gk=sc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Hk}),Vk=sc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lc=Bk([jk,$$,zk,Gk,Vk],"html"),zi=Bk([jk,F$,zk,Gk,Vk],"svg"),sS={}.hasOwnProperty;function um(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const c=r.handlers;if(a&&sS.call(a,e)){const d=String(a[e]);l=sS.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const B$=/["&'<>`]/g,j$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,U$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,H$=/[|\\{}()[\]^$+*?.]/g,lS=new WeakMap;function z$(e,t){if(e=e.replace(t.subset?G$(t.subset):B$,r),t.subset||t.escapeOnly)return e;return e.replace(j$,n).replace(U$,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function G$(e){let t=lS.get(e);return t||(t=V$(e),lS.set(e,t)),t}function V$(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(H$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const q$=/[\dA-Fa-f]/;function Y$(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!q$.test(String.fromCharCode(t))?r:r+";"}const Q$=/\d/;function K$(e,t,n){const r="&#"+String(e);return n&&t&&!Q$.test(String.fromCharCode(t))?r:r+";"}const W$=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],u1={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:"ÿ",fnof:"ƒ",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:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",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:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},X$=["cent","copy","divide","gt","lt","not","para","times"],qk={}.hasOwnProperty,Ny={};let Th;for(Th in u1)qk.call(u1,Th)&&(Ny[u1[Th]]=Th);const Z$=/[^\dA-Za-z]/;function J$(e,t,n,r){const a=String.fromCharCode(e);if(qk.call(Ny,a)){const o=Ny[a],l="&"+o;return n&&W$.includes(o)&&!X$.includes(o)&&(!r||t&&t!==61&&Z$.test(String.fromCharCode(t)))?l:l+";"}return""}function e9(e,t,n){let r=Y$(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=J$(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=K$(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Gl(e,t){return z$(e,Object.assign({format:e9},t))}const t9=/^>|^->|<!--|-->|--!>|<!-$/g,n9=[">"],r9=["<",">"];function a9(e,t,n,r){return r.settings.bogusComments?"<?"+Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:n9}))+">":"<!--"+e.value.replace(t9,a)+"-->";function a(o){return Gl(o,Object.assign({},r.settings.characterReferences,{subset:r9}))}}function i9(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Oy(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function dm(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ly(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fm(e){return e.join(" ").trim()}const o9=/[ \t\n\f\r]/g;function zd(e){return typeof e=="object"?e.type==="text"?cS(e.value):!1:cS(e)}function cS(e){return e.replace(o9,"")===""}const Hn=Qk(1),Yk=Qk(-1),s9=[];function Qk(e){return t;function t(n,r,a){const o=n?n.children:s9;let l=(r||0)+e,c=o[l];if(!a)for(;c&&zd(c);)l+=e,c=o[l];return c}}const l9={}.hasOwnProperty;function Kk(e){return t;function t(n,r,a){return l9.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const eE=Kk({body:u9,caption:d1,colgroup:d1,dd:p9,dt:h9,head:d1,html:c9,li:f9,optgroup:m9,option:g9,p:d9,rp:uS,rt:uS,tbody:b9,td:dS,tfoot:E9,th:dS,thead:y9,tr:v9});function d1(e,t,n){const r=Hn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zd(r.value.charAt(0)))}function c9(e,t,n){const r=Hn(n,t);return!r||r.type!=="comment"}function u9(e,t,n){const r=Hn(n,t);return!r||r.type!=="comment"}function d9(e,t,n){const r=Hn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function f9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function h9(e,t,n){const r=Hn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function p9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function uS(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function m9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function g9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function y9(e,t,n){const r=Hn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function b9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function E9(e,t,n){return!Hn(n,t)}function v9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function dS(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const T9=Kk({body:A9,colgroup:S9,head:x9,html:_9,tbody:C9});function _9(e){const t=Hn(e,-1);return!t||t.type!=="comment"}function x9(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function A9(e){const t=Hn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&zd(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function S9(e,t,n){const r=Yk(n,t),a=Hn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&eE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function C9(e,t,n){const r=Yk(n,t),a=Hn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&eE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const D9=/[A-Z]/g,fS=/-[a-z]/g,k9=/^data[-\w.:]+$/i;function Gd(e,t){const n=hd(t);let r=t,a=Pr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&k9.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(fS,I9);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!fS.test(o)){let l=o.replace(D9,R9);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Jb}return new a(r,t)}function R9(e){return"-"+e.toLowerCase()}function I9(e){return e.charAt(1).toUpperCase()}const _h={name:[[`
|
|
61
|
-
\f\r &/=>`.split(""),`
|
|
62
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
63
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
64
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
65
|
-
\f\r &>`.split(""),`\0
|
|
66
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
67
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
68
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function w9(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=zi);const f=N9(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!o||!T9(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!o||!eE(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function N9(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=O9(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function O9(e,t,n){const r=Gd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Gl(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_h.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?dm:fm)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Gl(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_h.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&xp(n,l)>xp(n,e.alternative)&&(l=e.alternative),c=l+Gl(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?_h.single:_h.double)[a][o],attribute:!0}))+l),d+(c&&"="+c))}const L9=["<","&"];function Wk(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:L9}))}function M9(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Wk(e,t,n,r)}function P9(e,t,n,r){return r.all(e)}const $9=um("type",{invalid:F9,unknown:B9,handlers:{comment:a9,doctype:i9,element:w9,raw:M9,root:P9,text:Wk}});function F9(e){throw new Error("Expected node, not `"+e+"`")}function B9(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const j9={},U9={},H9=[];function z9(e,t){const n=j9,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:G9,all:V9,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Fk,characterReferences:n.characterReferences||U9,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?zi:lc,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function G9(e,t,n){return $9(e,t,n,this)}function V9(e){const t=[],n=e&&e.children||H9;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function q9(e){return Array.isArray(e)?e:[e]}function hm(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const l=t?n[o]+(n[o+1]||""):n[o];a.push([l,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function tE(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Xk(e){return e==="ansi"||tE(e)}function nE(e){return e==="none"}function Zk(e){return nE(e)}function Jk(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Y9(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Q9(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return o.length?Y9(a,o):a})):e}async function e3(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ap(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function gs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function t3(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Fi.Italic&&(t["font-style"]="italic"),e.fontStyle&Fi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Fi.Underline&&(t["text-decoration"]="underline")),t}function K9(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function W9(e){const t=hm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const c of t){if(o<c.length)break;o-=c.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}let vr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const n3=new WeakMap;function pm(e,t){n3.set(e,t)}function pd(e){return n3.get(e)}let mm=class r3{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new r3(Object.fromEntries(q9(n).map(r=>[r,Ry])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return hS(this._stacks[this.theme])}getScopes(t=this.theme){return hS(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function hS(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function X9(e,t){if(!(e instanceof mm))throw new vr("Invalid grammar state");return e.getInternalStack(t)}function Z9(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new vr(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new vr(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new vr(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=W9(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));J9(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Q9(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new vr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,m,y,b){const _=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),y===0&&(x=0),y===Number.POSITIVE_INFINITY&&(x=_.children.length),C===-1||x===-1)for(let S=0;S<_.children.length;S++)A+=a3(_.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===y&&(x=S+1);if(C===-1)throw new vr(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(x===-1)throw new vr(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const D=_.children.slice(C,x);if(!b.alwaysWrap&&D.length===_.children.length)c(_,b,"line");else if(!b.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],b,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,b,"wrapper"),_.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,y){const b=m.properties||{},_=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},m.properties?.class&&Jk(p,m.properties.class),p=_(p,y)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:y}=p;if(m.line===y.line)o(m.line,m.character,y.character,p);else if(m.line<y.line){o(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let b=m.line+1;b<y.line;b++)d.unshift(()=>l(b,p));o(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function J9(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||c||d){if(l&&l||c&&d)continue;throw new vr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function a3(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(a3).join(""):""}const eF=[Z9()];function Sp(e){return[...e.transformers||[],...eF]}var ys=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],f1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function tF(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function pS(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function nF(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)f1[a]&&t.push({type:"setDecoration",value:f1[a]});else if(a<=29){const o=f1[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ys[a-30]}});else if(a===38){const[o,l]=pS(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ys[a-40]}});else if(a===48){const[o,l]=pS(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ys[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ys[a-100+8]}})}return t}function rF(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=tF(r,o),c=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=nF(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=l.position}while(o<r.length);return a}}}var aF={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function iF(e=aF){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<ys.length;f++)r.push(t(ys[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function o(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:l}}function oF(e,t,n){const r=Ap(e,n),a=hm(t),o=iF(Object.fromEntries(ys.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=rF();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?o.value(d.background):e.bg,p=d.foreground?o.value(d.foreground):e.fg):(f=d.foreground?o.value(d.foreground):e.fg,p=d.background?o.value(d.background):void 0),f=gs(f,r),p=gs(p,r),d.decorations.has("dim")&&(f=sF(f));let m=Fi.None;return d.decorations.has("bold")&&(m|=Fi.Bold),d.decorations.has("italic")&&(m|=Fi.Italic),d.decorations.has("underline")&&(m|=Fi.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function sF(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function rE(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(tE(r)||nE(a))return hm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return oF(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Bi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Bi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return cF(t,c,o,l,n)}function lF(...e){if(e.length===2)return pd(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(tE(a)||nE(o))throw new Bi("Plain language does not have grammar state");if(a==="ansi")throw new Bi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(o),d=t.getLanguage(a);return new mm(Cp(n,d,l,c,r).stateStack,d.name,l.name)}function cF(e,t,n,r,a){const o=Cp(e,t,n,r,a),l=new mm(Cp(e,t,n,r,a).stateStack,t.name,n.name);return pm(o.tokens,l),o.tokens}function Cp(e,t,n,r,a){const o=Ap(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=hm(e);let f=a.grammarState?X9(a.grammarState,n.name)??Ry:a.grammarContextCode!=null?Cp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ry,p=[];const m=[];for(let y=0,b=d.length;y<b;y++){const[_,A]=d[y];if(_===""){p=[],m.push([]);continue}if(l>0&&_.length>=l){p=[],m.push([{content:_,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(_,f),x=C.tokens,D=0);const S=t.tokenizeLine2(_,f,c),M=S.tokens.length/2;for(let L=0;L<M;L++){const I=S.tokens[2*L],V=L+1<M?S.tokens[2*L+2]:_.length;if(I===V)continue;const te=S.tokens[2*L+1],Q=gs(r[Xl.getForeground(te)],o),k=Xl.getFontStyle(te),H={content:_.substring(I,V),offset:A+I,color:Q,fontStyle:k};if(a.includeExplanation){const W=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(G=>G.trim());break;case"object":me=re.scope;break;default:continue}W.push({settings:re,selectors:me.map(G=>G.split(/ /))})}H.explanation=[];let K=0;for(;I+K<V;){const re=x[D],me=_.substring(re.startIndex,re.endIndex);K+=me.length,H.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?uF(re.scopes):dF(W,re.scopes)}),D+=1}}p.push(H)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function uF(e){return e.map(t=>({scopeName:t}))}function dF(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:hF(e,o,t.slice(0,r))}}return n}function mS(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function fF(e,t,n){if(!mS(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)mS(e[r],n[a])&&(r-=1),a-=1;return r===-1}function hF(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(fF(l,t,n)){r.push(o);break}return r}function i3(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=rE(e,t,{...n,theme:d.theme}),p=pd(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),o=pF(...a.map(d=>d.tokens)),l=o[0].map((d,f)=>d.map((p,m)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),o.forEach((b,_)=>{const{content:A,explanation:C,offset:x,...D}=b[f][m];y.variants[r[_].color]=D}),y})),c=a[0].state?new mm(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&pm(l,c),l}function pF(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),o=t.map(()=>[]);t.forEach((d,f)=>d.push(o[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(o[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(o[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function Dp(e,t,n){let r,a,o,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new Bi("`themes` option must not be empty");const y=i3(e,t,n);if(d=pd(y),f&&!m.find(C=>C.color===f))throw new Bi(`\`themes\` option must contain the defaultColor key \`${f}\``);const b=m.map(C=>e.getTheme(C.theme)),_=m.map(C=>C.color);o=y.map(C=>C.map(x=>mF(x,_,p,f))),d&&pm(o,d);const A=m.map(C=>Ap(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(gs(b[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(gs(b[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${b.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=Ap(n.theme,n);o=rE(e,t,n);const p=e.getTheme(n.theme);r=gs(p.bg,f),a=gs(p.fg,f),l=p.name,d=pd(o)}else throw new Bi("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function mF(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>t3(e.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={};return o.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,b=n+t[f]+(p==="color"?"":y);c[b]=m}}}),a.htmlStyle=c,a}function kp(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>kp(e,a,o),codeToTokens:(a,o)=>Dp(e,a,o)}){let a=t;for(const b of Sp(n))a=b.preprocess?.call(r,a,n)||a;let{tokens:o,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=Dp(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?o=yF(o):m==="never"&&(o=bF(o));const y={...r,get source(){return a}};for(const b of Sp(n))o=b.tokens?.call(y,o)||o;return gF(o,{...n,fg:l,bg:c,themeName:d,rootStyle:f},y,p)}function gF(e,t,n,r=pd(e)){const a=Sp(t),o=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([_])=>!_.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const m=[],y={...n,structure:c,addClassToHast:Jk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((_,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
69
|
-
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of _){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const M=K9(D.htmlStyle||t3(D));M&&(S.properties.style=M);for(const L of a)S=L?.span?.call(y,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(y,C,A+1)||C;m.push(C),o.push(C)}}),c==="classic"){for(const _ of a)p=_?.code?.call(y,p)||p;f.children.push(p);for(const _ of a)f=_?.pre?.call(y,f)||f;l.children.push(f)}let b=l;for(const _ of a)b=_?.root?.call(y,b)||b;return r&&pm(b,r),b}function yF(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const c=!(o.fontStyle&&o.fontStyle&Fi.Underline);c&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function bF(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+o.length}),c}))}function EF(e,t,n){const r={meta:{},options:n,codeToHast:(o,l)=>kp(e,o,l),codeToTokens:(o,l)=>Dp(e,o,l)};let a=z9(kp(e,t,n,r));for(const o of Sp(n))a=o.postprocess?.call(r,a,n)||a;return a}const gS={light:"#333333",dark:"#bbbbbb"},yS={light:"#fffffe",dark:"#1e1e1e"},bS="__shiki_resolved";function aE(e){if(e?.[bS])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?gS.light:gS.dark),n||(n=t.type==="light"?yS.light:yS.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function l(c){if(o.has(c))return o.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(o.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,bS,{enumerable:!1,writable:!1,value:!0}),t}async function o3(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Xk(t)).map(async t=>await e3(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function s3(e){return(await Promise.all(e.map(async t=>Zk(t)?null:aE(await e3(t))))).filter(t=>!!t)}let vF=class extends M${constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=aE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=bp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new vr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(o=>!r.includes(o));throw new vr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},TF=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},yu=0;function _F(e){yu+=1,e.warnings!==!1&&yu>=10&&yu%10===0&&console.warn(`[Shiki] ${yu} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new vr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(aE),a=new TF(e.engine,n),o=new vF(a,r,n,e.langAlias);let l;function c(D){C();const S=o.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new vr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=o.getTheme(D);if(!S)throw new vr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(o.setTheme(S),l=D);const M=o.getColorMap();return{theme:S,colorMap:M}}function p(){return C(),o.getLoadedThemes()}function m(){return C(),o.getLoadedLanguages()}function y(...D){C(),o.loadLanguages(D.flat(1))}async function b(...D){return y(await o3(D))}function _(...D){C();for(const S of D.flat(1))o.loadTheme(S)}async function A(...D){return C(),_(await s3(D))}function C(){if(t)throw new vr("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),yu-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:b,loadLanguageSync:y,loadTheme:A,loadThemeSync:_,dispose:x,[Symbol.dispose]:x}}async function xF(e={}){e.loadWasm;const[t,n,r]=await Promise.all([s3(e.themes||[]),o3(e.langs||[]),e.engine||_k(e.loadWasm||K8())]);return _F({...e,themes:t,langs:n,engine:r})}async function AF(e={}){const t=await xF(e);return{getLastGrammarState:(...n)=>lF(t,...n),codeToTokensBase:(n,r)=>rE(t,n,r),codeToTokensWithThemes:(n,r)=>i3(t,n,r),codeToTokens:(n,r)=>Dp(t,n,r),codeToHast:(n,r)=>kp(t,n,r),codeToHtml:(n,r)=>EF(t,n,r),...t,getInternalContext:()=>t}}function SF(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function l(c){function d(b){if(typeof b=="string"){if(Xk(b))return[];const _=r[b];if(!_)throw new Bi(`Language \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}function f(b){if(Zk(b))return"none";if(typeof b=="string"){const _=a[b];if(!_)throw new Bi(`Theme \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}const p=(c.themes??[]).map(b=>f(b)),m=(c.langs??[]).map(b=>d(b)),y=await AF({engine:c.engine??o(),...c,themes:p,langs:m});return{...y,loadLanguage(...b){return y.loadLanguage(...b.map(d))},loadTheme(...b){return y.loadTheme(...b.map(f))}}}return l}const CF=SF({langs:R8,themes:w8,engine:()=>_k(F(()=>import("./index.es220-CG6Dc4jp.js"),[]))}),h1={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},DF={...h1,patterns:[...h1.patterns,{include:"#docvar"}],repository:{...h1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},kF={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},l3="github-light",RF=CF({themes:[l3],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...DF},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...kF}]});async function Rp(e,t){return(await RF).codeToHtml(e,{lang:t,theme:l3})}const c3=w.createContext(void 0),Ip=({projectName:e,packageName:t,versionId:n,children:r})=>v.jsx(c3.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function Sa(e=!0){const t=w.useContext(c3);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const u3=nn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),md=nn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),IF=nn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ds.apply(this,arguments)}const wF=["children","options"],ES=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),vS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},NF=["style","script","pre"],OF=["src","href","data","formAction","srcDoc","action"],LF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,MF=/mailto:/i,PF=/\n{2,}$/,TS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,$F=/^ *> ?/gm,FF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,BF=/^ {2,}\n/,jF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,_S=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,xS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,UF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HF=/^(?:\n *)*\n/,zF=/\r\n?/g,GF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,VF=/^\[\^([^\]]+)]/,qF=/\f/g,YF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,QF=/^\s*?\[(x|\s)\]/,AS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,SS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CS=/^([^\n]+)\n *(=|-){3,} *\n/,p1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,KF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,DS=/^<!--[\s\S]*?(?:-->)/,WF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,m1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XF=/^\{.*\}$/,ZF=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,JF=/^<([^ >]+@[^ >]+)>/,eB=/^<([^ >]+:\/[^ >]+)>/,tB=/-([a-z])?/gi,kS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,nB=/^[^\n]+(?: \n|\n{2,})/,rB=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,aB=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iB=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oB=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sB=/\t/g,lB=/(^ *\||\| *$)/g,cB=/^ *:-+: *$/,uB=/^ *:-+ *$/,dB=/^ *-+: *$/,gm="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",fB=RegExp(`^([*_])\\1${gm}\\1\\1(?!\\1)`),hB=RegExp(`^([*_])${gm}\\1(?!\\1)`),pB=RegExp(`^(==)${gm}\\1`),mB=RegExp(`^(~~)${gm}\\1`),gB=/^(:[a-zA-Z0-9-_]+:)/,yB=/^\\([^0-9A-Za-z\s])/,bB=/\\([^0-9A-Za-z\s])/g,EB=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,vB=/^\n+/,TB=/^([ \t]*)/,_B=/(?:^|\n)( *)$/,iE="(?:\\d+\\.)",oE="(?:[*+-])";function d3(e){return"( *)("+(e===1?iE:oE)+") +"}const f3=d3(1),h3=d3(2);function p3(e){return RegExp("^"+(e===1?f3:h3))}const xB=p3(1),AB=p3(2);function m3(e){return RegExp("^"+(e===1?f3:h3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?iE:oE)+" )[^\\n]*)*(\\n|$)","gm")}const SB=m3(1),CB=m3(2);function g3(e){const t=e===1?iE:oE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const y3=g3(1),b3=g3(2);function RS(e,t){const n=t===1,r=n?y3:b3,a=n?SB:CB,o=n?xB:AB;return{t:l=>o.test(l),o:Zl(function(l,c){const d=_B.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(PF,`
|
|
70
|
-
`).match(a);let m=!1;return{items:p.map(function(y,b){const _=o.exec(y)[0].length,A=RegExp("^ {1,"+_+"}","gm"),C=y.replace(A,"").replace(o,""),x=b===p.length-1,D=C.indexOf(`
|
|
71
|
-
|
|
72
|
-
`)!==-1||x&&m;m=D;const S=d.inline,M=d.list;let L;d.list=!0,D?(d.inline=!1,L=ju(C)+`
|
|
73
|
-
|
|
74
|
-
`):(d.inline=!0,L=ju(C));const I=c(L,d);return d.inline=S,d.list=M,I}),ordered:n,start:f}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},c(f,d))}))}}const DB=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),kB=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function ju(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Vh(e,t){return e.startsWith(t)}function RB(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Vh(e,n[r]))return!0;return!1}return n(e,t)}function bu(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function IB(e){return dB.test(e)?"right":cB.test(e)?"center":uB.test(e)?"left":null}function IS(e,t,n,r){const a=n.inTable;n.inTable=!0;let o=[[]],l="";function c(){if(!l)return;const d=o[o.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(c(),r)?f!==0&&f!==p.length-1&&o.push([]):l+=d}),c(),n.inTable=a,o}function wB(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(lB,"").split("|").map(IB):[],a=e[3]?function(l,c,d){return l.trim().split(`
|
|
75
|
-
`).map(function(f){return IS(f,c,d,!0)})}(e[3],t,n):[],o=IS(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:"25"}:{children:o,type:"21"}}function wS(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Zl(e){return e.inline=1,e}function yo(e){return Zl(function(t,n){return n.inline?e.exec(t):null})}function bo(e){return Zl(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ii(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function xh(e){return Zl(function(t){return e.exec(t)})}const NB=/(javascript|vbscript|data(?!:image)):/i;function OB(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(NB.test(t))return null}catch{return null}return e}function Wa(e){return e&&e.replace(bB,"$1")}function qh(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function LB(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function MB(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const g1=(e,t,n)=>({children:qh(t,e[2],n)});function y1(){return{}}function b1(){return null}function PB(...e){return e.filter(Boolean).join(" ")}function E1(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function $B(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?ds({},vS,t.namedCodesToUnicode):vS;const n=t.slugify||bu,r=t.sanitizer||OB,a=t.createElement||w.createElement,o=[TS,_S,xS,t.enforceAtxHeadings?SS:AS,CS,kS,y3,b3],l=[...o,nB,p1,DS,m1];function c(x,D,...S){const M=E1(t.overrides,x+".props",{});return a(function(L,I){const V=E1(I,L);return V?typeof V=="function"||typeof V=="object"&&"render"in V?V:E1(I,L+".component",L):L}(x,t.overrides),ds({},D,M,{className:PB(D?.className,M.className)||void 0}),...S)}function d(x){x=x.replace(YF,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=oB.test(x)===!1);const S=_(b(D?x:ju(x).replace(vB,"")+`
|
|
76
|
-
|
|
77
|
-
`,{inline:D}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const M=t.wrapper||(D?"span":"div");let L;if(S.length>1||t.forceWrapper)L=S;else{if(S.length===1)return L=S[0],typeof L=="string"?c("span",{key:"outer"},L):L;L=null}return a(M,{key:"outer"},L)}function f(x,D){if(!D||!D.trim())return null;const S=D.match(LF);return S?S.reduce(function(M,L){const I=L.indexOf("=");if(I!==-1){const V=function(H){return H.indexOf("-")!==-1&&H.match(WF)===null&&(H=H.replace(tB,function(W,K){return K.toUpperCase()})),H}(L.slice(0,I)).trim(),te=function(H){const W=H[0];return(W==='"'||W==="'")&&H.length>=2&&H[H.length-1]===W?H.slice(1,-1):H}(L.slice(I+1).trim()),Q=ES[V]||V;if(Q==="ref")return M;const k=M[Q]=function(H,W,K,re){return W==="style"?function(me){const G=[];let oe="",le=!1,se=!1,P="";if(!me)return G;for(let he=0;he<me.length;he++){const O=me[he];if(O!=='"'&&O!=="'"||le||(se?O===P&&(se=!1,P=""):(se=!0,P=O)),O==="("&&oe.endsWith("url")?le=!0:O===")"&&le&&(le=!1),O!==";"||se||le)oe+=O;else{const ce=oe.trim();if(ce){const Ne=ce.indexOf(":");if(Ne>0){const Ie=ce.slice(0,Ne).trim(),Me=ce.slice(Ne+1).trim();G.push([Ie,Me])}}oe=""}}const Ce=oe.trim();if(Ce){const he=Ce.indexOf(":");if(he>0){const O=Ce.slice(0,he).trim(),ce=Ce.slice(he+1).trim();G.push([O,ce])}}return G}(K).reduce(function(me,[G,oe]){return me[G.replace(/(-[a-z])/g,le=>le[1].toUpperCase())]=re(oe,H,G),me},{}):OF.indexOf(W)!==-1?re(Wa(K),H,W):(K.match(XF)&&(K=Wa(K.slice(1,K.length-1))),K==="true"||K!=="false"&&K)}(x,V,te,r);typeof k=="string"&&(p1.test(k)||m1.test(k))&&(M[Q]=d(k.trim()))}else L!=="style"&&(M[ES[L]||L]=!0);return M},{}):null}const p=[],m={},y={0:{t:[">"],o:Ii(TS),i:1,u(x,D,S){const[,M,L]=x[0].replace($F,"").match(FF);return{alert:M,children:D(L,S)}},l(x,D,S){const M={key:S.key};return x.alert&&(M.className="markdown-alert-"+n(x.alert.toLowerCase(),bu),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",M,D(x.children,S))}},1:{o:xh(BF),i:1,u:y1,l:(x,D,S)=>c("br",{key:S.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:Ii(jF),i:1,u:y1,l:(x,D,S)=>c("hr",{key:S.key})},3:{t:[" "],o:Ii(xS),i:0,u:x=>({lang:void 0,text:Wa(ju(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,S)=>c("pre",{key:S.key},c("code",ds({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:Ii(_S),i:0,u:x=>({attrs:f("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:bo(UF),i:3,u:x=>({text:Wa(x[2])}),l:(x,D,S)=>c("code",{key:S.key},x.text)},6:{t:["[^"],o:Ii(GF),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:b1},7:{t:["[^"],o:yo(VF),i:1,u:x=>({target:"#"+n(x[1],bu),text:x[1]}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href")},c("sup",{key:S.key},x.text))},8:{t:["[ ]","[x]"],o:yo(QF),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,S)=>c("input",{checked:x.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ii(t.enforceAtxHeadings?SS:AS),i:1,u:(x,D,S)=>({children:qh(D,x[2],S),id:n(x[2],bu),level:x[1].length}),l:(x,D,S)=>c("h"+x.level,{id:x.id,key:S.key},D(x.children,S))},10:{o:Ii(CS),i:0,u:(x,D,S)=>({children:qh(D,x[1],S),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:xh(p1),i:1,u(x,D,S){const[,M]=x[3].match(TB),L=RegExp("^"+M,"gm"),I=x[3].replace(L,""),V=(te=I,l.some(K=>K.test(te))?MB:qh);var te;const Q=x[1].toLowerCase(),k=NF.indexOf(Q)!==-1,H=(k?Q:x[1]).trim(),W={attrs:f(H,x[2]),noInnerParse:k,tag:H};if(S.inAnchor=S.inAnchor||Q==="a",k)W.text=x[3];else{const K=S.inHTML;S.inHTML=!0,W.children=V(D,I,S),S.inHTML=K}return S.inAnchor=!1,W},l:(x,D,S)=>c(x.tag,ds({key:S.key},x.attrs),x.text||(x.children?D(x.children,S):""))},13:{t:["<"],o:xh(m1),i:1,u(x){const D=x[1].trim();return{attrs:f(D,x[2]||""),tag:D}},l:(x,D,S)=>c(x.tag,ds({},x.attrs,{key:S.key}))},12:{t:["<!--"],o:xh(DS),i:1,u:()=>({}),l:b1},14:{t:["!["],o:bo(kB),i:1,u:x=>({alt:Wa(x[1]),target:Wa(x[2]),title:Wa(x[3])}),l:(x,D,S)=>c("img",{key:S.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:yo(DB),i:3,u:(x,D,S)=>({children:LB(D,x[1],S),target:Wa(x[2]),title:Wa(x[3])}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href"),title:x.title},D(x.children,S))},16:{t:["<"],o:yo(eB),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(Vh(x,"http://")||Vh(x,"https://")),o:yo(ZF),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:yo(JF),i:0,u(x){let D=x[1],S=x[1];return MF.test(S)||(S="mailto:"+S),{children:[{text:D.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:RS(c,1),33:RS(c,2),19:{o:Ii(HF),i:3,u:y1,l:()=>`
|
|
78
|
-
`},21:{o:Zl(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
|
|
79
|
-
|
|
80
|
-
`)===-1&&D.prevCapture.indexOf(`
|
|
81
|
-
|
|
82
|
-
`)===-1)return null;let S="";x.split(`
|
|
83
|
-
`).every(L=>(L+=`
|
|
84
|
-
`,!o.some(I=>I.test(L))&&(S+=L,!!L.trim())));const M=ju(S);return M===""?null:[S,,M]}),i:3,u:g1,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:yo(rB),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:b1},23:{t:["!["],o:bo(aB),i:0,u:x=>({alt:x[1]?Wa(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:yo(iB),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:Ii(kS),i:1,u:wB,l(x,D,S){const M=x;return c("table",{key:S.key},c("thead",null,c("tr",null,M.header.map(function(L,I){return c("th",{key:I,style:wS(M,I)},D(L,S))}))),c("tbody",null,M.cells.map(function(L,I){return c("tr",{key:I},L.map(function(V,te){return c("td",{key:te,style:wS(M,te)},D(V,S))}))})))}},27:{o:Zl(function(x,D){let S;return Vh(x,":")&&(S=gB.exec(x)),S||EB.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(KF,(S,M)=>t.namedCodesToUnicode[M]||S)}},l:x=>x.text},28:{t:["**","__"],o:bo(fB),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:bo(hB),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:bo(yB),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:bo(pB),i:3,u:g1,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:bo(mB),i:3,u:g1,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const b=function(x){var D=Object.keys(x);function S(M,L){var I=[];if(L.prevCapture=L.prevCapture||"",M.trim())for(;M;)for(var V=0;V<D.length;){var te=D[V],Q=x[te];if(!Q.t||RB(M,L,Q.t)){var k=Q.o(M,L);if(k&&k[0]){M=M.substring(k[0].length);var H=Q.u(k,S,L);L.prevCapture+=k[0],H.type||(H.type=te),I.push(H);break}V++}else V++}return L.prevCapture="",I}return D.sort(function(M,L){return x[M].i-x[L].i||(M<L?-1:1)}),function(M,L){return S(function(I){return I.replace(zF,`
|
|
85
|
-
`).replace(qF,"").replace(sB," ")}(M),L)}}(y),_=(A=function(x,D){return function(S,M,L){const I=x[S.type].l;return D?D(()=>I(S,M,L),S,M,L):I(S,M,L)}}(y,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const M=S.key,L=[];let I=!1;for(let V=0;V<D.length;V++){S.key=V;const te=x(D[V],S),Q=typeof te=="string";Q&&I?L[L.length-1]+=te:te!==null&&L.push(te),I=Q}return S.key=M,L}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,bu),key:x.identifier},x.identifier,_(b(x.footnote,{inline:!0})))}))):C}const sE=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)o.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,wF);return w.cloneElement($B(t,n),r)};function E3({open:e,onClose:t,modelPath:n,data:r,title:a="Data Sources",hasValidImport:o=!0,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:o?v.jsx(Jw,{modelPath:n,data:r,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}const FB=w.lazy(()=>F(()=>import("./index.es24-CDJ3b9GD.js"),__vite__mapDeps([93,94,95])));function ym({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=w.useState(!1),[l,c]=w.useState(0),[d,f]=w.useState(!1),p=w.useRef(null),m=w.useRef(null),[y,b]=w.useState(void 0),[_,A]=w.useState(!1),C=w.useCallback(()=>{const L=a;o(!a),L&&m.current&&setTimeout(()=>{m.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),x=w.useCallback(L=>{c(L)},[]);if(w.useEffect(()=>{if(r){f(!1);return}if(_){f(!0);return}if(l===0){f(!1);return}const L=t-20,I=l>L;l<L&&b(l+20),f(I)},[l,_,t,r]),!e)return null;const D=v.jsx(dr,{text:"Loading...",centered:!0,size:32}),S=_?a?n-40:t-40:void 0,M=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(Ke,{ref:m,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...M},children:[v.jsx(Ke,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:d?"40px":1},children:e&&v.jsx(w.Suspense,{fallback:D,children:v.jsx(FB,{result:e,height:S,isFillElement:L=>{A(L)},onSizeChange:x})})||D}),d&&v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(xn,{size:"small",onClick:C,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?v.jsx(d5,{sx:{fontSize:30}}):v.jsx(f5,{sx:{fontSize:30}})})})]})})}function v3({open:e,onClose:t,result:n,title:r="Results"}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:v.jsx(ym,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}const T3=nn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),BB=new ik(new Xn);function jB(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["package",e,t,n],queryFn:c=>BB.getPackage(e,t,n,!1,c)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Package Config"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(pb,{dense:!0,disablePadding:!0,children:[v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!o&&v.jsx(fh,{children:v.jsx(dr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||v.jsxs(fh,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(T3,{sx:{color:"grey.600",mr:"10px"}}),v.jsx($u,{primary:"No package manifest"})]})),o&&v.jsx(fr,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const UB=new ok(new Xn);function HB(){const{projectName:e}=Vd(),{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["about",e],queryFn:o=>UB.getProject(e,!1,o)});return v.jsxs(v.Fragment,{children:[!n&&!r&&v.jsx(dr,{text:"Fetching About..."}),n&&t.data?.readme&&v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Readme"}),v.jsx(Ke,{sx:{mt:1},children:v.jsx(sE,{children:t.data.readme})})]})}),r&&v.jsx(fr,{error:a,context:`${e} > About`})]})}const zB=new ik(new Xn);function GB({navigate:e}){const{projectName:t}=Vd(),{data:n,isSuccess:r,isError:a,error:o}=mr({queryKey:["packages",t],queryFn:l=>zB.listPackages(t,l)});return v.jsxs(v.Fragment,{children:[!r&&!a&&v.jsx(dr,{text:"Fetching Packages..."}),r&&v.jsx(mn,{container:!0,spacing:3,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>v.jsx(mn,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Ui,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:c=>e(l.name,c),children:v.jsxs(Hi,{children:[v.jsx($e,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:l.name}),v.jsx(Ms,{sx:{mb:2}}),v.jsx(Ke,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:v.jsx($e,{variant:"body2",children:l.description})})]})})},l.name))}),a&&v.jsx(fr,{error:o,context:`${t} > Packages`})]})}const _3=w.createContext(void 0);function Vd(){const e=w.useContext(_3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function x3({children:e,projectName:t}){return v.jsx(_3.Provider,{value:{projectName:t},children:e})}function VB({navigate:e}){return v.jsx(wD,{children:v.jsxs(mn,{container:!0,spacing:3,columns:12,children:[v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(GB,{navigate:e})}),v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(HB,{})})]})})}const lE=new rk(new Xn);function qB({connectionName:e,schema:t}){const{projectName:n}=Vd(),[r,a]=Le.useState(void 0),[o,l]=Le.useState(t||null),[c,d]=Le.useState(!1),{data:f,isSuccess:p,isError:m,error:y,isLoading:b}=mr({queryKey:["tablePath",n,e],queryFn:_=>lE.listSchemas(n,e,_)});return v.jsxs(mn,{container:!0,spacing:1,children:[!t&&v.jsx(mn,{size:{xs:12,md:4},children:v.jsxs(Lh,{sx:{p:1,m:0},children:[v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[v.jsx($e,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(h5,{control:v.jsx(p5,{checked:c,onChange:_=>d(_.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(Ms,{sx:{mt:"2px"}}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&v.jsx(dr,{text:"Fetching Table Paths..."}),m&&v.jsx(fr,{error:y,context:`${n} > ${e}`}),p&&f.data.length===0&&v.jsx($e,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:_})=>c||!_).sort((_,A)=>_.isDefault===A.isDefault?0:_.isDefault?-1:1).map(_=>{const A=(_.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=v.jsx(U2,{selected:o===_.name,onClick:()=>l(_.name),children:v.jsx($u,{primary:_.name,secondary:x})},_.name);return C?v.jsx(fa,{title:A,arrow:!0,children:D},_.name):D})})]})]})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(QB,{connectionName:e,schemaName:o,onTableClick:_=>{a(_)}})})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:r&&o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(YB,{connectionName:e,schemaName:o,tableName:r})})})]})}function YB({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>lE.getTablesource(r,e,n,`${t}.${n}`,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Table Details..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}.${n}`}),o&&a&&v.jsx(mb,{children:v.jsxs(td,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"NAME"}),v.jsx(Ut,{children:"TYPE"})]})}),v.jsx(nd,{children:a.data.columns?.map(f=>v.jsxs(ri,{children:[v.jsx(Ut,{children:f.name}),v.jsx(Ut,{children:f.type})]},f.name))})]})})]})]})}function QB({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>lE.listTables(r,e,t,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Tables..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}`}),o&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No Tables"}),o&&a.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:a.data.map(f=>v.jsx(U2,{onClick:()=>n(f),children:v.jsx($u,{primary:f})},f))})]})]})}const KB=new rk(new Xn);function WB({connection:e,onClick:t}){return v.jsxs(ri,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:e.name}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",children:e.type})})]},e.name)}function XB(){const{projectName:e}=Sa(),[t,n]=w.useState(null),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["connections",e],queryFn:f=>KB.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return v.jsxs(x3,{projectName:e,children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Database Connections"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!o&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})})]}),r.data.map(f=>v.jsx(WB,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&v.jsx($e,{variant:"body2",children:"No Connections"}),o&&v.jsx(fr,{error:l,context:`${e} > Connections`})]})]})}),v.jsxs(No,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{children:["Connection Explorer: ",t,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:t&&v.jsx(qB,{connectionName:t})})]})]})}const ZB=new $7(new Xn);function JB(){const{projectName:e,packageName:t,versionId:n}=Sa(),[r,a]=Le.useState(!1),[o,l]=Le.useState(null),c=_=>{l(_),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:y}=mr({queryKey:["databases",e,t,n],queryFn:_=>ZB.listDatabases(e,t,n,_)}),b=_=>_>=1024*1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} T`:_>=1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} G`:_>=1024*1024?`${(_/(1024*1024)).toFixed(2)} M`:`${(_/1024).toFixed(2)} K`;return v.jsxs(v.Fragment,{children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Embedded Databases"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!y&&!p&&v.jsx(dr,{text:"Fetching Databases..."}),p&&v.jsx(fr,{error:m,context:`${e} > ${t} > Databases`}),y&&f.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),f.data.map(_=>v.jsxs(ri,{onClick:()=>c(_),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{component:"th",scope:"row",children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:_.path}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",children:b(_.info.rowCount)})})]},_.path))]})}),y&&f.data.length===0&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(No,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(Oo,{children:[o?.path,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:o?.info?.columns&&v.jsx(mb,{children:v.jsxs(td,{size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"Column"}),v.jsx(Ut,{children:"Type"})]})}),v.jsx(nd,{children:o.info.columns.map(_=>v.jsxs(ri,{children:[v.jsx(Ut,{component:"th",scope:"row",children:_.name}),v.jsx(Ut,{children:_.type})]},_.name))})]})})})]})]})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}const A3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},S3=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:S3(e,n.parentId);let l=r[o],c=A3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Yh=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},C3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=A3(e,n);if(r==null)return t;t=r}return t},gd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),D3=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=o.indexOf(d)!==-1,m=!0,y=!0;for(;!p&&!f;)m&&(o.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),y&&!f&&(l.push(d),p=o.indexOf(d)!==-1,y=d!==null,!p&&y&&(d=e.getItemMeta(d).parentId));const b=f?c:d,_=e.getItemOrderedChildrenIds(b),A=o[o.indexOf(b)-1],C=l[l.indexOf(b)-1];return _.indexOf(A)<_.indexOf(C)?[t,n]:[n,t]},ej=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,o]=D3(e,t,n),l=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},tj=e=>{let t=gd(e);const n=[];for(;t!=null;)n.push(t),t=Yh(e,t);return n},yd=(e,t)=>t!==e.closest('*[role="treeitem"]');let NS=0;const nj=()=>(NS+=1,`mui-tree-view-${NS}`),cE=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,k3=w.createContext(null),js=()=>{const e=w.useContext(k3);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
86
|
-
`));return e},uE=w.createContext(()=>-1),As=(e,t)=>e.getAvailablePlugins().has(t),rj=({props:e})=>{const{instance:t}=js(),{label:n,itemId:r}=e,[a,o]=w.useState(n),l=t.isItemBeingEdited(r);return w.useEffect(()=>{l||o(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),o(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},_a=({instance:e,state:t,setState:n,params:r})=>{const a=w.useRef(t.editedItemId),o=m=>a.current===m,l=m=>{n(y=>Ae({},y,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const y=e.getItem(m);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(m,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
|
|
87
|
-
`));n(b=>{const _=b.items.itemMetaMap[m];return _.label!==y?Ae({},b,{items:Ae({},b.items,{itemMetaMap:Ae({},b.items.itemMetaMap,{[m]:Ae({},_,{label:y})})})}):b}),r.onItemLabelChange&&r.onItemLabelChange(m,y)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};_a.itemPlugin=rj;_a.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};_a.getInitialState=()=>({editedItemId:null});_a.params={onItemLabelChange:!0,isItemEditable:!0};const R3=e=>Array.isArray(e)?e.length>0&&e.some(R3):!!e,aj=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=js(),o={expandable:R3(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},l=p=>{if(o.disabled)return;o.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);o.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{o.disabled||(!o.focused&&!o.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{As(n,_a)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{As(n,_a)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{As(n,_a)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:o,publicAPI:a}};function oi(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const l=o,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ha(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const ij=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=js(),m=w.useContext(uE),{id:y,itemId:b,label:_,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:M,status:L}=aj({itemId:b,children:A}),I=w.useRef(null),V=w.useRef(null),te=oi(C,x,I),Q=oi(D,V),k=w.useRef(null),H=cE({itemId:b,treeId:d,id:y}),W=f.canItemBeTabbed(b)?0:-1,K={rootRefObject:I,contentRefObject:V,interactions:M},re=he=>O=>{if(he.onFocus?.(O),O.defaultMuiPrevented)return;const ce=!L.disabled||r;!L.focused&&ce&&O.currentTarget===O.target&&f.focusItem(O,b)},me=he=>O=>{if(he.onBlur?.(O),O.defaultMuiPrevented)return;const ce=f.getItemDOMElement(b);L.editing||O.relatedTarget&&yd(O.relatedTarget,ce)&&(O.target&&O.target?.dataset?.element==="labelInput"&&yd(O.target,ce)||O.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},G=he=>O=>{he.onKeyDown?.(O),!(O.defaultMuiPrevented||O.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(O,b)},oe=he=>O=>{he.onDoubleClick?.(O),!O.defaultMuiPrevented&&M.toggleItemEditing()},le=he=>O=>{he.onClick?.(O),n?.(O,b),!(O.defaultMuiPrevented||k.current?.contains(O.target))&&(c==="content"&&M.handleExpansion(O),l||M.handleSelection(O))},se=he=>O=>{he.onMouseDown?.(O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||L.disabled)&&O.preventDefault()},P=he=>O=>{he.onChange?.(O),!O.defaultMuiPrevented&&(o||L.disabled||M.handleCheckboxSelection(O))},Ce=he=>O=>{he.onClick?.(O),!O.defaultMuiPrevented&&c==="iconContainer"&&M.handleExpansion(O)};return{getRootProps:(he={})=>{const O=Ae({},ha(e),ha(he));let ce;L.selected?ce=!0:o||L.disabled?ce=void 0:ce=!1;const Ne=Ae({},O,{ref:te,role:"treeitem",tabIndex:W,id:H,"aria-expanded":L.expandable?L.expanded:void 0,"aria-selected":ce,"aria-disabled":L.disabled||void 0},he,{onFocus:re(O),onBlur:me(O),onKeyDown:G(O)});a&&(Ne.style={"--TreeView-itemDepth":typeof m=="function"?m(b):m});const Ie=S.root?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},Ne,Ie)},getContentProps:(he={})=>{const O=ha(he),ce=Ae({},O,he,{ref:Q,onClick:le(O),onMouseDown:se(O),status:L});a&&(ce.indentationAtItemLevel=!0);const Ne=S.content?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},ce,Ne)},getGroupTransitionProps:(he={})=>{const O=ha(he),ce=Ae({},O,{unmountOnExit:!0,component:"ul",role:"group",in:L.expanded,children:A},he);return a&&(ce.indentationAtItemLevel=!0),ce},getIconContainerProps:(he={})=>{const O=ha(he);return Ae({},O,he,{onClick:Ce(O)})},getCheckboxProps:(he={})=>{const O=ha(he);return Ae({},O,{visible:l,ref:k,checked:L.selected,disabled:o||L.disabled,tabIndex:-1},he,{onChange:P(O)})},getLabelProps:(he={})=>{const O=Ae({},ha(he)),ce=Ae({},O,{children:_},he,{onDoubleClick:oe(O)});return f.isTreeViewEditable&&(ce.editable=L.editable),ce},getLabelInputProps:(he={})=>{const O=ha(he),ce=S.labelInput?.({rootRefObject:I,contentRefObject:V,externalEventHandlers:O,interactions:M})??{};return Ae({},he,ce)},getDragAndDropOverlayProps:(he={})=>{const O=ha(he),ce=S.dragAndDropOverlay?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},he,ce)},rootRef:te,status:L,publicAPI:p}},oj=ij,sj=nn(v.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),lj=nn([v.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),v.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]);var dE=Yd(),lt=e=>qd(e,dE),fE=Yd();lt.write=e=>qd(e,fE);var bm=Yd();lt.onStart=e=>qd(e,bm);var hE=Yd();lt.onFrame=e=>qd(e,hE);var pE=Yd();lt.onFinish=e=>qd(e,pE);var Vl=[];lt.setTimeout=(e,t)=>{const n=lt.now()+t,r=()=>{const o=Vl.findIndex(l=>l.cancel==r);~o&&Vl.splice(o,1),Do-=~o?1:0},a={time:n,handler:e,cancel:r};return Vl.splice(I3(n),0,a),Do+=1,w3(),a};var I3=e=>~(~Vl.findIndex(t=>t.time>e)||~Vl.length);lt.cancel=e=>{bm.delete(e),hE.delete(e),pE.delete(e),dE.delete(e),fE.delete(e)};lt.sync=e=>{My=!0,lt.batchedUpdates(e),My=!1};lt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,lt.onStart(n)}return r.handler=e,r.cancel=()=>{bm.delete(n),t=null},r};var mE=typeof window<"u"?window.requestAnimationFrame:()=>{};lt.use=e=>mE=e;lt.now=typeof performance<"u"?()=>performance.now():Date.now;lt.batchedUpdates=e=>e();lt.catch=console.error;lt.frameLoop="always";lt.advance=()=>{lt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O3()};var Co=-1,Do=0,My=!1;function qd(e,t){My?(t.delete(e),e(0)):(t.add(e),w3())}function w3(){Co<0&&(Co=0,lt.frameLoop!=="demand"&&mE(N3))}function cj(){Co=-1}function N3(){~Co&&(mE(N3),lt.batchedUpdates(O3))}function O3(){const e=Co;Co=lt.now();const t=I3(Co);if(t&&(L3(Vl.splice(0,t),n=>n.handler()),Do-=t),!Do){cj();return}bm.flush(),dE.flush(e?Math.min(64,Co-e):16.667),hE.flush(),fE.flush(),pE.flush()}function Yd(){let e=new Set,t=e;return{add(n){Do+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Do-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Do-=t.size,L3(t,r=>r(n)&&e.add(r)),Do+=e.size,t=e)}}}function L3(e,t){e.forEach(n=>{try{t(n)}catch(r){lt.catch(r)}})}var uj=Object.defineProperty,dj=(e,t)=>{for(var n in t)uj(e,n,{get:t[n],enumerable:!0})},Ma={};dj(Ma,{assign:()=>hj,colors:()=>wo,createStringInterpolator:()=>yE,skipAnimation:()=>P3,to:()=>M3,willAdvance:()=>bE});function Py(){}var fj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Li(e,t){if(we.arr(e)){if(!we.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function si(e,t,n){if(we.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Xr=e=>we.und(e)?[]:we.arr(e)?e:[e];function Uu(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Lu=(e,...t)=>Uu(e,n=>n(...t)),gE=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yE,M3,wo=null,P3=!1,bE=Py,hj=e=>{e.to&&(M3=e.to),e.now&&(lt.now=e.now),e.colors!==void 0&&(wo=e.colors),e.skipAnimation!=null&&(P3=e.skipAnimation),e.createStringInterpolator&&(yE=e.createStringInterpolator),e.requestAnimationFrame&<.use(e.requestAnimationFrame),e.batchedUpdates&&(lt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(bE=e.willAdvance),e.frameLoop&&(lt.frameLoop=e.frameLoop)},Hu=new Set,Ta=[],v1=[],wp=0,Em={get idle(){return!Hu.size&&!Ta.length},start(e){wp>e.priority?(Hu.add(e),lt.onStart(pj)):($3(e),lt($y))},advance:$y,sort(e){if(wp)lt.onFrame(()=>Em.sort(e));else{const t=Ta.indexOf(e);~t&&(Ta.splice(t,1),F3(e))}},clear(){Ta=[],Hu.clear()}};function pj(){Hu.forEach($3),Hu.clear(),lt($y)}function $3(e){Ta.includes(e)||F3(e)}function F3(e){Ta.splice(mj(Ta,t=>t.priority>e.priority),0,e)}function $y(e){const t=v1;for(let n=0;n<Ta.length;n++){const r=Ta[n];wp=r.priority,r.idle||(bE(r),r.advance(e),r.idle||t.push(r))}return wp=0,v1=Ta,v1.length=0,Ta=t,Ta.length>0}function mj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var gj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Na="[-+]?\\d*\\.?\\d+",Np=Na+"%";function vm(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yj=new RegExp("rgb"+vm(Na,Na,Na)),bj=new RegExp("rgba"+vm(Na,Na,Na,Na)),Ej=new RegExp("hsl"+vm(Na,Np,Np)),vj=new RegExp("hsla"+vm(Na,Np,Np,Na)),Tj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_j=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xj=/^#([0-9a-fA-F]{6})$/,Aj=/^#([0-9a-fA-F]{8})$/;function Sj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xj.exec(e))?parseInt(t[1]+"ff",16)>>>0:wo&&wo[e]!==void 0?wo[e]:(t=yj.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|255)>>>0:(t=bj.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|MS(t[4]))>>>0:(t=Tj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Aj.exec(e))?parseInt(t[1],16)>>>0:(t=_j.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ej.exec(e))?(OS(LS(t[1]),Ah(t[2]),Ah(t[3]))|255)>>>0:(t=vj.exec(e))?(OS(LS(t[1]),Ah(t[2]),Ah(t[3]))|MS(t[4]))>>>0:null}function T1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=T1(a,r,e+1/3),l=T1(a,r,e),c=T1(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function kl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function LS(e){return(parseFloat(e)%360+360)%360/360}function MS(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ah(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function PS(e){let t=Sj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${o})`}var bd=(e,t,n)=>{if(we.fun(e))return e;if(we.arr(e))return bd({range:e,output:t,extrapolate:n});if(we.str(e.output[0]))return yE(e);const r=e,a=r.output,o=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=Dj(f,o);return Cj(f,o[p],o[p+1],a[p],a[p+1],d,l,c,r.map)}};function Cj(e,t,n,r,a,o,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=o(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function Dj(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var kj={linear:e=>e},Ed=Symbol.for("FluidValue.get"),Jl=Symbol.for("FluidValue.observers"),ba=e=>!!(e&&e[Ed]),wr=e=>e&&e[Ed]?e[Ed]():e,$S=e=>e[Jl]||null;function Rj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function vd(e,t){const n=e[Jl];n&&n.forEach(r=>{Rj(r,t)})}var B3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ij(this,e)}},Ij=(e,t)=>j3(e,Ed,t);function cc(e,t){if(e[Ed]){let n=e[Jl];n||j3(e,Jl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Td(e,t){const n=e[Jl];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Jl]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var j3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,FS=new RegExp(`(${Qh.source})(%|[a-z]+)`,"i"),Nj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Tm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,U3=e=>{const[t,n]=Oj(e);if(!t||gE())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Tm.test(n))return U3(n);if(n)return n}return e},Oj=e=>{const t=Tm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},_1,Lj=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,H3=e=>{_1||(_1=wo?new RegExp(`(${Object.keys(wo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>wr(o).replace(Tm,U3).replace(wj,PS).replace(_1,PS)),n=t.map(o=>o.match(Qh).map(Number)),a=n[0].map((o,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(o=>bd({...e,output:o}));return o=>{const l=!FS.test(t[0])&&t.find(d=>FS.test(d))?.replace(Qh,"");let c=0;return t[0].replace(Qh,()=>`${a[c++](o)}${l||""}`).replace(Nj,Lj)}},EE="react-spring: ",z3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${EE}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Mj=z3(console.warn);function Pj(){Mj(`${EE}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $j=z3(console.warn);function Fj(){$j(`${EE}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function _m(e){return we.str(e)&&(e[0]=="#"||/\d/.test(e)||!gE()&&Tm.test(e)||e in(wo||{}))}var vE=gE()?w.useEffect:w.useLayoutEffect,Bj=()=>{const e=w.useRef(!1);return vE(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function G3(){const e=w.useState()[1],t=Bj();return()=>{t.current&&e(Math.random())}}var V3=e=>w.useEffect(e,jj),jj=[];function BS(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e}),t.current}var _d=Symbol.for("Animated:node"),Uj=e=>!!e&&e[_d]===e,ei=e=>e&&e[_d],TE=(e,t)=>fj(e,_d,t),xm=e=>e&&e[_d]&&e[_d].getPayload(),q3=class{constructor(){TE(this,this)}getPayload(){return this.payload||[]}},Am=class Y3 extends q3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,we.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Y3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return we.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,we.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Op=class Q3 extends Am{constructor(t){super(0),this._string=null,this._toString=bd({output:[t,t]})}static create(t){return new Q3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(we.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=bd({output:[this.getValue(),t]})),this._value=0,super.reset()}},Lp={dependencies:null},Sm=class extends q3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return si(this.source,(n,r)=>{Uj(n)?t[r]=n.getValue(e):ba(n)?t[r]=wr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return si(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Lp.dependencies&&ba(e)&&Lp.dependencies.add(e);const t=xm(e);t&&xt(t,n=>this.add(n))}},Hj=class K3 extends Sm{constructor(t){super(t)}static create(t){return new K3(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map(zj)),!0)}};function zj(e){return(_m(e)?Op:Am).create(e)}function Fy(e){const t=ei(e);return t?t.constructor:we.arr(e)?Hj:_m(e)?Op:Am}var jS=(e,t)=>{const n=!we.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,a)=>{const o=w.useRef(null),l=n&&w.useCallback(_=>{o.current=qj(a,_)},[a]),[c,d]=Vj(r,t),f=G3(),p=()=>{const _=o.current;if(n&&!_)return;(_?t.applyAnimatedValues(_,c.getValue(!0)):!1)===!1&&f()},m=new Gj(p,d),y=w.useRef(void 0);vE(()=>(y.current=m,xt(d,_=>cc(_,m)),()=>{y.current&&(xt(y.current.deps,_=>Td(_,y.current)),lt.cancel(y.current.update))})),w.useEffect(p,[]),V3(()=>()=>{const _=y.current;xt(_.deps,A=>Td(A,_))});const b=t.getComponentProps(c.getValue());return w.createElement(e,{...b,ref:l})})},Gj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&<.write(this.update)}};function Vj(e,t){const n=new Set;return Lp.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Sm(e),Lp.dependencies=null,[e,n]}function qj(e,t){return e&&(we.fun(e)?e(t):e.current=t),t}var US=Symbol.for("AnimatedComponent"),Yj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Sm(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=l=>{const c=HS(l)||"Anonymous";return we.str(l)?l=o[l]||(o[l]=jS(l,a)):l=l[US]||(l[US]=jS(l,a)),l.displayName=`Animated(${c})`,l};return si(e,(l,c)=>{we.arr(e)&&(c=HS(l)),o[c]=o(l)}),{animated:o}},HS=e=>we.str(e)?e:e&&we.str(e.displayName)?e.displayName:we.fun(e)&&e.name||null;function fs(e,...t){return we.fun(e)?e(...t):e}var zu=(e,t)=>e===!0||!!(t&&e&&(we.fun(e)?e(t):Xr(e).includes(t))),W3=(e,t)=>we.obj(e)?t&&e[t]:e,X3=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Qj=e=>e,_E=(e,t=Qj)=>{let n=Kj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const o=t(e[a],a);we.und(o)||(r[a]=o)}return r},Kj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Wj={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Xj(e){const t={};let n=0;if(si(e,(r,a)=>{Wj[a]||(t[a]=r,n++)}),n)return t}function Z3(e){const t=Xj(e);if(t){const n={to:t};return si(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function xd(e){return e=wr(e),we.arr(e)?e.map(xd):_m(e)?Ma.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Zj(e){for(const t in e)return!0;return!1}function By(e){return we.fun(e)||we.arr(e)&&we.obj(e[0])}function Jj(e,t){e.ref?.delete(e),t?.delete(e)}function eU(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tU={default:{tension:170,friction:26}},jy={...tU.default,mass:1,damping:1,easing:kj.linear,clamp:!1},nU=class{constructor(){this.velocity=0,Object.assign(this,jy)}};function rU(e,t,n){n&&(n={...n},zS(n,t),t={...n,...t}),zS(e,t),Object.assign(e,t);for(const l in jy)e[l]==null&&(e[l]=jy[l]);let{frequency:r,damping:a}=e;const{mass:o}=e;return we.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r),e}function zS(e,t){if(!we.und(t.decay))e.duration=void 0;else{const n=!we.und(t.tension)||!we.und(t.friction);(n||!we.und(t.frequency)||!we.und(t.damping)||!we.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var GS=[],aU=class{constructor(){this.changed=!1,this.values=GS,this.toValues=null,this.fromValues=GS,this.config=new nU,this.immediate=!1}};function J3(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((l,c)=>{let d,f,p=zu(n.cancel??r?.cancel,t);if(p)b();else{we.und(n.pause)||(a.paused=zu(n.pause,t));let _=r?.pause;_!==!0&&(_=a.paused||zu(_,t)),d=fs(n.delay||0,t),_?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function m(){a.resumeQueue.add(y),a.timeouts.delete(f),f.cancel(),d=f.time-lt.now()}function y(){d>0&&!Ma.skipAnimation?(a.delayed=!0,f=lt.setTimeout(b,d),a.pauseQueue.add(m),a.timeouts.add(f)):b()}function b(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{o.start({...n,callId:e,cancel:p},l)}catch(_){c(_)}}})}var xE=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ql(e.get()):t.every(n=>n.noop)?eR(e.get()):wa(e.get(),t.every(n=>n.finished)),eR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),wa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ql=e=>({value:e,cancelled:!0,finished:!1});function tR(e,t,n,r){const{callId:a,parentId:o,onRest:l}=t,{asyncTo:c,promise:d}=n;return!o&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=_E(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const y=new Promise((C,x)=>(p=C,m=x)),b=C=>{const x=a<=(n.cancelId||0)&&ql(r)||a!==n.asyncId&&wa(r,!1);if(x)throw C.result=x,m(C),C},_=(C,x)=>{const D=new VS,S=new qS;return(async()=>{if(Ma.skipAnimation)throw Ad(n),S.result=wa(r,!1),m(S),S;b(D);const M=we.obj(C)?{...C}:{...x,to:C};M.parentId=a,si(f,(I,V)=>{we.und(M[V])&&(M[V]=I)});const L=await r.start(M);return b(D),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),L})()};let A;if(Ma.skipAnimation)return Ad(n),wa(r,!1);try{let C;we.arr(e)?C=(async x=>{for(const D of x)await _(D)})(e):C=Promise.resolve(e(_,r.stop.bind(r))),await Promise.all([C.then(p),y]),A=wa(r.get(),!0,!1)}catch(C){if(C instanceof VS)A=C.result;else if(C instanceof qS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?c:void 0,n.promise=o?d:void 0)}return we.fun(l)&<.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function Ad(e,t){Uu(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var VS=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},qS=class extends Error{constructor(){super("SkipAnimationSignal")}},Uy=e=>e instanceof AE,iU=1,AE=class extends B3{constructor(){super(...arguments),this.id=iU++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ei(this);return e&&e.getValue()}to(...e){return Ma.to(this,e)}interpolate(...e){return Pj(),Ma.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){vd(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Em.sort(this),vd(this,{type:"priority",parent:this,priority:e})}},ws=Symbol.for("SpringPhase"),nR=1,Hy=2,zy=4,x1=e=>(e[ws]&nR)>0,Eo=e=>(e[ws]&Hy)>0,Eu=e=>(e[ws]&zy)>0,YS=(e,t)=>t?e[ws]|=Hy|nR:e[ws]&=~Hy,QS=(e,t)=>t?e[ws]|=zy:e[ws]&=~zy,oU=class extends AE{constructor(e,t){if(super(),this.animation=new aU,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!we.und(e)||!we.und(t)){const n=we.obj(e)?{...e}:{...t,from:e};we.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Eo(this)||this._state.asyncTo)||Eu(this)}get goal(){return wr(this.animation.to)}get velocity(){const e=ei(this);return e instanceof Am?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return x1(this)}get isAnimating(){return Eo(this)}get isPaused(){return Eu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,l=xm(r.to);!l&&ba(r.to)&&(a=Xr(wr(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==Op?1:l?l[p].lastPosition:a[p];let y=r.immediate,b=m;if(!y){if(b=f.lastPosition,o.tension<=0){f.done=!0;return}let _=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=we.arr(o.velocity)?o.velocity[p]:o.velocity;let x;const D=o.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(we.und(o.duration))if(o.decay){const S=o.decay===!0?.998:o.decay,M=Math.exp(-(1-S)*_);b=A+C/(1-S)*(1-M),y=Math.abs(f.lastPosition-b)<=D,x=C*M}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=o.restVelocity||D/10,M=o.clamp?0:o.bounce,L=!we.und(M),I=A==m?f.v0>0:A<m;let V,te=!1;const Q=1,k=Math.ceil(e/Q);for(let H=0;H<k&&(V=Math.abs(x)>S,!(!V&&(y=Math.abs(m-b)<=D,y)));++H){L&&(te=b==m||b>m==I,te&&(x=-x*M,b=m));const W=-o.tension*1e-6*(b-m),K=-o.friction*.001*x,re=(W+K)/o.mass;x=x+re*Q,b=b+x*Q}}else{let S=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,f.durationProgress>0&&(f.elapsedTime=o.duration*f.durationProgress,_=f.elapsedTime+=e)),S=(o.progress||0)+_/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),b=A+o.easing(S)*(m-A),x=(b-f.lastPosition)/e,y=S==1}f.lastVelocity=x,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),y=!0)}l&&!l[p].done&&(y=!1),y?f.done=!0:t=!1,f.setValue(b,o.round)&&(n=!0)});const c=ei(this),d=c.getValue();if(t){const f=wr(r.to);(d!==f||n)&&!o.decay?(c.setValue(f),this._onChange(f)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return lt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Eo(this)){const{to:e,config:t}=this.animation;lt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return we.und(e)?(n=this.queue||[],this.queue=[]):n=[we.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>xE(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ad(this._state,e&&this._lastCallId),lt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=we.obj(n)?n[t]:n,(n==null||By(n))&&(n=void 0),r=we.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return x1(this)||(e.reverse&&([n,r]=[r,n]),r=wr(r),we.und(r)?ei(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_E(e,(l,c)=>/^on/.test(c)?W3(l,n):l)),WS(this,e,"onProps"),Tu(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return J3(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Eu(this)||(QS(this,!0),Lu(o.pauseQueue),Tu(this,"onPause",wa(this,vu(this,this.animation.to)),this))},resume:()=>{Eu(this)&&(QS(this,!1),Eo(this)&&this._resume(),Lu(o.resumeQueue),Tu(this,"onResume",wa(this,vu(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=rR(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ql(this));const r=!we.und(e.to),a=!we.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ql(this));const{key:o,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||we.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const y=!Li(m,f);y&&(c.from=m),m=wr(m);const b=!Li(p,d);b&&this._focus(p);const _=By(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!_&&rU(A,fs(t.config,o),t.config!==l.config?fs(l.config,o):void 0);let D=ei(this);if(!D||we.und(p))return n(wa(this,!0));const S=we.und(t.reset)?a&&!t.default:!we.und(m)&&zu(t.reset,o),M=S?m:this.get(),L=xd(p),I=we.num(L)||we.arr(L)||_m(L),V=!_&&(!I||zu(l.immediate||t.immediate,o));if(b){const H=Fy(p);if(H!==D.constructor)if(V)D=this._set(L);else throw Error(`Cannot animate between ${D.constructor.name} and ${H.name}, as the "to" prop suggests`)}const te=D.constructor;let Q=ba(p),k=!1;if(!Q){const H=S||!x1(this)&&y;(b||H)&&(k=Li(xd(M),L),Q=!k),(!Li(c.immediate,V)&&!V||!Li(A.decay,C)||!Li(A.velocity,x))&&(Q=!0)}if(k&&Eo(this)&&(c.changed&&!S?Q=!0:Q||this._stop(d)),!_&&((Q||ba(d))&&(c.values=D.getPayload(),c.toValues=ba(p)?null:te==Op?[1]:Xr(L)),c.immediate!=V&&(c.immediate=V,!V&&!S&&this._set(d)),Q)){const{onRest:H}=c;xt(lU,K=>WS(this,t,K));const W=wa(this,vu(this,d));Lu(this._pendingCalls,W),this._pendingCalls.add(n),c.changed&<.batchedUpdates(()=>{c.changed=!S,H?.(W,this),S?fs(l.onRest,W):c.onStart?.(W,this)})}S&&this._set(M),_?n(tR(t.to,t,this._state,this)):Q?this._start():Eo(this)&&!b?this._pendingCalls.add(n):n(eR(M))}_focus(e){const t=this.animation;e!==t.to&&($S(this)&&this._detach(),t.to=e,$S(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ba(t)&&(cc(t,this),Uy(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ba(e)&&Td(e,this)}_set(e,t=!0){const n=wr(e);if(!we.und(n)){const r=ei(this);if(!r||!Li(n,r.getValue())){const a=Fy(n);!r||r.constructor!=a?TE(this,a.create(n)):r.setValue(n),r&<.batchedUpdates(()=>{this._onChange(n,t)})}}return ei(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Tu(this,"onStart",wa(this,vu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),fs(this.animation.onChange,e,this)),fs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ei(this).reset(wr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Eo(this)||(YS(this,!0),Eu(this)||this._resume())}_resume(){Ma.skipAnimation?this.finish():Em.start(this)}_stop(e,t){if(Eo(this)){YS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),vd(this,{type:"idle",parent:this});const r=t?ql(this.get()):wa(this.get(),vu(this,e??n.to));Lu(this._pendingCalls,r),n.changed&&(n.changed=!1,Tu(this,"onRest",r,this))}}};function vu(e,t){const n=xd(t),r=xd(e.get());return Li(r,n)}function rR(e,t=e.loop,n=e.to){const r=fs(t);if(r){const a=r!==!0&&Z3(r),o=(a||e).reverse,l=!a||a.reset;return Sd({...e,loop:t,default:!1,pause:void 0,to:!o||By(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function Sd(e){const{to:t,from:n}=e=Z3(e),r=new Set;return we.obj(t)&&KS(t,r),we.obj(n)&&KS(n,r),e.keys=r.size?Array.from(r):null,e}function sU(e){const t=Sd(e);return we.und(t.default)&&(t.default=_E(t)),t}function KS(e,t){si(e,(n,r)=>n!=null&&t.add(r))}var lU=["onStart","onRest","onChange","onPause","onResume"];function WS(e,t,n){e.animation[n]=t[n]!==X3(t,n)?W3(t[n],e.key):void 0}function Tu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cU=["onStart","onChange","onRest"],uU=1,dU=class{constructor(e,t){this.id=uU++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];we.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Sd(e)),this}start(e){let{queue:t}=this;return e?t=Xr(e).map(Sd):this.queue=[],this._flush?this._flush(this,t):(lR(this,t),Gy(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Xr(t),r=>n[r].stop(!!e))}else Ad(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(we.und(e))this.start({pause:!0});else{const t=this.springs;xt(Xr(e),n=>t[n].pause())}return this}resume(e){if(we.und(e))this.start({pause:!1});else{const t=this.springs;xt(Xr(e),n=>t[n].resume())}return this}each(e){si(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Uu(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const o=!r&&this._started,l=a||o&&n.size?this.get():null;a&&t.size&&Uu(t,([c,d])=>{d.value=l,c(d,this,this._item)}),o&&(this._started=!1,Uu(n,([c,d])=>{d.value=l,c(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;lt.onFrame(this._onFrame)}};function Gy(e,t){return Promise.all(t.map(n=>aR(e,n))).then(n=>xE(e,n))}async function aR(e,t,n){const{keys:r,to:a,from:o,loop:l,onRest:c,onResolve:d}=t,f=we.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),o===!1&&(t.from=null);const p=we.arr(a)||we.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(cU,A=>{const C=t[A];if(we.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const M=x.get(C);M?(D||(M.finished=!1),S&&(M.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,Lu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),b=t.cancel===!0||X3(t,"cancel")===!0;(p||b&&m.asyncId)&&y.push(J3(++e._lastAsyncId,{props:t,state:m,actions:{pause:Py,resume:Py,start(A,C){b?(Ad(m,e._lastAsyncId),C(ql(e))):(A.onRest=c,C(tR(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const _=xE(e,await Promise.all(y));if(l&&_.finished&&!(n&&_.noop)){const A=rR(t,l,a);if(A)return lR(e,[A]),aR(e,A,!0)}return d&<.batchedUpdates(()=>d(_,e,e.item)),_}function XS(e,t){const n={...e.springs};return t&&xt(Xr(t),r=>{we.und(r.keys)&&(r=Sd(r)),we.obj(r.to)||(r={...r,to:void 0}),sR(n,r,a=>oR(a))}),iR(e,n),n}function iR(e,t){si(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,cc(n,e))})}function oR(e,t){const n=new oU;return n.key=e,t&&cc(n,t),n}function sR(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function lR(e,t){xt(t,n=>{sR(e.springs,n,r=>oR(r,e))})}var fU=w.createContext({pause:!1,immediate:!1}),hU=()=>{const e=[],t=function(r){Fj();const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=n(r,o,l);c&&a.push(o.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,o)=>{const l=we.fun(r)?r(o,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=this._getProps(r,o,l);c&&a.push(o.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,o)=>a.update(this._getProps(r,a,o))),this};const n=function(r,a,o){return we.fun(r)?r(o,a):r};return t._getProps=n,t};function pU(e,t,n){const r=we.fun(t)&&t;r&&!n&&(n=[]);const a=w.useMemo(()=>r||arguments.length==3?hU():void 0,[]),o=w.useRef(0),l=G3(),c=w.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=XS(x,D);return o.current>0&&!c.queue.length&&!Object.keys(S).some(L=>!x.springs[L])?Gy(x,D):new Promise(L=>{iR(x,S),c.queue.push(()=>{L(Gy(x,D))}),l()})}}),[]),d=w.useRef([...c.ctrls]),f=w.useRef([]),p=BS(e)||0;w.useMemo(()=>{xt(d.current.slice(e,p),x=>{Jj(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),w.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const M=d.current[S]||(d.current[S]=new dU(null,c.flush)),L=r?r(S,M):t[S];L&&(f.current[S]=sU(L))}}const y=d.current.map((x,D)=>XS(x,f.current[D])),b=w.useContext(fU),_=BS(b),A=b!==_&&Zj(b);vE(()=>{o.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:b});const M=f.current[S];M&&(eU(D,M.ref),D.ref?D.queue.push(M):D.start(M))})}),V3(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=y.map(x=>({...x}));return a?[C,a]:C}function mU(e,t){const n=we.fun(e),[[r],a]=pU(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var gU=class extends AE{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=bd(...t);const n=this._get(),r=Fy(n);TE(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Li(t,n)||(ei(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ZS(this._active)&&A1(this)}_get(){const e=we.arr(this.source)?this.source.map(wr):Xr(wr(this.source));return this.calc(...e)}_start(){this.idle&&!ZS(this._active)&&(this.idle=!1,xt(xm(this),e=>{e.done=!1}),Ma.skipAnimation?(lt.batchedUpdates(()=>this.advance()),A1(this)):Em.start(this))}_attach(){let e=1;xt(Xr(this.source),t=>{ba(t)&&cc(t,this),Uy(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Xr(this.source),e=>{ba(e)&&Td(e,this)}),this._active.clear(),A1(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Xr(this.source).reduce((t,n)=>Math.max(t,(Uy(n)?n.priority:0)+1),0))}};function yU(e){return e.idle!==!1}function ZS(e){return!e.size||Array.from(e).every(yU)}function A1(e){e.idle||(e.idle=!0,xt(xm(e),t=>{t.done=!0}),vd(e,{type:"idle",parent:e}))}Ma.assign({createStringInterpolator:H3,to:(e,t)=>new gU(e,t)});var cR=/^--/;function bU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!cR.test(e)&&!(Gu.hasOwnProperty(e)&&Gu[e])?t+"px":(""+t).trim()}var JS={};function EU(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:o,scrollTop:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(y=>n||e.hasAttribute(y)?y:JS[y]||(JS[y]=y.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));o!==void 0&&(e.textContent=o);for(const y in a)if(a.hasOwnProperty(y)){const b=bU(y,a[y]);cR.test(y)?e.style.setProperty(y,b):e.style[y]=b}m.forEach((y,b)=>{e.setAttribute(y,p[b])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var Gu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),TU=["Webkit","Ms","Moz","O"];Gu=Object.keys(Gu).reduce((e,t)=>(TU.forEach(n=>e[vU(n,t)]=e[t]),e),Gu);var _U=/^(matrix|translate|scale|rotate|skew)/,xU=/^(translate)/,AU=/^(rotate|skew)/,S1=(e,t)=>we.num(e)&&e!==0?e+t:e,Kh=(e,t)=>we.arr(e)?e.every(n=>Kh(n,t)):we.num(e)?e===t:parseFloat(e)===t,SU=class extends Sm{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(l=>[`translate3d(${l.map(c=>S1(c,"px")).join(",")})`,Kh(l,0)])),si(r,(l,c)=>{if(c==="transform")a.push([l||""]),o.push(d=>[d,d===""]);else if(_U.test(c)){if(delete r[c],we.und(l))return;const d=xU.test(c)?"px":AU.test(c)?"deg":"";a.push(Xr(l)),o.push(c==="rotate3d"?([f,p,m,y])=>[`rotate3d(${f},${p},${m},${S1(y,d)})`,Kh(y,0)]:f=>[`${c}(${f.map(p=>S1(p,d)).join(",")})`,Kh(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new CU(a,o)),super(r)}},CU=class extends B3{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const a=wr(n[0]),[o,l]=this.transforms[r](we.arr(a)?a:n.map(wr));e+=" "+o,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>ba(n)&&cc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>ba(n)&&Td(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),vd(this,e)}},DU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ma.assign({batchedUpdates:j2.unstable_batchedUpdates,createStringInterpolator:H3,colors:gj});var kU=Yj(DU,{applyAnimatedValues:EU,createAnimatedStyle:e=>new SU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),RU=kU.animated;const IU=nn(v.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),wU=nn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function NU(){const e=m5(jb);return e[Ub]||e}function eC(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function OU(e){return Fo("MuiCollapse",e)}Bo("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function cr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vy(e,t)}function uR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vy(e,t)}const tC={disabled:!1},Mp=Le.createContext(null);var LU=function(e){return e.scrollTop},Mu="unmounted",ls="exited",cs="entering",Ml="entered",qy="exiting",Gi=function(e){uR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?c?(d=ls,o.appearStatus=cs):d=Ml:r.unmountOnExit||r.mountOnEnter?d=Mu:d=ls,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===Mu?{status:ls}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==cs&&o!==Ml&&(a=cs):(o===cs||o===Ml)&&(a=qy)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,l;return a=o=l=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,l=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this);o&&LU(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:Mu})},n.performEnter=function(r){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[hh.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!o||tC.disabled){this.safeSetState({status:Ml},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:cs},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Ml},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:hh.findDOMNode(this);if(!a||tC.disabled){this.safeSetState({status:ls},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:qy},function(){r.props.onExiting(l),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:ls},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,r(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Mu)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=cr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Le.createElement(Mp.Provider,{value:null},typeof o=="function"?o(r,l):Le.cloneElement(Le.Children.only(o),l))},t}(Le.Component);Gi.contextType=Mp;Gi.propTypes={};function Rl(){}Gi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rl,onEntering:Rl,onEntered:Rl,onExit:Rl,onExiting:Rl,onExited:Rl};Gi.UNMOUNTED=Mu;Gi.EXITED=ls;Gi.ENTERING=cs;Gi.ENTERED=Ml;Gi.EXITING=qy;const nC={};function dR(e,t){const n=w.useRef(nC);return n.current===nC&&(n.current=e(t)),n}const MU=[];function PU(e){w.useEffect(e,MU)}let $U=class fR{static create(){return new fR}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function hR(){const e=dR($U.create).current;return PU(e.disposeEffect),e}const FU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Fs(r,OU,n)},BU=an("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ib(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),jU=an("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),UU=an("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Cd=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:o,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:_,onExiting:A,orientation:C="vertical",style:x,timeout:D=_D.standard,TransitionComponent:S=Gi,...M}=n,L={...n,orientation:C,collapsedSize:l},I=FU(L),V=NU(),te=hR(),Q=w.useRef(null),k=w.useRef(),H=typeof l=="number"?`${l}px`:l,W=C==="horizontal",K=W?"width":"height",re=w.useRef(null),me=oi(t,re),G=ce=>Ne=>{if(ce){const Ie=re.current;Ne===void 0?ce(Ie):ce(Ie,Ne)}},oe=()=>Q.current?Q.current[W?"clientWidth":"clientHeight"]:0,le=G((ce,Ne)=>{Q.current&&W&&(Q.current.style.position="absolute"),ce.style[K]=H,p&&p(ce,Ne)}),se=G((ce,Ne)=>{const Ie=oe();Q.current&&W&&(Q.current.style.position="");const{duration:Me,easing:Oe}=eC({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const st=V.transitions.getAutoHeightDuration(Ie);ce.style.transitionDuration=`${st}ms`,k.current=st}else ce.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;ce.style[K]=`${Ie}px`,ce.style.transitionTimingFunction=Oe,y&&y(ce,Ne)}),P=G((ce,Ne)=>{ce.style[K]="auto",m&&m(ce,Ne)}),Ce=G(ce=>{ce.style[K]=`${oe()}px`,b&&b(ce)}),he=G(_),O=G(ce=>{const Ne=oe(),{duration:Ie,easing:Me}=eC({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Oe=V.transitions.getAutoHeightDuration(Ne);ce.style.transitionDuration=`${Oe}ms`,k.current=Oe}else ce.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ce.style[K]=H,ce.style.transitionTimingFunction=Me,A&&A(ce)});return v.jsx(S,{in:f,onEnter:le,onEntered:P,onEntering:se,onExit:Ce,onExited:he,onExiting:O,addEndListener:ce=>{D==="auto"&&te.start(k.current||0,ce),r&&r(re.current,ce)},nodeRef:re,timeout:D==="auto"?null:D,...M,children:(ce,{ownerState:Ne,...Ie})=>v.jsx(BU,{as:c,className:Mn(I.root,o,{entered:I.entered,exited:!f&&H==="0px"&&I.hidden}[ce]),style:{[W?"minWidth":"minHeight"]:H,...x},ref:me,ownerState:{...L,state:ce},...Ie,children:v.jsx(jU,{ownerState:{...L,state:ce},className:I.wrapper,ref:Q,children:v.jsx(UU,{ownerState:{...L,state:ce},className:I.wrapperInner,children:a})})})})});Cd&&(Cd.muiSupportAuto=!0);function Cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},D1,rC;function HU(){if(rC)return D1;rC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return D1=e,D1}var k1,aC;function zU(){if(aC)return k1;aC=1;var e=HU();function t(){}function n(){}return n.resetWarningCache=t,k1=function(){function r(l,c,d,f,p,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},k1}var iC;function GU(){return iC||(iC=1,C1.exports=zU()()),C1.exports}var VU=GU();const oC=Cm(VU);function SE(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=js();return r({children:t,itemId:n,instance:a})}SE.propTypes={children:oC.node,itemId:oC.string.isRequired};const qU=w.createContext(void 0);function YU(){return w.useContext(qU)}function QU(e){return Fo("PrivateSwitchBase",e)}Bo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ti(e,t,n){return typeof e=="function"?e(t,n):e}function sC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const b=Mn(n?.className,o,a?.className,r?.className),_={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return b.length>0&&(A.className=b),Object.keys(_).length>0&&(A.style=_),{props:A,internalRef:void 0}}const l=ha({...a,...r}),c=sC(r),d=sC(a),f=t(l),p=Mn(f?.className,n?.className,o,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},y={...f,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function KU(e){return typeof e=="string"}function mR(e,t,n){return e===void 0||KU(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Yy(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...y}=o,b=p[e]||r,_=ti(m[e],a),{props:{component:A,...C},internalRef:x}=pR({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:_}),D=oi(x,_?.ref,t.ref),S=e==="root"?A||f:A,M=mR(b,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[b,M]}function WU(e){const{controlled:t,default:n}=e,{current:r}=w.useRef(t!==void 0),[a,o]=w.useState(n),l=r?t:a,c=w.useCallback(d=>{r||o(d)},[]);return[l,c]}function XU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=w.useState(!1),y=Mn(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+o,left:-(l/2)+a},_=Mn(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),w.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),v.jsx("span",{className:y,style:b,children:v.jsx("span",{className:_})})}const ga=Bo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function ZU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CE(e,t){var n=function(a){return t&&w.isValidElement(a)?t(a):a},r=Object.create(null);return e&&w.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function JU(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function bs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eH(e,t){return CE(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bs(n,"appear",e),enter:bs(n,"enter",e),exit:bs(n,"exit",e)})})}function tH(e,t,n){var r=CE(e.children),a=JU(t,r);return Object.keys(a).forEach(function(o){var l=a[o];if(w.isValidElement(l)){var c=o in t,d=o in r,f=t[o],p=w.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[o]=w.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:bs(l,"exit",e),enter:bs(l,"enter",e)}):!d&&c&&!p?a[o]=w.cloneElement(l,{in:!1}):d&&c&&w.isValidElement(f)&&(a[o]=w.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:bs(l,"exit",e),enter:bs(l,"enter",e)}))}}),a}var nH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rH={component:"div",childFactory:function(e){return e}},DE=function(e){uR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=o.handleExited.bind(ZU(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var o=a.children,l=a.handleExited,c=a.firstRender;return{children:c?eH(r,l):tH(r,o,l),firstRender:!1}},n.handleExited=function(r,a){var o=CE(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,o=r.childFactory,l=cr(r,["component","childFactory"]),c=this.state.contextValue,d=nH(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Le.createElement(Mp.Provider,{value:c},d):Le.createElement(Mp.Provider,{value:c},Le.createElement(a,l,d))},t}(Le.Component);DE.propTypes={};DE.defaultProps=rH;const Qy=550,aH=80,iH=yb`
|
|
88
|
-
0% {
|
|
89
|
-
transform: scale(0);
|
|
90
|
-
opacity: 0.1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
100% {
|
|
94
|
-
transform: scale(1);
|
|
95
|
-
opacity: 0.3;
|
|
96
|
-
}
|
|
97
|
-
`,oH=yb`
|
|
98
|
-
0% {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
100% {
|
|
103
|
-
opacity: 0;
|
|
104
|
-
}
|
|
105
|
-
`,sH=yb`
|
|
106
|
-
0% {
|
|
107
|
-
transform: scale(1);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
50% {
|
|
111
|
-
transform: scale(0.92);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
100% {
|
|
115
|
-
transform: scale(1);
|
|
116
|
-
}
|
|
117
|
-
`,lH=an("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cH=an(XU,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
118
|
-
opacity: 0;
|
|
119
|
-
position: absolute;
|
|
120
|
-
|
|
121
|
-
&.${ga.rippleVisible} {
|
|
122
|
-
opacity: 0.3;
|
|
123
|
-
transform: scale(1);
|
|
124
|
-
animation-name: ${iH};
|
|
125
|
-
animation-duration: ${Qy}ms;
|
|
126
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.${ga.ripplePulsate} {
|
|
130
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
& .${ga.child} {
|
|
134
|
-
opacity: 1;
|
|
135
|
-
display: block;
|
|
136
|
-
width: 100%;
|
|
137
|
-
height: 100%;
|
|
138
|
-
border-radius: 50%;
|
|
139
|
-
background-color: currentColor;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
& .${ga.childLeaving} {
|
|
143
|
-
opacity: 0;
|
|
144
|
-
animation-name: ${oH};
|
|
145
|
-
animation-duration: ${Qy}ms;
|
|
146
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
& .${ga.childPulsate} {
|
|
150
|
-
position: absolute;
|
|
151
|
-
/* @noflip */
|
|
152
|
-
left: 0px;
|
|
153
|
-
top: 0;
|
|
154
|
-
animation-name: ${sH};
|
|
155
|
-
animation-duration: 2500ms;
|
|
156
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
157
|
-
animation-iteration-count: infinite;
|
|
158
|
-
animation-delay: 200ms;
|
|
159
|
-
}
|
|
160
|
-
`,uH=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...l}=n,[c,d]=w.useState([]),f=w.useRef(0),p=w.useRef(null);w.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=w.useRef(!1),y=hR(),b=w.useRef(null),_=w.useRef(null),A=w.useCallback(S=>{const{pulsate:M,rippleX:L,rippleY:I,rippleSize:V,cb:te}=S;d(Q=>[...Q,v.jsx(cH,{classes:{ripple:Mn(a.ripple,ga.ripple),rippleVisible:Mn(a.rippleVisible,ga.rippleVisible),ripplePulsate:Mn(a.ripplePulsate,ga.ripplePulsate),child:Mn(a.child,ga.child),childLeaving:Mn(a.childLeaving,ga.childLeaving),childPulsate:Mn(a.childPulsate,ga.childPulsate)},timeout:Qy,pulsate:M,rippleX:L,rippleY:I,rippleSize:V},f.current)]),f.current+=1,p.current=te},[a]),C=w.useCallback((S={},M={},L=()=>{})=>{const{pulsate:I=!1,center:V=r||M.pulsate,fakeElement:te=!1}=M;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const Q=te?null:_.current,k=Q?Q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,W,K;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)H=Math.round(k.width/2),W=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;H=Math.round(re-k.left),W=Math.round(me-k.top)}if(V)K=Math.sqrt((2*k.width**2+k.height**2)/3),K%2===0&&(K+=1);else{const re=Math.max(Math.abs((Q?Q.clientWidth:0)-H),H)*2+2,me=Math.max(Math.abs((Q?Q.clientHeight:0)-W),W)*2+2;K=Math.sqrt(re**2+me**2)}S?.touches?b.current===null&&(b.current=()=>{A({pulsate:I,rippleX:H,rippleY:W,rippleSize:K,cb:L})},y.start(aH,()=>{b.current&&(b.current(),b.current=null)})):A({pulsate:I,rippleX:H,rippleY:W,rippleSize:K,cb:L})},[r,A,y]),x=w.useCallback(()=>{C({},{pulsate:!0})},[C]),D=w.useCallback((S,M)=>{if(y.clear(),S?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{D(S,M)});return}b.current=null,d(L=>L.length>0?L.slice(1):L),p.current=M},[y]);return w.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),v.jsx(lH,{className:Mn(ga.root,a.root,o),ref:_,...l,children:v.jsx(DE,{component:null,exit:!0,children:c})})});function dH(e){return Fo("MuiButtonBase",e)}const fH=Bo("MuiButtonBase",["root","disabled","focusVisible"]);let hH=class Ky{static create(){return new Ky}static use(){const t=dR(Ky.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=mH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function pH(){return hH.use()}function mH(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const gH=typeof window<"u"?w.useLayoutEffect:w.useEffect;function ii(e){const t=w.useRef(e);return gH(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function lC(e){try{return e.matches(":focus-visible")}catch{}return!1}const yH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},dH,a);return n&&r&&(o.root+=` ${r}`),o},bH=an("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),EH=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:_,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:M,onKeyUp:L,onMouseDown:I,onMouseLeave:V,onMouseUp:te,onTouchEnd:Q,onTouchMove:k,onTouchStart:H,tabIndex:W=0,TouchRippleProps:K,touchRippleRef:re,type:me,...G}=n,oe=w.useRef(null),le=pH(),se=oi(le.ref,re),[P,Ce]=w.useState(!1);d&&P&&Ce(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{Ce(!0),oe.current.focus()}}),[]);const he=le.shouldMount&&!f&&!d;w.useEffect(()=>{P&&m&&!f&&le.pulsate()},[f,m,P,le]);const O=wi(le,"start",I,p),ce=wi(le,"stop",C,p),Ne=wi(le,"stop",x,p),Ie=wi(le,"stop",te,p),Me=wi(le,"stop",Ye=>{P&&Ye.preventDefault(),V&&V(Ye)},p),Oe=wi(le,"start",H,p),st=wi(le,"stop",Q,p),dt=wi(le,"stop",k,p),Ue=wi(le,"stop",Ye=>{lC(Ye.target)||Ce(!1),_&&_(Ye)},!1),Zt=ii(Ye=>{oe.current||(oe.current=Ye.currentTarget),lC(Ye.target)&&(Ce(!0),S&&S(Ye)),D&&D(Ye)}),wt=()=>{const Ye=oe.current;return c&&c!=="button"&&!(Ye.tagName==="A"&&Ye.href)},Pe=ii(Ye=>{m&&!Ye.repeat&&P&&Ye.key===" "&&le.stop(Ye,()=>{le.start(Ye)}),Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&Ye.preventDefault(),M&&M(Ye),Ye.target===Ye.currentTarget&&wt()&&Ye.key==="Enter"&&!d&&(Ye.preventDefault(),A&&A(Ye))}),rr=ii(Ye=>{m&&Ye.key===" "&&P&&!Ye.defaultPrevented&&le.stop(Ye,()=>{le.pulsate(Ye)}),L&&L(Ye),A&&Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&!Ye.defaultPrevented&&A(Ye)});let dn=c;dn==="button"&&(G.href||G.to)&&(dn=b);const Ve={};dn==="button"?(Ve.type=me===void 0?"button":me,Ve.disabled=d):(!G.href&&!G.to&&(Ve.role="button"),d&&(Ve["aria-disabled"]=d));const Zn=oi(t,oe),rn={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:W,focusVisible:P},on=yH(rn);return v.jsxs(bH,{as:dn,className:Mn(on.root,l),ownerState:rn,onBlur:Ue,onClick:A,onContextMenu:ce,onFocus:Zt,onKeyDown:Pe,onKeyUp:rr,onMouseDown:O,onMouseLeave:Me,onMouseUp:Ie,onDragLeave:Ne,onTouchEnd:st,onTouchMove:dt,onTouchStart:Oe,ref:Zn,tabIndex:d?-1:W,type:me,...Ve,...G,children:[o,he?v.jsx(uH,{ref:se,center:a,...K}):null]})});function wi(e,t,n,r=!1){return ii(a=>(n&&n(a),r||e[t](a),!0))}const vH=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${La(a)}`],input:["input"]};return Fs(o,QU,t)},TH=an(EH,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_H=an("input",{name:"MuiSwitchBase",shouldForwardProp:Hb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xH=w.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:y,name:b,onBlur:_,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:M,value:L,slots:I={},slotProps:V={},...te}=e,[Q,k]=WU({controlled:r,default:!!o}),H=YU(),W=ce=>{C&&C(ce),H&&H.onFocus&&H.onFocus(ce)},K=ce=>{_&&_(ce),H&&H.onBlur&&H.onBlur(ce)},re=ce=>{if(ce.nativeEvent.defaultPrevented)return;const Ne=ce.target.checked;k(Ne),A&&A(ce,Ne)};let me=l;H&&typeof me>"u"&&(me=H.disabled);const G=M==="checkbox"||M==="radio",oe={...e,checked:Q,disabled:me,disableFocusRipple:c,edge:d},le=vH(oe),se={slots:I,slotProps:{input:m,...V}},[P,Ce]=Yy("root",{ref:t,elementType:TH,className:le.root,shouldForwardComponentProp:!0,externalForwardedProps:{...se,component:"span",...te},getSlotProps:ce=>({...ce,onFocus:Ne=>{ce.onFocus?.(Ne),W(Ne)},onBlur:Ne=>{ce.onBlur?.(Ne),K(Ne)}}),ownerState:oe,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[he,O]=Yy("input",{ref:y,elementType:_H,className:le.input,externalForwardedProps:se,getSlotProps:ce=>({...ce,onChange:Ne=>{ce.onChange?.(Ne),re(Ne)}}),ownerState:oe,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:me,id:G?p:void 0,name:b,readOnly:x,required:D,tabIndex:S,type:M,...M==="checkbox"&&L===void 0?{}:{value:L}}});return v.jsxs(P,{...Ce,children:[v.jsx(he,{...O}),Q?a:f]})}),AH=nn(v.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),SH=nn(v.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),CH=nn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function DH(e){return Fo("MuiCheckbox",e)}const R1=Bo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function kH(e){return typeof e.main=="string"}function RH(e,t=[]){if(!kH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function cC(e=[]){return([,t])=>t&&RH(t,e)}function IH(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wH(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{IH(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=Mn(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),o=Mn(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const NH=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${La(r)}`,`size${La(a)}`]},l=Fs(o,DH,t);return{...t,...l}},OH=an(xH,{shouldForwardProp:e=>Hb(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${La(n.size)}`],n.color!=="default"&&t[`color${La(n.color)}`]]}})(Ib(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:oy(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(cC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:oy(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(cC()).map(([t])=>({props:{color:t},style:{[`&.${R1.checked}, &.${R1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${R1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),LH=v.jsx(SH,{}),MH=v.jsx(AH,{}),PH=v.jsx(CH,{}),gR=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=LH,color:a="primary",icon:o=MH,indeterminate:l=!1,indeterminateIcon:c=PH,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:y={},slotProps:b={},..._}=n,A=l?c:o,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=NH(x),S=b.input??d,[M,L]=Yy("root",{ref:t,elementType:OH,className:Mn(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,..._},ownerState:x,additionalProps:{type:"checkbox",icon:w.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:w.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:y,slotProps:{input:wH(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return v.jsx(M,{...L,classes:D})}),$H=["visible"],FH=an("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),BH=an("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ro(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),jH=an("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ro(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),UH=an("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});an(Cd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});an(w.forwardRef((e,t)=>{const{visible:n}=e,r=cr(e,$H);return n?v.jsx(gR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function Es(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,l=a?{}:ti(n,r),{props:c,internalRef:d}=pR({...o,externalSlotProps:l}),f=oi(d,l?.ref,e.additionalProps?.ref);return mR(t,{...c,ref:f},r)}const yR=nn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),bR=nn(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function HH(e){const{slots:t,slotProps:n,status:r}=e,a=js(),o=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??yR,collapseIcon:a.icons.slots.collapseIcon??bR}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??o[c],f=Es({elementType:d,externalSlotProps:p=>Ae({},ti(l[c],p),ti(n?.[c],p)),ownerState:{}});return d?v.jsx(d,Ae({},f)):null}function zH(e){return Fo("MuiRichTreeView",e)}Bo("MuiRichTreeView",["root"]);function GH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:up(t.components[n].defaultProps,r)}function VH(e){return Object.keys(e).length===0}function qH(e=null){const t=w.useContext(g5);return!t||VH(t)?e:t}const YH=Bb();function QH(e=YH){return qH(e)}function KH({props:e,name:t,defaultTheme:n,themeId:r}){let a=QH(n);return a=a[r]||a,GH({theme:a,name:t,props:e})}function WH({props:e,name:t}){return KH({props:e,name:t,defaultTheme:jb,themeId:Ub})}function ER(e){return WH}const XH=(e,t,n)=>{e.$$publishEvent(t,n)},Bl="__TREE_VIEW_ROOT_PARENT_ID__",ZH=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},JH=["children"],vR=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},l={[Bl]:[]},c=(f,p,m)=>{const y=r?r(f):f.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(f)].join(`
|
|
161
|
-
`));if(a[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
|
|
162
|
-
`));const b=n?n(f):f.label;if(b==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(f)].join(`
|
|
163
|
-
`));a[y]={id:y,label:b,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},o[y]=f;const _=m??Bl;l[_]||(l[_]=[]),l[_].push(y),f.children?.forEach(A=>c(A,p+1,y))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=ZH(l[f])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Qd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=w.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=w.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=w.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=cr(D,JH),M=n.items.itemOrderedChildrenIds[x];return M&&(S.children=M.map(C)),S};return n.items.itemOrderedChildrenIds[Bl].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=w.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=w.useCallback(C=>{const x=e.getItemMeta(C).parentId??Bl;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=w.useCallback(C=>n.items.itemOrderedChildrenIds[C??Bl]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(cE({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},y=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),b=w.useRef(!1),_=w.useCallback(()=>{b.current=!0},[]),A=w.useCallback(()=>b.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=vR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||XH(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[Bl].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:y,preventItemUpdates:_,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Qd.getInitialState=e=>({items:vR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Qd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Qd.wrapRoot=({children:e,instance:t})=>v.jsx(uE.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Qd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Dm=({instance:e,params:t,models:n})=>{const r=w.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(y=>{m.set(y,!0)}),m},[n.expandedItems.value]),a=(m,y)=>{t.onExpandedItemsChange?.(m,y),n.expandedItems.setControlledValue(y)},o=w.useCallback(m=>r.has(m),[r]),l=w.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=ii((m,y)=>{const b=e.isItemExpanded(y);e.setItemExpansion(m,y,!b)}),d=ii((m,y,b)=>{if(e.isItemExpanded(y)===b)return;let _;b?_=[y].concat(n.expandedItems.value):_=n.expandedItems.value.filter(A=>A!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,y,b),a(m,_)}),f=(m,y)=>{const b=e.getItemMeta(y),_=e.getItemOrderedChildrenIds(b.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(_);_.length>0&&(t.onItemExpansionToggle&&_.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=w.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:o,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Dm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const ez=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??ez});Dm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Wh=e=>Array.isArray(e)?e:e!=null?[e]:[],I1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},km=({instance:e,params:t,models:n})=>{const r=w.useRef(null),a=w.useRef({}),o=w.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=m.filter(_=>!e.isItemSelected(_)),b=n.selectedItems.value.filter(_=>!m.includes(_));y.forEach(_=>{t.onItemSelectionToggle(p,_,!0)}),b.forEach(_=>{t.onItemSelectionToggle(p,_,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>o.has(p),d=({event:p,itemId:m,keepExistingSelection:y=!1,shouldBeSelected:b})=>{if(t.disableSelection)return;let _;if(y){const A=Wh(n.selectedItems.value),C=e.isItemSelected(m);C&&(b===!1||b==null)?_=A.filter(x=>x!==m):!C&&(b===!0||b==null)?_=[m].concat(A):_=A}else b===!1||b==null&&e.isItemSelected(m)?_=t.multiSelect?[]:null:_=t.multiSelect?[m]:m;l(p,_),r.current=m,a.current={}},f=(p,[m,y])=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(b=b.filter(x=>!a.current[x]));const _=I1(b),A=ej(e,m,y),C=A.filter(x=>!_[x]);b=b.concat(C),l(p,b),a.current=I1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=tj(e);l(p,m),a.current=I1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[y,b]=D3(e,m,r.current);f(p,[y,b])}},selectRangeFromStartToItem:(p,m)=>{f(p,[gd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,C3(e)])},selectItemFromArrowNavigation:(p,m,y)=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(b.push(y),a.current={[m]:!0,[y]:!0}):(a.current[m]||(a.current={}),a.current[y]?(b=b.filter(_=>_!==m),delete a.current[m]):(b.push(y),a.current[y]=!0)),l(p,b)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};km.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const tz=[];km.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?tz:null)});km.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let nz=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},rz=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},az=class{};function iz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new rz:new nz);const[o]=w.useState(new az),l=w.useRef(null),c=w.useRef(void 0);c.current=a;const d=w.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(o,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));w.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const oz={registry:null},sz=iz(oz),TR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?TR(t.shadowRoot):t:null};function lz(e){return e&&e.ownerDocument||document}const cz=(e,t)=>{let n=Wh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=gd(e)),n},kE=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const l=cz(e,a.selectedItems.value),c=ii(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=w.useCallback(()=>!!o.current&&o.current.contains(TR(lz(o.current))),[o]),f=w.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},y=ii((C,x)=>{p(x)&&m(C,x)}),b=ii(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),_=C=>C===l;sz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:y},instance:{isItemFocused:f,canItemBeTabbed:_,focusItem:y,removeFocusedItem:b}}};kE.getInitialState=()=>({focusedItemId:null});kE.params={onItemFocus:!0};const uz=w.createContext(),dz=()=>w.useContext(uz)??!1;function fz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const _R=({instance:e,params:t,state:n})=>{const r=dz(),a=w.useRef({}),o=ii(f=>{a.current=f(a.current)});w.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),y=C=>{const x=Yh(e,C);return x===null?gd(e):x};let b=null,_=y(f);const A={};for(;b==null&&!A[_];)a.current[_]===m?b=_:(A[_]=!0,_=y(_));return b},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||yd(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{As(e,_a)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case y==="ArrowDown":{const b=Yh(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case y==="ArrowUp":{const b=S3(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const b=Yh(e,p);b&&(e.focusItem(f,b),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const b=e.getItemMeta(p).parentId;b&&(e.focusItem(f,b),f.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,gd(e)),f.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,C3(e)),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&fz(y)):{const b=l(p,y);b!=null&&(e.focusItem(f,b),f.preventDefault());break}}}}}};_R.params={};const xR=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});xR.params={};const hz=[Qd,Dm,km,kE,_R,xR,_a];function AR(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:l}}=js(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,b=t.isItemEditable?t.isItemEditable(e):!1,_=S=>{if(!m){f||t.focusItem(S,e);const M=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(M&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!y&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(o||m)return;const M=S.nativeEvent.shiftKey;r&&M?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{As(t,_a)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:b,editing:y,disableSelection:o,checkboxSelection:a,handleExpansion:_,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,M)=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,M),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const pz=an("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),mz=an("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>y5(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:$i(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function gz(e){return e.action==null?null:v.jsx(mz,Ae({},e))}const yz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],SR=w.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:y}=e,b=cr(e,yz),{disabled:_,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:M,checkboxSelection:L,handleExpansion:I,handleSelection:V,handleCheckboxSelection:te,handleContentClick:Q,preventSelection:k,expansionTrigger:H,toggleItemEditing:W}=AR(d),K=l||o||a,re=w.useRef(null),me=le=>{k(le),p&&p(le)},G=le=>{Q?.(le,d),!re.current?.contains(le.target)&&(H==="content"&&I(le),L||V(le),f&&f(le))},oe=le=>{le.defaultMuiPrevented||W()};return v.jsxs("div",Ae({},b,{className:Mn(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,_&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:K}),L&&v.jsx(gR,{className:n.checkbox,checked:C,onChange:te,disabled:_||M,ref:re,tabIndex:-1}),D?v.jsx(pz,Ae({},y,{className:n.labelInput})):v.jsx("div",Ae({className:n.label},S&&{onDoubleClick:oe},{children:c})),m&&v.jsx(gz,Ae({},m))]}))});function bz(e){return Fo("MuiTreeItem",e)}const Ni=Bo("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Ez=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],vz=["ownerState"],Tz=["ownerState"],_z=["ownerState"],xz=ER(),Az=e=>{const{classes:t}=e;return Fs({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},bz,t)},Sz=an("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Cz=an(SR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ni.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ni.label}`]:t.label}],shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ni.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ni.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ni.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ni.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ni.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ni.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Ni.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Dz=an(Cd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),kz=w.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=js(),p=w.useContext(uE),m=xz({props:e,name:"MuiTreeItem"}),{children:y,className:b,slots:_,slotProps:A,ContentComponent:C=SR,ContentProps:x,itemId:D,id:S,label:M,onClick:L,onMouseDown:I,onBlur:V,onKeyDown:te}=m,Q=cr(m,Ez),{expanded:k,focused:H,selected:W,disabled:K,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:oe}=AR(D),{contentRef:le,rootRef:se,propsEnhancers:P}=r(m),Ce=w.useRef(null),he=w.useRef(null),O=oi(t,se,Ce),ce=oi(x?.ref,le,he),Ne={expandIcon:_?.expandIcon??n.slots.expandIcon??yR,collapseIcon:_?.collapseIcon??n.slots.collapseIcon??bR,endIcon:_?.endIcon??n.slots.endIcon,icon:_?.icon,groupTransition:_?.groupTransition},Ie=Te=>Array.isArray(Te)?Te.length>0&&Te.some(Ie):!!Te,Me=Ie(y),Oe=Ae({},m,{expanded:k,focused:H,selected:W,disabled:K,indentationAtItemLevel:o}),st=Az(Oe),dt=Ne.groupTransition??void 0,Ue=Es({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),Zt=Te=>{c==="iconContainer"&&me(Te)},wt=k?Ne.collapseIcon:Ne.expandIcon,Pe=Es({elementType:wt,ownerState:{},externalSlotProps:Te=>k?Ae({},ti(n.slotProps.collapseIcon,Te),ti(A?.collapseIcon,Te)):Ae({},ti(n.slotProps.expandIcon,Te),ti(A?.expandIcon,Te)),additionalProps:{onClick:Zt}}),rr=cr(Pe,vz),dn=Me&&wt?v.jsx(wt,Ae({},rr)):null,Ve=Me?void 0:Ne.endIcon,Zn=Es({elementType:Ve,ownerState:{},externalSlotProps:Te=>Me?{}:Ae({},ti(n.slotProps.endIcon,Te),ti(A?.endIcon,Te))}),rn=cr(Zn,Tz),on=Ve?v.jsx(Ve,Ae({},rn)):null,Ye=Ne.icon,Ct=Es({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),xr=cr(Ct,_z),Ba=Ye?v.jsx(Ye,Ae({},xr)):null;let Rt;W?Rt=!0:l||K?Rt=void 0:Rt=!1;function ue(Te){!H&&(!K||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&yd(Te.relatedTarget,Ce.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&yd(Te.target,Ce.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const Be=Te=>{te?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},rt=cE({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Nt={rootRefObject:Ce,contentRefObject:he,interactions:{handleSaveItemLabel:oe,handleCancelItemLabelEditing:G}},zn=P.root?.(Ae({},Nt,{externalEventHandlers:ha(Q)}))??{},gn=P.content?.(Ae({},Nt,{externalEventHandlers:ha(x)}))??{},An=P.dragAndDropOverlay?.(Ae({},Nt,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Nt,{externalEventHandlers:{}}))??{};return v.jsx(SE,{itemId:D,children:v.jsxs(Sz,Ae({className:Mn(st.root,b),role:"treeitem","aria-expanded":Me?k:void 0,"aria-selected":Rt,"aria-disabled":K||void 0,id:rt,tabIndex:Dt},Q,{ownerState:Oe,onFocus:ue,onBlur:ve,onKeyDown:Be,ref:O,style:o?Ae({},Q.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):Q.style},zn,{children:[v.jsx(Cz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:M,itemId:D,onClick:L,onMouseDown:I,icon:Ba,expansionIcon:dn,displayIcon:on,ownerState:Oe},x,gn,An.action==null?{}:{dragAndDropOverlayProps:An},_e.value==null?{}:{labelInputProps:_e},{ref:ce})),y&&v.jsx(Dz,Ae({as:dt},Ue,{children:y}))]}))})}),Rz=["ownerState"];function Iz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const l=e?.item??kz,c=Es({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=cr(c,Rz),f=w.useMemo(()=>o?v.jsx(CR,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return v.jsx(l,Ae({},d,{children:f}))}function CR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(w.Fragment,{children:t.map(a=>v.jsx(Iz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const wz=(e,t)=>{const n=w.useRef({}),[r,a]=w.useState(()=>{const o={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},o[c]=d.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,l])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[o]:d}))}}]}))},Nz=["slots","slotProps","apiRef","experimentalFeatures"],Oz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,l=cr(e.props,Nz);const c={};o.forEach(y=>{Object.assign(c,y.params)});const d={},f={};Object.keys(l).forEach(y=>{const b=l[y];c[y]?d[y]=b:f[y]=b});const p=a??{},m=o.reduce((y,b)=>b.getDefaultizedParams?b.getDefaultizedParams({params:y,experimentalFeatures:p}):y,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Lz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const y=m.itemPlugin({props:a,rootRef:o,contentRef:l});y?.rootRef&&(o=y.rootRef),y?.contentRef&&(l=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(b=>{d[b]=!0}))});const f=m=>y=>{const b={};return c.forEach(_=>{const A=_[m];A!=null&&Object.assign(b,A(y))}),b},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let l=o;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let o=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let Mz=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<o.length;l+=1){const c=o[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const Pz=e=>e.isPropagationStopped!==void 0,DR=()=>{const[e]=w.useState(()=>new Mz),t=w.useCallback((...r)=>{const[a,o,l={}]=r;l.defaultMuiPrevented=!1,!(Pz(l)&&l.isPropagationStopped())&&e.emit(a,o,l)},[e]),n=w.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};DR.params={};const kR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};kR.params={};const RE=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??nj()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};RE.params={id:!0};RE.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const $z=[DR,kR,RE];function Fz(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Bz=({plugins:e,rootRef:t,props:n})=>{const r=[...$z,...e],{pluginParams:a,forwardedProps:o,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Oz({plugins:r,props:n}),p=wz(r,a),m=w.useRef({}).current,y=Fz(l),b=w.useRef(null),_=oi(b,t),A=Lz({plugins:r,instance:m,publicAPI:y,rootRef:b}),[C,x]=w.useState(()=>{const M={};return r.forEach(L=>{L.getInitialState&&Object.assign(M,L.getInitialState(a))}),M}),D=[],S=M=>{const L=M({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:b,models:p,plugins:r});L.getRootProps&&D.push(L.getRootProps),L.publicAPI&&Object.assign(y,L.publicAPI),L.instance&&Object.assign(m,L.instance),L.contextValue&&Object.assign(A,L.contextValue)};return r.forEach(S),{getRootProps:(M={})=>{const L=Ae({role:"tree"},o,M,{ref:_});return D.forEach(I=>{Object.assign(L,I(M))}),L},rootRef:_,contextValue:A,instance:m}};function jz(e){const{value:t,children:n}=e;return v.jsx(k3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Uz=ER(),Hz=e=>{const{classes:t}=e;return Fs({root:["root"]},zH,t)},zz=an("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Gz=w.forwardRef(function(e,t){const n=Uz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Bz({plugins:hz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Hz(n),f=l?.root??zz,p=Es({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return v.jsx(jz,{value:a,children:v.jsx(f,Ae({},p,{children:v.jsx(CR,{slots:l,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function RR({items:e,defaultExpandedItems:t,navigate:n}){return v.jsx(Gz,{items:Kz(e,n),defaultExpandedItems:t,slots:{item:Qz}})}const Vz=RU(Cd);function qz(e){const t=mU({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(Vz,{style:t,...e})}function Yz({item:e,...t}){const n=v.jsxs(jH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(sj,{})||e.fileType==="notebook"&&v.jsx(lj,{})||e.fileType==="model"&&v.jsx(wU,{})||e.fileType=="database"&&v.jsx(IU,{})||v.jsx(T3,{}),v.jsx($e,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(fa,{title:e.error,placement:"right",children:n}):n}const Qz=w.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:y,status:b,publicAPI:_}=oj({id:n,itemId:r,children:o,label:a,disabled:l,rootRef:t}),A=_.getItem(r);return b.selected=!1,b.focused=!1,v.jsx(SE,{itemId:r,children:v.jsxs(FH,{...d(c),children:[v.jsxs(BH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[v.jsx(UH,{...m(),children:v.jsx(HH,{status:b})}),v.jsx(Yz,{...p({item:A})})]}),o&&v.jsx(qz,{...y()})]})})});function Kz(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((l,c)=>{c===o.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),IR(n,"",t)}function IR(e,t,n){const r=[];return e.forEach((a,o)=>{const l=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+o,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:IR(a,t,n)})}),r}const Wz=new lm(new Xn),Xz=["notebooks/","models/"];function Zz({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["models",t,n,r],queryFn:d=>Wz.listModels(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Semantic Models"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Models..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:Xz}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No models found"})]})]})})}const Jz=new ak(new Xn),eG=["notebooks/"];function tG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["notebooks",t,n,r],queryFn:d=>Jz.listNotebooks(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Notebooks"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Notebooks..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:eG,navigate:e}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No notebooks found"})]})]})})}const nG=new q7(new Xn);function rG(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isError:a,isLoading:o,error:l}=mr({queryKey:["schedules",e,t,n],queryFn:c=>nG.listSchedules(e,t,n,c)});return o?v.jsx(dr,{text:"Fetching Schedules..."}):a?v.jsx(fr,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Scheduler"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsx(mb,{component:Lh,children:v.jsxs(td,{sx:{minWidth:300},size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{align:"left",children:"Resource"}),v.jsx(Ut,{align:"left",children:"Schedule"}),v.jsx(Ut,{align:"left",children:"Action"}),v.jsx(Ut,{align:"left",children:"Connection"}),v.jsx(Ut,{align:"left",children:"Last Run"}),v.jsx(Ut,{align:"left",children:"Status"})]})}),v.jsx(nd,{children:r.data.map(c=>v.jsxs(ri,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(Ut,{align:"left",children:c.resource}),v.jsx(Ut,{align:"left",children:c.schedule}),v.jsx(Ut,{align:"left",children:c.action}),v.jsx(Ut,{align:"left",children:c.connection}),v.jsx(Ut,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),v.jsx(Ut,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}w.lazy(()=>F(()=>import("./index.es24-CDJ3b9GD.js"),__vite__mapDeps([93,94,95])));new cm(new Xn);function aG(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}const iG=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/;function oG({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[a,o]=Le.useState(!1),[l,c]=Le.useState(!1),[d,f]=Le.useState(!1),[p,m]=Le.useState(),[y,b]=Le.useState(),[_,A]=Le.useState(!1),{packageName:C,projectName:x}=Sa(),D=e.text.match(iG),S=D?D[1]:null,M=!!D,L=aG({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return w.useEffect(()=>{e.type==="code"&&Rp(e.text,"malloy").then(I=>{m(I)})},[e]),w.useEffect(()=>{Rp(L,"typescript").then(I=>{b(I)})},[L]),e.type==="markdown"&&v.jsx(cy,{children:v.jsx(Ke,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:v.jsx(sE,{children:e.text})})})||e.type==="code"&&v.jsxs(cy,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Pn,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&M&&v.jsx(uy,{sx:{position:"relative",padding:"0"},children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50&&p?`${p.substring(0,50)}...`:p},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>A(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(E3,{open:_,onClose:()=>A(!1),modelPath:S||"",title:"Data Sources",hasValidImport:M}),v.jsxs(No,{open:a,onClose:()=>o(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(xn,{onClick:()=>o(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsx(Ke,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:p}})})})]}),v.jsxs(No,{open:l,onClose:()=>c(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(xn,{onClick:()=>c(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsxs(Pn,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx($e,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:y}}),v.jsx(fa,{title:"Copy Embeddable Code",children:v.jsx(xn,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(L)},children:v.jsx(IF,{})})})]})})]}),v.jsx(v3,{open:d,onClose:()=>f(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(uy,{sx:{position:"relative"},children:[v.jsx(Ke,{sx:{paddingTop:"24px"},children:v.jsx(ym,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Pn,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:I=>{I.stopPropagation(),o(!0)},children:v.jsx(u3,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>f(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const sG=new ak(new Xn);function wR({notebookPath:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isSuccess:o,isError:l,error:c}=mr({queryKey:["notebook",t,n,e,r],queryFn:async d=>(await sG.getNotebook(t,n,e,r,d)).data});return v.jsx(ZM,{children:v.jsx(JM,{children:v.jsxs(Pn,{spacing:3,component:"section",children:[!o&&!l&&v.jsx(dr,{text:"Fetching Notebook..."}),o&&a.notebookCells?.map((d,f)=>v.jsx(oG,{cell:d,notebookPath:e},f)),l&&c.status===404&&v.jsxs($e,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${t} > ${n} > ${e}`})," ","not found."]}),l&&c.status!==404&&v.jsx(fr,{error:c,context:`${t} > ${n} > ${e}`})]})})})}const lG=new lm(new Xn);function NR(e,t){const{projectName:n,packageName:r,versionId:a}=Sa(),o=t||a;return mr({queryKey:["package",n,r,e,o],queryFn:async l=>(await lG.getModel(n,r,e,o,l)).data})}const cG=nn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let uG=class Xh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Xh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
164
|
-
`+t.value:`>>>malloy
|
|
165
|
-
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
166
|
-
`+t.value+`
|
|
167
|
-
`).join(`
|
|
168
|
-
`)}static newWorkbook(t){return new Xh(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new Xh(t,r)}};const OR=w.createContext(void 0),dG=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return v.jsx(OR.Provider,{value:r,children:n})},IE=()=>{const e=w.useContext(OR);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},Sh=nn(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),uC=nn(v.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),fG=nn(v.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}));const Rm=function(e){if(e==null)return gG;if(typeof e=="function")return Im(e);if(typeof e=="object")return Array.isArray(e)?hG(e):pG(e);if(typeof e=="string")return mG(e);throw new Error("Expected function, string, or object as test")};function hG(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rm(e[n]);return Im(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function pG(e){const t=e;return Im(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function mG(e){return Im(t);function t(n){return n&&n.type===e}}function Im(e){return t;function t(n,r,a){return!!(yG(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function gG(){return!0}function yG(e){return e!==null&&typeof e=="object"&&"type"in e}const LR=[],bG=!0,Pp=!1,Vu="skip";function MR(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Rm(a),l=r?-1:1;c(e,void 0,[])();function c(d,f,p){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=LR,_,A,C;if((!t||o(d,f,p[p.length-1]||void 0))&&(b=EG(n(d,p)),b[0]===Pp))return b;if("children"in d&&d.children){const x=d;if(x.children&&b[0]!==Vu)for(A=(r?x.children.length:-1)+l,C=p.concat(x);A>-1&&A<x.children.length;){const D=x.children[A];if(_=c(D,A,C)(),_[0]===Pp)return _;A=typeof _[1]=="number"?_[1]:A+l}}return b}}}function EG(e){return Array.isArray(e)?e:typeof e=="number"?[bG,e]:e==null?LR:[e]}function Mr(e,t,n,r){let a,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,a=n):(o=t,l=n,a=r),MR(e,o,c,a);function c(d,f){const p=f[f.length-1],m=p?p.children.indexOf(d):void 0;return l(d,m,p)}}const vG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,TG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,_G=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{Mr(n,"blockquote",(r,a,o)=>{let l="",c="",d=!0,f=r.children.map(p=>{if(d&&p.type==="paragraph"){const m=p.children[0],y=m.type==="text"?m.value:"",b=e?TG:vG,_=y.match(b);if(_&&(d=!1,l=_[1].toLocaleLowerCase(),c=e&&_[2]||l.toLocaleUpperCase(),y.includes(`
|
|
169
|
-
`)&&(p.children[0]={type:"text",value:y.replace(b,"").replace(/^\n+/,"")}),!y.includes(`
|
|
170
|
-
`))){const A=[];p.children.forEach((C,x)=>{x!=0&&(x==1&&C.type==="break"||A.push(C))}),p.children=[...A]}}return p});l&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${l}`,dir:"auto"}},f.unshift({type:"paragraph",children:[xG(l),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...f]})};function xG(e){let t=AG[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const AG={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function SG(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function PR(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?PR(t.parentElement):null}function CG(e){var t=n=>{var r=PR(n.target);r&&(r.classList.add("active"),SG(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};w.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}function Jr(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function Ea(e,t){return e.length>0?(Jr(e,e.length,0,t),e):t}const dC={}.hasOwnProperty;function $R(e){const t={};let n=-1;for(;++n<e.length;)DG(t,e[n]);return t}function DG(e,t){let n;for(n in t){const r=(dC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){dC.call(r,o)||(r[o]=[]);const l=a[o];kG(r[o],Array.isArray(l)?l:l?[l]:[])}}}function kG(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Jr(e,0,0,r)}const Tr=Ho(/[A-Za-z]/),ur=Ho(/[\dA-Za-z]/),RG=Ho(/[#-'*+\--9=?A-Z^-~]/);function $p(e){return e!==null&&(e<32||e===127)}const Wy=Ho(/\d/),IG=Ho(/[\dA-Fa-f]/),wG=Ho(/[!-/:-@[-`{-~]/);function Ze(e){return e!==null&&e<-2}function Xt(e){return e!==null&&(e<0||e===32)}function _t(e){return e===-2||e===-1||e===32}const wm=Ho(/\p{P}|\p{S}/u),Ns=Ho(/\s/);function Ho(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const NG={tokenize:FG,partial:!0},FR={tokenize:BG,partial:!0},BR={tokenize:jG,partial:!0},jR={tokenize:UG,partial:!0},OG={tokenize:HG,partial:!0},UR={name:"wwwAutolink",tokenize:PG,previous:zR},HR={name:"protocolAutolink",tokenize:$G,previous:GR},Vi={name:"emailAutolink",tokenize:MG,previous:VR},ci={};function LG(){return{text:ci}}let os=48;for(;os<123;)ci[os]=Vi,os++,os===58?os=65:os===91&&(os=97);ci[43]=Vi;ci[45]=Vi;ci[46]=Vi;ci[95]=Vi;ci[72]=[Vi,HR];ci[104]=[Vi,HR];ci[87]=[Vi,UR];ci[119]=[Vi,UR];function MG(e,t,n){const r=this;let a,o;return l;function l(m){return!Xy(m)||!VR.call(r,r.previous)||wE(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Xy(m)?(e.consume(m),c):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(OG,p,f)(m):m===45||m===95||ur(m)?(o=!0,e.consume(m),d):p(m)}function f(m){return e.consume(m),a=!0,d}function p(m){return o&&a&&Tr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function PG(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!zR.call(r,r.previous)||wE(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(NG,e.attempt(FR,e.attempt(BR,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function $G(e,t,n){const r=this;let a="",o=!1;return l;function l(m){return(m===72||m===104)&&GR.call(r,r.previous)&&!wE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(Tr(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const y=a.toLowerCase();if(y==="http"||y==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),o?f:(o=!0,d)):n(m)}function f(m){return m===null||$p(m)||Xt(m)||Ns(m)||wm(m)?n(m):e.attempt(FR,e.attempt(BR,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function FG(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function BG(e,t,n){let r,a,o;return l;function l(f){return f===46||f===95?e.check(jR,d,c)(f):f===null||Xt(f)||Ns(f)||f!==45&&wm(f)?d(f):(o=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function d(f){return a||r||!o?n(f):t(f)}}function jG(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(jR,t,o)(l):l===null||Xt(l)||Ns(l)?t(l):(e.consume(l),a)}function o(l){return l===41&&r++,e.consume(l),a}}function UG(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||Xt(c)||Ns(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Xt(c)||Ns(c)?t(c):r(c)}function o(c){return Tr(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):Tr(c)?(e.consume(c),l):n(c)}}function HG(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return ur(o)?n(o):t(o)}}function zR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xt(e)}function GR(e){return!Tr(e)}function VR(e){return!(e===47||Xy(e))}function Xy(e){return e===43||e===45||e===46||e===95||ur(e)}function wE(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(d){return _t(d)?(e.enter(n),c(d)):t(d)}function c(d){return _t(d)&&o++<a?(e.consume(d),c):(e.exit(n),t(d))}}function Oa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Kd={partial:!0,tokenize:zG};function zG(e,t,n){return r;function r(o){return _t(o)?St(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Ze(o)?t(o):n(o)}}const GG={tokenize:ZG,partial:!0};function VG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:KG,continuation:{tokenize:WG},exit:XG}},text:{91:{name:"gfmFootnoteCall",tokenize:QG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qG,resolveTo:YG}}}}function qG(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Oa(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function YG(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function QG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(o>999||m===93&&!l||m===null||m===91||Xt(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return a.includes(Oa(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Xt(m)||(l=!0),o++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function KG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return d;function d(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(_)}function p(_){if(l>999||_===93&&!c||_===null||_===91||Xt(_))return n(_);if(_===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return o=Oa(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Xt(_)||(c=!0),l++,e.consume(_),_===92?m:p}function m(_){return _===91||_===92||_===93?(e.consume(_),l++,p):p(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),a.includes(o)||a.push(o),St(e,b,"gfmFootnoteDefinitionWhitespace")):n(_)}function b(_){return t(_)}}function WG(e,t,n){return e.check(Kd,t,e.attempt(GG,t,n))}function XG(e){e.exit("gfmFootnoteDefinition")}function ZG(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function ec(e){if(e===null||Xt(e)||Ns(e))return 1;if(wm(e))return 2}function Nm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function JG(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let d=c;for(;d--;)if(o[d][0]==="exit"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[d][1].end.offset-o[d][1].start.offset){o[c][1].type="strikethroughSequence",o[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[d][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[d][1].end),end:Object.assign({},o[c][1].start)},m=[["enter",f,l],["enter",o[d][1],l],["exit",o[d][1],l],["enter",p,l]],y=l.parser.constructs.insideSpan.null;y&&Jr(m,m.length,0,Nm(y,o.slice(d+1,c),l)),Jr(m,m.length,0,[["exit",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",f,l]]),Jr(o,d-1,c-d+3,m),c=d+m.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,l,c){const d=this.previous,f=this.events;let p=0;return m;function m(b){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(b):(o.enter("strikethroughSequenceTemporary"),y(b))}function y(b){const _=ec(d);if(b===126)return p>1?c(b):(o.consume(b),p++,y);if(p<2&&!t)return c(b);const A=o.exit("strikethroughSequenceTemporary"),C=ec(b);return A._open=!C||C===2&&!!_,A._close=!_||_===2&&!!C,l(b)}}}let eV=class{constructor(){this.map=[]}add(t,n,r){tV(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}};function tV(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function nV(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function rV(){return{flow:{null:{name:"table",tokenize:aV,resolveAll:iV}}}}function aV(e,t,n){const r=this;let a=0,o=0,l;return c;function c(k){let H=r.events.length-1;for(;H>-1;){const re=r.events[H][1].type;if(re==="lineEnding"||re==="linePrefix")H--;else break}const W=H>-1?r.events[H][1].type:null,K=W==="tableHead"||W==="tableRow"?I:d;return K===I&&r.parser.lazy[r.now().line]?n(k):K(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),f(k)}function f(k){return k===124||(l=!0,o+=1),p(k)}function p(k){return k===null?n(k):Ze(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b):n(k):_t(k)?St(e,p,"whitespace")(k):(o+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||Xt(k)?(e.exit("data"),p(k)):(e.consume(k),k===92?y:m)}function y(k){return k===92||k===124?(e.consume(k),m):m(k)}function b(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_t(k)?St(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):_(k))}function _(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):L(k)}function A(k){return _t(k)?St(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||Ze(k)?M(k):L(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),D(k)):L(k)}function D(k){return k===45?(e.consume(k),D):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return _t(k)?St(e,M,"whitespace")(k):M(k)}function M(k){return k===124?_(k):k===null||Ze(k)?!l||a!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):L(k)}function L(k){return n(k)}function I(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||Ze(k)?(e.exit("tableRow"),t(k)):_t(k)?St(e,V,"whitespace")(k):(e.enter("data"),te(k))}function te(k){return k===null||k===124||Xt(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?Q:te)}function Q(k){return k===92||k===124?(e.consume(k),te):te(k)}}function iV(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,p,m;const y=new eV;for(;++n<e.length;){const b=e[n],_=b[1];b[0]==="enter"?_.type==="tableHead"?(c=!1,d!==0&&(fC(y,t,d,f,p),p=void 0,d=0),f={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(n,0,[["enter",f,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(r=!0,m=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(n,0,[["enter",p,t]])),a=_.type==="tableDelimiterRow"?2:p?3:1):a&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],m=Ch(y,t,o,a,void 0,m),o=[0,0,0,0]),l[2]=n)):_.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],m=Ch(y,t,o,a,void 0,m)),o=l,l=[o[1],n,0,0])):_.type==="tableHead"?(c=!0,d=n):_.type==="tableRow"||_.type==="tableDelimiterRow"?(d=n,o[1]!==0?(l[0]=l[1],m=Ch(y,t,o,a,n,m)):l[1]!==0&&(m=Ch(y,t,l,a,n,m)),a=0):a&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&fC(y,t,d,f,p),y.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=nV(t.events,n))}return e}function Ch(e,t,n,r,a,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Pl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const d=Pl(t.events,n[1]);if(o={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const f=Pl(t.events,n[2]),p=Pl(t.events,n[3]),m={type:c,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const y=t.events[n[2]],b=t.events[n[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const _=n[2]+1,A=n[3]-n[2]-1;e.add(_,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(o.end=Object.assign({},Pl(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function fC(e,t,n,r,a){const o=[],l=Pl(t.events,n);a&&(a.end=Object.assign({},l),o.push(["exit",a,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Pl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const oV={name:"tasklistCheck",tokenize:lV};function sV(){return{text:{91:oV}}}function lV(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),o)}function o(d){return Xt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Ze(d)?t(d):_t(d)?e.check({tokenize:cV},t,n)(d):n(d)}}function cV(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function uV(e){return $R([LG(),VG(),JG(e),rV(),sV()])}function dV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fV(e,t,n){const r=Rm((n||{}).ignore||[]),a=hV(t);let o=-1;for(;++o<a.length;)MR(e,"text",l);function l(d,f){let p=-1,m;for(;++p<f.length;){const y=f[p],b=m?m.children:void 0;if(r(y,b?b.indexOf(y):void 0,m))return;m=y}if(m)return c(d,f)}function c(d,f){const p=f[f.length-1],m=a[o][0],y=a[o][1];let b=0;const _=p.children.indexOf(d);let A=!1,C=[];m.lastIndex=0;let x=m.exec(d.value);for(;x;){const D=x.index,S={index:x.index,input:x.input,stack:[...f,d]};let M=y(...x,S);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?m.lastIndex=D+1:(b!==D&&C.push({type:"text",value:d.value.slice(b,D)}),Array.isArray(M)?C.push(...M):M&&C.push(M),b=D+x[0].length,A=!0),!m.global)break;x=m.exec(d.value)}return A?(b<d.value.length&&C.push({type:"text",value:d.value.slice(b)}),p.children.splice(_,1,...C)):C=[d],_+C.length}}function hV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([pV(a[0]),mV(a[1])])}return t}function pV(e){return typeof e=="string"?new RegExp(dV(e),"g"):e}function mV(e){return typeof e=="function"?e:function(){return e}}const w1="phrasing",N1=["autolink","link","image","label"];function gV(){return{transforms:[xV],enter:{literalAutolink:bV,literalAutolinkEmail:O1,literalAutolinkHttp:O1,literalAutolinkWww:O1},exit:{literalAutolink:_V,literalAutolinkEmail:TV,literalAutolinkHttp:EV,literalAutolinkWww:vV}}}function yV(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:w1,notInConstruct:N1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:w1,notInConstruct:N1},{character:":",before:"[ps]",after:"\\/",inConstruct:w1,notInConstruct:N1}]}}function bV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function O1(e){this.config.enter.autolinkProtocol.call(this,e)}function EV(e){this.config.exit.autolinkProtocol.call(this,e)}function vV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function TV(e){this.config.exit.autolinkEmail.call(this,e)}function _V(e){this.exit(e)}function xV(e){fV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AV],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,SV]],{ignore:["link","linkReference"]})}function AV(e,t,n,r,a){let o="";if(!qR(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!CV(n)))return!1;const l=DV(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function SV(e,t,n,r){return!qR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function CV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function DV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=xp(e,"(");let o=xp(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function qR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ns(n)||wm(n))&&(!t||n!==47)}YR.peek=PV;function kV(){this.buffer()}function RV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function IV(){this.buffer()}function wV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function NV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function OV(e){this.exit(e)}function LV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function MV(e){this.exit(e)}function PV(){return"["}function YR(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),l(),o+=a.move("]"),o}function $V(){return{enter:{gfmFootnoteCallString:kV,gfmFootnoteCall:RV,gfmFootnoteDefinitionLabelString:IV,gfmFootnoteDefinition:wV},exit:{gfmFootnoteCallString:NV,gfmFootnoteCall:OV,gfmFootnoteDefinitionLabelString:LV,gfmFootnoteDefinition:MV}}}function FV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:YR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,l){const c=o.createTracker(l);let d=c.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return d+=c.move(o.safe(o.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
171
|
-
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?QR:BV))),f(),d}}function BV(e,t,n){return t===0?e:QR(e,t,n)}function QR(e,t,n){return(n?"":" ")+e}const jV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];KR.peek=VV;function UV(){return{canContainEols:["delete"],enter:{strikethrough:zV},exit:{strikethrough:GV}}}function HV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jV}],handlers:{delete:KR}}}function zV(e){this.enter({type:"delete",children:[]},e)}function GV(e){this.exit(e)}function KR(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),o(),l}function VV(){return"~"}function qV(e){return e.length}function YV(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||qV,o=[],l=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const A=[],C=[];let x=-1;for(e[p].length>f&&(f=e[p].length);++x<e[p].length;){const D=QV(e[p][x]);if(n.alignDelimiters!==!1){const S=a(D);C[x]=S,(d[x]===void 0||S>d[x])&&(d[x]=S)}A.push(D)}l[p]=A,c[p]=C}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)o[m]=hC(r[m]);else{const A=hC(r);for(;++m<f;)o[m]=A}m=-1;const y=[],b=[];for(;++m<f;){const A=o[m];let C="",x="";A===99?(C=":",x=":"):A===108?C=":":A===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-x.length);const S=C+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=C.length+D+x.length,D>d[m]&&(d[m]=D),b[m]=D),y[m]=S}l.splice(1,0,y),c.splice(1,0,b),p=-1;const _=[];for(;++p<l.length;){const A=l[p],C=c[p];m=-1;const x=[];for(;++m<f;){const D=A[m]||"";let S="",M="";if(n.alignDelimiters!==!1){const L=d[m]-(C[m]||0),I=o[m];I===114?S=" ".repeat(L):I===99?L%2?(S=" ".repeat(L/2+.5),M=" ".repeat(L/2-.5)):(S=" ".repeat(L/2),M=S):M=" ".repeat(L)}n.delimiterStart!==!1&&!m&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&x.push(" "),n.alignDelimiters!==!1&&x.push(S),x.push(D),n.alignDelimiters!==!1&&x.push(M),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&x.push("|")}_.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return _.join(`
|
|
172
|
-
`)}function QV(e){return e==null?"":String(e)}function hC(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function KV(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),WV);return a(),l}function WV(e,t,n){return">"+(n?"":" ")+e}function XV(e,t){return pC(e,t.inConstruct,!0)&&!pC(e,t.notInConstruct,!1)}function pC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
173
|
-
`&&XV(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
174
|
-
`}function ZV(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>l&&(l=o):o=1,a=r+t.length,r=n.indexOf(t,a);return l}function JV(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eq(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tq(e,t,n,r){const a=eq(n),o=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(JV(e,n)){const m=n.enter("codeIndented"),y=n.indentLines(o,nq);return m(),y}const c=n.createTracker(r),d=a.repeat(Math.max(ZV(o,a)+1,3)),f=n.enter("codeFenced");let p=c.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
175
|
-
`,encode:["`"],...c.current()})),m()}return p+=c.move(`
|
|
176
|
-
`),o&&(p+=c.move(o+`
|
|
177
|
-
`)),p+=c.move(d),f(),p}function nq(e,t,n){return(n?"":" ")+e}function NE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rq(e,t,n,r){const a=NE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
178
|
-
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),l(),f}function aq(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Dd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Fp(e,t,n){const r=ec(e),a=ec(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}WR.peek=iq;function WR(e,t,n,r){const a=aq(n),o=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Fp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Dd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Fp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Dd(m));const b=l.move(a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+b}function iq(e,t,n){return n.options.emphasis||"*"}const oq={};function OE(e,t){const n=oq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return XR(e,r,a)}function XR(e,t,n){if(sq(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gC(e.children,t,n)}return Array.isArray(e)?gC(e,t,n):""}function gC(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=XR(e[a],t,n);return r.join("")}function sq(e){return!!(e&&typeof e=="object")}function lq(e,t){let n=!1;return Mr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Pp}),!!((!e.depth||e.depth<3)&&OE(e)&&(t.options.setext||n))}function cq(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(lq(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),y=n.containerPhrasing(e,{...o.current(),before:`
|
|
179
|
-
`,after:`
|
|
180
|
-
`});return m(),p(),y+`
|
|
181
|
-
`+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
182
|
-
`))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");o.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
183
|
-
`,...o.current()});return/^[\t ]/.test(f)&&(f=Dd(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}ZR.peek=uq;function ZR(e){return e.value||""}function uq(){return"<"}JR.peek=dq;function JR(e,t,n,r){const a=NE(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),l(),f}function dq(){return"!"}eI.peek=fq;function eI(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function fq(){return"!"}tI.peek=hq;function tI(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function hq(){return"`"}function nI(e,t){const n=OE(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rI.peek=pq;function rI(e,t,n,r){const a=NE(n),o=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(nI(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),c(),n.stack=p,m}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${o}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),d()),f+=l.move(")"),c(),f}function pq(e,t,n){return nI(e,n)?"<":"["}aI.peek=mq;function aI(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,o(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function mq(){return"["}function LE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gq(e){const t=LE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yq(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function iI(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bq(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?yq(n):LE(n);const c=e.ordered?l==="."?")":".":gq(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),iI(n)===l&&p){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,a(),f}function Eq(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vq(e,t,n,r){const a=Eq(n);let o=n.bulletCurrent||LE(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(l-o.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),p);return d(),f;function p(m,y,b){return y?(b?"":" ".repeat(l))+m:(b?o:o+" ".repeat(l-o.length))+m}}function Tq(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),a(),l}const _q=Rm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xq(e,t,n,r){return(e.children.some(function(a){return _q(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Aq(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}oI.peek=Sq;function oI(e,t,n,r){const a=Aq(n),o=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Fp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Dd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Fp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Dd(m));const b=l.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+b}function Sq(e,t,n){return n.options.strong||"*"}function Cq(e,t,n,r){return n.safe(e.value,r)}function Dq(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function kq(e,t,n){const r=(iI(n)+(n.options.ruleSpaces?" ":"")).repeat(Dq(n));return n.options.ruleSpaces?r.slice(0,-1):r}const sI={blockquote:KV,break:mC,code:tq,definition:rq,emphasis:WR,hardBreak:mC,heading:cq,html:ZR,image:JR,imageReference:eI,inlineCode:tI,link:rI,linkReference:aI,list:bq,listItem:vq,paragraph:Tq,root:xq,strong:oI,text:Cq,thematicBreak:kq};function Rq(){return{enter:{table:Iq,tableData:yC,tableHeader:yC,tableRow:Nq},exit:{codeText:Oq,table:wq,tableData:L1,tableHeader:L1,tableRow:L1}}}function Iq(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function wq(e){this.exit(e),this.data.inTable=void 0}function Nq(e){this.enter({type:"tableRow",children:[]},e)}function L1(e){this.exit(e)}function yC(e){this.enter({type:"tableCell",children:[]},e)}function Oq(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Lq));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Lq(e,t){return t==="|"?t:e}function Mq(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
184
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:l,tableCell:d,tableRow:c}};function l(b,_,A,C){return f(p(b,A,C),b.align)}function c(b,_,A,C){const x=m(b,A,C),D=f([x]);return D.slice(0,D.indexOf(`
|
|
185
|
-
`))}function d(b,_,A,C){const x=A.enter("tableCell"),D=A.enter("phrasing"),S=A.containerPhrasing(b,{...C,before:o,after:o});return D(),x(),S}function f(b,_){return YV(b,{align:_,alignDelimiters:r,padding:n,stringLength:a})}function p(b,_,A){const C=b.children;let x=-1;const D=[],S=_.enter("table");for(;++x<C.length;)D[x]=m(C[x],_,A);return S(),D}function m(b,_,A){const C=b.children;let x=-1;const D=[],S=_.enter("tableRow");for(;++x<C.length;)D[x]=d(C[x],b,_,A);return S(),D}function y(b,_,A){let C=sI.inlineCode(b,_,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Pq(){return{exit:{taskListCheckValueChecked:bC,taskListCheckValueUnchecked:bC,paragraph:Fq}}}function $q(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bq}}}function bC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Fq(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,l;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Bq(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let d=sI.listItem(e,t,n,{...r,...c.current()});return o&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(p){return p+l}}function jq(){return[gV(),$V(),UV(),Rq(),Pq()]}function Uq(e){return{extensions:[yV(),FV(e),HV(),Mq(e),$q()]}}const Hq={};function zq(e){const t=this,n=e||Hq,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(uV(n)),o.push(jq()),l.push(Uq(n))}function EC(e){if(e)throw e}var M1,vC;function Gq(){if(vC)return M1;vC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var m;for(m in d);return typeof m>"u"||e.call(d,m)},l=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},c=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return M1=function d(){var f,p,m,y,b,_,A=arguments[0],C=1,x=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<x;++C)if(f=arguments[C],f!=null)for(p in f)m=c(A,p),y=c(f,p),A!==y&&(D&&y&&(o(y)||(b=a(y)))?(b?(b=!1,_=m&&a(m)?m:[]):_=m&&o(m)?m:{},l(A,{name:p,newValue:d(D,_,y)})):typeof y<"u"&&l(A,{name:p,newValue:y}));return A},M1}var Vq=Gq();const P1=Cm(Vq);function Zy(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const qq=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function Yq(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...f){const p=e[++o];let m=-1;if(d){l(d);return}for(;++m<a.length;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,p?Qq(p,c)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Qq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(f){const p=f;if(c&&n)throw p;return a(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(o,a):d instanceof Error?a(d):o(d))}function a(l,...c){n||(n=!0,t(l,...c))}function o(l){a(null,l)}}const Ja={basename:Kq,dirname:Wq,extname:Xq,join:Zq,sep:"/"};function Kq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Wd(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Wq(e){if(Wd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Xq(e){Wd(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Zq(...e){let t=-1,n;for(;++t<e.length;)Wd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Jq(n)}function Jq(e){Wd(e);const t=e.codePointAt(0)===47;let n=eY(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eY(e,t){let n="",r=0,a=-1,o=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function Wd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tY={cwd:nY};function nY(){return"/"}function Jy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rY(e){if(typeof e=="string")e=new URL(e);else if(!Jy(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 aY(e)}function aY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}function qu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?TC(e.position):"start"in e||"end"in e?TC(e):"line"in e||"column"in e?eb(e):""}function eb(e){return _C(e&&e.line)+":"+_C(e&&e.column)}function TC(e){return eb(e&&e.start)+"-"+eb(e&&e.end)}function _C(e){return e&&typeof e=="number"?e:1}let hr=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=qu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};hr.prototype.file="";hr.prototype.name="";hr.prototype.reason="";hr.prototype.message="";hr.prototype.stack="";hr.prototype.column=void 0;hr.prototype.line=void 0;hr.prototype.ancestors=void 0;hr.prototype.cause=void 0;hr.prototype.fatal=void 0;hr.prototype.place=void 0;hr.prototype.ruleId=void 0;hr.prototype.source=void 0;const $1=["history","path","basename","stem","extname","dirname"];let lI=class{constructor(t){let n;t?Jy(t)?n={path:t}:typeof t=="string"||iY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$1.length;){const o=$1[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)$1.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Ja.basename(this.path):void 0}set basename(t){B1(t,"basename"),F1(t,"basename"),this.path=Ja.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ja.dirname(this.path):void 0}set dirname(t){xC(this.basename,"dirname"),this.path=Ja.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ja.extname(this.path):void 0}set extname(t){if(F1(t,"extname"),xC(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=Ja.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Jy(t)&&(t=rY(t)),B1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ja.basename(this.path,this.extname):void 0}set stem(t){B1(t,"stem"),F1(t,"stem"),this.path=Ja.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new hr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function F1(e,t){if(e&&e.includes(Ja.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ja.sep+"`")}function B1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function iY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oY={}.hasOwnProperty;let sY=class cI extends qq{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Yq()}copy(){const t=new cI;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(P1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(H1("data",this.frozen),this.namespace[t]=n,this):oY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(H1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Dh(t),r=this.parser||this.Parser;return j1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),j1("process",this.parser||this.Parser),U1("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const c=Dh(t),d=r.parse(c);r.run(d,c,function(p,m,y){if(p||!m||!y)return f(p);const b=m,_=r.stringify(b,y);uY(_)?y.value=_:y.result=_,f(p,y)});function f(p,m){p||!m?l(p):o?o(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),j1("processSync",this.parser||this.Parser),U1("processSync",this.compiler||this.Compiler),this.process(t,a),SC("processSync","process",n),r;function a(o,l){n=!0,EC(o),r=l}}run(t,n,r){AC(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,c){const d=Dh(n);a.run(t,d,f);function f(p,m,y){const b=m||t;p?c(p):l?l(b):r(void 0,b,y)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),SC("runSync","run",r),a;function o(l,c){EC(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=Dh(n),a=this.compiler||this.Compiler;return U1("stringify",a),AC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(H1("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...m]=f;d(p,m)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(f.plugins),f.settings&&(a.settings=P1(!0,a.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const m=f[p];o(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let m=-1,y=-1;for(;++m<r.length;)if(r[m][0]===f){y=m;break}if(y===-1)r.push([f,...p]);else if(p.length>0){let[b,..._]=p;const A=r[y][1];Zy(A)&&Zy(b)&&(b=P1(!0,A,b)),r[y]=[f,b,..._]}}}};const lY=new sY().freeze();function j1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function U1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function H1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function AC(e){if(!Zy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function SC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Dh(e){return cY(e)?e:new lI(e)}function cY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uY(e){return typeof e=="string"||dY(e)}function dY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function uI(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const CC=document.createElement("i");function ME(e){const t="&"+e+";";CC.innerHTML=t;const n=CC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const fY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hY(e){return e.replace(fY,pY)}function pY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return uI(n.slice(a?2:1),a?16:10)}return ME(n)||e}let mY=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&_u(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),_u(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_u(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);_u(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_u(this.left,n.reverse())}}};function _u(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function dI(e){const t={};let n=-1,r,a,o,l,c,d,f;const p=new mY(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gY(p,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=p.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},c=p.slice(a,n),c.unshift(r),p.splice(a,n-a+1,c))}}return Jr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function gY(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let p,m,y=-1,b=n,_=0,A=0;const C=[A];for(;b;){for(;e.get(++a)[1]!==b;);o.push(a),b._tokenizer||(p=r.sliceStream(b),b.next||p.push(null),m&&l.defineSkip(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(A=y+1,C.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),y=C.length;y--;){const x=c.slice(C[y],C[y+1]),D=o.pop();d.push([D,D+x.length-1]),e.splice(D,2,x)}for(d.reverse(),y=-1;++y<d.length;)f[_+d[y][0]]=_+d[y][1],_+=d[y][1]-d[y][0]-1;return f}function yY(e){for(;!dI(e););return e}const bY={tokenize:EY};function EY(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),St(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ze(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const vY={tokenize:TY},DC={tokenize:_Y};function TY(e){const t=this,n=[];let r=0,a,o,l;return c;function c(S){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const M=t.events.length;let L=M,I;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){I=t.events[L][1].end;break}x(r);let V=M;for(;V<t.events.length;)t.events[V][1].end={...I},V++;return Jr(t.events,L+1,0,t.events.slice(M)),t.events.length=V,f(S)}return c(S)}function f(S){if(r===n.length){if(!a)return y(S);if(a.currentConstruct&&a.currentConstruct.concrete)return _(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(DC,p,m)(S)}function p(S){return a&&D(),x(r),y(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,_(S)}function y(S){return t.containerState={},e.attempt(DC,b,_)(S)}function b(S){return r++,n.push([t.currentConstruct,t.containerState]),y(S)}function _(S){if(S===null){a&&D(),x(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),A(S)}function A(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return Ze(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(S),A)}function C(S,M){const L=t.sliceStream(S);if(M&&L.push(null),S.previous=o,o&&(o.next=S),o=S,a.defineSkip(S.start),a.write(L),t.parser.lazy[S.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<l&&(!a.events[I][1].end||a.events[I][1].end.offset>l))return;const V=t.events.length;let te=V,Q,k;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){if(Q){k=t.events[te][1].end;break}Q=!0}for(x(r),I=V;I<t.events.length;)t.events[I][1].end={...k},I++;Jr(t.events,te+1,0,t.events.slice(V)),t.events.length=I}}function x(S){let M=n.length;for(;M-- >S;){const L=n[M];t.containerState=L[1],L[0].exit.call(t,e)}n.length=S}function D(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function _Y(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const xY={resolve:SY,tokenize:CY},AY={partial:!0,tokenize:DY};function SY(e){return dI(e),e}function CY(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):Ze(c)?e.check(AY,l,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function DY(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,o,"linePrefix")}function o(l){if(l===null||Ze(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}const kY={tokenize:RY};function RY(e){const t=this,n=e.attempt(Kd,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(xY,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const IY={resolveAll:hI()},wY=fI("string"),NY=fI("text");function fI(e){return{resolveAll:hI(e==="text"?OY:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,c);return l;function l(p){return f(p)?o(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const m=a[p];let y=-1;if(m)for(;++y<m.length;){const b=m[y];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function hI(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function OY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,l=-1,c=0,d;for(;o--;){const f=a[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const pI={continuation:{tokenize:MY},exit:PY,name:"blockQuote",tokenize:LY};function LY(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return _t(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function MY(e,t,n){const r=this;return a;function a(l){return _t(l)?St(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(pI,t,n)(l)}}function PY(e){e.exit("blockQuote")}const Zh={name:"thematicBreak",tokenize:$Y};function $Y(e,t,n){let r=0,a;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Ze(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),_t(f)?St(e,c,"whitespace")(f):c(f))}}const Rr={continuation:{tokenize:UY},exit:zY,name:"list",tokenize:jY},FY={partial:!0,tokenize:GY},BY={partial:!0,tokenize:HY};function jY(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(b){const _=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Wy(b)){if(r.containerState.type||(r.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Zh,n,f)(b):f(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return Wy(b)&&++l<10?(e.consume(b),d):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),f(b)):n(b)}function f(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(Kd,r.interrupt?n:p,e.attempt(FY,y,m))}function p(b){return r.containerState.initialBlankLine=!0,o++,y(b)}function m(b){return _t(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):n(b)}function y(b){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function UY(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kd,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!_t(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(BY,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(Rr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function HY(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function zY(e){e.exit(this.containerState.type)}function GY(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!_t(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}function mI(e,t,n,r,a,o,l,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return m;function m(x){return x===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(x),e.exit(o),y):x===null||x===32||x===41||$p(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(x))}function y(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===62?(e.exit("chunkString"),e.exit(c),y(x)):x===null||x===60||Ze(x)?n(x):(e.consume(x),x===92?_:b)}function _(x){return x===60||x===62||x===92?(e.consume(x),b):b(x)}function A(x){return!p&&(x===null||x===41||Xt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):p<f&&x===40?(e.consume(x),p++,A):x===41?(e.consume(x),p--,A):x===null||x===32||x===40||$p(x)?n(x):(e.consume(x),x===92?C:A)}function C(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function gI(e,t,n,r,a,o){const l=this;let c=0,d;return f;function f(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(o),p}function p(b){return c>999||b===null||b===91||b===93&&!d||b===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(o),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):Ze(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||Ze(b)||c++>999?(e.exit("chunkString"),p(b)):(e.consume(b),d||(d=!_t(b)),b===92?y:m)}function y(b){return b===91||b===92||b===93?(e.consume(b),c++,m):m(b)}}function yI(e,t,n,r,a,o){let l;return c;function c(y){return y===34||y===39||y===40?(e.enter(r),e.enter(a),e.consume(y),e.exit(a),l=y===40?41:y,d):n(y)}function d(y){return y===l?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):(e.enter(o),f(y))}function f(y){return y===l?(e.exit(o),d(l)):y===null?n(y):Ze(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),St(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===l||y===null||Ze(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?m:p)}function m(y){return y===l||y===92?(e.consume(y),p):p(y)}}function Yu(e,t){let n;return r;function r(a){return Ze(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):_t(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const VY={name:"definition",tokenize:YY},qY={partial:!0,tokenize:QY};function YY(e,t,n){const r=this;let a;return o;function o(b){return e.enter("definition"),l(b)}function l(b){return gI.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function c(b){return a=Oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return Xt(b)?Yu(e,f)(b):f(b)}function f(b){return mI(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(qY,m,m)(b)}function m(b){return _t(b)?St(e,y,"whitespace")(b):y(b)}function y(b){return b===null||Ze(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function QY(e,t,n){return r;function r(c){return Xt(c)?Yu(e,a)(c):n(c)}function a(c){return yI(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return _t(c)?St(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Ze(c)?t(c):n(c)}}const z1={name:"codeIndented",tokenize:WY},KY={partial:!0,tokenize:XY};function WY(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),St(e,o,"linePrefix",5)(f)}function o(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Ze(f)?e.attempt(KY,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Ze(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function XY(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):St(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Ze(l)?a(l):n(l)}}const kC={partial:!0,tokenize:JY},RC={concrete:!0,name:"codeFenced",tokenize:ZY};function ZY(e,t,n){const r=this,a={partial:!0,tokenize:L};let o=0,l=0,c;return d;function d(I){return f(I)}function f(I){const V=r.events[r.events.length-1];return o=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,c=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(I)}function p(I){return I===c?(l++,e.consume(I),p):l<3?n(I):(e.exit("codeFencedFenceSequence"),_t(I)?St(e,m,"whitespace")(I):m(I))}function m(I){return I===null||Ze(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(kC,A,M)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===null||Ze(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(I)):_t(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,b,"whitespace")(I)):I===96&&I===c?n(I):(e.consume(I),y)}function b(I){return I===null||Ze(I)?m(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(I))}function _(I){return I===null||Ze(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(I)):I===96&&I===c?n(I):(e.consume(I),_)}function A(I){return e.attempt(a,M,C)(I)}function C(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return o>0&&_t(I)?St(e,D,"linePrefix",o+1)(I):D(I)}function D(I){return I===null||Ze(I)?e.check(kC,A,M)(I):(e.enter("codeFlowValue"),S(I))}function S(I){return I===null||Ze(I)?(e.exit("codeFlowValue"),D(I)):(e.consume(I),S)}function M(I){return e.exit("codeFenced"),t(I)}function L(I,V,te){let Q=0;return k;function k(me){return I.enter("lineEnding"),I.consume(me),I.exit("lineEnding"),H}function H(me){return I.enter("codeFencedFence"),_t(me)?St(I,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):W(me)}function W(me){return me===c?(I.enter("codeFencedFenceSequence"),K(me)):te(me)}function K(me){return me===c?(Q++,I.consume(me),K):Q>=l?(I.exit("codeFencedFenceSequence"),_t(me)?St(I,re,"whitespace")(me):re(me)):te(me)}function re(me){return me===null||Ze(me)?(I.exit("codeFencedFence"),V(me)):te(me)}}}function JY(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const IC={name:"setextUnderline",resolveTo:eQ,tokenize:tQ};function eQ(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function tQ(e,t,n){const r=this;let a;return o;function o(f){let p=r.events.length,m;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){m=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),_t(f)?St(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Ze(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const nQ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wC=["pre","script","style","textarea"],rQ={concrete:!0,name:"htmlFlow",resolveTo:oQ,tokenize:sQ},aQ={partial:!0,tokenize:cQ},iQ={partial:!0,tokenize:lQ};function oQ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sQ(e,t,n){const r=this;let a,o,l,c,d;return f;function f(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),m}function m(O){return O===33?(e.consume(O),y):O===47?(e.consume(O),o=!0,A):O===63?(e.consume(O),a=3,r.interrupt?t:P):Tr(O)?(e.consume(O),l=String.fromCharCode(O),C):n(O)}function y(O){return O===45?(e.consume(O),a=2,b):O===91?(e.consume(O),a=5,c=0,_):Tr(O)?(e.consume(O),a=4,r.interrupt?t:P):n(O)}function b(O){return O===45?(e.consume(O),r.interrupt?t:P):n(O)}function _(O){const ce="CDATA[";return O===ce.charCodeAt(c++)?(e.consume(O),c===ce.length?r.interrupt?t:W:_):n(O)}function A(O){return Tr(O)?(e.consume(O),l=String.fromCharCode(O),C):n(O)}function C(O){if(O===null||O===47||O===62||Xt(O)){const ce=O===47,Ne=l.toLowerCase();return!ce&&!o&&wC.includes(Ne)?(a=1,r.interrupt?t(O):W(O)):nQ.includes(l.toLowerCase())?(a=6,ce?(e.consume(O),x):r.interrupt?t(O):W(O)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):o?D(O):S(O))}return O===45||ur(O)?(e.consume(O),l+=String.fromCharCode(O),C):n(O)}function x(O){return O===62?(e.consume(O),r.interrupt?t:W):n(O)}function D(O){return _t(O)?(e.consume(O),D):k(O)}function S(O){return O===47?(e.consume(O),k):O===58||O===95||Tr(O)?(e.consume(O),M):_t(O)?(e.consume(O),S):k(O)}function M(O){return O===45||O===46||O===58||O===95||ur(O)?(e.consume(O),M):L(O)}function L(O){return O===61?(e.consume(O),I):_t(O)?(e.consume(O),L):S(O)}function I(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),d=O,V):_t(O)?(e.consume(O),I):te(O)}function V(O){return O===d?(e.consume(O),d=null,Q):O===null||Ze(O)?n(O):(e.consume(O),V)}function te(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Xt(O)?L(O):(e.consume(O),te)}function Q(O){return O===47||O===62||_t(O)?S(O):n(O)}function k(O){return O===62?(e.consume(O),H):n(O)}function H(O){return O===null||Ze(O)?W(O):_t(O)?(e.consume(O),H):n(O)}function W(O){return O===45&&a===2?(e.consume(O),G):O===60&&a===1?(e.consume(O),oe):O===62&&a===4?(e.consume(O),Ce):O===63&&a===3?(e.consume(O),P):O===93&&a===5?(e.consume(O),se):Ze(O)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(aQ,he,K)(O)):O===null||Ze(O)?(e.exit("htmlFlowData"),K(O)):(e.consume(O),W)}function K(O){return e.check(iQ,re,he)(O)}function re(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),me}function me(O){return O===null||Ze(O)?K(O):(e.enter("htmlFlowData"),W(O))}function G(O){return O===45?(e.consume(O),P):W(O)}function oe(O){return O===47?(e.consume(O),l="",le):W(O)}function le(O){if(O===62){const ce=l.toLowerCase();return wC.includes(ce)?(e.consume(O),Ce):W(O)}return Tr(O)&&l.length<8?(e.consume(O),l+=String.fromCharCode(O),le):W(O)}function se(O){return O===93?(e.consume(O),P):W(O)}function P(O){return O===62?(e.consume(O),Ce):O===45&&a===2?(e.consume(O),P):W(O)}function Ce(O){return O===null||Ze(O)?(e.exit("htmlFlowData"),he(O)):(e.consume(O),Ce)}function he(O){return e.exit("htmlFlow"),t(O)}}function lQ(e,t,n){const r=this;return a;function a(l){return Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function cQ(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Kd,t,n)}}const uQ={name:"headingAtx",resolve:dQ,tokenize:fQ};function dQ(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Jr(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function fQ(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||Xt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Ze(p)?(e.exit("atxHeading"),t(p)):_t(p)?St(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||Xt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const bI={name:"characterEscape",tokenize:hQ};function hQ(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return wG(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const EI={name:"characterReference",tokenize:pQ};function pQ(e,t,n){const r=this;let a=0,o,l;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=ur,p(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=IG,p):(e.enter("characterReferenceValue"),o=7,l=Wy,p(m))}function p(m){if(m===59&&a){const y=e.exit("characterReferenceValue");return l===ur&&!ME(r.sliceSerialize(y))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<o?(e.consume(m),p):n(m)}}const mQ={name:"codeText",previous:yQ,resolve:gQ,tokenize:bQ};function gQ(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function yQ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bQ(e,t,n){let r=0,a,o;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),r++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(o=e.enter("codeTextSequence"),a=0,p(m)):Ze(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Ze(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function p(m){return m===96?(e.consume(m),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(o.type="codeTextData",f(m))}}const tb={name:"attention",resolveAll:EQ,tokenize:vQ};function EQ(e,t){let n=-1,r,a,o,l,c,d,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},y={...e[n][1].start};NC(m,-d),NC(y,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Ea(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Ea(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=Ea(f,Nm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Ea(f,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=Ea(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Jr(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function vQ(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ec(r);let o;return l;function l(d){return o=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===o)return e.consume(d),c;const f=e.exit("attentionSequence"),p=ec(d),m=!p||p===2&&a||n.includes(d),y=!a||a===2&&p||n.includes(r);return f._open=!!(o===42?m:m&&(a||!y)),f._close=!!(o===42?y:y&&(p||!m)),t(d)}}function NC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PE={name:"labelEnd",resolveAll:AQ,resolveTo:SQ,tokenize:CQ},TQ={tokenize:DQ},_Q={tokenize:kQ},xQ={tokenize:RQ};function AQ(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Jr(e,0,e.length,n),e}function SQ(e,t){let n=e.length,r=0,a,o,l,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=Ea(c,e.slice(o+1,o+r+3)),c=Ea(c,[["enter",p,t]]),c=Ea(c,Nm(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=Ea(c,[["exit",p,t],e[l-2],e[l-1],["exit",f,t]]),c=Ea(c,e.slice(l+1)),c=Ea(c,[["exit",d,t]]),Jr(e,o,e.length,c),e}function CQ(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(y){return o?o._inactive?m(y):(l=r.parser.defined.includes(Oa(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):n(y)}function d(y){return y===40?e.attempt(TQ,p,l?p:m)(y):y===91?e.attempt(_Q,p,l?f:m)(y):l?p(y):m(y)}function f(y){return e.attempt(xQ,p,m)(y)}function p(y){return t(y)}function m(y){return o._balanced=!0,n(y)}}function DQ(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return Xt(m)?Yu(e,o)(m):o(m)}function o(m){return m===41?p(m):mI(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return Xt(m)?Yu(e,d)(m):p(m)}function c(m){return n(m)}function d(m){return m===34||m===39||m===40?yI(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function f(m){return Xt(m)?Yu(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function kQ(e,t,n){const r=this;return a;function a(c){return gI.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(Oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function RQ(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const IQ={name:"hardBreakEscape",tokenize:wQ};function wQ(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Ze(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const NQ={name:"labelStartLink",resolveAll:PE.resolveAll,tokenize:OQ};function OQ(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const LQ={name:"autolink",tokenize:MQ};function MQ(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(b){return Tr(b)?(e.consume(b),l):b===64?n(b):f(b)}function l(b){return b===43||b===45||b===46||ur(b)?(r=1,c(b)):f(b)}function c(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||ur(b))&&r++<32?(e.consume(b),c):(r=0,f(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||$p(b)?n(b):(e.consume(b),d)}function f(b){return b===64?(e.consume(b),p):RG(b)?(e.consume(b),f):n(b)}function p(b){return ur(b)?m(b):n(b)}function m(b){return b===46?(e.consume(b),r=0,p):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):y(b)}function y(b){if((b===45||ur(b))&&r++<63){const _=b===45?y:m;return e.consume(b),_}return n(b)}}const PQ={name:"htmlText",tokenize:$Q};function $Q(e,t,n){const r=this;let a,o,l;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),L):P===63?(e.consume(P),S):Tr(P)?(e.consume(P),te):n(P)}function f(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),o=0,_):Tr(P)?(e.consume(P),D):n(P)}function p(P){return P===45?(e.consume(P),b):n(P)}function m(P){return P===null?n(P):P===45?(e.consume(P),y):Ze(P)?(l=m,oe(P)):(e.consume(P),m)}function y(P){return P===45?(e.consume(P),b):m(P)}function b(P){return P===62?G(P):P===45?y(P):m(P)}function _(P){const Ce="CDATA[";return P===Ce.charCodeAt(o++)?(e.consume(P),o===Ce.length?A:_):n(P)}function A(P){return P===null?n(P):P===93?(e.consume(P),C):Ze(P)?(l=A,oe(P)):(e.consume(P),A)}function C(P){return P===93?(e.consume(P),x):A(P)}function x(P){return P===62?G(P):P===93?(e.consume(P),x):A(P)}function D(P){return P===null||P===62?G(P):Ze(P)?(l=D,oe(P)):(e.consume(P),D)}function S(P){return P===null?n(P):P===63?(e.consume(P),M):Ze(P)?(l=S,oe(P)):(e.consume(P),S)}function M(P){return P===62?G(P):S(P)}function L(P){return Tr(P)?(e.consume(P),I):n(P)}function I(P){return P===45||ur(P)?(e.consume(P),I):V(P)}function V(P){return Ze(P)?(l=V,oe(P)):_t(P)?(e.consume(P),V):G(P)}function te(P){return P===45||ur(P)?(e.consume(P),te):P===47||P===62||Xt(P)?Q(P):n(P)}function Q(P){return P===47?(e.consume(P),G):P===58||P===95||Tr(P)?(e.consume(P),k):Ze(P)?(l=Q,oe(P)):_t(P)?(e.consume(P),Q):G(P)}function k(P){return P===45||P===46||P===58||P===95||ur(P)?(e.consume(P),k):H(P)}function H(P){return P===61?(e.consume(P),W):Ze(P)?(l=H,oe(P)):_t(P)?(e.consume(P),H):Q(P)}function W(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,K):Ze(P)?(l=W,oe(P)):_t(P)?(e.consume(P),W):(e.consume(P),re)}function K(P){return P===a?(e.consume(P),a=void 0,me):P===null?n(P):Ze(P)?(l=K,oe(P)):(e.consume(P),K)}function re(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Xt(P)?Q(P):(e.consume(P),re)}function me(P){return P===47||P===62||Xt(P)?Q(P):n(P)}function G(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function oe(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),le}function le(P){return _t(P)?St(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):se(P)}function se(P){return e.enter("htmlTextData"),l(P)}}const FQ={name:"labelStartImage",resolveAll:PE.resolveAll,tokenize:BQ};function BQ(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const G1={name:"lineEnding",tokenize:jQ};function jQ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const UQ={42:Rr,43:Rr,45:Rr,48:Rr,49:Rr,50:Rr,51:Rr,52:Rr,53:Rr,54:Rr,55:Rr,56:Rr,57:Rr,62:pI},HQ={91:VY},zQ={[-2]:z1,[-1]:z1,32:z1},GQ={35:uQ,42:Zh,45:[IC,Zh],60:rQ,61:IC,95:Zh,96:RC,126:RC},VQ={38:EI,92:bI},qQ={[-5]:G1,[-4]:G1,[-3]:G1,33:FQ,38:EI,42:tb,60:[LQ,PQ],91:NQ,92:[IQ,bI],93:PE,95:tb,96:mQ},YQ={null:[tb,IY]},QQ={null:[42,95]},KQ={null:[]},WQ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:QQ,contentInitial:HQ,disable:KQ,document:UQ,flow:GQ,flowInitial:zQ,insideSpan:YQ,string:VQ,text:qQ},Symbol.toStringTag,{value:"Module"}));function XQ(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let l=[],c=[];const d={attempt:V(L),check:V(I),consume:D,enter:S,exit:M,interrupt:V(I,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:_,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:m};let p=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function m(H){return l=Ea(l,H),C(),l[l.length-1]!==null?[]:(te(t,0),f.events=Nm(o,f.events,f),f.events)}function y(H,W){return JQ(b(H),W)}function b(H){return ZQ(l,H)}function _(){const{_bufferIndex:H,_index:W,line:K,column:re,offset:me}=r;return{_bufferIndex:H,_index:W,line:K,column:re,offset:me}}function A(H){a[H.line]=H.column,k()}function C(){let H;for(;r._index<l.length;){const W=l[r._index];if(typeof W=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<W.length;)x(W.charCodeAt(r._bufferIndex));else x(W)}}function x(H){p=p(H)}function D(H){Ze(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,k()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=H}function S(H,W){const K=W||{};return K.type=H,K.start=_(),f.events.push(["enter",K,f]),c.push(K),K}function M(H){const W=c.pop();return W.end=_(),f.events.push(["exit",W,f]),W}function L(H,W){te(H,W.from)}function I(H,W){W.restore()}function V(H,W){return K;function K(re,me,G){let oe,le,se,P;return Array.isArray(re)?he(re):"tokenize"in re?he([re]):Ce(re);function Ce(Ie){return Me;function Me(Oe){const st=Oe!==null&&Ie[Oe],dt=Oe!==null&&Ie.null,Ue=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return he(Ue)(Oe)}}function he(Ie){return oe=Ie,le=0,Ie.length===0?G:O(Ie[le])}function O(Ie){return Me;function Me(Oe){return P=Q(),se=Ie,Ie.partial||(f.currentConstruct=Ie),Ie.name&&f.parser.constructs.disable.null.includes(Ie.name)?Ne():Ie.tokenize.call(W?Object.assign(Object.create(f),W):f,d,ce,Ne)(Oe)}}function ce(Ie){return H(se,P),me}function Ne(Ie){return P.restore(),++le<oe.length?O(oe[le]):G}}}function te(H,W){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&Jr(f.events,W,f.events.length-W,H.resolve(f.events.slice(W),f)),H.resolveTo&&(f.events=H.resolveTo(f.events,f))}function Q(){const H=_(),W=f.previous,K=f.currentConstruct,re=f.events.length,me=Array.from(c);return{from:re,restore:G};function G(){r=H,f.previous=W,f.currentConstruct=K,f.events.length=re,c=me,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ZQ(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function JQ(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
186
|
-
`;break}case-3:{l=`\r
|
|
187
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function eK(e){const t={constructs:$R([WQ,...(e||{}).extensions||[]]),content:n(bY),defined:[],document:n(vY),flow:n(kY),lazy:{},string:n(wY),text:n(NY)};return t;function n(r){return a;function a(o){return XQ(t,r,o)}}}const OC=/[\0\t\n\r]/g;function tK(){let e=1,t="",n=!0,r;return a;function a(o,l,c){const d=[];let f,p,m,y,b;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),m=0,t="",n&&(o.charCodeAt(0)===65279&&m++,n=void 0);m<o.length;){if(OC.lastIndex=m,f=OC.exec(o),y=f&&f.index!==void 0?f.index:o.length,b=o.charCodeAt(y),!f){t=o.slice(m);break}if(b===10&&m===y&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<y&&(d.push(o.slice(m,y)),e+=y-m),b){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=y+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const vI={}.hasOwnProperty;function nK(e,t,n){return typeof t!="string"&&(n=t,t=void 0),rK(n)(yY(eK(n).document().write(tK()(e,t,!0))))}function rK(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(rn),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:o(rr),blockQuote:o(dt),characterEscape:Q,characterReference:Q,codeFenced:o(Ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ue,l),codeText:o(Zt,l),codeTextData:Q,data:Q,codeFlowValue:Q,definition:o(wt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Pe),hardBreakEscape:o(dn),hardBreakTrailing:o(dn),htmlFlow:o(Ve,l),htmlFlowData:Q,htmlText:o(Ve,l),htmlTextData:Q,image:o(Zn),label:l,link:o(rn),listItem:o(Ye),listItemValue:y,listOrdered:o(on,m),listUnordered:o(on),paragraph:o(Ct),reference:O,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(rr),strong:o(xr),thematicBreak:o(Rt)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:st,autolinkProtocol:Oe,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:Ie,characterReference:Me,codeFenced:d(C),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:_,codeFlowValue:k,codeIndented:d(x),codeText:d(me),codeTextData:k,data:k,definition:d(),definitionDestinationString:M,definitionLabelString:D,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(W),hardBreakTrailing:d(W),htmlFlow:d(K),htmlFlowData:k,htmlText:d(re),htmlTextData:k,image:d(oe),label:se,labelText:le,lineEnding:H,link:d(G),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ce,resourceDestinationString:P,resourceTitleString:Ce,resource:he,setextHeading:d(te),setextHeadingLineSequence:V,setextHeadingText:I,strong:d(),thematicBreak:d()}};TI(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ve={type:"root",children:[]};const Be={stack:[ve],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:p,data:n},rt=[];let Dt=-1;for(;++Dt<ue.length;)if(ue[Dt][1].type==="listOrdered"||ue[Dt][1].type==="listUnordered")if(ue[Dt][0]==="enter")rt.push(Dt);else{const Nt=rt.pop();Dt=a(ue,Nt,Dt)}for(Dt=-1;++Dt<ue.length;){const Nt=t[ue[Dt][0]];vI.call(Nt,ue[Dt][1].type)&&Nt[ue[Dt][1].type].call(Object.assign({sliceSerialize:ue[Dt][2].sliceSerialize},Be),ue[Dt][1])}if(Be.tokenStack.length>0){const Nt=Be.tokenStack[Be.tokenStack.length-1];(Nt[1]||LC).call(Be,void 0,Nt[0])}for(ve.position={start:vo(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:vo(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)ve=t.transforms[Dt](ve)||ve;return ve}function a(ue,ve,Be){let rt=ve-1,Dt=-1,Nt=!1,zn,gn,An,_e;for(;++rt<=Be;){const Te=ue[rt];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Dt++:Dt--,_e=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(zn&&!_e&&!Dt&&!An&&(An=rt),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!Dt&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Dt===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(zn){let ot=rt;for(gn=void 0;ot--;){const Xe=ue[ot];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;gn&&(ue[gn][1].type="lineEndingBlank",Nt=!0),Xe[1].type="lineEnding",gn=ot}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}An&&(!gn||An<gn)&&(zn._spread=!0),zn.end=Object.assign({},gn?ue[gn][1].start:Te[1].end),ue.splice(gn||rt,0,["exit",zn,Te[2]]),rt++,Be++}if(Te[1].type==="listItemPrefix"){const ot={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};zn=ot,ue.splice(rt,0,["enter",ot,Te[2]]),rt++,Be++,An=void 0,_e=!0}}}return ue[ve][1]._spread=Nt,Be}function o(ue,ve){return Be;function Be(rt){c.call(this,ue(rt),rt),ve&&ve.call(this,rt)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ue,ve,Be){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ve,Be||void 0]),ue.position={start:vo(ve.start),end:void 0}}function d(ue){return ve;function ve(Be){ue&&ue.call(this,Be),f.call(this,Be)}}function f(ue,ve){const Be=this.stack.pop(),rt=this.tokenStack.pop();if(rt)rt[0].type!==ue.type&&(ve?ve.call(this,ue,rt[0]):(rt[1]||LC).call(this,ue,rt[0]));else throw new Error("Cannot close `"+ue.type+"` ("+qu({start:ue.start,end:ue.end})+"): it’s not open");Be.position.end=vo(ue.end)}function p(){return OE(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=ue}function _(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=ue}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ve,Be.identifier=Oa(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function M(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function L(ue){const ve=this.stack[this.stack.length-1];if(!ve.depth){const Be=this.sliceSerialize(ue).length;ve.depth=Be}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function V(ue){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(ue){const ve=this.stack[this.stack.length-1].children;let Be=ve[ve.length-1];(!Be||Be.type!=="text")&&(Be=Ba(),Be.position={start:vo(ue.start),end:void 0},ve.push(Be)),this.stack.push(Be)}function k(ue){const ve=this.stack.pop();ve.value+=this.sliceSerialize(ue),ve.position.end=vo(ue.end)}function H(ue){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=ve.children[ve.children.length-1];Be.position.end=vo(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(Q.call(this,ue),k.call(this,ue))}function W(){this.data.atHardBreak=!0}function K(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function re(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function me(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function G(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function oe(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function le(ue){const ve=this.sliceSerialize(ue),Be=this.stack[this.stack.length-2];Be.label=hY(ve),Be.identifier=Oa(ve).toLowerCase()}function se(){const ue=this.stack[this.stack.length-1],ve=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const rt=ue.children;Be.children=rt}else Be.alt=ve}function P(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function Ce(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function he(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ce(ue){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ve,Be.identifier=Oa(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ne(ue){this.data.characterReferenceType=ue.type}function Ie(ue){const ve=this.sliceSerialize(ue),Be=this.data.characterReferenceType;let rt;Be?(rt=uI(ve,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):rt=ME(ve);const Dt=this.stack[this.stack.length-1];Dt.value+=rt}function Me(ue){const ve=this.stack.pop();ve.position.end=vo(ue.end)}function Oe(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(ue)}function st(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(ue)}function dt(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Zt(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function rr(){return{type:"heading",depth:0,children:[]}}function dn(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function rn(){return{type:"link",title:null,url:"",children:[]}}function on(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ye(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function xr(){return{type:"strong",children:[]}}function Ba(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function vo(e){return{line:e.line,column:e.column,offset:e.offset}}function TI(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?TI(e,r):aK(e,r)}}function aK(e,t){let n;for(n in t)if(vI.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function LC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+qu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+qu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+qu({start:t.start,end:t.end})+") is still open")}function iK(e){const t=this;t.parser=n;function n(r){return nK(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const _I=-1,Om=0,Qu=1,Bp=2,$E=3,FE=4,BE=5,jE=6,xI=7,AI=8,MC=typeof self=="object"?self:globalThis,oK=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case Om:case _I:return n(l,a);case Qu:{const c=n([],a);for(const d of l)c.push(r(d));return c}case Bp:{const c=n({},a);for(const[d,f]of l)c[r(d)]=r(f);return c}case $E:return n(new Date(l),a);case FE:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case BE:{const c=n(new Map,a);for(const[d,f]of l)c.set(r(d),r(f));return c}case jE:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case xI:{const{name:c,message:d}=l;return n(new MC[c](d),a)}case AI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new MC[o](l),a)};return r},PC=e=>oK(new Map,e)(0),Il="",{toString:sK}={},{keys:lK}=Object,xu=e=>{const t=typeof e;if(t!=="object"||!e)return[Om,t];const n=sK.call(e).slice(8,-1);switch(n){case"Array":return[Qu,Il];case"Object":return[Bp,Il];case"Date":return[$E,Il];case"RegExp":return[FE,Il];case"Map":return[BE,Il];case"Set":return[jE,Il];case"DataView":return[Qu,n]}return n.includes("Array")?[Qu,n]:n.includes("Error")?[xI,n]:[Bp,n]},kh=([e,t])=>e===Om&&(t==="function"||t==="symbol"),cK=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},o=l=>{if(n.has(l))return n.get(l);let[c,d]=xu(l);switch(c){case Om:{let p=l;switch(d){case"bigint":c=AI,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);p=null;break;case"undefined":return a([_I],l)}return a([c,p],l)}case Qu:{if(d){let y=l;return d==="DataView"?y=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(l)),a([d,[...y]],l)}const p=[],m=a([c,p],l);for(const y of l)p.push(o(y));return m}case Bp:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const p=[],m=a([c,p],l);for(const y of lK(l))(e||!kh(xu(l[y])))&&p.push([o(y),o(l[y])]);return m}case $E:return a([c,l.toISOString()],l);case FE:{const{source:p,flags:m}=l;return a([c,{source:p,flags:m}],l)}case BE:{const p=[],m=a([c,p],l);for(const[y,b]of l)(e||!(kh(xu(y))||kh(xu(b))))&&p.push([o(y),o(b)]);return m}case jE:{const p=[],m=a([c,p],l);for(const y of l)(e||!kh(xu(y)))&&p.push(o(y));return m}}const{message:f}=l;return a([c,{name:d,message:f}],l)};return o},$C=(e,{json:t,lossy:n}={})=>{const r=[];return cK(!(t||n),!!t,new Map,r)(e),r},Os=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?PC($C(e,t)):structuredClone(e):(e,t)=>PC($C(e,t));function uc(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&ur(e.charCodeAt(n+1))&&ur(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function uK(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function dK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fK(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||uK,r=e.options.footnoteBackLabel||dK,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const p=e.all(f),m=String(f.identifier).toUpperCase(),y=uc(m.toLowerCase());let b=0;const _=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++b<=A;){_.length>0&&_.push({type:"text",value:" "});let D=typeof n=="string"?n:n(d,b);typeof D=="string"&&(D={type:"text",value:D}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,b),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(..._)}else p.push(..._);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Os(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
188
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
189
|
-
`}]}}function hK(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function pK(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
190
|
-
`}]}function mK(e,t){const n=t.value?t.value+`
|
|
191
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function gK(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yK(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bK(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=uc(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function EK(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vK(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function SI(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function TK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return SI(e,t);const a={src:uc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function _K(e,t){const n={src:uc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xK(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function AK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return SI(e,t);const a={href:uc(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function SK(e,t){const n={href:uc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function CK(e,t,n){const r=e.all(t),a=n?DK(n):CI(t),o={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(a||c!==0||p.type!=="element"||p.tagName!=="p")&&l.push({type:"text",value:`
|
|
192
|
-
`}),p.type==="element"&&p.tagName==="p"&&!a?l.push(...p.children):l.push(p)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
193
|
-
`});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function DK(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=CI(n[r])}return t}function CI(e){return e.spread??e.children.length>1}function kK(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function RK(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IK(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function wK(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Lm=DI("end"),ui=DI("start");function DI(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function NK(e){const t=ui(e),n=Lm(e);if(t&&n)return{start:t,end:n}}function OK(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=ui(t.children[1]),d=Lm(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function LK(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],m={},y=o?o[c]:void 0;y&&(m.align=y);let b={type:"element",tagName:a,properties:m,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),d.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function MK(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function PK(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(FC(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(FC(t.slice(a),a>0,!1)),o.join("")}function FC(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===9||o===32;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function $K(e,t){const n={type:"text",value:PK(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FK(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const BK={blockquote:hK,break:pK,code:mK,delete:gK,emphasis:yK,footnoteReference:bK,heading:EK,html:vK,imageReference:TK,image:_K,inlineCode:xK,linkReference:AK,link:SK,listItem:CK,list:kK,paragraph:RK,root:IK,strong:wK,table:OK,tableCell:MK,tableRow:LK,text:$K,thematicBreak:FK,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){}const nb={}.hasOwnProperty,jK={};function UK(e,t){const n=t||jK,r=new Map,a=new Map,o=new Map,l={...BK,...n.handlers},c={all:f,applyData:zK,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:l,one:d,options:n,patch:HK,wrap:VK};return Mr(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?r:a,y=String(p.identifier).toUpperCase();m.has(y)||m.set(y,p)}}),c;function d(p,m){const y=p.type,b=c.handlers[y];if(nb.call(c.handlers,y)&&b)return b(c,p,m);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in p){const{children:_,...A}=p,C=Os(A);return C.children=c.all(p),C}return Os(p)}return(c.options.unknownHandler||GK)(c,p,m)}function f(p){const m=[];if("children"in p){const y=p.children;let b=-1;for(;++b<y.length;){const _=c.one(y[b],p);if(_){if(b&&y[b-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=BC(_.value)),!Array.isArray(_)&&_.type==="element")){const A=_.children[0];A&&A.type==="text"&&(A.value=BC(A.value))}Array.isArray(_)?m.push(..._):m.push(_)}}}return m}}function HK(e,t){e.position&&(t.position=NK(e))}function zK(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Os(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function GK(e,t){const n=t.data||{},r="value"in t&&!(nb.call(n,"hProperties")||nb.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function VK(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
194
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
195
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
196
|
-
`}),n}function BC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jC(e,t){const n=UK(e,t),r=n.one(e,void 0),a=fK(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
|
|
197
|
-
`},a),o}function qK(e,t){return e&&"run"in e?async function(n,r){const a=jC(n,{file:r,...t});await e.run(a,r)}:function(n,r){return jC(n,{file:r,...e||t})}}var wl={},V1,UC;function YK(){if(UC)return V1;UC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
198
|
-
`,f="/",p="*",m="",y="comment",b="declaration";V1=function(A,C){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];C=C||{};var x=1,D=1;function S(K){var re=K.match(t);re&&(x+=re.length);var me=K.lastIndexOf(d);D=~me?K.length-me:D+K.length}function M(){var K={line:x,column:D};return function(re){return re.position=new L(K),te(),re}}function L(K){this.start=K,this.end={line:x,column:D},this.source=C.source}L.prototype.content=A;function I(K){var re=new Error(C.source+":"+x+":"+D+": "+K);if(re.reason=K,re.filename=C.source,re.line=x,re.column=D,re.source=A,!C.silent)throw re}function V(K){var re=K.exec(A);if(re){var me=re[0];return S(me),A=A.slice(me.length),re}}function te(){V(n)}function Q(K){var re;for(K=K||[];re=k();)re!==!1&&K.push(re);return K}function k(){var K=M();if(!(f!=A.charAt(0)||p!=A.charAt(1))){for(var re=2;m!=A.charAt(re)&&(p!=A.charAt(re)||f!=A.charAt(re+1));)++re;if(re+=2,m===A.charAt(re-1))return I("End of comment missing");var me=A.slice(2,re-2);return D+=2,S(me),A=A.slice(re),D+=2,K({type:y,comment:me})}}function H(){var K=M(),re=V(r);if(re){if(k(),!V(a))return I("property missing ':'");var me=V(o),G=K({type:b,property:_(re[0].replace(e,m)),value:me?_(me[0].replace(e,m)):m});return V(l),G}}function W(){var K=[];Q(K);for(var re;re=H();)re!==!1&&(K.push(re),Q(K));return K}return te(),W()};function _(A){return A?A.replace(c,m):m}return V1}var HC;function QK(){if(HC)return wl;HC=1;var e=wl&&wl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=n;var t=e(YK());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var l=(0,t.default)(r),c=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?a(f,p,d):p&&(o=o||{},o[f]=p)}}),o}return wl}var Au={},zC;function KK(){if(zC)return Au;zC=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},l=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,l))};return Au.camelCase=d,Au}var Su,GC;function WK(){if(GC)return Su;GC=1;var e=Su&&Su.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(QK()),n=KK();function r(a,o){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,o)]=d)}),l}return r.default=r,Su=r,Su}var XK=WK();const ZK=Cm(XK),JK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tW={};function VC(e,t){return(tW.jsx?eW:JK).test(e)}const nW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},UE={}.hasOwnProperty,rW=new Map,aW=/[A-Z]/g,iW=new Set(["table","tbody","thead","tfoot","tr"]),oW=new Set(["td","th"]),kI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sW(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=mW(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pW(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zi:lc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=RI(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function RI(e,t,n){if(t.type==="element")return lW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return dW(e,t,n);if(t.type==="mdxjsEsm")return uW(e,t);if(t.type==="root")return fW(e,t,n);if(t.type==="text")return hW(e,t)}function lW(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=zi,e.schema=a),e.ancestors.push(t);const o=wI(e,t.tagName,!1),l=gW(e,t);let c=zE(e,t);return iW.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!zd(d):!0})),II(e,l,o,t),HE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function cW(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}kd(e,t.position)}function uW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kd(e,t.position)}function dW(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=zi,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:wI(e,t.name,!0),l=yW(e,t),c=zE(e,t);return II(e,l,o,t),HE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function fW(e,t,n){const r={};return HE(r,zE(e,t)),e.create(t,e.Fragment,r,n)}function hW(e,t){return t.value}function II(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function HE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pW(e,t,n){return r;function r(a,o,l,c){const d=Array.isArray(l.children)?n:t;return c?d(o,l,c):d(o,l)}}function mW(e,t){return n;function n(r,a,o,l){const c=Array.isArray(o.children),d=ui(r);return t(a,o,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function gW(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&UE.call(t.properties,a)){const o=bW(e,a,t.properties[a]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&oW.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else kd(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else kd(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function zE(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:rW;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const c=RI(e,o,l);c!==void 0&&n.push(c)}return n}function bW(e,t,n){const r=Gd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?dm(n):fm(n)),r.property==="style"){let a=typeof n=="object"?n:EW(e,String(n));return e.stylePropertyNameCase==="css"&&(a=vW(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?nW[r.property]||r.property:r.attribute,n]}}function EW(e,t){try{return ZK(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new hr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=kI+"#cannot-parse-style-attribute",a}}function wI(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const c=VC(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=VC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return UE.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);kd(e)}function kd(e,t){const n=new hr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=kI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function vW(e){const t={};let n;for(n in e)UE.call(e,n)&&(t[TW(n)]=e[n]);return t}function TW(e){let t=e.replace(aW,_W);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _W(e){return"-"+e.toLowerCase()}const q1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},xW="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qC=[],YC={allowDangerousHtml:!0},AW=/^(https?|ircs?|mailto|xmpp)$/i,SW=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function CW(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,l=e.disallowedElements,c=e.rehypePlugins||qC,d=e.remarkPlugins||qC,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...YC}:YC,p=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||DW,b=lY().use(iK).use(d).use(qK,f).use(c),_=new lI;typeof r=="string"&&(_.value=r);for(const D of SW)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+xW+D.id,void 0);const A=b.parse(_);let C=b.runSync(A,_);return a&&(C={type:"element",tagName:"div",properties:{className:a},children:C.type==="root"?C.children:[C]}),Mr(C,x),sW(C,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function x(D,S,M){if(D.type==="raw"&&M&&typeof S=="number")return p?M.children.splice(S,1):M.children[S]={type:"text",value:D.value},S;if(D.type==="element"){let L;for(L in q1)if(Object.hasOwn(q1,L)&&Object.hasOwn(D.properties,L)){const I=D.properties[L],V=q1[L];(V===null||V.includes(D.tagName))&&(D.properties[L]=y(String(I||""),L,D))}}if(D.type==="element"){let L=t?!t.includes(D.tagName):l?l.includes(D.tagName):!1;if(!L&&n&&typeof S=="number"&&(L=!n(D,S,M)),L&&M&&typeof S=="number")return m&&D.children?M.children.splice(S,1,...D.children):M.children.splice(S,1),S}}}function DW(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||AW.test(e.slice(0,t))?e:""}const kW=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),un="�";var $;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($||($={}));const kr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function NI(e){return e>=55296&&e<=57343}function RW(e){return e>=56320&&e<=57343}function IW(e,t){return(e-55296)*1024+9216+t}function OI(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function LI(e){return e>=64976&&e<=65007||kW.has(e)}var fe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(fe||(fe={}));const wW=65536;let NW=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=wW,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,l=a+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(RW(n))return this.pos++,this._addGap(),IW(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(fe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;const r=this.html.charCodeAt(n);return r===$.CARRIAGE_RETURN?$.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let t=this.html.charCodeAt(this.pos);return t===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):t===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,NI(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===$.LINE_FEED||t===$.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){OI(t)?this._err(fe.controlCharacterInInputStream):LI(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var bt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(bt||(bt={}));function MI(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const OW=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function LW(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=OW.get(e))!==null&&t!==void 0?t:e}var Kn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Kn||(Kn={}));const MW=32;var ko;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ko||(ko={}));function rb(e){return e>=Kn.ZERO&&e<=Kn.NINE}function PW(e){return e>=Kn.UPPER_A&&e<=Kn.UPPER_F||e>=Kn.LOWER_A&&e<=Kn.LOWER_F}function $W(e){return e>=Kn.UPPER_A&&e<=Kn.UPPER_Z||e>=Kn.LOWER_A&&e<=Kn.LOWER_Z||rb(e)}function FW(e){return e===Kn.EQUALS||$W(e)}var Yn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Yn||(Yn={}));var Pi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Pi||(Pi={}));let BW=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Yn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Pi.Strict}startEntity(t){this.decodeMode=t,this.state=Yn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Yn.EntityStart:return t.charCodeAt(n)===Kn.NUM?(this.state=Yn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Yn.NamedEntity,this.stateNamedEntity(t,n));case Yn.NumericStart:return this.stateNumericStart(t,n);case Yn.NumericDecimal:return this.stateNumericDecimal(t,n);case Yn.NumericHex:return this.stateNumericHex(t,n);case Yn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|MW)===Kn.LOWER_X?(this.state=Yn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Yn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(rb(a)||PW(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(rb(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Kn.SEMI)this.consumed+=1;else if(this.decodeMode===Pi.Strict)return 0;return this.emitCodePoint(LW(this.result),this.consumed),this.errors&&(t!==Kn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&ko.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=jW(r,a,this.treeIndex+Math.max(1,o),l),this.treeIndex<0)return this.result===0||this.decodeMode===Pi.Attribute&&(o===0||FW(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&ko.VALUE_LENGTH)>>14,o!==0){if(l===Kn.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Pi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&ko.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~ko.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Yn.NamedEntity:return this.result!==0&&(this.decodeMode!==Pi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yn.NumericDecimal:return this.emitNumericEntity(0,2);case Yn.NumericHex:return this.emitNumericEntity(0,3);case Yn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yn.EntityStart:return 0}}};function jW(e,t,n,r){const a=(t&ko.BRANCH_LENGTH)>>7,o=t&ko.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const d=r-o;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+a]}return-1}var xe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(xe||(xe={}));var Ss;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ss||(Ss={}));var va;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(va||(va={}));var J;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(J||(J={}));var T;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(T||(T={}));const UW=new Map([[J.A,T.A],[J.ADDRESS,T.ADDRESS],[J.ANNOTATION_XML,T.ANNOTATION_XML],[J.APPLET,T.APPLET],[J.AREA,T.AREA],[J.ARTICLE,T.ARTICLE],[J.ASIDE,T.ASIDE],[J.B,T.B],[J.BASE,T.BASE],[J.BASEFONT,T.BASEFONT],[J.BGSOUND,T.BGSOUND],[J.BIG,T.BIG],[J.BLOCKQUOTE,T.BLOCKQUOTE],[J.BODY,T.BODY],[J.BR,T.BR],[J.BUTTON,T.BUTTON],[J.CAPTION,T.CAPTION],[J.CENTER,T.CENTER],[J.CODE,T.CODE],[J.COL,T.COL],[J.COLGROUP,T.COLGROUP],[J.DD,T.DD],[J.DESC,T.DESC],[J.DETAILS,T.DETAILS],[J.DIALOG,T.DIALOG],[J.DIR,T.DIR],[J.DIV,T.DIV],[J.DL,T.DL],[J.DT,T.DT],[J.EM,T.EM],[J.EMBED,T.EMBED],[J.FIELDSET,T.FIELDSET],[J.FIGCAPTION,T.FIGCAPTION],[J.FIGURE,T.FIGURE],[J.FONT,T.FONT],[J.FOOTER,T.FOOTER],[J.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[J.FORM,T.FORM],[J.FRAME,T.FRAME],[J.FRAMESET,T.FRAMESET],[J.H1,T.H1],[J.H2,T.H2],[J.H3,T.H3],[J.H4,T.H4],[J.H5,T.H5],[J.H6,T.H6],[J.HEAD,T.HEAD],[J.HEADER,T.HEADER],[J.HGROUP,T.HGROUP],[J.HR,T.HR],[J.HTML,T.HTML],[J.I,T.I],[J.IMG,T.IMG],[J.IMAGE,T.IMAGE],[J.INPUT,T.INPUT],[J.IFRAME,T.IFRAME],[J.KEYGEN,T.KEYGEN],[J.LABEL,T.LABEL],[J.LI,T.LI],[J.LINK,T.LINK],[J.LISTING,T.LISTING],[J.MAIN,T.MAIN],[J.MALIGNMARK,T.MALIGNMARK],[J.MARQUEE,T.MARQUEE],[J.MATH,T.MATH],[J.MENU,T.MENU],[J.META,T.META],[J.MGLYPH,T.MGLYPH],[J.MI,T.MI],[J.MO,T.MO],[J.MN,T.MN],[J.MS,T.MS],[J.MTEXT,T.MTEXT],[J.NAV,T.NAV],[J.NOBR,T.NOBR],[J.NOFRAMES,T.NOFRAMES],[J.NOEMBED,T.NOEMBED],[J.NOSCRIPT,T.NOSCRIPT],[J.OBJECT,T.OBJECT],[J.OL,T.OL],[J.OPTGROUP,T.OPTGROUP],[J.OPTION,T.OPTION],[J.P,T.P],[J.PARAM,T.PARAM],[J.PLAINTEXT,T.PLAINTEXT],[J.PRE,T.PRE],[J.RB,T.RB],[J.RP,T.RP],[J.RT,T.RT],[J.RTC,T.RTC],[J.RUBY,T.RUBY],[J.S,T.S],[J.SCRIPT,T.SCRIPT],[J.SEARCH,T.SEARCH],[J.SECTION,T.SECTION],[J.SELECT,T.SELECT],[J.SOURCE,T.SOURCE],[J.SMALL,T.SMALL],[J.SPAN,T.SPAN],[J.STRIKE,T.STRIKE],[J.STRONG,T.STRONG],[J.STYLE,T.STYLE],[J.SUB,T.SUB],[J.SUMMARY,T.SUMMARY],[J.SUP,T.SUP],[J.TABLE,T.TABLE],[J.TBODY,T.TBODY],[J.TEMPLATE,T.TEMPLATE],[J.TEXTAREA,T.TEXTAREA],[J.TFOOT,T.TFOOT],[J.TD,T.TD],[J.TH,T.TH],[J.THEAD,T.THEAD],[J.TITLE,T.TITLE],[J.TR,T.TR],[J.TRACK,T.TRACK],[J.TT,T.TT],[J.U,T.U],[J.UL,T.UL],[J.SVG,T.SVG],[J.VAR,T.VAR],[J.WBR,T.WBR],[J.XMP,T.XMP]]);function dc(e){var t;return(t=UW.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const Se=T,HW={[xe.HTML]:new Set([Se.ADDRESS,Se.APPLET,Se.AREA,Se.ARTICLE,Se.ASIDE,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BLOCKQUOTE,Se.BODY,Se.BR,Se.BUTTON,Se.CAPTION,Se.CENTER,Se.COL,Se.COLGROUP,Se.DD,Se.DETAILS,Se.DIR,Se.DIV,Se.DL,Se.DT,Se.EMBED,Se.FIELDSET,Se.FIGCAPTION,Se.FIGURE,Se.FOOTER,Se.FORM,Se.FRAME,Se.FRAMESET,Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6,Se.HEAD,Se.HEADER,Se.HGROUP,Se.HR,Se.HTML,Se.IFRAME,Se.IMG,Se.INPUT,Se.LI,Se.LINK,Se.LISTING,Se.MAIN,Se.MARQUEE,Se.MENU,Se.META,Se.NAV,Se.NOEMBED,Se.NOFRAMES,Se.NOSCRIPT,Se.OBJECT,Se.OL,Se.P,Se.PARAM,Se.PLAINTEXT,Se.PRE,Se.SCRIPT,Se.SECTION,Se.SELECT,Se.SOURCE,Se.STYLE,Se.SUMMARY,Se.TABLE,Se.TBODY,Se.TD,Se.TEMPLATE,Se.TEXTAREA,Se.TFOOT,Se.TH,Se.THEAD,Se.TITLE,Se.TR,Se.TRACK,Se.UL,Se.WBR,Se.XMP]),[xe.MATHML]:new Set([Se.MI,Se.MO,Se.MN,Se.MS,Se.MTEXT,Se.ANNOTATION_XML]),[xe.SVG]:new Set([Se.TITLE,Se.FOREIGN_OBJECT,Se.DESC]),[xe.XLINK]:new Set,[xe.XML]:new Set,[xe.XMLNS]:new Set},ab=new Set([Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;const zW=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const kn={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function GW(e){return e>=$.DIGIT_0&&e<=$.DIGIT_9}function Pu(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function VW(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z}function _o(e){return VW(e)||Pu(e)}function QC(e){return _o(e)||GW(e)}function Ih(e){return e+32}function PI(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function KC(e){return PI(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}function qW(e){return e===$.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:NI(e)?fe.surrogateCharacterReference:LI(e)?fe.noncharacterCharacterReference:OI(e)||e===$.CARRIAGE_RETURN?fe.controlCharacterReference:null}let YW=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new NW(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new BW(zW,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=qW(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:bt.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:bt.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:bt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:bt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(MI(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(fe.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=dc(t.tagName),t.type===bt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case bt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case bt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case bt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:bt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=PI(t)?bt.WHITESPACE_CHARACTER:t===$.NULL?bt.NULL_CHARACTER:bt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(bt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Pi.Attribute:Pi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case $.AMPERSAND:{this._startCharacterReference();break}case $.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case $.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_o(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case $.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case $.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case $.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_o(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case $.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Pu(t)?Ih(t):t)}}_stateRcdataLessThanSign(t){t===$.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_o(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===$.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_o(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case $.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case $.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_o(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===$.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===$.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===$.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_o(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_o(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(kr.SCRIPT,!1)&&KC(this.preprocessor.peek(kr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===$.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(kr.SCRIPT,!1)&&KC(this.preprocessor.peek(kr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=un;break}default:this.currentAttr.name+=String.fromCodePoint(Pu(t)?Ih(t):t)}}_stateAfterAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case $.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case $.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case $.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=un;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case $.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case $.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=un;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(kr.DASH_DASH,!0)?(this._createCommentToken(kr.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(kr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(kr.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(kr.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(kr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case $.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case $.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=un;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case $.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case $.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===$.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===$.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==$.GREATER_THAN_SIGN&&t!==$.EOF&&this._err(fe.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case $.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case $.HYPHEN_MINUS:{n.data+="-";break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Pu(t))this._createDoctypeToken(String.fromCharCode(Ih(t))),this.state=B.DOCTYPE_NAME;else switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(un),this.state=B.DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=un;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Pu(t)?Ih(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(kr.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(kr.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=un;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case $.NULL:{this._err(fe.unexpectedNullCharacter);break}case $.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case $.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case $.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===$.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case $.GREATER_THAN_SIGN:{this.state=B.DATA;break}case $.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&QC(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){QC(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===$.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const $I=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),WC=new Set([...$I,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),jp=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),QW=new Set([...jp,T.OL,T.UL]),KW=new Set([...jp,T.BUTTON]),XC=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),ZC=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),WW=new Set([T.TR,T.TEMPLATE,T.HTML]),XW=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),ZW=new Set([T.TABLE,T.TEMPLATE,T.HTML]),JW=new Set([T.TD,T.TH]);let eX=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=T.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===T.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==xe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ab,xe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(JW,xe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(ZW,xe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(XW,xe.HTML)}clearBackToTableRowContext(){this.clearBackTo(WW,xe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===T.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===T.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case xe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case xe.SVG:{if(ZC.has(a))return!1;break}case xe.MATHML:{if(XC.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,jp)}hasInListItemScope(t){return this.hasInDynamicScope(t,QW)}hasInButtonScope(t){return this.hasInDynamicScope(t,KW)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case xe.HTML:{if(ab.has(n))return!0;if(jp.has(n))return!1;break}case xe.SVG:{if(ZC.has(n))return!1;break}case xe.MATHML:{if(XC.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===xe.HTML)switch(this.tagIDs[t]){case T.TBODY:case T.THEAD:case T.TFOOT:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case T.OPTION:case T.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&$I.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&WC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&WC.has(this.currentTagId);)this.pop()}};var ni;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ni||(ni={}));const JC={type:ni.Marker};let tX=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ni.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===l){const p=this.treeAdapter.getAttrList(f);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(l=>[l.name,l.value]));let o=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(o+=1,o>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(JC)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ni.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ni.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(JC);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ni.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ni.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ni.Element&&n.element===t)}};const xo={createDocument(){return{nodeName:"#document",mode:va.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};xo.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(xo.isTextNode(n)){n.value+=t;return}}xo.appendChild(e,xo.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xo.isTextNode(r)?r.value+=t:xo.insertBefore(e,xo.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},FI="html",nX="about:legacy-compat",rX="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",BI=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aX=[...BI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],iX=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),jI=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],oX=[...jI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function e2(e,t){return t.some(n=>e.startsWith(n))}function sX(e){return e.name===FI&&e.publicId===null&&(e.systemId===null||e.systemId===nX)}function lX(e){if(e.name!==FI)return va.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===rX)return va.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),iX.has(n))return va.QUIRKS;let r=t===null?aX:BI;if(e2(n,r))return va.QUIRKS;if(r=t===null?jI:oX,e2(n,r))return va.LIMITED_QUIRKS}return va.NO_QUIRKS}const t2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},cX="definitionurl",uX="definitionURL",dX=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),fX=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xe.XMLNS}]]),hX=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),pX=new Set([T.B,T.BIG,T.BLOCKQUOTE,T.BODY,T.BR,T.CENTER,T.CODE,T.DD,T.DIV,T.DL,T.DT,T.EM,T.EMBED,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HR,T.I,T.IMG,T.LI,T.LISTING,T.MENU,T.META,T.NOBR,T.OL,T.P,T.PRE,T.RUBY,T.S,T.SMALL,T.SPAN,T.STRONG,T.STRIKE,T.SUB,T.SUP,T.TABLE,T.TT,T.U,T.UL,T.VAR]);function mX(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:n})=>n===Ss.COLOR||n===Ss.SIZE||n===Ss.FACE)||pX.has(t)}function UI(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===cX){e.attrs[t].name=uX;break}}function HI(e){for(let t=0;t<e.attrs.length;t++){const n=dX.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function GE(e){for(let t=0;t<e.attrs.length;t++){const n=fX.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function gX(e){const t=hX.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=dc(e.tagName))}function yX(e,t){return t===xe.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function bX(e,t,n){if(t===xe.MATHML&&e===T.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ss.ENCODING){const a=n[r].value.toLowerCase();return a===t2.TEXT_HTML||a===t2.APPLICATION_XML}}return t===xe.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function EX(e,t,n,r){return(!r||r===xe.HTML)&&bX(e,t,n)||(!r||r===xe.MATHML)&&yX(e,t)}const vX="hidden",TX=8,_X=3;var j;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(j||(j={}));const xX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zI=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),n2={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:xo,onParseError:null};class r2{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=j.INITIAL,this.originalInsertionMode=j.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...n2,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new YW(this.options,this),this.activeFormattingElements=new tX(this.treeAdapter),this.fragmentContextID=r?dc(this.treeAdapter.getTagName(r)):T.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new eX(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...n2,...n};t??(t=r.treeAdapter.createElement(J.TEMPLATE,xe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",xe.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===T.TEMPLATE&&o.tmplInsertionModeStack.unshift(j.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:xX,l={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,l;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,l=this.fragmentContextID):{current:o,currentTagId:l}=this.openElements,this._setContextModes(o,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===xe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,xe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=j.TEXT}switchToPlaintextParsing(){this.insertionMode=j.TEXT,this.originalInsertionMode=j.IN_BODY,this.tokenizer.state=kn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xe.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=kn.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=kn.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=kn.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=kn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,xe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,xe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(J.HTML,xe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,T.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,l=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===bt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===xe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,xe.HTML)}_processToken(t){switch(t.type){case bt.CHARACTER:{this.onCharacter(t);break}case bt.NULL_CHARACTER:{this.onNullCharacter(t);break}case bt.COMMENT:{this.onComment(t);break}case bt.DOCTYPE:{this.onDoctype(t);break}case bt.START_TAG:{this._processStartTag(t);break}case bt.END_TAG:{this.onEndTag(t);break}case bt.EOF:{this.onEof(t);break}case bt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return EX(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ni.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=j.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(T.P),this.openElements.popUntilTagNamePopped(T.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case T.TR:{this.insertionMode=j.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=j.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=j.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=j.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=j.IN_TABLE;return}case T.BODY:{this.insertionMode=j.IN_BODY;return}case T.FRAMESET:{this.insertionMode=j.IN_FRAMESET;return}case T.SELECT:{this._resetInsertionModeForSelect(t);return}case T.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case T.HTML:{this.insertionMode=this.headElement?j.AFTER_HEAD:j.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=j.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=j.IN_HEAD;return}break}}this.insertionMode=j.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===T.TEMPLATE)break;if(r===T.TABLE){this.insertionMode=j.IN_SELECT_IN_TABLE;return}}this.insertionMode=j.IN_SELECT}_isElementCausesFosterParenting(t){return zI.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case T.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===xe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return HW[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){JZ(this,t);return}switch(this.insertionMode){case j.INITIAL:{Cu(this,t);break}case j.BEFORE_HTML:{Ku(this,t);break}case j.BEFORE_HEAD:{Wu(this,t);break}case j.IN_HEAD:{Xu(this,t);break}case j.IN_HEAD_NO_SCRIPT:{Zu(this,t);break}case j.AFTER_HEAD:{Ju(this,t);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:{VI(this,t);break}case j.TEXT:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{Y1(this,t);break}case j.IN_TABLE_TEXT:{XI(this,t);break}case j.IN_COLUMN_GROUP:{Up(this,t);break}case j.AFTER_BODY:{Hp(this,t);break}case j.AFTER_AFTER_BODY:{Jh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ZZ(this,t);return}switch(this.insertionMode){case j.INITIAL:{Cu(this,t);break}case j.BEFORE_HTML:{Ku(this,t);break}case j.BEFORE_HEAD:{Wu(this,t);break}case j.IN_HEAD:{Xu(this,t);break}case j.IN_HEAD_NO_SCRIPT:{Zu(this,t);break}case j.AFTER_HEAD:{Ju(this,t);break}case j.TEXT:{this._insertCharacters(t);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{Y1(this,t);break}case j.IN_COLUMN_GROUP:{Up(this,t);break}case j.AFTER_BODY:{Hp(this,t);break}case j.AFTER_AFTER_BODY:{Jh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ib(this,t);return}switch(this.insertionMode){case j.INITIAL:case j.BEFORE_HTML:case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_TEMPLATE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{ib(this,t);break}case j.IN_TABLE_TEXT:{Du(this,t);break}case j.AFTER_BODY:{IX(this,t);break}case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{wX(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case j.INITIAL:{NX(this,t);break}case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case j.IN_TABLE_TEXT:{Du(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?eJ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case j.INITIAL:{Cu(this,t);break}case j.BEFORE_HTML:{OX(this,t);break}case j.BEFORE_HEAD:{MX(this,t);break}case j.IN_HEAD:{Fa(this,t);break}case j.IN_HEAD_NO_SCRIPT:{FX(this,t);break}case j.AFTER_HEAD:{jX(this,t);break}case j.IN_BODY:{pr(this,t);break}case j.IN_TABLE:{tc(this,t);break}case j.IN_TABLE_TEXT:{Du(this,t);break}case j.IN_CAPTION:{PZ(this,t);break}case j.IN_COLUMN_GROUP:{YE(this,t);break}case j.IN_TABLE_BODY:{$m(this,t);break}case j.IN_ROW:{Fm(this,t);break}case j.IN_CELL:{BZ(this,t);break}case j.IN_SELECT:{ew(this,t);break}case j.IN_SELECT_IN_TABLE:{UZ(this,t);break}case j.IN_TEMPLATE:{zZ(this,t);break}case j.AFTER_BODY:{VZ(this,t);break}case j.IN_FRAMESET:{qZ(this,t);break}case j.AFTER_FRAMESET:{QZ(this,t);break}case j.AFTER_AFTER_BODY:{WZ(this,t);break}case j.AFTER_AFTER_FRAMESET:{XZ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?tJ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case j.INITIAL:{Cu(this,t);break}case j.BEFORE_HTML:{LX(this,t);break}case j.BEFORE_HEAD:{PX(this,t);break}case j.IN_HEAD:{$X(this,t);break}case j.IN_HEAD_NO_SCRIPT:{BX(this,t);break}case j.AFTER_HEAD:{UX(this,t);break}case j.IN_BODY:{Pm(this,t);break}case j.TEXT:{CZ(this,t);break}case j.IN_TABLE:{Rd(this,t);break}case j.IN_TABLE_TEXT:{Du(this,t);break}case j.IN_CAPTION:{$Z(this,t);break}case j.IN_COLUMN_GROUP:{FZ(this,t);break}case j.IN_TABLE_BODY:{ob(this,t);break}case j.IN_ROW:{JI(this,t);break}case j.IN_CELL:{jZ(this,t);break}case j.IN_SELECT:{tw(this,t);break}case j.IN_SELECT_IN_TABLE:{HZ(this,t);break}case j.IN_TEMPLATE:{GZ(this,t);break}case j.AFTER_BODY:{rw(this,t);break}case j.IN_FRAMESET:{YZ(this,t);break}case j.AFTER_FRAMESET:{KZ(this,t);break}case j.AFTER_AFTER_BODY:{Jh(this,t);break}}}onEof(t){switch(this.insertionMode){case j.INITIAL:{Cu(this,t);break}case j.BEFORE_HTML:{Ku(this,t);break}case j.BEFORE_HEAD:{Wu(this,t);break}case j.IN_HEAD:{Xu(this,t);break}case j.IN_HEAD_NO_SCRIPT:{Zu(this,t);break}case j.AFTER_HEAD:{Ju(this,t);break}case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{KI(this,t);break}case j.TEXT:{DZ(this,t);break}case j.IN_TABLE_TEXT:{Du(this,t);break}case j.IN_TEMPLATE:{nw(this,t);break}case j.AFTER_BODY:case j.IN_FRAMESET:case j.AFTER_FRAMESET:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{qE(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===$.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.TEXT:case j.IN_COLUMN_GROUP:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{this._insertCharacters(t);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:case j.AFTER_BODY:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{GI(this,t);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{Y1(this,t);break}case j.IN_TABLE_TEXT:{WI(this,t);break}}}}function AX(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):QI(e,t),n}function SX(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function CX(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,l=a;l!==n;o++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&o>=_X;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=DX(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function DX(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kX(e,t,n){const r=e.treeAdapter.getTagName(t),a=dc(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===T.TEMPLATE&&o===xe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function RX(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function VE(e,t){for(let n=0;n<TX;n++){const r=AX(e,t);if(!r)break;const a=SX(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=CX(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),l&&kX(e,l,o),RX(e,a,r)}}function ib(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function IX(e,t){e._appendCommentNode(t,e.openElements.items[0])}function wX(e,t){e._appendCommentNode(t,e.document)}function qE(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(o);l&&!l.endTag&&e._setEndLocation(o,t)}}}}function NX(e,t){e._setDocumentType(t);const n=t.forceQuirks?va.QUIRKS:lX(t);sX(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=j.BEFORE_HTML}function Cu(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,va.QUIRKS),e.insertionMode=j.BEFORE_HTML,e._processToken(t)}function OX(e,t){t.tagID===T.HTML?(e._insertElement(t,xe.HTML),e.insertionMode=j.BEFORE_HEAD):Ku(e,t)}function LX(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&Ku(e,t)}function Ku(e,t){e._insertFakeRootElement(),e.insertionMode=j.BEFORE_HEAD,e._processToken(t)}function MX(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.HEAD:{e._insertElement(t,xe.HTML),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD;break}default:Wu(e,t)}}function PX(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?Wu(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Wu(e,t){e._insertFakeElement(J.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD,e._processToken(t)}function Fa(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,kn.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kn.RAWTEXT):(e._insertElement(t,xe.HTML),e.insertionMode=j.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,kn.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,kn.SCRIPT_DATA);break}case T.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(j.IN_TEMPLATE);break}case T.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Xu(e,t)}}function $X(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=j.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{Xu(e,t);break}case T.TEMPLATE:{Us(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Us(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Xu(e,t){e.openElements.pop(),e.insertionMode=j.AFTER_HEAD,e._processToken(t)}function FX(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{Fa(e,t);break}case T.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:Zu(e,t)}}function BX(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=j.IN_HEAD;break}case T.BR:{Zu(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Zu(e,t){const n=t.type===bt.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=j.IN_HEAD,e._processToken(t)}function jX(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.BODY:{e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=j.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,xe.HTML),e.insertionMode=j.IN_FRAMESET;break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),Fa(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Ju(e,t)}}function UX(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Ju(e,t);break}case T.TEMPLATE:{Us(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Ju(e,t){e._insertFakeElement(J.BODY,T.BODY),e.insertionMode=j.IN_BODY,Mm(e,t)}function Mm(e,t){switch(t.type){case bt.CHARACTER:{VI(e,t);break}case bt.WHITESPACE_CHARACTER:{GI(e,t);break}case bt.COMMENT:{ib(e,t);break}case bt.START_TAG:{pr(e,t);break}case bt.END_TAG:{Pm(e,t);break}case bt.EOF:{KI(e,t);break}}}function GI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function VI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function HX(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function zX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function GX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_FRAMESET)}function VX(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function qX(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ab.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,xe.HTML)}function YX(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function QX(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML),n||(e.formElement=e.openElements.current))}function KX(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===T.LI&&a===T.LI||(n===T.DD||n===T.DT)&&(a===T.DD||a===T.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==T.ADDRESS&&a!==T.DIV&&a!==T.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function WX(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.tokenizer.state=kn.PLAINTEXT}function XX(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1}function ZX(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(VE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(VE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function nZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==va.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=j.IN_TABLE}function qI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YI(e){const t=MI(e,Ss.TYPE);return t!=null&&t.toLowerCase()===vX}function rZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),YI(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function aZ(e,t){e._appendElement(t,xe.HTML),t.ackSelfClosing=!0}function iZ(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function oZ(e,t){t.tagName=J.IMG,t.tagID=T.IMG,qI(e,t)}function sZ(e,t){e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=j.TEXT}function lZ(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function cZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function a2(e,t){e._switchToTextParsing(t,kn.RAWTEXT)}function uZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===j.IN_TABLE||e.insertionMode===j.IN_CAPTION||e.insertionMode===j.IN_TABLE_BODY||e.insertionMode===j.IN_ROW||e.insertionMode===j.IN_CELL?j.IN_SELECT_IN_TABLE:j.IN_SELECT}function dZ(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function fZ(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,xe.HTML)}function hZ(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,xe.HTML)}function pZ(e,t){e._reconstructActiveFormattingElements(),UI(t),GE(t),t.selfClosing?e._appendElement(t,xe.MATHML):e._insertElement(t,xe.MATHML),t.ackSelfClosing=!0}function mZ(e,t){e._reconstructActiveFormattingElements(),HI(t),GE(t),t.selfClosing?e._appendElement(t,xe.SVG):e._insertElement(t,xe.SVG),t.ackSelfClosing=!0}function i2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function pr(e,t){switch(t.tagID){case T.I:case T.S:case T.B:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.SMALL:case T.STRIKE:case T.STRONG:{JX(e,t);break}case T.A:{ZX(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{qX(e,t);break}case T.P:case T.DL:case T.OL:case T.UL:case T.DIV:case T.DIR:case T.NAV:case T.MAIN:case T.MENU:case T.ASIDE:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.DETAILS:case T.ADDRESS:case T.ARTICLE:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{VX(e,t);break}case T.LI:case T.DD:case T.DT:{KX(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{qI(e,t);break}case T.HR:{iZ(e,t);break}case T.RB:case T.RTC:{fZ(e,t);break}case T.RT:case T.RP:{hZ(e,t);break}case T.PRE:case T.LISTING:{YX(e,t);break}case T.XMP:{lZ(e,t);break}case T.SVG:{mZ(e,t);break}case T.HTML:{HX(e,t);break}case T.BASE:case T.LINK:case T.META:case T.STYLE:case T.TITLE:case T.SCRIPT:case T.BGSOUND:case T.BASEFONT:case T.TEMPLATE:{Fa(e,t);break}case T.BODY:{zX(e,t);break}case T.FORM:{QX(e,t);break}case T.NOBR:{eZ(e,t);break}case T.MATH:{pZ(e,t);break}case T.TABLE:{nZ(e,t);break}case T.INPUT:{rZ(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{aZ(e,t);break}case T.IMAGE:{oZ(e,t);break}case T.BUTTON:{XX(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{tZ(e,t);break}case T.IFRAME:{cZ(e,t);break}case T.SELECT:{uZ(e,t);break}case T.OPTION:case T.OPTGROUP:{dZ(e,t);break}case T.NOEMBED:case T.NOFRAMES:{a2(e,t);break}case T.FRAMESET:{GX(e,t);break}case T.TEXTAREA:{sZ(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?a2(e,t):i2(e,t);break}case T.PLAINTEXT:{WX(e,t);break}case T.COL:case T.TH:case T.TD:case T.TR:case T.HEAD:case T.FRAME:case T.TBODY:case T.TFOOT:case T.THEAD:case T.CAPTION:case T.COLGROUP:break;default:i2(e,t)}}function gZ(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=j.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function yZ(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=j.AFTER_BODY,rw(e,t))}function bZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function EZ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(T.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(T.FORM):n&&e.openElements.remove(n))}function vZ(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(J.P,T.P),e._closePElement()}function TZ(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function _Z(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function xZ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function AZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function SZ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function QI(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==T.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,l))break}}function Pm(e,t){switch(t.tagID){case T.A:case T.B:case T.I:case T.S:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.NOBR:case T.SMALL:case T.STRIKE:case T.STRONG:{VE(e,t);break}case T.P:{vZ(e);break}case T.DL:case T.UL:case T.OL:case T.DIR:case T.DIV:case T.NAV:case T.PRE:case T.MAIN:case T.MENU:case T.ASIDE:case T.BUTTON:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.ADDRESS:case T.ARTICLE:case T.DETAILS:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.LISTING:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{bZ(e,t);break}case T.LI:{TZ(e);break}case T.DD:case T.DT:{_Z(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{xZ(e);break}case T.BR:{SZ(e);break}case T.BODY:{gZ(e,t);break}case T.HTML:{yZ(e,t);break}case T.FORM:{EZ(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{AZ(e,t);break}case T.TEMPLATE:{Us(e,t);break}default:QI(e,t)}}function KI(e,t){e.tmplInsertionModeStack.length>0?nw(e,t):qE(e,t)}function CZ(e,t){var n;t.tagID===T.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function DZ(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Y1(e,t){if(e.openElements.currentTagId!==void 0&&zI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=j.IN_TABLE_TEXT,t.type){case bt.CHARACTER:{XI(e,t);break}case bt.WHITESPACE_CHARACTER:{WI(e,t);break}}else Xd(e,t)}function kZ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_CAPTION}function RZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_COLUMN_GROUP}function IZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,T.COLGROUP),e.insertionMode=j.IN_COLUMN_GROUP,YE(e,t)}function wZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_TABLE_BODY}function NZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,T.TBODY),e.insertionMode=j.IN_TABLE_BODY,$m(e,t)}function OZ(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function LZ(e,t){YI(t)?e._appendElement(t,xe.HTML):Xd(e,t),t.ackSelfClosing=!0}function MZ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,xe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tc(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{NZ(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{Fa(e,t);break}case T.COL:{IZ(e,t);break}case T.FORM:{MZ(e,t);break}case T.TABLE:{OZ(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{wZ(e,t);break}case T.INPUT:{LZ(e,t);break}case T.CAPTION:{kZ(e,t);break}case T.COLGROUP:{RZ(e,t);break}default:Xd(e,t)}}function Rd(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{Us(e,t);break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:Xd(e,t)}}function Xd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Mm(e,t),e.fosterParentingEnabled=n}function WI(e,t){e.pendingCharacterTokens.push(t)}function XI(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Du(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Xd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ZI=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function PZ(e,t){const n=t.tagID;ZI.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,tc(e,t)):pr(e,t)}function $Z(e,t){const n=t.tagID;switch(n){case T.CAPTION:case T.TABLE:{e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,n===T.TABLE&&Rd(e,t));break}case T.BODY:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:Pm(e,t)}}function YE(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.COL:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{Fa(e,t);break}default:Up(e,t)}}function FZ(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case T.TEMPLATE:{Us(e,t);break}case T.COL:break;default:Up(e,t)}}function Up(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE,e._processToken(t))}function $m(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,T.TR),e.insertionMode=j.IN_ROW,Fm(e,t);break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,tc(e,t));break}default:tc(e,t)}}function ob(e,t){const n=t.tagID;switch(t.tagID){case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,Rd(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:case T.TR:break;default:Rd(e,t)}}function Fm(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,xe.HTML),e.insertionMode=j.IN_CELL,e.activeFormattingElements.insertMarker();break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,$m(e,t));break}default:tc(e,t)}}function JI(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,ob(e,t));break}case T.TBODY:case T.TFOOT:case T.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(T.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,ob(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:break;default:Rd(e,t)}}function BZ(e,t){const n=t.tagID;ZI.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),Fm(e,t)):pr(e,t)}function jZ(e,t){const n=t.tagID;switch(n){case T.TD:case T.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),JI(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:Pm(e,t)}}function ew(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case T.INPUT:case T.KEYGEN:case T.TEXTAREA:case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),t.tagID!==T.SELECT&&e._processStartTag(t));break}case T.SCRIPT:case T.TEMPLATE:{Fa(e,t);break}}}function tw(e,t){switch(t.tagID){case T.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===T.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===T.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop();break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop();break}case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode());break}case T.TEMPLATE:{Us(e,t);break}}}function UZ(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ew(e,t)}function HZ(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tw(e,t)}function zZ(e,t){switch(t.tagID){case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{Fa(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=j.IN_TABLE,e.insertionMode=j.IN_TABLE,tc(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=j.IN_COLUMN_GROUP,e.insertionMode=j.IN_COLUMN_GROUP,YE(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=j.IN_TABLE_BODY,e.insertionMode=j.IN_TABLE_BODY,$m(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=j.IN_ROW,e.insertionMode=j.IN_ROW,Fm(e,t);break}default:e.tmplInsertionModeStack[0]=j.IN_BODY,e.insertionMode=j.IN_BODY,pr(e,t)}}function GZ(e,t){t.tagID===T.TEMPLATE&&Us(e,t)}function nw(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):qE(e,t)}function VZ(e,t){t.tagID===T.HTML?pr(e,t):Hp(e,t)}function rw(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=j.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===T.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Hp(e,t)}function Hp(e,t){e.insertionMode=j.IN_BODY,Mm(e,t)}function qZ(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.FRAMESET:{e._insertElement(t,xe.HTML);break}case T.FRAME:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{Fa(e,t);break}}}function YZ(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=j.AFTER_FRAMESET))}function QZ(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.NOFRAMES:{Fa(e,t);break}}}function KZ(e,t){t.tagID===T.HTML&&(e.insertionMode=j.AFTER_AFTER_FRAMESET)}function WZ(e,t){t.tagID===T.HTML?pr(e,t):Jh(e,t)}function Jh(e,t){e.insertionMode=j.IN_BODY,Mm(e,t)}function XZ(e,t){switch(t.tagID){case T.HTML:{pr(e,t);break}case T.NOFRAMES:{Fa(e,t);break}}}function ZZ(e,t){t.chars=un,e._insertCharacters(t)}function JZ(e,t){e._insertCharacters(t),e.framesetOk=!1}function aw(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==xe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function eJ(e,t){if(mX(t))aw(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===xe.MATHML?UI(t):r===xe.SVG&&(gX(t),HI(t)),GE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function tJ(e,t){if(t.tagID===T.P||t.tagID===T.BR){aw(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===xe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const vs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o2=/[#.]/g;function nJ(e,t){const n=e||"",r={};let a=0,o,l;for(;a<n.length;){o2.lastIndex=a;const c=o2.exec(n),d=n.slice(a,c?c.index:n.length);d&&(o?o==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(o=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function iw(e,t,n){const r=n?oJ(n):void 0;function a(o,l,...c){let d;if(o==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=nJ(o,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,rJ(l))c.unshift(l);else for(const[m,y]of Object.entries(l))aJ(e,d.properties,m,y)}for(const f of c)sb(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function rJ(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function aJ(e,t,n,r){const a=Gd(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=Ly(r):a.commaSeparated?o=Oy(r):a.commaOrSpaceSeparated?o=Ly(Oy(r).join(" ")):o=s2(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?iJ(r):String(r);if(Array.isArray(o)){const l=[];for(const c of o)l.push(s2(a,a.property,c));o=l}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function sb(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)sb(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?sb(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function s2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||hd(n)===hd(t)))return!0}return n}function iJ(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function oJ(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const sJ=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],lJ=iw(lc,"div"),cJ=iw(zi,"g",sJ);function uJ(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=l2(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>o)return{line:l+1,column:o-(l>0?n[l-1]:0)+1,offset:o};l++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],d=l2(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(o.line>1?n[o.line-2]:0)+o.column-1;if(l<n[o.line-1])return l}}}function l2(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
199
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const ow={}.hasOwnProperty,dJ=Object.prototype;function fJ(e,t){const n=t||{};return QE({file:n.file||void 0,location:!1,schema:n.space==="svg"?zi:lc,verbose:n.verbose||!1},e)}function QE(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ep(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:sw(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),l=uJ(o),c=l.toPoint(0),d=l.toPoint(o.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ep(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ep(e,r,n),n}default:return n=hJ(e,t),n}}function sw(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=QE(e,t[n]);r.push(a)}return r}function hJ(e,t){const n=e.schema;e.schema=t.namespaceURI===vs.svg?zi:lc;let r=-1;const a={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;ow.call(dJ,c)||(a[c]=l.value)}const o=(e.schema.space==="svg"?cJ:lJ)(t.tagName,a,sw(e,t.childNodes));if(ep(e,t,o),o.tagName==="template"){const l=t,c=l.sourceCodeLocation,d=c&&c.startTag&&jl(c.startTag),f=c&&c.endTag&&jl(c.endTag),p=QE(e,l.content);d&&f&&e.file&&(p.position={start:d.end,end:f.start}),o.content=p}return e.schema=n,o}function ep(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=pJ(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function pJ(e,t,n){const r=jl(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let l;if(n.attrs)for(l in n.attrs)ow.call(n.attrs,l)&&(o[Gd(e.schema,l).property]=jl(n.attrs[l]));n.startTag;const c=jl(n.startTag),d=n.endTag?jl(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=o,t.data={position:f}}}return r}function jl(e){const t=c2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=c2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function c2(e){return e.line&&e.column?e:void 0}let Zd=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Zd.prototype.property={};Zd.prototype.normal={};Zd.prototype.space=null;function lw(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Zd(n,r,t)}function lb(e){return e.toLowerCase()}let Ca=class{constructor(t,n){this.property=t,this.attribute=n}};Ca.prototype.space=null;Ca.prototype.boolean=!1;Ca.prototype.booleanish=!1;Ca.prototype.overloadedBoolean=!1;Ca.prototype.number=!1;Ca.prototype.commaSeparated=!1;Ca.prototype.spaceSeparated=!1;Ca.prototype.commaOrSpaceSeparated=!1;Ca.prototype.mustUseProperty=!1;Ca.prototype.defined=!1;let mJ=0;const ct=Hs(),Ln=Hs(),cw=Hs(),Re=Hs(),tn=Hs(),Yl=Hs(),Qr=Hs();function Hs(){return 2**++mJ}const cb=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:Ln,commaOrSpaceSeparated:Qr,commaSeparated:Yl,number:Re,overloadedBoolean:cw,spaceSeparated:tn},Symbol.toStringTag,{value:"Module"})),Q1=Object.keys(cb);let KE=class extends Ca{constructor(t,n,r,a){let o=-1;if(super(t,n),u2(this,"space",a),typeof r=="number")for(;++o<Q1.length;){const l=Q1[o];u2(this,Q1[o],(r&cb[l])===cb[l])}}};KE.prototype.defined=!0;function u2(e,t,n){n&&(e[t]=n)}const gJ={}.hasOwnProperty;function fc(e){const t={},n={};let r;for(r in e.properties)if(gJ.call(e.properties,r)){const a=e.properties[r],o=new KE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[lb(r)]=r,n[lb(o.attribute)]=r}return new Zd(t,n,e.space)}const uw=fc({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),dw=fc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function fw(e,t){return t in e?e[t]:t}function hw(e,t){return fw(e,t.toLowerCase())}const pw=fc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hw,properties:{xmlns:null,xmlnsXLink:null}}),mw=fc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:tn,ariaCurrent:null,ariaDescribedBy:tn,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:tn,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:tn,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tn,ariaLevel:Re,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:tn,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:tn,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Ln,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),yJ=fc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hw,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yl,acceptCharset:tn,accessKey:tn,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:tn,autoFocus:ct,autoPlay:ct,blocking:tn,capture:null,charSet:null,checked:ct,cite:null,className:tn,cols:Re,colSpan:null,content:null,contentEditable:Ln,controls:ct,controlsList:tn,coords:Re|Yl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:cw,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:tn,height:Re,hidden:ct,high:Re,href:null,hrefLang:null,htmlFor:tn,httpEquiv:tn,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:tn,itemRef:tn,itemScope:ct,itemType:tn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:ct,muted:ct,name:null,nonce:null,noModule:ct,noValidate:ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ct,optimum:Re,pattern:null,ping:tn,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:tn,required:ct,reversed:ct,rows:Re,rowSpan:Re,sandbox:tn,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:Ln,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tn,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ct,declare:ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:Re,security:null,unselectable:null}}),bJ=fc({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:fw,properties:{about:Qr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:tn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yl,g2:Yl,glyphName:Yl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Qr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qr,rev:Qr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qr,requiredFeatures:Qr,requiredFonts:Qr,requiredFormats:Qr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Qr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),EJ=lw([dw,uw,pw,mw,yJ],"html"),gw=lw([dw,uw,pw,mw,bJ],"svg"),vJ=/^data[-\w.:]+$/i,d2=/-[a-z]/g,TJ=/[A-Z]/g;function _J(e,t){const n=lb(t);let r=t,a=Ca;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vJ.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(d2,AJ);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!d2.test(o)){let l=o.replace(TJ,xJ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=KE}return new a(r,t)}function xJ(e){return"-"+e.toLowerCase()}function AJ(e){return e.charAt(1).toUpperCase()}const SJ={},CJ={}.hasOwnProperty,yw=um("type",{handlers:{root:kJ,element:OJ,text:wJ,comment:NJ,doctype:IJ}});function DJ(e,t){const n=(t||SJ).space;return yw(e,n==="svg"?gw:EJ)}function kJ(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=WE(e.children,n,t),hc(e,n),n}function RJ(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=WE(e.children,n,t),hc(e,n),n}function IJ(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return hc(e,t),t}function wJ(e){const t={nodeName:"#text",value:e.value,parentNode:null};return hc(e,t),t}function NJ(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return hc(e,t),t}function OJ(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gw);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&CJ.call(e.properties,o)){const d=LJ(r,o,e.properties[o]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:vs[l],childNodes:[],parentNode:null};return c.childNodes=WE(e.children,c,r),hc(e,c),e.tagName==="template"&&e.content&&(c.content=RJ(e.content,r)),c}function LJ(e,t,n){const r=_J(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?dm(n):fm(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=vs[r.space]}return a}function WE(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=yw(e[r],n);o.parentNode=t,a.push(o)}return a}function hc(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const MJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,PJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),f2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function bw(e,t){const n=qJ(e),r=um("type",{handlers:{root:$J,element:FJ,text:BJ,comment:vw,doctype:jJ,raw:HJ},unknown:zJ}),a={parser:n?new r2(f2):r2.getFragmentParser(void 0,f2),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),pc(a,ui());const o=n?a.parser.document:a.parser.getFragment(),l=fJ(o,{file:a.options.file});return a.stitches&&Mr(l,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=p.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function Ew(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $J(e,t){Ew(e.children,t)}function FJ(e,t){GJ(e,t),Ew(e.children,t),VJ(e,t)}function BJ(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:bt.CHARACTER,chars:e.value,location:Jd(e)};pc(t,ui(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jJ(e,t){const n={type:bt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Jd(e)};pc(t,ui(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function UJ(e,t){t.stitches=!0;const n=YJ(e);if("children"in e&&"children"in n){const r=bw({type:"root",children:e.children},t.options);n.children=r.children}vw({type:"comment",value:{stitch:n}},t)}function vw(e,t){const n=e.value,r={type:bt.COMMENT,data:n,location:Jd(e)};pc(t,ui(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function HJ(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Tw(t,ui(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(MJ,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function zJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))UJ(n,t);else{let r="";throw PJ.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function pc(e,t){Tw(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=kn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Tw(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function GJ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kn.PLAINTEXT)return;pc(t,ui(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:vs.html;a===vs.html&&n==="svg"&&(a=vs.svg);const o=DJ({...e,children:[]},{space:a===vs.svg?"svg":"html"}),l={type:bt.START_TAG,tagName:n,tagID:dc(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Jd(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function VJ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Fk.includes(n)||t.parser.tokenizer.state===kn.PLAINTEXT)return;pc(t,Lm(e));const r={type:bt.END_TAG,tagName:n,tagID:dc(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Jd(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kn.RCDATA||t.parser.tokenizer.state===kn.RAWTEXT||t.parser.tokenizer.state===kn.SCRIPT_DATA)&&(t.parser.tokenizer.state=kn.DATA)}function qJ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Jd(e){const t=ui(e)||{line:void 0,column:void 0,offset:void 0},n=Lm(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function YJ(e){return"children"in e?Os({...e,children:[]}):Os(e)}function QJ(e){return function(t,n){return bw(t,{...e,file:n})}}var KJ=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],WJ=e=>e;const XJ=Le.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:l=!1,skipHtml:c=!0,onScroll:d,onMouseOver:f,pluginsFilter:p,wrapperElement:m={},warpperElement:y={},urlTransform:b}=e,_=cr(e,KJ),A=Le.useRef(null);w.useImperativeHandle(t,()=>Ae({},e,{mdp:A}),[A,e]);var C=(n||"")+" "+(r||"");CG(A);var x=[..._.rehypePlugins||[]],D={allowElement:(L,I,V)=>_.allowElement?_.allowElement(L,I,V):/^[A-Za-z0-9]+$/.test(L.tagName)};c||x.push(QJ);var S=[_G,..._.remarkPlugins||[],zq],M=Ae({},y,m);return v.jsx("div",Ae({ref:A,onScroll:d,onMouseOver:f},M,{className:C,style:o,children:v.jsx(CW,Ae({},D,_,{skipHtml:!c,urlTransform:b||WJ,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",S):S,children:a||""}))}))});var tp={},ub={};function ZJ(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),l=n[o]||(n[o]={chars:{}});a&&(l.self=e),n=l.chars}}function h2(e){if(e.length===0)return tp;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];ZJ(a,t)}return t}function JJ(e){if(e.length===0)return ub;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var wh={},p2={type:"String",optional:!0};function eee(e){var t={type:"NoArgument",optional:!1};function n(l){if(t.type&&t.type!==l&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(l,'".'));t.type=l}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function tee(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var l=0,c=o;l<c.length;l++){var d=c[l];(t[d]||(t[d]=[])).push(a)}}return t}function m2(e){for(var t=tee(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],l=t[o];l&&(n[o]=eee(l))}return n}var nc=function(){return nc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},nc.apply(this,arguments)},nee={},db={wildcard:!0};function ree(e){return e?typeof e=="boolean"?db:e:nee}function aee(e,t){return function(n,r){return t(e(n),e(r))}}function iee(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function g2(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Nl(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=nc({},t),a=0,o=Object.entries(n);a<o.length;a++){var l=o[a],c=l[0],d=l[1];if(c!=="latest"){var f=e[c];r[c]=f(t[c],d)}}return r}}function Oi(e,t){return t!==void 0?t:e}function Nh(e,t){return t?e?e.concat(t):t:e}function y2(e,t){if(!t)return e;if(!e)return t;for(var n=nc({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],l=o[0],c=o[1];if(!c){delete n[l];continue}var d=e[l];if(!d){n[l]=c;continue}n[l]=d.concat(c)}return n}var Cs=iee(Nl({baseSyntax:Oi,modules:Nh,tag:g2(db,Nl({wildcard:Oi})),ids:Oi,classNames:Oi,namespace:g2(db,Nl({wildcard:Oi})),combinators:Nh,attributes:Nl({operators:Nh,caseSensitivityModifiers:Nh,unknownCaseSensitivityModifiers:Oi}),pseudoClasses:Nl({unknown:Oi,definitions:y2}),pseudoElements:Nl({unknown:Oi,notation:Oi,definitions:aee(function(e){return Array.isArray(e)?{NoArgument:e}:e},y2)})})),_w={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},xw=Cs(_w,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),fb=Cs(xw,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Aw=Cs(fb,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),zp={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},Sw=nc(nc({},Aw),{modules:Object.entries(zp).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),oee=Cs(Sw,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),hb={css1:_w,css2:xw,css3:fb,"selectors-3":fb,"selectors-4":Aw,latest:Sw,progressive:oee};function see(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=hb[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var l=o.pseudoClasses.definitions;if(l)for(var c=0,d=Object.entries(l);c<d.length;c++)for(var f=d[c],p=f[1],m=0,y=p;m<y.length;m++){var b=y[m];e.pseudoClasses[b]||(e.pseudoClasses[b]=[]),e.pseudoClasses[b].includes(a)||e.pseudoClasses[b].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var l=o.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var _=0,A=l;_<A.length;_++){var C=A[_];e.pseudoElements[C]||(e.pseudoElements[C]=[]),e.pseudoElements[C].includes(a)||e.pseudoElements[C].push(a)}else for(var x=0,D=Object.values(l);x<D.length;x++)for(var p=D[x],S=0,M=p;S<M.length;S++){var L=M[S];e.pseudoElements[L]||(e.pseudoElements[L]=[]),e.pseudoElements[L].includes(a)||e.pseudoElements[L].push(a)}}}for(var I=0,V=Object.entries(zp);I<V.length;I++){var te=V[I],Q=te[0],k=te[1];if(k.pseudoClasses&&typeof k.pseudoClasses=="object"){var l=k.pseudoClasses.definitions;if(l)for(var H=0,W=Object.values(l);H<W.length;H++)for(var p=W[H],K=0,re=p;K<re.length;K++){var me=re[K];e.pseudoClasses[me]||(e.pseudoClasses[me]=[]),e.pseudoClasses[me].includes(Q)||e.pseudoClasses[me].push(Q)}}if(k.pseudoElements&&typeof k.pseudoElements=="object"){var l=k.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var G=0,oe=l;G<oe.length;G++){var le=oe[G];e.pseudoElements[le]||(e.pseudoElements[le]=[]),e.pseudoElements[le].includes(Q)||e.pseudoElements[le].push(Q)}else for(var se=0,P=Object.values(l);se<P.length;se++)for(var p=P[se],Ce=0,he=p;Ce<he.length;Ce++){var O=he[Ce];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(Q)||e.pseudoElements[O].push(Q)}}}return e}var b2=see();function ku(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function E2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Ru(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var lee={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},cee={'"':!0,"'":!0},K1={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},uee=6,W1="css-selector-parser parse error: ";function dee(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,l=e.modules,c=typeof n=="object"?n:hb[n];if(c.baseSyntax&&(c=Cs(hb[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var d=0,f=c.modules;d<f.length;d++){var p=f[d],m=zp[p];m&&(c=Cs(m,c))}if(l&&l.length>0)for(var y=0,b=l;y<b.length;y++){var _=b[y],m=zp[_];m&&(c=Cs(m,c))}var A=c.tag?[!0,!!ree(c.tag).wildcard]:[!1,!1],C=A[0],x=A[1],D=!!c.ids,S=!!c.classNames,M=!!c.namespace,L=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(M&&!C)throw new Error("".concat(W1,"Namespaces cannot be enabled while tags are disabled."));var I=!!r,V=c.combinators?h2(c.combinators):tp,te=c.attributes?[!0,c.attributes.operators?h2(c.attributes.operators):tp,c.attributes.caseSensitivityModifiers?JJ(c.attributes.caseSensitivityModifiers):ub,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,tp,ub,!1],Q=te[0],k=te[1],H=te[2],W=te[3],K=W||Object.keys(H).length>0,re=c.pseudoClasses?[!0,c.pseudoClasses.definitions?m2(c.pseudoClasses.definitions):wh,c.pseudoClasses.unknown==="accept"]:[!1,wh,!1],me=re[0],G=re[1],oe=re[2],le=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?m2(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):wh,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,wh,!1],se=le[0],P=le[1],Ce=le[2],he=le[3],O=le[4],ce="",Ne=ce.length,Ie=0,Me="",Oe=function(_e){return Me===_e},st=function(){return Oe("*")||ku(Me)},dt=function(_e){Ie=_e,Me=ce.charAt(Ie)},Ue=function(){Ie++,Me=ce.charAt(Ie)},Zt=function(){var _e=Me;return Ie++,Me=ce.charAt(Ie),_e};function wt(_e){var Te=Math.min(Ne-1,Ie),ot=new Error("".concat(W1).concat(_e," Pos: ").concat(Te,"."));throw ot.position=Te,ot.name="ParserError",ot}function Pe(_e,Te){if(!_e)return wt(Te)}var rr=function(){Pe(Ie<Ne,"Unexpected end of input.")},dn=function(){return Ie>=Ne},Ve=function(_e){Pe(Ie<Ne,'Expected "'.concat(_e,'" but end of input reached.')),Pe(Me===_e,'Expected "'.concat(_e,'" but "').concat(Me,'" found.')),Ie++,Me=ce.charAt(Ie)};function Zn(_e){var Te=rn(_e,Ie);if(Te)return Ie+=Te.length,Me=ce.charAt(Ie),Te}function rn(_e,Te){var ot=ce.charAt(Te),Xe=_e[ot];if(Xe){var Sn=rn(Xe.chars,Te+1);if(Sn)return Sn;if(Xe.self)return Xe.self}}function on(){for(var _e=Zt(),Te=1;Ru(Me)&&Te<uee;)_e+=Zt(),Te++;return Ba(),String.fromCharCode(parseInt(_e,16))}function Ye(_e){var Te="";for(Ve(_e);Ie<Ne;){if(Oe(_e))return Ue(),Te;Oe("\\")?(Ue(),Oe(_e)?(Te+=_e,Ue()):Me===`
|
|
200
|
-
`||Me==="\f"?Ue():Me==="\r"?(Ue(),Oe(`
|
|
201
|
-
`)&&Ue()):Ru(Me)?Te+=on():(Te+=Me,Ue())):(Te+=Me,Ue())}return Te}function Ct(){if(!ku(Me))return null;for(var _e="";Oe("-");)_e+=Me,Ue();for(_e==="-"&&!E2(Me)&&!Oe("\\")&&wt("Identifiers cannot consist of a single hyphen."),o&&_e.length>=2&&wt("Identifiers cannot start with two hyphens with strict mode on."),K1[Me]&&wt("Identifiers cannot start with hyphens followed by digits.");Ie<Ne;)if(E2(Me))_e+=Zt();else if(Oe("\\"))Ue(),rr(),Ru(Me)?_e+=on():_e+=Zt();else break;return _e}function xr(){for(var _e="";Ie<Ne&&!Oe(")");)if(Oe("\\")){if(Ue(),dn()&&!o)return(_e+"\\").trim();rr(),Ru(Me)?_e+=on():_e+=Zt()}else _e+=Zt();return _e.trim()}function Ba(){if(Me===" "||Me===" "||Me==="\f"||Me===`
|
|
202
|
-
`){Ue();return}Me==="\r"&&Ue(),Me===`
|
|
203
|
-
`&&Ue()}function Rt(){for(;lee[Me];)Ue()}function ue(_e){_e===void 0&&(_e=!1),Rt();for(var Te=[An(_e)];Oe(",");)Ue(),Rt(),Te.push(An(_e));return{type:"Selector",rules:Te}}function ve(){Ve("["),Rt();var _e;if(Oe("|")){Pe(M,"Namespaces are not enabled."),Ue();var Te=Ct();Pe(Te,"Expected attribute name."),_e={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(Oe("*")){Pe(M,"Namespaces are not enabled."),Pe(L,"Wildcard namespace is not enabled."),Ue(),Ve("|");var ot=Ct();Pe(ot,"Expected attribute name."),_e={type:"Attribute",name:ot,namespace:{type:"WildcardNamespace"}}}else{var Xe=Ct();if(Pe(Xe,"Expected attribute name."),_e={type:"Attribute",name:Xe},Oe("|")){var Sn=Ie;if(Ue(),ku(Me)){Pe(M,"Namespaces are not enabled.");var $r=Ct();Pe($r,"Expected attribute name."),_e={type:"Attribute",name:$r,namespace:{type:"NamespaceName",name:Xe}}}else dt(Sn)}}if(Pe(_e.name,"Expected attribute name."),Rt(),dn()&&!o)return _e;if(Oe("]"))Ue();else{if(_e.operator=Zn(k),Pe(_e.operator,"Expected a valid attribute selector operator."),Rt(),rr(),cee[Me])_e.value={type:"String",value:Ye(Me)};else if(I&&Oe("$")){Ue();var gr=Ct();Pe(gr,"Expected substitute name."),_e.value={type:"Substitution",name:gr}}else{var ar=Ct();Pe(ar,"Expected attribute value."),_e.value={type:"String",value:ar}}if(Rt(),dn()&&!o)return _e;if(!Oe("]")){var ir=Ct();if(Pe(ir,"Expected end of attribute selector."),_e.caseSensitivityModifier=ir,Pe(K,"Attribute case sensitivity modifiers are not enabled."),Pe(W||H[_e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Rt(),dn()&&!o)return _e}Ve("]")}return _e}function Be(){for(var _e="";K1[Me];)_e+=Zt();return Pe(_e!=="","Formula parse error."),parseInt(_e)}var rt=function(){return Oe("-")||Oe("+")||K1[Me]};function Dt(){if(Oe("e")||Oe("o")){var _e=Ct();if(_e==="even")return Rt(),[2,0];if(_e==="odd")return Rt(),[2,1]}var Te=null,ot=1;if(Oe("-")&&(Ue(),ot=-1),rt()&&(Oe("+")&&Ue(),Te=Be(),!Oe("\\")&&!Oe("n")))return[0,Te*ot];Te===null&&(Te=1),Te*=ot;var Xe;if(Oe("\\")?(Ue(),Ru(Me)?Xe=on():Xe=Zt()):Xe=Zt(),Pe(Xe==="n",'Formula parse error: expected "n".'),Rt(),Oe("+")||Oe("-")){var Sn=Oe("+")?1:-1;return Ue(),Rt(),[Te,Sn*Be()]}else return[Te,0]}function Nt(_e,Te,ot){var Xe;if(Oe("(")){if(Ue(),Rt(),I&&Oe("$")){Ue();var Sn=Ct();Pe(Sn,"Expected substitute name."),Xe={type:"Substitution",name:Sn}}else if(ot.type==="String")Xe={type:"String",value:xr()},Pe(Xe.value,"Expected ".concat(Te," argument value."));else if(ot.type==="Selector")Xe=ue(!0);else if(ot.type==="Formula"){var $r=Dt(),gr=$r[0],ar=$r[1];if(Xe={type:"Formula",a:gr,b:ar},ot.ofSelector&&(Rt(),Oe("o")||Oe("\\"))){var ir=Ct();Pe(ir==="of","Formula of selector parse error."),Rt(),Xe={type:"FormulaOfSelector",a:gr,b:ar,selector:An()}}}else return wt("Invalid ".concat(Te," signature."));if(Rt(),dn()&&!o)return Xe;Ve(")")}else Pe(ot.optional,"Argument is required for ".concat(Te,' "').concat(_e,'".'));return Xe}function zn(){if(Oe("*"))return Pe(x,"Wildcard tag name is not enabled."),Ue(),{type:"WildcardTag"};if(ku(Me)){Pe(C,"Tag names are not enabled.");var _e=Ct();return Pe(_e,"Expected tag name."),{type:"TagName",name:_e}}else return wt("Expected tag name.")}function gn(){if(Oe("*")){var _e=Ie;if(Ue(),!Oe("|")||(Ue(),!st()))return dt(_e),zn();Pe(M,"Namespaces are not enabled."),Pe(L,"Wildcard namespace is not enabled.");var Te=zn();return Te.namespace={type:"WildcardNamespace"},Te}else if(Oe("|")){Pe(M,"Namespaces are not enabled."),Ue();var Te=zn();return Te.namespace={type:"NoNamespace"},Te}else if(ku(Me)){var ot=Ct();if(Pe(ot,"Expected tag name."),!Oe("|"))return Pe(C,"Tag names are not enabled."),{type:"TagName",name:ot};var _e=Ie;if(Ue(),!st())return dt(_e),{type:"TagName",name:ot};Pe(M,"Namespaces are not enabled.");var Te=zn();return Te.namespace={type:"NamespaceName",name:ot},Te}else return wt("Expected tag name.")}function An(_e){var Te,ot;_e===void 0&&(_e=!1);var Xe={type:"Rule",items:[]};if(_e){var Sn=Zn(V);Sn&&(Xe.combinator=Sn,Rt())}for(;Ie<Ne;)if(st())Pe(Xe.items.length===0,"Unexpected tag/namespace start."),Xe.items.push(gn());else if(Oe("|")){var $r=Ie;if(Ue(),st())Pe(Xe.items.length===0,"Unexpected tag/namespace start."),dt($r),Xe.items.push(gn());else{dt($r);break}}else if(Oe(".")){Pe(S,"Class names are not enabled."),Ue();var gr=Ct();Pe(gr,"Expected class name."),Xe.items.push({type:"ClassName",name:gr})}else if(Oe("#")){Pe(D,"IDs are not enabled."),Ue();var ar=Ct();Pe(ar,"Expected ID name."),Xe.items.push({type:"Id",name:ar})}else if(Oe("["))Pe(Q,"Attributes are not enabled."),Xe.items.push(ve());else if(Oe(":")){var ir=!1,ja=!1;Ue(),Oe(":")&&(Pe(se,"Pseudo elements are not enabled."),Pe(Ce,"Pseudo elements double colon notation is not enabled."),ir=!0,Ue());var fn=Ct();if(Pe(ir||fn,"Expected pseudo-class name."),Pe(!ir||fn,"Expected pseudo-element name."),Pe(fn,"Expected pseudo-class name."),!(!ir||O||Object.prototype.hasOwnProperty.call(he,fn))){var Fr=b2.pseudoElements[fn],Da='Unknown pseudo-element "'.concat(fn,'"');Fr&&Fr.length>0&&(Da+=". It is defined in: ".concat(Fr.join(", "))),wt(Da+".")}if(ja=se&&(ir||!ir&&P&&Object.prototype.hasOwnProperty.call(he,fn)),ja){var z=(Te=he[fn])!==null&&Te!==void 0?Te:O&&p2,X={type:"PseudoElement",name:fn},ae=Nt(fn,"pseudo-element",z);ae&&(Pe(ae.type!=="Formula"&&ae.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),X.argument=ae),Xe.items.push(X)}else{Pe(me,"Pseudo-classes are not enabled.");var z=(ot=G[fn])!==null&&ot!==void 0?ot:oe&&p2;if(!z){var Fr=b2.pseudoClasses[fn],Da='Unknown pseudo-class: "'.concat(fn,'"');Fr&&Fr.length>0&&(Da+=". It is defined in: ".concat(Fr.join(", "))),wt(Da+".")}var ae=Nt(fn,"pseudo-class",z),Ee={type:"PseudoClass",name:fn};ae&&(Ee.argument=ae),Xe.items.push(Ee)}}else break;if(Xe.items.length===0)return dn()?wt("Expected rule but end of input reached."):wt('Expected rule but "'.concat(Me,'" found.'));if(Rt(),!dn()&&!Oe(",")&&!Oe(")")){var Sn=Zn(V);Rt(),Xe.nestedRule=An(),Xe.nestedRule.combinator=Sn}return Xe}return function(_e){if(typeof _e!="string")throw new Error("".concat(W1,"Expected string input."));return ce=_e,Ne=ce.length,Ie=0,Me=ce.charAt(0),ue()}}const fee=dee({syntax:"selectors-4"});function hee(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return fee(e)}const Cw="֑-߿יִ-﷽ﹰ-ﻼ",Dw="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",pee=new RegExp("^[^"+Dw+"]*["+Cw+"]"),mee=new RegExp("^[^"+Cw+"]*["+Dw+"]");function gee(e){const t=String(e||"");return pee.test(t)?"rtl":mee.test(t)?"ltr":"neutral"}function kw(e){return"children"in e?Rw(e):"value"in e?e.value:""}function yee(e){return e.type==="text"?e.value:"children"in e?Rw(e):""}function Rw(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=yee(e.children[t]);return n.join("")}function bee(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let l;if(t.type==="element"){const f=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",m=v2(t);f!=null&&(e.language=String(f)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=zi),m==="rtl"?l=m:m==="ltr"||m!=="auto"&&t.tagName==="html"||m!=="auto"&&t.tagName==="input"&&p==="tel"?l="ltr":(m==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?l=X1(kw(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?l=t.properties.value?X1(String(t.properties.value)):"ltr":Mr(t,d)),l&&(e.direction=l)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function d(f){if(f.type==="text")return l=X1(f.value),l?Pp:void 0;if(f!==t&&f.type==="element"&&(f.tagName==="bdi"||f.tagName==="script"||f.tagName==="style"||f.tagName==="textare"||v2(f)))return Vu}}function X1(e){const t=gee(e);return t==="neutral"?void 0:t}function v2(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function Eee(e,t,n){const r=Gd(n,e.name),a=t.properties[r.property];let o=vee(a,r);if(!e.value)return o!==void 0;e.value.type;let l=e.value.value;if(e.caseSensitivityModifier==="i"&&(l=l.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return l===o;case"$=":return l===o.slice(-l.length);case"*=":return o.includes(l);case"^=":return l===o.slice(0,l.length);case"|=":return l===o||l===o.slice(0,l.length)&&o.charAt(l.length)==="-";case"~=":return l===o||Ly(o).includes(l)}return!1}function vee(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?dm:fm)(e)}else return String(e)}const Tee=[];function _ee(e,t){return(t.properties.className||Tee).includes(e.name)}function xee(e,t){return t.properties.id===e.name}function Aee(e,t){return e.name===t.tagName}function See(e,t){return function(n,r){let a=T2(n,"tag");const o=T2(r??"*","range"),l=[];let c=-1;for(;++c<o.length;){const d=o[c].toLowerCase();let f=-1;const p=[];for(;++f<a.length;)e(a[f].toLowerCase(),d)?l.push(a[f]):p.push(a[f]);a=p}return l}}const Cee=See(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0});function T2(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const Dee=new Set([9,10,12,13,32]),_2=48,kee=57;function Ree(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=l();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=o(),c(),a=l()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function l(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=_2&&e.charCodeAt(t)<=kee;)f=f*10+(e.charCodeAt(t)-_2),t++;return t===d?null:f}function c(){for(;t<e.length&&Dee.has(e.charCodeAt(t));)t++}}var x2,A2;function Iee(){return A2||(A2=1,x2={trueFunc:function(){return!0},falseFunc:function(){return!1}}),x2}var wee=Iee();const S2=Cm(wee);function Nee(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return S2.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?S2.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function C2(e){return Nee(Ree(e))}const Oee={}.hasOwnProperty;function Ls(e,t){const n=e.type==="element"&&Oee.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Lee=C2.default||C2,Mee=um("name",{handlers:{"any-link":Pee,blank:$ee,checked:Fee,dir:Bee,disabled:Iw,empty:jee,enabled:Uee,"first-child":Hee,"first-of-type":zee,has:Gee,is:ww,lang:qee,"last-child":Yee,"last-of-type":Qee,not:Kee,"nth-child":Wee,"nth-last-child":Xee,"nth-last-of-type":Zee,"nth-of-type":Jee,"only-child":ete,"only-of-type":tte,optional:nte,"read-only":rte,"read-write":Nw,required:Ow,root:ate,scope:ite},invalid:Vee,unknown:ote});function Pee(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Ls(t,"href")}function di(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function $ee(e,t){return!Lw(t,n);function n(r){return r.type==="element"||r.type==="text"&&!zd(r)}}function Fee(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Ls(t,"checked")):t.tagName==="option"?Ls(t,"selected"):!1}function Bee(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function Iw(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Ls(t,"disabled")}function jee(e,t){return!Lw(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Uee(e,t){return!Iw(e,t)}function Hee(e,t,n,r,a){return di(a,e),a.elementIndex===0}function zee(e,t,n,r,a){return di(a,e),a.typeIndex===0}function Bm(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Lee(n.a+"n+"+n.b),e._cachedFn=t}return t}function Gee(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return XE(o,{type:"root",children:t.children}),o.results.length>0}function Vee(){}function ww(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return XE(o,t),o.results[0]===t}function qee(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&Cee(a.language,Oy(e.argument.value)).length>0}function Yee(e,t,n,r,a){return di(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function Qee(e,t,n,r,a){return di(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Kee(e,t,n,r,a){return!ww(e,t,n,r,a)}function Wee(e,t,n,r,a){const o=Bm(e);return di(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function Xee(e,t,n,r,a){const o=Bm(e);return di(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function Zee(e,t,n,r,a){const o=Bm(e);return di(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function Jee(e,t,n,r,a){const o=Bm(e);return di(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function ete(e,t,n,r,a){return di(a,e),a.elementCount===1}function tte(e,t,n,r,a){return di(a,e),a.typeCount===1}function nte(e,t){return!Ow(e,t)}function rte(e,t,n,r,a){return!Nw(e,t,n,r,a)}function Nw(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Ls(t,"readOnly")&&!Ls(t,"disabled"):!!a.editableOrEditingHost}function Ow(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Ls(t,"required")}function ate(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function ite(e,t,n,r,a){return a.scopeElements.includes(t)}function Lw(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function ote(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function ste(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!Eee(o,t,a.schema))return!1}else if(o.type==="Id"){if(!xee(o,t))return!1}else if(o.type==="ClassName"){if(!_ee(o,t))return!1}else if(o.type==="PseudoClass"){if(!Mee(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!Aee(o,t))return!1}return!0}const lte=[];function XE(e,t){t&&Mw(e,[],t,void 0,void 0,t)}function Z1(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function cte(e,t,n,r){const a=np(t.descendant,t.directChild);let o,l=-1;const c={count:0,types:new Map},d={count:0,types:new Map};for(;++l<n.children.length;)D2(c,n.children[l]);for(l=-1;++l<n.children.length;){const f=n.children[l],p=f.type==="element"?f.tagName.toUpperCase():void 0;if(e.elementIndex=d.count,e.typeIndex=p&&d.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in f){const m=np(a,o),y=Mw(e,m,n.children[l],l,n,r);o=np(y.generalSibling,y.adjacentSibling)}if(e.one&&e.found)break;D2(d,n.children[l])}}function ute(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let l=-1;for(;++l<t.length;){const c=t[l];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(ste(c,n,r,a,e)){const d=c.nestedRule;if(d){const f=d.combinator==="+"?"adjacentSibling":d.combinator==="~"?"generalSibling":d.combinator===">"?"directChild":"descendant";Z1(o,f,d)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Z1(o,"descendant",c):c.combinator==="~"&&Z1(o,"generalSibling",c)}return o}function np(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:lte}function D2(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Mw(e,t,n,r,a,o){let l={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=bee(e,n);if(n.type==="element"){let d=e.rootQuery.rules;a&&a!==o&&(d=e.rootQuery.rules.filter(f=>f.combinator===void 0||f.combinator===">"&&a===o)),l=ute(e,np(t,d),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&cte(e,l,n,o),c(),l}function dte(e,t,n){const r=fte(e,t);return XE(r,t||void 0),r.results}function fte(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:hee(e),schema:lc,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Pw=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Pw(n.children))}),t),hte=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=dte(t,r);a&&a.length>0&&Mr(r,a,(o,l,c)=>{n(o,l,c)});return}Mr(r,(a,o,l)=>{n(a,o,l)})}}},pte=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),mte=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},$w=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?$w(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},k2=({value:e=""})=>{const t=pte(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},R2=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},gte=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Mr(r,"element",(a,o,l)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&l&&Array.isArray(l.children)&&l.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const d=mte(l.children,o);if(d){const f=k2(d);Object.keys(f).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=R2(c.properties,f,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&l&&Array.isArray(l.children)&&typeof o=="number"){const c=$w(l.children,o,"",n);if(c){const d=k2(c);Object.keys(d).length>0&&(a.properties=R2(a.properties,d,t))}}})}};var yte=function(e){return t=>{Mr(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ae({},n.properties,{"data-meta":String(n.data.meta)}))})}},bte=function(e){return t=>{Mr(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const Ete=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Mr(r,(a,o,l)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(d=>{if(d.type==="raw"||d.type==="comment"){let f=(d.value||"").trim();if(f=f.replace(/^<!--(.*?)-->/,"$1"),f===t)return c=!0,!1;if(f===n)return c=!1,!1}return!c})}})}};var vte={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Tte(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const _te=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,xte=Object.hasOwnProperty;let Ate=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=Ste(t,n===!0);const o=a;for(;xte.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function Ste(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(_te,"").replace(/ /g,"-"))}function Fw(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Cte={},I2=new Ate;function Dte(e){const t=(e||Cte).prefix||"";return function(n){I2.reset(),Mr(n,"element",function(r){Fw(r)&&!r.properties.id&&(r.properties.id=t+I2.slug(kw(r)))})}}const Bw=function(e){if(e==null)return Ite;if(typeof e=="string")return Rte(e);if(typeof e=="object")return kte(e);if(typeof e=="function")return ZE(e);throw new Error("Expected function, string, or array as `test`")};function kte(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bw(e[n]);return ZE(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Rte(e){return ZE(t);function t(n){return n.tagName===e}}function ZE(e){return t;function t(n,r,a){return!!(wte(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Ite(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function wte(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const w2={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Nte={};function Ote(e){const t=e||Nte;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,l=t.group,c=Bw(t.test);let d;return a==="after"||a==="before"?d=p:a==="wrap"?d=m:(d=f,n||(n={ariaHidden:"true",tabIndex:-1})),function(y){Mr(y,"element",function(b,_,A){if(Fw(b)&&b.properties.id&&c(b,_,A))return Object.assign(b.properties,Oh(r,b)),d(b,_,A)})};function f(y){const b=N2(o||w2,y);return y.children[a==="prepend"?"unshift":"push"](J1(y,Oh(n,y),b)),[Vu]}function p(y,b,_){if(typeof b!="number"||!_)return;const A=N2(o||w2,y),C=J1(y,Oh(n,y),A);let x=a==="before"?[C,y]:[y,C];if(l){const D=jw(l,y);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return _.children.splice(b,1,...x),[Vu,b+x.length]}function m(y){let b=y.children,_=[];return typeof o=="function"?(b=[],_=o(y)):o&&(_=JE(o)),y.children=[J1(y,Oh(n,y),Array.isArray(_)?[...b,..._]:[...b,_])],[Vu]}}function JE(e){return Os(e)}function J1(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function N2(e,t){const n=jw(e,t);return Array.isArray(n)?n:[n]}function jw(e,t){return typeof e=="function"?e(t):JE(e)}function Oh(e,t){return typeof e=="function"?e(t):e?JE(e):{}}var Lte=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=Ae({class:"anchor"},o.properties),o.children=[vte])}if(n.type==="element"&&n.tagName==="pre"&&!e){var l=Pw(n.children);n.children.push(Tte(l))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Mte=[Dte,Ote,Ete];const Uw=Le.forwardRef((e,t)=>{var n,r=[yte,bte,...Mte,[hte,{rewrite:Lte((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[gte,{properties:"attr"}],...e.rehypePlugins||[]];return v.jsx(XJ,Ae({},e,{rehypePlugins:r,ref:t}))});function Pte(e,t){return Ae({},e,t)}var mc=Le.createContext({markdown:""});function Hw(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ae({},t,Hw(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function zw(e,t,n,r,a){t===void 0&&(t=[]);var o=Hw(t||[]),l=[];if(e.altKey&&l.push("alt"),e.shiftKey&&l.push("shift"),e.metaKey&&l.push("cmd"),e.ctrlKey&&l.push("ctrl"),l.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&l.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&l.push("escape"),!(l.length<1)){var c=!!o[l.join("+")],d=c?o[l.join("+")]:void 0;if(Object.keys(o).forEach(f=>{var p=f.split("+").every(m=>/ctrlcmd/.test(m)?l.includes("ctrl")||l.includes("cmd"):l.includes(m));p&&(d=o[f])}),d&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(d,r,a,l);return}}}var ey;function O2(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ey>"u"){var t=document.createElement("textarea");t.value="1",ey=!!t.firstChild}return ey}function Ql(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var l=document.createRange(),c=document.createTextNode(t);if(O2(e)){var d=e.firstChild;if(!d)e.appendChild(c);else{for(var f=0,p=null,m=null;d&&(p===null||m===null);){var y=d.nodeValue.length;a>=f&&a<=f+y&&l.setStart(p=d,a-f),o>=f&&o<=f+y&&l.setEnd(m=d,o-f),f+=y,d=d.nextSibling}a!==o&&l.deleteContents()}}if(O2(e)&&l.commonAncestorContainer.nodeName==="#text")l.insertNode(c);else{var b=e.value;e.value=b.slice(0,a)+t+b.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var _=document.createEvent("UIEvent");_.initEvent("input",!0,!1),e.dispatchEvent(_)}}function _r(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=$te(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var l=t.slice(o.start-r.length,o.end+a.length);if(l.startsWith(r)&&l.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function ed(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
204
|
-
`)+1,a=t.slice(n.end).indexOf(`
|
|
205
|
-
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function Gw(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function Vw(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function $te(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,o=t;o-1>-1;o--)if(n(e[o-1])){r=o;break}for(var l=t;l<e.length;l++)if(n(e[l])){a=l;break}return{start:r,end:a}}function nr(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:o=a}=e;n.length>=a.length+o.length&&n.startsWith(a)&&n.endsWith(o)?(t.replaceSelection(n.slice(a.length,o.length?-o.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+o),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function ev(e,t){var n=e.split(/\n/),r=0,a=n.map((o,l)=>{if(typeof t=="string")return o.startsWith(t)?(r-=t.length,o.slice(t.length)):(r+=t.length,t+o);if(typeof t=="function"){if(o.startsWith(t(o,l)))return r-=t(o,l).length,o.slice(t(o,l).length);var c=t(o,l);return r+=c.length,t(o,l)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
206
|
-
`);return{modifiedText:a,insertionLength:r}}var Fte={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:v.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},qw={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:v.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:v.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",o="\n```\n";r.selectedText.length>=a.length+o.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(o)?(a="```\n",o="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
207
|
-
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
208
|
-
`||r.selection.end===e.text.length)&&(o="\n```"));var l=_r({text:e.text,selection:e.selection,prefix:a,suffix:o}),c=t.setSelectionRange(l);nr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:o})}},Bte={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:v.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:v.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
209
|
-
`)===-1){var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else qw.execute(e,t)}},jte={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:v.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:v.jsxs("g",{fill:"none",fillRule:"evenodd",children:[v.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},rp={keyCommand:"divider"},Ute={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function Hte(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var zte=(e,t)=>{var n=Ae({children:e,icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=Ae({},(Hte(r),r));return a.parent=n,Ae({},a)})),n},Gte={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:v.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Vte={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:v.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:v.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=_r({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},qte={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:v.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Yte={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=_r({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},tv=(e,t,n)=>{var r=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=Gw(a.text,a.selection.start),l=Array(o+1).join(`
|
|
213
|
-
`),c=Vw(a.text,a.selection.end),d=Array(c+1).join(`
|
|
214
|
-
`),{modifiedText:f,insertionLength:p}=ev(a.selectedText,n);if(p<0){var m=a.selection.start,y=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
215
|
-
`&&(m-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
216
|
-
`&&(y+=1),t.setSelectionRange({start:m,end:y}),t.replaceSelection(""+f),t.setSelectionRange({start:m,end:m+f.length})}else{t.replaceSelection(""+l+f+d);var b=a.selection.start+o,_=b+f.length;t.setSelectionRange({start:b,end:_})}},Qte={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:v.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{tv(e,t,"- ")}},Kte={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:v.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{tv(e,t,(n,r)=>r+1+". ")}},Wte={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:v.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{tv(e,t,(n,r)=>"- [ ] ")}},Xte={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),v.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},Zte={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),v.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},Jte={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),v.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},ene={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=Gw(r.text,r.selection.start),o=Array(a+1).join(`
|
|
217
|
-
`),l=Vw(r.text,r.selection.end),c=Array(l+1).join(`
|
|
218
|
-
`),d=ev(r.selectedText,e.command.prefix);t.replaceSelection(""+o+d.modifiedText+c);var f=r.selection.start+a,p=f+d.modifiedText.length;t.setSelectionRange({start:f,end:p})}},tne={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:v.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Yw={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:v.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},nne=Yw;function gc(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=ed({text:t.text,selection:t.selection}),l=n.setSelectionRange(o);nr({api:n,selectedText:l.selectedText,selection:t.selection,prefix:r,suffix:a})}Ae({},Yw,{icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var rne={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:v.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},ane=rne,ine={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:v.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},one=ine,sne={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:v.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},lne=sne,cne={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},une=cne,dne={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{gc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},fne=dne,hne={name:"table",keyCommand:"table",prefix:`
|
|
219
|
-
| Header | Header |
|
|
220
|
-
|--------|--------|
|
|
221
|
-
| Cell | Cell |
|
|
222
|
-
| Cell | Cell |
|
|
223
|
-
| Cell | Cell |
|
|
224
|
-
|
|
225
|
-
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=_r({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),nr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},pne={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:v.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:v.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},mne=()=>[Fte,qte,tne,Gte,zte([nne,ane,one,lne,une,fne],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),rp,Yte,ene,Bte,qw,jte,Vte,hne,rp,Qte,Kte,Wte,rp,pne],gne=()=>[Zte,Jte,Xte,rp,Ute];function Gp(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}let nv=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Ql(this.textArea,t),Gp(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Gp(this.textArea)}};class rv{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new nv(t)}getState(){return this.textArea?Gp(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ae({command:t},Gp(this.textArea)),this.textApi,n,r,a)}}function ap(e){e.stopPropagation(),e.preventDefault()}function L2(e,t){ap(e);var n=e.target,r=new nv(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=ed({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var o=n.value.slice(a.start,a.end);if(t<0){var l=ed({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(l.start,l.end);r.setSelectionRange({start:l.start,end:a.end}),Ql(n,o+`
|
|
226
|
-
`+c),r.setSelectionRange({start:l.start,end:l.start+o.length})}else{var d=ed({text:n.value,selection:{start:a.end+1,end:a.end+1}}),f=n.value.slice(d.start,d.end);r.setSelectionRange({start:a.start,end:d.end}),Ql(n,f+`
|
|
227
|
-
`+o),r.setSelectionRange({start:d.end-o.length,end:d.end})}}}function yne(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),o=a.split(`
|
|
228
|
-
`),l=o[o.length-1],c=new nv(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){ap(e);var d=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var f=r.value.substring(0,r.selectionStart).split(`
|
|
229
|
-
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
230
|
-
`),m=[];p.forEach((V,te)=>{V!==f[te]&&m.push(V)});var y=m.join(`
|
|
231
|
-
`),b=r.value.substring(r.selectionStart,r.selectionEnd),_=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(y),end:r.selectionEnd});var A=ev(y,e.shiftKey?"":d),C=A.modifiedText;e.shiftKey&&(C=C.split(`
|
|
232
|
-
`).map(V=>V.replace(new RegExp("^"+d),"")).join(`
|
|
233
|
-
`)),c.replaceSelection(C);var x=e.shiftKey?-t:t,D=e.shiftKey?-m.length*t:m.length*t;c.setSelectionRange({start:_+x,end:_+b.length+D})}else return Ql(r,d)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(l)||/^\d+.\s/.test(l))&&!e.shiftKey){ap(e);var S=`
|
|
234
|
-
- `;return l.startsWith("*")&&(S=`
|
|
235
|
-
* `),(l.startsWith("- [ ]")||l.startsWith("- [X]")||l.startsWith("- [x]"))&&(S=`
|
|
236
|
-
- [ ] `),/^\d+.\s/.test(l)&&(S=`
|
|
237
|
-
`+(parseInt(l)+1)+". "),Ql(r,S)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){ap(e);var M={start:r.selectionStart,end:r.selectionEnd},L=M;M=ed({text:r.value,selection:M});var I=r.value.slice(M.start,M.end);c.setSelectionRange({start:M.end,end:M.end}),Ql(r,`
|
|
238
|
-
`+I),c.setSelectionRange({start:L.start,end:L.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?L2(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&L2(e,1)}var bne=["prefixCls","onChange"],Ene=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function vne(e){var{prefixCls:t,onChange:n}=e,r=cr(e,bne),a=w.useContext(mc),{markdown:o,commands:l,fullscreen:c,preview:d,highlightEnable:f,extraCommands:p,tabSize:m,defaultTabEnable:y,autoFocusEnd:b,textareaWarp:_,dispatch:A}=a;cr(a,Ene);var C=Le.useRef(null),x=Le.useRef(),D=Le.useRef({fullscreen:c,preview:d});w.useEffect(()=>{D.current={fullscreen:c,preview:d,highlightEnable:f}},[c,d,f]),w.useEffect(()=>{if(C.current&&A){var M=new rv(C.current);x.current=M,A({textarea:C.current,commandOrchestrator:M})}},[]),w.useEffect(()=>{if(b&&C.current&&_){C.current.focus();var M=C.current.value.length;C.current.setSelectionRange(M,M),setTimeout(()=>{_&&(_.scrollTop=_.scrollHeight),C.current&&(C.current.scrollTop=C.current.scrollHeight)},0)}},[_]);var S=M=>{yne(M,m,y),zw(M,[...l||[],...p||[]],x.current,A,D.current)};return w.useEffect(()=>(C.current&&C.current.addEventListener("keydown",S),()=>{C.current&&C.current.removeEventListener("keydown",S)}),[]),v.jsx("textarea",Ae({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:C,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:M=>{A&&A({markdown:M.target.value}),n&&n(M)}}))}var Tne=["prefixCls","className","onScroll","renderTextarea"];function _ne(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,l=cr(t,Tne),{markdown:c,scrollTop:d,commands:f,extraCommands:p,dispatch:m}=w.useContext(mc),y=Le.useRef(null),b=Le.useRef(),_=Le.createRef();w.useEffect(()=>{var C={};_.current&&(C.textareaWarp=_.current||void 0,_.current.scrollTop=d||0),m&&m(Ae({},C))},[]),w.useEffect(()=>{if(y.current&&m){var C=new rv(y.current);b.current=C,m({textarea:y.current,commandOrchestrator:C})}},[]);var A={WebkitTextFillColor:"initial",overflow:"auto"};return v.jsx("div",{ref:_,className:n+"-area "+(r||""),onScroll:a,children:v.jsx("div",{className:n+"-text",children:o?Le.cloneElement(o(Ae({},l,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:m,onChange:l.onChange,shortcuts:zw,useContext:{commands:f,extraCommands:p,commandOrchestrator:b.current}}),{ref:y}):v.jsx(w.Fragment,{children:v.jsx(vne,Ae({prefixCls:n},l,{style:A}))})})})}function xne(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=w.useContext(mc);return w.useMemo(()=>v.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(r)?v.jsx(Qw,Ae({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function M2(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:l,commandOrchestrator:c,dispatch:d}=w.useContext(mc),f=w.useRef("");function p(m,y){if(d){var b={barPopup:Ae({},o)};m.keyCommand==="preview"&&(b.preview=m.value),m.keyCommand==="fullscreen"&&(b.fullscreen=!r),e.commands&&m.keyCommand==="group"?e.commands.forEach(_=>{y===_.groupName?b.barPopup[y]=!0:_.keyCommand&&(b.barPopup[_.groupName]=!1)}):(y||m.parent)&&Object.keys(b.barPopup||{}).forEach(_=>{b.barPopup[_]=!1}),Object.keys(b).length&&d(Ae({},b)),c&&c.executeCommand(m)}}return w.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(f.current||(f.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=f.current))},[r,f,n]),v.jsx("ul",{children:(e.commands||[]).map((m,y)=>{if(m.keyCommand==="divider")return v.jsx("li",Ae({},m.liProps,{className:t+"-toolbar-divider"}),y);if(!m.keyCommand)return v.jsx(w.Fragment,{},y);var b=r&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&a===m.value,_=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},m.groupName),execute:()=>p({execute:m.execute}),dispatch:d}):void 0,A=o&&a&&a==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),C=l?.toolbar||m.render,x=C&&typeof C=="function"?C(m,!!A,p,y):null;return v.jsxs("li",Ae({},m.liProps,{className:b?"active":"",children:[x&&Le.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&Le.createElement("button",Ae({type:"button",key:y,disabled:A,"data-name":m.name},m.buttonProps,{onClick:D=>{D.stopPropagation(),p(m,m.groupName)}}),m.icon),m.children&&v.jsx(xne,{overflow:n,groupName:m.groupName,prefixCls:t,children:_,commands:Array.isArray(m.children)?m.children:void 0})]}),y)})})}function Qw(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=w.useContext(mc);return v.jsxs("div",{className:t+"-toolbar "+r,children:[v.jsx(M2,Ae({},e,{commands:e.commands||a||[]})),!n&&v.jsx(M2,Ae({},e,{commands:o||[]}))]})}function P2(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:o}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var l=n?"bottom":"";return v.jsx(Qw,{prefixCls:o,overflow:a,className:l})}var Ane=e=>{var{prefixCls:t,onChange:n}=e||{},r=w.useRef(null),a=w.useRef(),o=w.useRef(e.height);w.useEffect(()=>{o.current!==e.height&&(o.current=e.height)},[e.height]);function l(p){if(a.current){var m,y=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY),b=a.current.height+y-a.current.dragY;b>=e.minHeight&&b<=e.maxHeight&&n&&n(a.current.height+(y-a.current.dragY))}}function c(){var p,m;a.current=void 0,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",l),(m=r.current)==null||m.removeEventListener("touchend",c)}function d(p){var m,y,b;p.preventDefault();var _=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY);a.current={height:o.current,dragY:_},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),(y=r.current)==null||y.addEventListener("touchmove",l,{passive:!1}),(b=r.current)==null||b.addEventListener("touchend",c,{passive:!1})}w.useEffect(()=>{if(document){var p,m;(p=r.current)==null||p.addEventListener("touchstart",d,{passive:!1}),(m=r.current)==null||m.addEventListener("mousedown",d)}return()=>{if(document){var y;(y=r.current)==null||y.removeEventListener("touchstart",d),document.removeEventListener("mousemove",l)}}},[]);var f=w.useMemo(()=>v.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:v.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return v.jsx("div",{className:t+"-bar",ref:r,children:f})},Sne=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function Cne(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var Dne=Le.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:l=mne(),commandsFilter:c,direction:d,extraCommands:f=gne(),height:p=200,enableScroll:m=!0,visibleDragbar:y=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:b=!0,preview:_="live",fullscreen:A=!1,overflow:C=!0,previewOptions:x={},textareaProps:D,maxHeight:S=1200,minHeight:M=100,autoFocus:L,autoFocusEnd:I=!1,tabSize:V=2,defaultTabEnable:te=!1,onChange:Q,onStatistics:k,onHeightChange:H,hideToolbar:W,toolbarBottom:K=!1,components:re,renderTextarea:me}=n,G=cr(n,Sne),oe=l.map(Ve=>c?c(Ve,!1):Ve).filter(Boolean),le=f.map(Ve=>c?c(Ve,!0):Ve).filter(Boolean),[se,P]=w.useReducer(Pte,{markdown:o,preview:_,components:re,height:p,minHeight:M,highlightEnable:b,tabSize:V,defaultTabEnable:te,scrollTop:0,scrollTopPreview:0,commands:oe,extraCommands:le,fullscreen:A,barPopup:{}}),Ce=w.useRef(null),he=w.useRef(null),O=w.useRef(m);w.useImperativeHandle(t,()=>Ae({},se,{container:Ce.current,dispatch:P})),w.useMemo(()=>O.current=m,[m]),w.useEffect(()=>{var Ve={};Ce.current&&(Ve.container=Ce.current||void 0),Ve.markdown=o||"",Ve.barPopup={},P&&P(Ae({},se,Ve))},[]);var ce=[a,"wmde-markdown-var",d?r+"-"+d:null,r,se.preview?r+"-show-"+se.preview:null,se.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();w.useMemo(()=>o!==se.markdown&&P({markdown:o||""}),[o,se.markdown]),w.useMemo(()=>_!==se.preview&&P({preview:_}),[_]),w.useMemo(()=>V!==se.tabSize&&P({tabSize:V}),[V]),w.useMemo(()=>b!==se.highlightEnable&&P({highlightEnable:b}),[b]),w.useMemo(()=>L!==se.autoFocus&&P({autoFocus:L}),[L]),w.useMemo(()=>I!==se.autoFocusEnd&&P({autoFocusEnd:I}),[I]),w.useMemo(()=>A!==se.fullscreen&&P({fullscreen:A}),[A]),w.useMemo(()=>p!==se.height&&P({height:p}),[p]),w.useMemo(()=>p!==se.height&&H&&H(se.height,p,se),[p,H,se]),w.useMemo(()=>l!==se.commands&&P({commands:oe}),[e.commands]),w.useMemo(()=>f!==se.extraCommands&&P({extraCommands:le}),[e.extraCommands]);var Ne=w.useRef(),Ie=w.useRef("preview"),Me=w.useRef(!1);w.useMemo(()=>{Ne.current=se.textareaWarp,se.textareaWarp&&(se.textareaWarp.addEventListener("mouseover",()=>{Ie.current="text"}),se.textareaWarp.addEventListener("mouseleave",()=>{Ie.current="preview"}))},[se.textareaWarp]);var Oe=(Ve,Zn)=>{if(O.current){var rn=Ne.current,on=he.current?he.current:void 0;if(Me.current||(Ie.current=Zn,Me.current=!0),rn&&on){var Ye=(rn.scrollHeight-rn.offsetHeight)/(on.scrollHeight-on.offsetHeight);Ve.target===rn&&Ie.current==="text"&&(on.scrollTop=rn.scrollTop/Ye),Ve.target===on&&Ie.current==="preview"&&(rn.scrollTop=on.scrollTop*Ye);var Ct=0;Ie.current==="text"?Ct=rn.scrollTop||0:Ie.current==="preview"&&(Ct=on.scrollTop||0),P({scrollTop:Ct})}}},st=r+"-preview "+(x.className||""),dt=Ve=>Oe(Ve,"preview"),Ue=w.useMemo(()=>v.jsx("div",{ref:he,className:st,children:v.jsx(Uw,Ae({},x,{onScroll:dt,source:se.markdown||""}))}),[st,x,se.markdown]),Zt=re?.preview&&re?.preview(se.markdown||"",se,P);Zt&&Le.isValidElement(Zt)&&(Ue=v.jsx("div",{className:st,ref:he,onScroll:dt,children:Zt}));var wt=Ae({},G.style,{height:se.height||"100%"}),Pe=()=>P({barPopup:Ae({},Cne(se.barPopup))}),rr=Ve=>P({height:Ve}),dn=Ve=>{if(Q&&Q(Ve.target.value,Ve,se),D&&D.onChange&&D.onChange(Ve),se.textarea&&se.textarea instanceof HTMLTextAreaElement&&k){var Zn=new rv(se.textarea),rn=Zn.getState()||{};k(Ae({},rn,{lineCount:Ve.target.value.split(`
|
|
239
|
-
`).length,length:Ve.target.value.length}))}};return v.jsx(mc.Provider,{value:Ae({},se,{dispatch:P}),children:v.jsxs("div",Ae({ref:Ce,className:ce},G,{onClick:Pe,style:wt,children:[v.jsx(P2,{hideToolbar:W,toolbarBottom:K,prefixCls:r,overflow:C,placement:"top"}),v.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(se.preview||"")&&v.jsx(_ne,Ae({className:r+"-input",prefixCls:r,autoFocus:L},D,{onChange:dn,renderTextarea:re?.textarea||me,onScroll:Ve=>Oe(Ve,"text")})),/(live|preview)/.test(se.preview||"")&&Ue]}),y&&!se.fullscreen&&v.jsx(Ane,{prefixCls:r,height:se.height,maxHeight:S,minHeight:M,onChange:rr}),v.jsx(P2,{hideToolbar:W,toolbarBottom:K,prefixCls:r,overflow:C,placement:"bottom"})]}))})}),Kw=Dne;Kw.Markdown=Uw;function kne({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const a={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0},o=t.findIndex(l=>l.sourceInfo.name===e.sourceName);return v.jsx(Zw,{sourceAndPaths:t,selectedSourceIndex:o>=0?o:0,existingQuery:a,onQueryChange:n,onSourceChange:r})}function Rne({cell:e,editingMalloy:t,editingMarkdown:n,sourceAndPaths:r,onCellChange:a,onClose:o,onEdit:l,onDelete:c,addButtonCallback:d}){const[f,p]=w.useState(e.value),[m,y]=Le.useState(!1),[b,_]=Le.useState(!1),[A,C]=Le.useState(),[x]=Le.useState(),[D,S]=Le.useState(ip()),[M,L]=Le.useState(!1),[I,V]=Le.useState(e.sourceName?r.findIndex(P=>P.sourceInfo.name===e.sourceName):0);w.useEffect(()=>{e.isMarkdown||Rp(e.value,"malloy").then(P=>{C(P)})},[e]),Le.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[te,Q]=w.useState(!1),k=()=>{c(),Q(!1)},H=r.length===0,W=Le.useCallback(()=>{const P=r[I],Ce=P?.modelPath||e.modelPath||"",he=P?.sourceInfo.name||e.sourceName||"";a({...e,value:e.isMarkdown?f:D.query,result:D.malloyResult?JSON.stringify(D.malloyResult):void 0,queryInfo:D.malloyQuery?JSON.stringify(D.malloyQuery):void 0,sourceName:he,modelPath:Ce})},[e,f,D,a,I,r]),K=v.jsx(fa,{title:"Delete Cell",children:v.jsx(xn,{size:"small",onClick:()=>Q(!0),children:v.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),re=v.jsxs(No,{open:te,onClose:()=>Q(!1),children:[v.jsx(Oo,{children:"Confirm Delete"}),v.jsx(Lo,{children:v.jsx($e,{children:"Are you sure you want to delete this cell?"})}),v.jsxs(H2,{children:[v.jsx(Nr,{onClick:()=>Q(!1),children:"Cancel"}),v.jsx(Nr,{onClick:k,color:"error",children:"Delete"})]})]}),me=()=>{W(),o()},G=e.isMarkdown?v.jsxs(v.Fragment,{children:[n?v.jsx(fa,{title:"Save",children:v.jsx(xn,{size:"small",onClick:me,children:v.jsx(Sh,{})})}):v.jsx(fa,{title:"Edit",children:v.jsx(xn,{size:"small",onClick:l,children:v.jsx(uC,{})})}),!n&&K]}):v.jsxs(v.Fragment,{children:[!t&&v.jsx(fa,{title:m?"Hide Code":"View Code",children:v.jsx(xn,{size:"small",onClick:()=>{y(!m)},children:v.jsx(u3,{})})}),!t&&e.result&&v.jsx(fa,{title:b?"Hide Embedding":"View Embedding",children:v.jsx(xn,{size:"small",onClick:()=>{_(!b)},children:v.jsx(fG,{})})}),t&&v.jsx(fa,{title:"Save",children:v.jsx(xn,{size:"small",onClick:me,children:v.jsx(Sh,{})})}),!t&&v.jsx(fa,{title:"Edit",children:v.jsx(xn,{size:"small",onClick:l,children:v.jsx(uC,{})})}),!t&&K]}),oe=t||n,le=n?v.jsx(fa,{title:"Save",children:v.jsx(xn,{size:"small",onClick:me,children:v.jsx(Sh,{})})}):t?v.jsx(fa,{title:"Save",children:v.jsx(xn,{size:"small",onClick:me,children:v.jsx(Sh,{})})}):null,se=M&&v.jsx(Ke,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!oe&&v.jsxs(v.Fragment,{children:[d(!0),d(!1),G]})||le});return v.jsxs(hp,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>L(!0),onMouseLeave:()=>{L(!1)},children:[se,e.isMarkdown?v.jsx(v.Fragment,{children:n?v.jsx(Kw,{value:f,preview:"edit",autoFocus:!0,onChange:P=>{p(P),a({...e,value:P})},onBlur:()=>{W(),M||me()}}):v.jsx(Ke,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?v.jsx(Ke,{onClick:l,sx:{cursor:"pointer"},children:v.jsx(sE,{children:e.value})}):v.jsxs(Ke,{onClick:l,sx:{cursor:"pointer"},children:[v.jsx($e,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),v.jsx($e,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):v.jsxs(v.Fragment,{children:[v.jsx(Px,{in:b,timeout:"auto",unmountOnExit:!0,children:v.jsx(Pn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx($e,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:x}})})}),v.jsx(Px,{in:m,timeout:"auto",unmountOnExit:!0,children:v.jsx(Pn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx($e,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:A}})})}),t&&(H?v.jsxs(v.Fragment,{children:[v.jsx($e,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),v.jsx($e,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):v.jsx(kne,{sourceAndPaths:r,onQueryChange:P=>{S(P)},onSourceChange:P=>{V(P)},cell:e})),!t&&e.result&&v.jsx(hp,{variant:"outlined",sx:{borderRadius:0},children:v.jsx(ym,{result:e.result,minHeight:300,maxHeight:800})}),!t&&!e.result&&v.jsxs(Ke,{onClick:l,sx:{cursor:"pointer"},children:[v.jsx($e,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),v.jsx($e,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),te&&re]})}const Ww=w.createContext(void 0);function Ine({children:e,workbookStorage:t}){const n=w.useMemo(()=>({workbookStorage:t}),[t]);return v.jsx(Ww.Provider,{value:n,children:e})}function wne(){const e=w.useContext(Ww);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const Nne=nn(v.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),One=new lm(new Xn);function Lne({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:a}=Sa(),{data:o,isLoading:l,isSuccess:c,isError:d,error:f}=mr({queryKey:["models",n,r,a],queryFn:x=>One.listModels(n,r,a,x)}),[p,m]=Le.useState(e||[]),[y,b]=Le.useState(null);Le.useEffect(()=>{m(e||[])},[e]);const _=x=>{const D=p.filter(S=>S!==x);m(D),t(D)},A=x=>{const D=[...p,x];m(D),t(D),b(null)};let C=[];return c&&o?.data&&(C=o.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),d?v.jsx(fr,{error:f,context:`${n} > ${r} > Model Picker`}):v.jsxs(v.Fragment,{children:[v.jsxs(b5,{fullWidth:!0,children:[l&&v.jsx($e,{children:"Loading..."}),v.jsxs(Pn,{direction:"row",spacing:1,children:[p.map(x=>v.jsx(Ts,{label:x,onDelete:()=>_(x),deleteIcon:v.jsx(md,{}),sx:{marginBottom:"5px"}},x)),v.jsx(Nr,{size:"small",startIcon:v.jsx(Nne,{}),onClick:x=>b(x.currentTarget),disabled:l||d||C.length===0,children:"Add Model"})]})]}),v.jsxs(z2,{anchorEl:y,open:!!y,onClose:()=>b(null),children:[v.jsx($e,{variant:"subtitle2",sx:{ml:1},children:"Models"}),v.jsx(Ms,{}),C.length===0?v.jsx(op,{disabled:!0,children:"No models available"}):C.map(x=>v.jsx(op,{onClick:()=>A(x),children:v.jsx($e,{variant:"body2",children:x})},x))]})]})}function ef(){const e=Sb();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const Ol=E5({createStyledComponent:an("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>rc({props:e,name:"MuiStack"})}),Mne=new lm(new Xn);function Pne({workbookPath:e,defaultProjectName:t,defaultPackageName:n}){const r=ef(),{server:a,getAccessToken:o}=IE(),{workbookStorage:l}=wne(),[c,d]=Le.useState(void 0),[f,p]=Le.useState(void 0);if(!l)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[m,y]=Le.useState(),[b,_]=Le.useState(),[A,C]=Le.useState(),[x,D]=Le.useState([]),[S,M]=Le.useState(null),[L,I]=Le.useState(null),V=!!S,te=()=>{M(null),I(null)},Q=(se,P)=>{m&&(y(m.insertCell(P,{isMarkdown:se,value:""})),se?C(P):_(P),te(),console.log("handleAddCell",se,P))},[k,H]=Le.useState(!1),W=()=>{H(!0)},K=async()=>{e&&l&&await l.deleteWorkbook(e).then(()=>{p(void 0),d(void 0)}).catch(se=>{p(`Error deleting workbook: ${se.message}`),d(void 0)}),H(!1),r(`/${t}/${n}`)},re=()=>{H(!1)},me=Le.useCallback(async()=>{if(!m){console.log("No workbook data ref");return}try{y(await m.saveWorkbook()),p(void 0),d("Workbook saved")}catch(se){p(`Error saving workbook: ${se.message}`),d(void 0)}},[m]);if(Le.useEffect(()=>{m&&(async()=>{const se=new Map(x.map(({modelPath:he,sourceInfos:O})=>[he,O])),P=[],Ce=[];for(const he of m.getModels())se.has(he)?P.push({modelPath:he,sourceInfos:se.get(he)}):(console.log("Fetching model from Publisher",he),Ce.push(Mne.getModel(t,n,he,void 0,await av(a,o)).then(O=>({modelPath:he,sourceInfos:O.data.sourceInfos.map(ce=>JSON.parse(ce))}))));if(Ce.length>0){const he=await Promise.all(Ce);D([...P,...he])}else D(P)})()},[o,m,n,t,a]),Le.useEffect(()=>{e&&uG.loadWorkbook(l,e).then(se=>{y(se)})},[e,l]),!m)return v.jsx("div",{children:"Loading..."});const G=se=>{const P=[];for(const Ce of se)for(const he of Ce.sourceInfos)P.push({modelPath:Ce.modelPath,sourceInfo:he});return P},oe=(se,P)=>v.jsx(Nr,{size:"small",startIcon:v.jsx(cG,{}),onClick:()=>Q(se,P),variant:"contained",sx:{backgroundColor:"#fff",color:Ce=>Ce.palette.mode==="dark"?Ce.palette.grey[100]:Ce.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:Ce=>Ce.palette.mode==="dark"?Ce.palette.grey[500]:Ce.palette.grey[300],boxShadow:"none"}},children:se?"Markdown":"Explore"}),le=v.jsxs(Ke,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[oe(!1,m.getCells().length),oe(!0,m.getCells().length)]});return v.jsxs(hp,{variant:"outlined",children:[v.jsxs(RD,{children:[v.jsx(Ke,{sx:{mb:2},children:v.jsx(Ke,{sx:{minHeight:"24px"},children:f?v.jsx($e,{color:"error",variant:"body2",children:f}):c?v.jsx($e,{color:"success",variant:"body2",children:c}):v.jsx("span",{children:" "})})}),v.jsxs(Ol,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs(Ol,{direction:"row",spacing:1,alignItems:"center",children:[v.jsx($e,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),v.jsx($e,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),v.jsxs(Ol,{sx:{display:"flex",flexDirection:"row",gap:1},children:[v.jsx(Ke,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:v.jsx($ne,{workbookData:m})}),v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[v.jsx(Nr,{color:"error",onClick:W,size:"small",children:"Delete"}),v.jsxs(No,{open:k,onClose:re,children:[v.jsx(Oo,{children:"Delete Workbook"}),v.jsx(Lo,{children:v.jsxs(v5,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),v.jsxs(H2,{children:[v.jsx(Nr,{onClick:re,color:"primary",size:"small",children:"Cancel"}),v.jsx(Nr,{onClick:K,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),v.jsx(Ms,{}),v.jsxs(Ol,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[v.jsx(Ke,{sx:{flex:1},children:v.jsx(Lne,{initialSelectedModels:m.getModels(),onModelChange:se=>{y(m.setModels(se)),me()}})}),v.jsx(Ke,{sx:{flex:1}})]})]}),v.jsx(zb,{children:v.jsxs(Ol,{children:[m.getCells().length===0&&v.jsxs(v.Fragment,{children:[v.jsx($e,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),v.jsx($e,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),m.getCells().map((se,P)=>v.jsx(Le.Fragment,{children:v.jsx(Rne,{cell:se,addButtonCallback:Ce=>oe(Ce,P),sourceAndPaths:G(x),editingMarkdown:A===P,editingMalloy:b===P,onDelete:()=>{y(m.deleteCell(P)),me()},onCellChange:Ce=>{y(m.setCell(P,Ce))},onEdit:()=>{se.isMarkdown?C(P):_(P)},onClose:()=>{se.isMarkdown?C(void 0):_(void 0),me()}},`${P}-${se.isMarkdown}-${e.workspace}-${e.path}`)},`${P}-${m.getCells().length}`)),le,v.jsxs(z2,{anchorEl:S,open:V,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(op,{onClick:()=>Q(!0,L??0),children:"Add Markdown"}),v.jsx(op,{onClick:()=>Q(!1,L??0),children:"Add Malloy"})]}),v.jsx(Ol,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function $ne({workbookData:e}){const[t,n]=Le.useState(!1);return v.jsx(Nr,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const Fne=nn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),Bne=nn(v.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),$2=nn(v.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),jne=nn(v.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),Une=nn(v.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),Hne=nn([v.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),v.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),F2=nn(v.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),zne=new ok(new Xn),Gne=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function Vne({navigate:e}){const{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["projects"],queryFn:o=>zne.listProjects(o)});return r?v.jsx(fr,{error:a,context:"Projects List"}):n?v.jsxs(bb,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(Ke,{sx:{textAlign:"center",mb:6},children:[v.jsxs(Pn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx($2,{sx:{fontSize:32,color:"primary.main"}}),v.jsx($e,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx($e,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),v.jsx($e,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),v.jsxs(mn,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(mn,{size:{xs:12,md:4},children:v.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(Fl,{sx:{p:3},children:[v.jsxs(Pn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(Fne,{sx:{color:"info.main",fontSize:28}}),v.jsx($e,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx($e,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),v.jsx(Ts,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(mn,{size:{xs:12,md:4},children:v.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(Fl,{sx:{p:3},children:[v.jsxs(Pn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(jne,{sx:{color:"warning.main",fontSize:28}}),v.jsx($e,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx($e,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),v.jsx(Ts,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(mn,{size:{xs:12,md:4},children:v.jsx($l,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(Fl,{sx:{p:3},children:[v.jsxs(Pn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(Hne,{sx:{color:"success.main",fontSize:28}}),v.jsx($e,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx($e,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),v.jsx(Ts,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(Ms,{sx:{my:4}}),t.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(Ke,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Pn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(F2,{sx:{color:"primary.main",fontSize:24}}),v.jsx($e,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx($e,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),v.jsx(mn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(o=>v.jsx(mn,{size:{xs:12,sm:6,md:4},children:v.jsx($l,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:l=>e(`/${o.name}/`,l),children:v.jsxs(Fl,{sx:{p:3,textAlign:"center"},children:[v.jsx(Une,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx($e,{variant:"h6",fontWeight:600,gutterBottom:!0,children:o.name}),v.jsx($e,{variant:"body2",color:"text.secondary",sx:{mb:2},children:Gne(o.readme)}),v.jsx(Nr,{variant:"contained",color:"secondary",endIcon:v.jsx(Bne,{}),fullWidth:!0,children:"Open Project"})]})})},o.name))})]}):v.jsxs(Ke,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Pn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(F2,{sx:{color:"primary.main",fontSize:24}}),v.jsx($e,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx($e,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),v.jsx(Nr,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx($2,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),v.jsx(Ke,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs($e,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",v.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):v.jsx(dr,{text:"Loading projects..."})}const Xw=new l8({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),av=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function mr(e){const{server:t,getAccessToken:n}=IE(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const a=await av(t,n);return await e.queryFn(a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const o=a;if(o.response?.data){const l=new Error(o.response.data.message||o.message);throw l.status=o.response.status,l.data=o.response.data,l}}throw a}},retry:!1,throwOnError:!1};return S8(r,Xw)}function qne(e){const{server:t,getAccessToken:n}=IE(),r={...e,mutationFn:async a=>{try{const o=await av(t,n);return await e.mutationFn(a,o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const l=o;if(l.response?.data){const c=new Error(l.response.data.message||l.message);throw c.status=l.response.status,c.data=l.response.data,c}}throw o}},retry:!1,throwOnError:!1};return C8(r,Xw)}const Yne=new cm(new Xn);function Zw({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a}){return Le.useEffect(()=>{a&&a(t)},[t,a]),v.jsx(zb,{children:v.jsxs(T5,{spacing:2,component:"section",children:[v.jsx(Kne,{sourceAndPath:e[t],existingQuery:n,onChange:o=>{r&&r(o)}}),v.jsx(_5,{height:"5px"})]})})}function ip(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Qne({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a}){const[o,l]=Le.useState(n||ip());Le.useEffect(()=>{n&&l(n)},[n]);const[c,d]=Le.useState([]),{MalloyExplorerProvider:f,QueryPanel:p,ResizableCollapsiblePanel:m,ResultPanel:y,SourcePanel:b}=r;Le.useEffect(()=>{t&&t(o)},[t,o]);const{projectName:_,packageName:A,versionId:C}=Sa(),x=qne({mutationFn:(L,I)=>{const V=new a.ASTQuery({source:e.sourceInfo,query:o?.malloyQuery}).toMalloy();return l({...o,query:V}),Yne.executeQuery(_,A,e.modelPath,V,void 0,void 0,C,I)},onSuccess:L=>{if(L){const I=JSON.parse(L.data.result);l({...o,malloyResult:I})}}}),[D,S]=Le.useState(e.sourceInfo.name);Le.useEffect(()=>{D!==e.sourceInfo.name&&(S(e.sourceInfo.name),l(ip()))},[e,D]);const M=Le.useCallback(L=>{l({...o,malloyQuery:L,malloyResult:void 0})},[o]);return D!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(ID,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:v.jsx(f,{source:e.sourceInfo,query:o?.malloyQuery,onQueryChange:M,focusedNestViewPath:c,onFocusedNestViewPathChange:d,onDrill:L=>{console.info(L)},children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(m,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(b,{onRefresh:()=>l(ip())})}),v.jsx(m,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(p,{runQuery:()=>{console.log(`running query with: ${o?.malloyQuery}`);try{x.mutate()}catch(L){console.error("Error running query:",L)}}})}),v.jsx(y,{source:e.sourceInfo,draftQuery:o?.malloyQuery,setDraftQuery:L=>l({...o,malloyQuery:L}),submittedQuery:o?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:o.malloyResult},query:o.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Kne(e){const[t,n]=w.useState(null),[r,a]=w.useState(null),[o,l]=w.useState(!0);return w.useEffect(()=>{let c=!0;return Promise.all([F(()=>import("./index-CvbMKVwx.js"),__vite__mapDeps([96,94,95,97,98])),F(()=>import("./index-SM0qJxoC.js").then(d=>d.i),__vite__mapDeps([97,95]))]).then(([d,f])=>{c&&(n(d),a(f),l(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),c&&l(!1)}),()=>{c=!1}},[]),o||!t||!r?v.jsx(eP,{children:v.jsx(ID,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(Qne,{...e,explorerComponents:t,QueryBuilder:r})}const Wne=an(Ke)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),Xne=an(Nr)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function Jw({modelPath:e,data:t,onChange:n,existingQuery:r,initialSelectedSourceIndex:a=0,onSourceChange:o}){const[l,c]=Le.useState(a);Le.useEffect(()=>{c(a)},[a]);const{data:d,isError:f,isLoading:p,error:m}=NR(e,void 0),y=t||d;return p&&!t?v.jsx(dr,{text:"Fetching Model..."}):f&&!t?(console.log("error",m),v.jsx(fr,{error:m,context:`ModelExplorer > ${e}`})):y?v.jsxs(hp,{variant:"outlined",children:[v.jsx(RD,{children:v.jsx(Pn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&v.jsx(Wne,{children:y.sourceInfos.map((b,_)=>{let A;try{A=JSON.parse(b)}catch{A={name:String(_)}}return v.jsx(Xne,{selected:l===_,onClick:()=>{c(_),o&&o(_)},children:A.name||`Source ${_+1}`},A.name||_)})})})}),v.jsx(zb,{children:v.jsxs(Pn,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&v.jsx(Zw,{sourceAndPaths:y.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:e})),selectedSourceIndex:l,existingQuery:r,onQueryChange:n}),v.jsx(Ke,{height:"5px"})]})})]}):v.jsx(dr,{text:"Loading..."})}function Zne({modelPath:e,queryName:t,annotations:n}){const[r,a]=Le.useState(),[o,l]=Le.useState(!1),{packageName:c,projectName:d}=Sa(),f=new cm(new Xn),{data:p,isSuccess:m,isLoading:y}=mr({queryKey:["namedQueryResult",d,c,e,t],queryFn:b=>f.executeQuery(d,c,e,void 0,void 0,t,void 0,b),enabled:!0});return w.useEffect(()=>{if(n&&n.length>0){const b=n.map(_=>`// ${_}`).join(`
|
|
240
|
-
`);Rp(b,"typescript").then(_=>{a(_)})}},[n]),v.jsxs(cy,{children:[r&&v.jsx(Ke,{sx:{marginBottom:"16px"},children:v.jsx($e,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:r}})})}),v.jsxs(Ke,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[v.jsx($e,{variant:"body2",sx:{fontSize:"15px",fontWeight:"600",color:"#495057",padding:"8px 16px",backgroundColor:"#f8f9fa",borderRadius:"6px",border:"1px solid #e9ecef"},children:t}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>l(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]}),v.jsxs(uy,{sx:{position:"relative"},children:[y&&v.jsx(Ke,{sx:{padding:"20px",textAlign:"center"},children:v.jsx($e,{children:"Loading results..."})}),m&&p?.data?.result&&v.jsx(ym,{result:p.data.result,minHeight:300,maxHeight:600,hideToggle:!1})]}),v.jsx(v3,{open:o,onClose:()=>l(!1),result:p?.data?.result||"",title:`Query: ${t}`})]})}function Jne({modelPath:e,versionId:t,onChange:n}){const{data:r,isError:a,isLoading:o,error:l}=NR(e,t),[c,d]=Le.useState(!1),[f,p]=Le.useState(),[m,y]=Le.useState(0);if(o)return v.jsx(dr,{text:"Fetching Model..."});if(a)return console.log("error",l),v.jsx(fr,{error:l,context:`Model > ${e}`});const b=A=>{p(A),n&&n(A)},_=A=>{y(A)};return v.jsxs(Ke,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(r?.sourceInfos)&&r.sourceInfos.length>0&&v.jsxs(Pn,{spacing:2,component:"section",children:[v.jsx(Ke,{sx:{padding:"0 0 16px 0"},children:v.jsx($e,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"})}),v.jsx(Jw,{modelPath:e,data:r,onChange:b,onSourceChange:_,existingQuery:f,initialSelectedSourceIndex:m}),v.jsx(xn,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>d(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]}),r?.queries?.length>0&&v.jsxs(Pn,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[v.jsx(Ke,{sx:{padding:"0 0 16px 0"},children:v.jsx($e,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),r.queries.map(A=>v.jsx(Zne,{modelPath:e,queryName:A.name,annotations:A.annotations},A.name))]}),v.jsx(E3,{open:c,onClose:()=>d(!1),modelPath:e,data:r,title:`Model: ${e.split("/").pop()}`,existingQuery:f,initialSelectedSourceIndex:m,onChange:b,onSourceChange:_})]})}const B2="Local";class ere{async listWorkspaces(t){return Promise.resolve([{name:B2,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:B2})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const tre="README.malloynb";function nre({navigate:e}){return e||(e=t=>{window.location.href=t}),v.jsx(wD,{children:v.jsxs(mn,{container:!0,spacing:3,columns:12,children:[v.jsx(mn,{size:{xs:12,md:4},children:v.jsx(jB,{})}),v.jsx(mn,{size:{xs:12,md:4},children:v.jsx(tG,{navigate:e})}),v.jsx(mn,{size:{xs:12,md:4},children:v.jsx(Zz,{navigate:e})}),v.jsx(mn,{size:{xs:12,md:6},children:v.jsx(JB,{})}),v.jsx(mn,{size:{xs:12,md:6},children:v.jsx(XB,{})}),v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(rG,{})}),v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"README"}),v.jsx(Ke,{sx:{mt:1},children:v.jsx(wR,{notebookPath:tre})})]})})})]})})}new cm(new Xn);at.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function rre(){const e=ef();return v.jsx(Vne,{navigate:e})}function are(){const e=Nd(),t=e["*"],n=ef();return v.jsx(Ke,{sx:{display:"flex",alignItems:"center"},children:v.jsxs(x5,{"aria-label":"breadcrumb",separator:v.jsx(A5,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&v.jsx(Ts,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&v.jsx(Ts,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&v.jsx(Ts,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function ire({logoHeader:e,endCap:t}){const n=Sb();return v.jsx(S5,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:v.jsxs(C5,{sx:{justifyContent:"space-between"},children:[v.jsxs(Pn,{direction:"row",spacing:2,alignItems:"center",children:[e||v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(Ke,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),v.jsx($e,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),v.jsx(are,{})]}),v.jsxs(Pn,{direction:"row",spacing:2,alignItems:"center",children:[!e&&v.jsxs(v.Fragment,{children:[v.jsx(Nr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),v.jsx(Nr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),v.jsx(Nr,{href:"/api-doc.html",children:"Publisher API"})]}),t]})]})})}function ore({headerProps:e}){return v.jsxs(Ke,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[v.jsx(ire,{...e}),v.jsx(bb,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:v.jsx(Ke,{sx:{flex:1},children:v.jsx(s6,{})})})]})}function sre(){const e=Nd(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?v.jsx(Ip,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(Jne,{modelPath:t})}):t?.endsWith(".malloynb")?v.jsx(Ip,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(wR,{notebookPath:t})}):v.jsx("div",{children:v.jsxs("h2",{children:["Unrecognized file type: ",t]})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function lre(){const{projectName:e,packageName:t}=Nd(),n=ef();return e?t?v.jsx(Ip,{projectName:e,packageName:t,children:v.jsx(nre,{navigate:n})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function cre(){const e=ef(),{projectName:t}=Nd();return t?v.jsx(x3,{projectName:t,children:v.jsx(VB,{navigate:e})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function ure(){const e=lD();return console.error(e),v.jsx(bb,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:v.jsxs(Pn,{sx:{m:"auto",flexDirection:"column"},children:[v.jsx(Ke,{sx:{height:"300px"}}),v.jsx("img",{src:"/error.png"}),v.jsx($e,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function dre(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=Nd();return e?t?n?r?v.jsx(Ip,{projectName:n,packageName:r,children:v.jsx(Pne,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e}},`${t}`)}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workbook path"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workspace"})})}const cn={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},fre=D5({palette:{mode:"light",primary:cn.primary,secondary:cn.secondary,grey:cn.grey,success:cn.success,warning:cn.warning,error:cn.error,info:cn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:cn.grey[900],secondary:cn.grey[600]},divider:cn.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${cn.grey[300]} ${cn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:cn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:cn.grey[300],borderRadius:"4px","&:hover":{background:cn.grey[400]}},"&::-webkit-scrollbar-corner":{background:cn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${cn.grey[300]} ${cn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:cn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:cn.grey[300],borderRadius:"4px","&:hover":{background:cn.grey[400]}},"&::-webkit-scrollbar-corner":{background:cn.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:cn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:cn.grey[200]}},defaultProps:{sx:{my:1}}}}}),hre=(e="/",t,n,r,a)=>w6([{path:e,element:v.jsx(dG,{server:r,getAccessToken:a,children:v.jsx(Ine,{workbookStorage:t,children:v.jsxs(k5,{theme:fre,children:[v.jsx(R5,{}),v.jsx(ore,{headerProps:n})]})})}),errorElement:v.jsx(ure,{}),children:[{path:"",element:v.jsx(rre,{})},{path:":projectName",element:v.jsx(cre,{})},{path:":projectName/:packageName",element:v.jsx(lre,{})},{path:":projectName/:packageName/*",element:v.jsx(sre,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(dre,{})}]}]),pre=`${window.location.protocol}//${window.location.host}/api/v0`,mre=hre("/",new ere,void 0,pre);P5.createRoot(document.getElementById("root")).render(v.jsx(w.StrictMode,{children:v.jsx(z6,{router:mre})}));export{F as _};
|